2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='tools/polly'
804 # Initialize some variables set by options.
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911 eval enable_$ac_feature=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package| sed 's/-/_/g'`
1127 eval with_$ac_package=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package | sed 's/-/_/g'`
1136 eval with_$ac_package=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1187 # Be sure to have absolute directory names.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
1244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273 { (exit 1); exit 1; }; }
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278 { (exit 1); exit 1; }; }
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1396 --enable-shared Build a shared library and link tools against it
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, arm, mips, spu,
1405 xcore, msp430, ptx, cbe, and cpp
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
1419 --with-optimize-option Select the compiler options to use for optimized
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1428 --with-c-include-dirs Colon separated list of directories clang will
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 Report bugs to <bugs@yourdomain>.
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" || continue
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1487 .) # We are building in place.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1520 [SAMPLE] configure [x.xx]
1521 generated by GNU Autoconf 2.60
1523 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1534 It was created by [SAMPLE] $as_me [x.xx], which was
1535 generated by GNU Autoconf 2.60. Invocation command line was
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_must_keep_next=false
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
1613 ac_must_keep_next=false # Got value, back to normal.
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624 -* ) ac_must_keep_next=true ;;
1627 ac_configure_args="$ac_configure_args '$ac_arg'"
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log. We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1651 # The following way of writing the cache mishandles newlines in values,
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
1671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1688 for ac_var in $ac_subst_vars
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 echo "$ac_var='\''$ac_val'\''"
1698 if test -n "$ac_subst_files"; then
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1705 for ac_var in $ac_subst_files
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1716 if test -s confdefs.h; then
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734 for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1742 # Predefined preprocessor variables.
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
1782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1790 if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1807 # Check that the precious variables saved in the cache have kept the same
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
1813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
1815 case $ac_old_set,$ac_new_set in
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
1827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1830 echo "$as_me: former value: $ac_old_val" >&2;}
1831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1832 echo "$as_me: current value: $ac_new_val" >&2;}
1833 ac_cache_corrupted=:
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 *) ac_arg=$ac_var=$ac_new_val ;;
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848 if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 LLVM_SRC_ROOT="../.."
1889 LLVM_OBJ_ROOT="../.."
1891 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1895 # Check whether --with-llvmsrc was given.
1896 if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1905 # Check whether --with-llvmobj was given.
1906 if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1914 ac_config_commands="$ac_config_commands setup"
1918 { echo "$as_me:$LINENO: checking llvm-config" >&5
1919 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921 if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1924 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925 echo "${ECHO_T}$llvm_config_path" >&6; }
1927 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1928 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929 if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1932 llvm_package_version="unknown";
1934 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935 echo "${ECHO_T}$llvm_package_version" >&6; }
1936 LLVM_VERSION=$llvm_package_version
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2014 { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in clang llvm-gcc gcc
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$ac_ct_CC" && break
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2157 for ac_file in $ac_files
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2166 if { (ac_try="$ac_link_default"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2181 for ac_file in $ac_files
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188 # We found the default executable, but exeext='' is most
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2223 # Check that the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2446 cat >conftest.$ac_ext <<_ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_c89=no
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2671 s = g (p, va_arg (v,int));
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 rm -f conftest.$ac_ext
2758 case "x$ac_cv_prog_cc_c89" in
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2827 test -n "$CXX" && break
2830 if test -z "$CXX"; then
2832 for ac_prog in clang++ llvm-g++ g++
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2871 test -n "$ac_ct_CXX" && break
2874 if test "x$ac_ct_CXX" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3198 if test "$GXX" = yes; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3328 rm -f conftest.err conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 # Check whether --enable-polly was given.
3472 if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3478 case "$enableval" in
3483 default) ENABLE_POLLY=1
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3491 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3494 subdirs="$subdirs tools/polly"
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3505 { echo "$as_me:$LINENO: checking build system type" >&5
3506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507 if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524 echo "${ECHO_T}$ac_cv_build" >&6; }
3525 case $ac_cv_build in
3527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528 echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3532 ac_save_IFS=$IFS; IFS='-'
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545 { echo "$as_me:$LINENO: checking host system type" >&5
3546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547 if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561 echo "${ECHO_T}$ac_cv_host" >&6; }
3564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565 echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3569 ac_save_IFS=$IFS; IFS='-'
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3582 { echo "$as_me:$LINENO: checking target system type" >&5
3583 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584 if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3597 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598 echo "${ECHO_T}$ac_cv_target" >&6; }
3599 case $ac_cv_target in
3601 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602 echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3605 target=$ac_cv_target
3606 ac_save_IFS=$IFS; IFS='-'
3612 # Remember, the first character of IFS is used to create $*,
3613 # except with old shells:
3616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619 # The aliases save the names the user supplied, while $host etc.
3620 # will get canonicalized.
3621 test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3624 program_prefix=${target_alias}-
3626 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628 if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 llvm_cv_target_os_type="AIX" ;;
3746 llvm_cv_target_os_type="IRIX" ;;
3748 llvm_cv_target_os_type="Cygwin" ;;
3750 llvm_cv_target_os_type="Darwin" ;;
3752 llvm_cv_target_os_type="Minix" ;;
3754 llvm_cv_target_os_type="FreeBSD" ;;
3756 llvm_cv_target_os_type="OpenBSD" ;;
3758 llvm_cv_target_os_type="NetBSD" ;;
3760 llvm_cv_target_os_type="DragonFly" ;;
3762 llvm_cv_target_os_type="HP-UX" ;;
3764 llvm_cv_target_os_type="Interix" ;;
3766 llvm_cv_target_os_type="Linux" ;;
3768 llvm_cv_target_os_type="SunOS" ;;
3770 llvm_cv_target_os_type="AuroraUX" ;;
3772 llvm_cv_target_os_type="Win32" ;;
3774 llvm_cv_target_os_type="MingW" ;;
3776 llvm_cv_target_os_type="Haiku" ;;
3778 llvm_cv_target_os_type="RTEMS" ;;
3780 llvm_cv_target_os_type="NativeClient" ;;
3782 llvm_cv_target_os_type="Freestanding" ;;
3784 llvm_cv_target_os_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3798 HOST_OS=$llvm_cv_os_type
3800 TARGET_OS=$llvm_cv_target_os_type
3803 LINKALL=$llvm_cv_link_all_option
3805 NOLINKALL=$llvm_cv_no_link_all_option
3808 case $llvm_cv_platform_type in
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 arm*-*) llvm_cv_target_arch="ARM" ;;
3844 mips-*) llvm_cv_target_arch="Mips" ;;
3845 xcore-*) llvm_cv_target_arch="XCore" ;;
3846 msp430-*) llvm_cv_target_arch="MSP430" ;;
3847 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3848 ptx-*) llvm_cv_target_arch="PTX" ;;
3849 *) llvm_cv_target_arch="Unknown" ;;
3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3853 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3855 if test "$llvm_cv_target_arch" = "Unknown" ; then
3856 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3857 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860 # Determine the LLVM native architecture for the target
3861 case "$llvm_cv_target_arch" in
3862 x86) LLVM_NATIVE_ARCH="X86" ;;
3863 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3864 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867 ARCH=$llvm_cv_target_arch
3872 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874 if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 # Extract the first word of "grep ggrep" to use in msg output
3878 if test -z "$GREP"; then
3879 set dummy grep ggrep; ac_prog_name=$2
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_path_GREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in grep ggrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3894 # Check for GNU ac_path_GREP and select it if it is found.
3895 # Check for GNU $ac_path_GREP
3896 case `"$ac_path_GREP" --version 2>&1` in
3898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'GREP' >> "conftest.nl"
3908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_GREP="$ac_path_GREP"
3914 ac_path_GREP_max=$ac_count
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 $ac_path_GREP_found && break 3
3933 GREP="$ac_cv_path_GREP"
3934 if test -z "$GREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3941 ac_cv_path_GREP=$GREP
3946 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948 GREP="$ac_cv_path_GREP"
3951 { echo "$as_me:$LINENO: checking for egrep" >&5
3952 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957 then ac_cv_path_EGREP="$GREP -E"
3959 # Extract the first word of "egrep" to use in msg output
3960 if test -z "$EGREP"; then
3961 set dummy egrep; ac_prog_name=$2
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 ac_path_EGREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in egrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3976 # Check for GNU ac_path_EGREP and select it if it is found.
3977 # Check for GNU $ac_path_EGREP
3978 case `"$ac_path_EGREP" --version 2>&1` in
3980 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 echo 'EGREP' >> "conftest.nl"
3990 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 ac_count=`expr $ac_count + 1`
3993 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_EGREP="$ac_path_EGREP"
3996 ac_path_EGREP_max=$ac_count
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 $ac_path_EGREP_found && break 3
4015 EGREP="$ac_cv_path_EGREP"
4016 if test -z "$EGREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4023 ac_cv_path_EGREP=$EGREP
4029 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4034 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4036 if test "${ac_cv_header_stdc+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_header_stdc=yes
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 ac_cv_header_stdc=no
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4117 ac_cv_header_stdc=no
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4138 ac_cv_header_stdc=no
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4202 echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4207 ac_cv_header_stdc=no
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 eval "$as_ac_Header=yes"
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 eval "$as_ac_Header=no"
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_res=`eval echo '${'$as_ac_Header'}'`
4299 { echo "$as_me:$LINENO: result: $ac_res" >&5
4300 echo "${ECHO_T}$ac_res" >&6; }
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4313 if test "${ac_cv_c_bigendian+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 # See if sys/param.h defines the BYTE_ORDER macro.
4317 cat >conftest.$ac_ext <<_ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 #include <sys/types.h>
4324 #include <sys/param.h>
4329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_try") 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4384 #if BYTE_ORDER != BIG_ENDIAN
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_c_bigendian=yes
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 ac_cv_c_bigendian=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 # It does not; compile a test program.
4440 if test "$cross_compiling" = yes; then
4441 # try to guess the endianness by grepping values into an object file
4442 ac_cv_c_bigendian=unknown
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4458 _ascii (); _ebcdic ();
4463 rm -f conftest.$ac_objext
4464 if { (ac_try="$ac_compile"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_try") 2>&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4498 ac_cv_c_bigendian=yes
4500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4501 if test "$ac_cv_c_bigendian" = unknown; then
4502 ac_cv_c_bigendian=no
4504 # finding both strings is unlikely to happen, but who knows?
4505 ac_cv_c_bigendian=unknown
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 cat >conftest.$ac_ext <<_ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4528 /* Are we little or big endian? From Harbison&Steele. */
4532 char c[sizeof (long int)];
4535 return u.c[sizeof (long int) - 1] == 1;
4541 rm -f conftest$ac_exeext
4542 if { (ac_try="$ac_link"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_c_bigendian=no
4563 echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_cv_c_bigendian=yes
4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4579 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4580 case $ac_cv_c_bigendian in
4588 { { echo "$as_me:$LINENO: error: unknown endianness
4589 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4590 echo "$as_me: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4596 if test "$cross_compiling" = yes; then
4597 LLVM_CROSS_COMPILING=1
4600 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4601 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4602 if test "${ac_cv_build_exeext+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4606 ac_cv_build_exeext=.exe
4608 ac_build_prefix=${build_alias}-
4610 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4611 set dummy ${ac_build_prefix}gcc; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$BUILD_CC"; then
4618 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 BUILD_CC=$ac_cv_prog_BUILD_CC
4638 if test -n "$BUILD_CC"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4640 echo "${ECHO_T}$BUILD_CC" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4647 if test -z "$BUILD_CC"; then
4648 # Extract the first word of "gcc", so it can be a program name with args.
4649 set dummy gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687 set dummy cc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4708 ac_cv_prog_BUILD_CC="cc"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_BUILD_CC
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set BUILD_CC to just the basename; use the full file name.
4725 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4742 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4743 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4744 { (exit 1); exit 1; }; }
4745 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4747 echo 'int main () { return 0; }' > conftest.$ac_ext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4750 (eval $ac_build_link) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 for file in conftest.*; do
4756 *.c | *.o | *.obj | *.dSYM) ;;
4757 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4761 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4762 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4763 { (exit 1); exit 1; }; }
4766 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4771 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4772 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4773 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4774 ac_build_exeext=$BUILD_EXEEXT
4776 ac_build_prefix=${build_alias}-
4777 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4778 set dummy ${ac_build_prefix}g++; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 if test -n "$BUILD_CXX"; then
4785 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4805 if test -n "$BUILD_CXX"; then
4806 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4807 echo "${ECHO_T}$BUILD_CXX" >&6; }
4809 { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4814 if test -z "$BUILD_CXX"; then
4815 # Extract the first word of "g++", so it can be a program name with args.
4816 set dummy g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "c++", so it can be a program name with args.
4854 set dummy c++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4872 ac_prog_rejected=yes
4875 ac_cv_prog_BUILD_CXX="c++"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 if test $ac_prog_rejected = yes; then
4884 # We found a bogon in the path, so make sure we never use it.
4885 set dummy $ac_cv_prog_BUILD_CXX
4887 if test $# != 0; then
4888 # We chose a different compiler from the bogus one.
4889 # However, it has the same basename, so the bogon will be chosen
4890 # first if we set BUILD_CXX to just the basename; use the full file name.
4892 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4910 LLVM_CROSS_COMPILING=0
4914 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4925 # Check whether --enable-optimized was given.
4926 if test "${enable_optimized+set}" = set; then
4927 enableval=$enable_optimized;
4932 if test ${enableval} = "no" ; then
4936 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4940 # Check whether --enable-profiling was given.
4941 if test "${enable_profiling+set}" = set; then
4942 enableval=$enable_profiling;
4947 if test ${enableval} = "no" ; then
4951 ENABLE_PROFILING=ENABLE_PROFILING=1
4955 # Check whether --enable-assertions was given.
4956 if test "${enable_assertions+set}" = set; then
4957 enableval=$enable_assertions;
4962 if test ${enableval} = "yes" ; then
4966 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4970 # Check whether --enable-expensive-checks was given.
4971 if test "${enable_expensive_checks+set}" = set; then
4972 enableval=$enable_expensive_checks;
4977 if test ${enableval} = "yes" ; then
4978 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4980 EXPENSIVE_CHECKS=yes
4983 ENABLE_EXPENSIVE_CHECKS=
4989 # Check whether --enable-debug-runtime was given.
4990 if test "${enable_debug_runtime+set}" = set; then
4991 enableval=$enable_debug_runtime;
4996 if test ${enableval} = "no" ; then
5000 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5004 # Check whether --enable-debug-symbols was given.
5005 if test "${enable_debug_symbols+set}" = set; then
5006 enableval=$enable_debug_symbols;
5011 if test ${enableval} = "no" ; then
5015 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5019 # Check whether --enable-jit was given.
5020 if test "${enable_jit+set}" = set; then
5021 enableval=$enable_jit;
5026 if test ${enableval} = "no"
5031 case "$llvm_cv_target_arch" in
5032 x86) TARGET_HAS_JIT=1
5034 Sparc) TARGET_HAS_JIT=0
5036 PowerPC) TARGET_HAS_JIT=1
5038 x86_64) TARGET_HAS_JIT=1
5040 ARM) TARGET_HAS_JIT=1
5042 Mips) TARGET_HAS_JIT=1
5044 XCore) TARGET_HAS_JIT=0
5046 MSP430) TARGET_HAS_JIT=0
5048 MBlaze) TARGET_HAS_JIT=0
5050 PTX) TARGET_HAS_JIT=0
5057 # Check whether --enable-docs was given.
5058 if test "${enable_docs+set}" = set; then
5059 enableval=$enable_docs;
5064 case "$enableval" in
5069 default) ENABLE_DOCS=1
5071 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5072 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5073 { (exit 1); exit 1; }; } ;;
5076 # Check whether --enable-doxygen was given.
5077 if test "${enable_doxygen+set}" = set; then
5078 enableval=$enable_doxygen;
5083 case "$enableval" in
5084 yes) ENABLE_DOXYGEN=1
5086 no) ENABLE_DOXYGEN=0
5088 default) ENABLE_DOXYGEN=0
5090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5091 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5092 { (exit 1); exit 1; }; } ;;
5095 # Check whether --enable-threads was given.
5096 if test "${enable_threads+set}" = set; then
5097 enableval=$enable_threads;
5102 case "$enableval" in
5103 yes) ENABLE_THREADS=1
5105 no) ENABLE_THREADS=0
5107 default) ENABLE_THREADS=1
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 cat >>confdefs.h <<_ACEOF
5115 #define ENABLE_THREADS $ENABLE_THREADS
5119 # Check whether --enable-pthreads was given.
5120 if test "${enable_pthreads+set}" = set; then
5121 enableval=$enable_pthreads;
5126 case "$enableval" in
5127 yes) ENABLE_PTHREADS=1
5129 no) ENABLE_PTHREADS=0
5131 default) ENABLE_PTHREADS=1
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 # Check whether --enable-pic was given.
5139 if test "${enable_pic+set}" = set; then
5140 enableval=$enable_pic;
5145 case "$enableval" in
5150 default) ENABLE_PIC=1
5152 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5157 cat >>confdefs.h <<_ACEOF
5158 #define ENABLE_PIC $ENABLE_PIC
5162 # Check whether --enable-shared was given.
5163 if test "${enable_shared+set}" = set; then
5164 enableval=$enable_shared;
5169 case "$enableval" in
5170 yes) ENABLE_SHARED=1
5174 default) ENABLE_SHARED=0
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 # Check whether --enable-embed-stdcxx was given.
5182 if test "${enable_embed_stdcxx+set}" = set; then
5183 enableval=$enable_embed_stdcxx;
5188 case "$enableval" in
5189 yes) ENABLE_EMBED_STDCXX=1
5191 no) ENABLE_EMBED_STDCXX=0
5193 default) ENABLE_EMBED_STDCXX=1
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5200 # Check whether --enable-timestamps was given.
5201 if test "${enable_timestamps+set}" = set; then
5202 enableval=$enable_timestamps;
5207 case "$enableval" in
5208 yes) ENABLE_TIMESTAMPS=1
5210 no) ENABLE_TIMESTAMPS=0
5212 default) ENABLE_TIMESTAMPS=1
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5215 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5219 cat >>confdefs.h <<_ACEOF
5220 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5225 # Check whether --enable-targets was given.
5226 if test "${enable_targets+set}" = set; then
5227 enableval=$enable_targets;
5232 if test "$enableval" = host-only ; then
5235 case "$enableval" in
5236 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5237 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5239 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5240 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5241 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5242 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5243 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5244 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5245 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5246 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5247 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5248 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5249 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5250 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5251 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5252 host) case "$llvm_cv_target_arch" in
5253 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5255 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5256 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5257 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5258 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5259 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5260 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5261 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5262 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5263 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5265 echo "$as_me: error: Can not set target to build" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5268 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5269 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5275 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5278 # Determine whether we are building LLVM support for the native architecture.
5279 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5280 for a_target in $TARGETS_TO_BUILD; do
5281 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5287 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5288 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5289 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5290 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5291 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5292 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5295 cat >>confdefs.h <<_ACEOF
5296 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5314 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5316 cat >>confdefs.h <<_ACEOF
5317 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5324 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5325 # target feature def files.
5326 LLVM_ENUM_TARGETS=""
5327 LLVM_ENUM_ASM_PRINTERS=""
5328 LLVM_ENUM_ASM_PARSERS=""
5329 LLVM_ENUM_DISASSEMBLERS=""
5330 for target_to_build in $TARGETS_TO_BUILD; do
5331 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5332 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5333 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5335 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5336 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5338 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5339 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5347 # Check whether --enable-cbe-printf-a was given.
5348 if test "${enable_cbe_printf_a+set}" = set; then
5349 enableval=$enable_cbe_printf_a;
5354 case "$enableval" in
5355 yes) ENABLE_CBE_PRINTF_A=1
5357 no) ENABLE_CBE_PRINTF_A=0
5359 default) ENABLE_CBE_PRINTF_A=1
5361 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5362 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5366 cat >>confdefs.h <<_ACEOF
5367 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5372 # Check whether --with-optimize-option was given.
5373 if test "${with_optimize_option+set}" = set; then
5374 withval=$with_optimize_option;
5379 { echo "$as_me:$LINENO: checking optimization flags" >&5
5380 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5383 case "$llvm_cv_os_type" in
5384 FreeBSD) optimize_option=-O2 ;;
5385 MingW) optimize_option=-O2 ;;
5386 *) optimize_option=-O3 ;;
5388 *) optimize_option="$withval" ;;
5390 OPTIMIZE_OPTION=$optimize_option
5392 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5393 echo "${ECHO_T}$optimize_option" >&6; }
5396 # Check whether --with-extra-options was given.
5397 if test "${with_extra_options+set}" = set; then
5398 withval=$with_extra_options;
5404 default) EXTRA_OPTIONS= ;;
5405 *) EXTRA_OPTIONS=$withval ;;
5407 EXTRA_OPTIONS=$EXTRA_OPTIONS
5411 # Check whether --with-extra-ld-options was given.
5412 if test "${with_extra_ld_options+set}" = set; then
5413 withval=$with_extra_ld_options;
5419 default) EXTRA_LD_OPTIONS= ;;
5420 *) EXTRA_LD_OPTIONS=$withval ;;
5422 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5425 # Check whether --enable-bindings was given.
5426 if test "${enable_bindings+set}" = set; then
5427 enableval=$enable_bindings;
5432 BINDINGS_TO_BUILD=""
5433 case "$enableval" in
5434 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5435 all ) BINDINGS_TO_BUILD="ocaml" ;;
5436 none | no) BINDINGS_TO_BUILD="" ;;
5437 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438 case "$a_binding" in
5439 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5440 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5441 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5442 { (exit 1); exit 1; }; } ;;
5449 # Check whether --with-ocaml-libdir was given.
5450 if test "${with_ocaml_libdir+set}" = set; then
5451 withval=$with_ocaml_libdir;
5457 auto) with_ocaml_libdir="$withval" ;;
5458 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5459 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5460 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5465 # Check whether --with-clang-resource-dir was given.
5466 if test "${with_clang_resource_dir+set}" = set; then
5467 withval=$with_clang_resource_dir;
5473 cat >>confdefs.h <<_ACEOF
5474 #define CLANG_RESOURCE_DIR "$withval"
5479 # Check whether --with-c-include-dirs was given.
5480 if test "${with_c_include_dirs+set}" = set; then
5481 withval=$with_c_include_dirs;
5487 cat >>confdefs.h <<_ACEOF
5488 #define C_INCLUDE_DIRS "$withval"
5493 # Check whether --with-cxx-include-root was given.
5494 if test "${with_cxx_include_root+set}" = set; then
5495 withval=$with_cxx_include_root;
5501 cat >>confdefs.h <<_ACEOF
5502 #define CXX_INCLUDE_ROOT "$withval"
5507 # Check whether --with-cxx-include-arch was given.
5508 if test "${with_cxx_include_arch+set}" = set; then
5509 withval=$with_cxx_include_arch;
5515 cat >>confdefs.h <<_ACEOF
5516 #define CXX_INCLUDE_ARCH "$withval"
5521 # Check whether --with-cxx-include-32bit-dir was given.
5522 if test "${with_cxx_include_32bit_dir+set}" = set; then
5523 withval=$with_cxx_include_32bit_dir;
5529 cat >>confdefs.h <<_ACEOF
5530 #define CXX_INCLUDE_32BIT_DIR "$withval"
5535 # Check whether --with-cxx-include-64bit-dir was given.
5536 if test "${with_cxx_include_64bit_dir+set}" = set; then
5537 withval=$with_cxx_include_64bit_dir;
5543 cat >>confdefs.h <<_ACEOF
5544 #define CXX_INCLUDE_64BIT_DIR "$withval"
5549 # Check whether --with-binutils-include was given.
5550 if test "${with_binutils_include+set}" = set; then
5551 withval=$with_binutils_include;
5557 default) WITH_BINUTILS_INCDIR=default ;;
5558 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5559 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5560 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5561 { (exit 1); exit 1; }; } ;;
5563 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5564 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5566 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5567 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5568 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5569 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5570 { (exit 1); exit 1; }; };
5575 # Check whether --with-bug-report-url was given.
5576 if test "${with_bug_report_url+set}" = set; then
5577 withval=$with_bug_report_url;
5579 withval="http://llvm.org/bugs/"
5583 cat >>confdefs.h <<_ACEOF
5584 #define BUG_REPORT_URL "$withval"
5588 # Check whether --enable-libffi was given.
5589 if test "${enable_libffi+set}" = set; then
5590 enableval=$enable_libffi; case "$enableval" in
5591 yes) llvm_cv_enable_libffi="yes" ;;
5592 no) llvm_cv_enable_libffi="no" ;;
5593 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5594 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5595 { (exit 1); exit 1; }; } ;;
5598 llvm_cv_enable_libffi=no
5603 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5604 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5605 if test "${lt_cv_path_NM+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 if test -n "$NM"; then
5609 # Let the user override the test.
5612 lt_nm_to_check="${ac_tool_prefix}nm"
5613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5614 lt_nm_to_check="$lt_nm_to_check nm"
5616 for lt_tmp_nm in $lt_nm_to_check; do
5617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5620 test -z "$ac_dir" && ac_dir=.
5621 tmp_nm="$ac_dir/$lt_tmp_nm"
5622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5623 # Check to see if the nm accepts a BSD-compat flag.
5624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5625 # nm: unknown option "B" ignored
5626 # Tru64's nm complains that /dev/null is an invalid object file
5627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5628 */dev/null* | *'Invalid file or object type'*)
5629 lt_cv_path_NM="$tmp_nm -B"
5633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5635 lt_cv_path_NM="$tmp_nm -p"
5639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5640 continue # so that we can try to find one that supports BSD flags
5649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5652 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5653 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5658 { echo "$as_me:$LINENO: checking for GNU make" >&5
5659 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5660 if test "${llvm_cv_gnu_make_command+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 llvm_cv_gnu_make_command=''
5664 for a in "$MAKE" make gmake gnumake ; do
5665 if test -z "$a" ; then continue ; fi ;
5666 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5668 llvm_cv_gnu_make_command=$a ;
5673 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5674 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5675 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5679 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5680 echo "${ECHO_T}\"Not found\"" >&6; };
5684 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5687 if test "$LN_S" = "ln -s"; then
5688 { echo "$as_me:$LINENO: result: yes" >&5
5689 echo "${ECHO_T}yes" >&6; }
5691 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5692 echo "${ECHO_T}no, using $LN_S" >&6; }
5695 # Extract the first word of "cmp", so it can be a program name with args.
5696 set dummy cmp; ac_word=$2
5697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699 if test "${ac_cv_path_CMP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5727 if test -n "$CMP"; then
5728 { echo "$as_me:$LINENO: result: $CMP" >&5
5729 echo "${ECHO_T}$CMP" >&6; }
5731 { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5736 # Extract the first word of "cp", so it can be a program name with args.
5737 set dummy cp; ac_word=$2
5738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740 if test "${ac_cv_path_CP+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5768 if test -n "$CP"; then
5769 { echo "$as_me:$LINENO: result: $CP" >&5
5770 echo "${ECHO_T}$CP" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5777 # Extract the first word of "date", so it can be a program name with args.
5778 set dummy date; ac_word=$2
5779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781 if test "${ac_cv_path_DATE+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5808 DATE=$ac_cv_path_DATE
5809 if test -n "$DATE"; then
5810 { echo "$as_me:$LINENO: result: $DATE" >&5
5811 echo "${ECHO_T}$DATE" >&6; }
5813 { echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6; }
5818 # Extract the first word of "find", so it can be a program name with args.
5819 set dummy find; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_FIND+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5849 FIND=$ac_cv_path_FIND
5850 if test -n "$FIND"; then
5851 { echo "$as_me:$LINENO: result: $FIND" >&5
5852 echo "${ECHO_T}$FIND" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 # Extract the first word of "grep", so it can be a program name with args.
5860 set dummy grep; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_GREP+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5890 GREP=$ac_cv_path_GREP
5891 if test -n "$GREP"; then
5892 { echo "$as_me:$LINENO: result: $GREP" >&5
5893 echo "${ECHO_T}$GREP" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "mkdir", so it can be a program name with args.
5901 set dummy mkdir; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_MKDIR+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5931 MKDIR=$ac_cv_path_MKDIR
5932 if test -n "$MKDIR"; then
5933 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5934 echo "${ECHO_T}$MKDIR" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 # Extract the first word of "mv", so it can be a program name with args.
5942 set dummy mv; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_MV+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5973 if test -n "$MV"; then
5974 { echo "$as_me:$LINENO: result: $MV" >&5
5975 echo "${ECHO_T}$MV" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$RANLIB"; then
5991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 RANLIB=$ac_cv_prog_RANLIB
6011 if test -n "$RANLIB"; then
6012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6013 echo "${ECHO_T}$RANLIB" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6021 if test -z "$ac_cv_prog_RANLIB"; then
6022 ac_ct_RANLIB=$RANLIB
6023 # Extract the first word of "ranlib", so it can be a program name with args.
6024 set dummy ranlib; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 if test -n "$ac_ct_RANLIB"; then
6031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_ac_ct_RANLIB="ranlib"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6051 if test -n "$ac_ct_RANLIB"; then
6052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6053 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6055 { echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6; }
6059 if test "x$ac_ct_RANLIB" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6065 whose name does not start with the host triplet. If you think this
6066 configuration is useful to you, please write to autoconf@gnu.org." >&5
6067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet. If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6070 ac_tool_warned=yes ;;
6072 RANLIB=$ac_ct_RANLIB
6075 RANLIB="$ac_cv_prog_RANLIB"
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ar; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_AR+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$AR"; then
6087 ac_cv_prog_AR="$AR" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_AR="${ac_tool_prefix}ar"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 if test -n "$AR"; then
6108 { echo "$as_me:$LINENO: result: $AR" >&5
6109 echo "${ECHO_T}$AR" >&6; }
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6117 if test -z "$ac_cv_prog_AR"; then
6119 # Extract the first word of "ar", so it can be a program name with args.
6120 set dummy ar; ac_word=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 if test -n "$ac_ct_AR"; then
6127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_ac_ct_AR="ar"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6147 if test -n "$ac_ct_AR"; then
6148 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6149 echo "${ECHO_T}$ac_ct_AR" >&6; }
6151 { echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6; }
6155 if test "x$ac_ct_AR" = x; then
6158 case $cross_compiling:$ac_tool_warned in
6160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6161 whose name does not start with the host triplet. If you think this
6162 configuration is useful to you, please write to autoconf@gnu.org." >&5
6163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6164 whose name does not start with the host triplet. If you think this
6165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6166 ac_tool_warned=yes ;;
6174 # Extract the first word of "rm", so it can be a program name with args.
6175 set dummy rm; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_RM+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6206 if test -n "$RM"; then
6207 { echo "$as_me:$LINENO: result: $RM" >&5
6208 echo "${ECHO_T}$RM" >&6; }
6210 { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6215 # Extract the first word of "sed", so it can be a program name with args.
6216 set dummy sed; ac_word=$2
6217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219 if test "${ac_cv_path_SED+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6247 if test -n "$SED"; then
6248 { echo "$as_me:$LINENO: result: $SED" >&5
6249 echo "${ECHO_T}$SED" >&6; }
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 # Extract the first word of "tar", so it can be a program name with args.
6257 set dummy tar; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_path_TAR+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6288 if test -n "$TAR"; then
6289 { echo "$as_me:$LINENO: result: $TAR" >&5
6290 echo "${ECHO_T}$TAR" >&6; }
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6297 # Extract the first word of "pwd", so it can be a program name with args.
6298 set dummy pwd; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_BINPWD+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6328 BINPWD=$ac_cv_path_BINPWD
6329 if test -n "$BINPWD"; then
6330 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6331 echo "${ECHO_T}$BINPWD" >&6; }
6333 { echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6; }
6339 # Extract the first word of "Graphviz", so it can be a program name with args.
6340 set dummy Graphviz; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6370 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6371 if test -n "$GRAPHVIZ"; then
6372 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6373 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6375 { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6380 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6382 cat >>confdefs.h <<\_ACEOF
6383 #define HAVE_GRAPHVIZ 1
6386 if test "$llvm_cv_os_type" = "MingW" ; then
6387 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6390 cat >>confdefs.h <<_ACEOF
6391 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6395 # Extract the first word of "dot", so it can be a program name with args.
6396 set dummy dot; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_DOT+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6427 if test -n "$DOT"; then
6428 { echo "$as_me:$LINENO: result: $DOT" >&5
6429 echo "${ECHO_T}$DOT" >&6; }
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6436 if test "$DOT" != "echo dot" ; then
6438 cat >>confdefs.h <<\_ACEOF
6442 if test "$llvm_cv_os_type" = "MingW" ; then
6443 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6446 cat >>confdefs.h <<_ACEOF
6447 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6451 # Extract the first word of "fdp", so it can be a program name with args.
6452 set dummy fdp; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_FDP+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6483 if test -n "$FDP"; then
6484 { echo "$as_me:$LINENO: result: $FDP" >&5
6485 echo "${ECHO_T}$FDP" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6492 if test "$FDP" != "echo fdp" ; then
6494 cat >>confdefs.h <<\_ACEOF
6498 if test "$llvm_cv_os_type" = "MingW" ; then
6499 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502 cat >>confdefs.h <<_ACEOF
6503 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6507 # Extract the first word of "neato", so it can be a program name with args.
6508 set dummy neato; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_path_NEATO+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6538 NEATO=$ac_cv_path_NEATO
6539 if test -n "$NEATO"; then
6540 { echo "$as_me:$LINENO: result: $NEATO" >&5
6541 echo "${ECHO_T}$NEATO" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6548 if test "$NEATO" != "echo neato" ; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_NEATO 1
6554 if test "$llvm_cv_os_type" = "MingW" ; then
6555 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6558 cat >>confdefs.h <<_ACEOF
6559 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6563 # Extract the first word of "twopi", so it can be a program name with args.
6564 set dummy twopi; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_TWOPI+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6594 TWOPI=$ac_cv_path_TWOPI
6595 if test -n "$TWOPI"; then
6596 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6597 echo "${ECHO_T}$TWOPI" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 if test "$TWOPI" != "echo twopi" ; then
6606 cat >>confdefs.h <<\_ACEOF
6607 #define HAVE_TWOPI 1
6610 if test "$llvm_cv_os_type" = "MingW" ; then
6611 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6614 cat >>confdefs.h <<_ACEOF
6615 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6619 # Extract the first word of "circo", so it can be a program name with args.
6620 set dummy circo; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_CIRCO+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6650 CIRCO=$ac_cv_path_CIRCO
6651 if test -n "$CIRCO"; then
6652 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6653 echo "${ECHO_T}$CIRCO" >&6; }
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6660 if test "$CIRCO" != "echo circo" ; then
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_CIRCO 1
6666 if test "$llvm_cv_os_type" = "MingW" ; then
6667 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6670 cat >>confdefs.h <<_ACEOF
6671 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6675 for ac_prog in gv gsview32
6677 # Extract the first word of "$ac_prog", so it can be a program name with args.
6678 set dummy $ac_prog; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_GV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 if test -n "$GV"; then
6709 { echo "$as_me:$LINENO: result: $GV" >&5
6710 echo "${ECHO_T}$GV" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6717 test -n "$GV" && break
6719 test -n "$GV" || GV="echo gv"
6721 if test "$GV" != "echo gv" ; then
6723 cat >>confdefs.h <<\_ACEOF
6727 if test "$llvm_cv_os_type" = "MingW" ; then
6728 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6731 cat >>confdefs.h <<_ACEOF
6732 #define LLVM_PATH_GV "$GV${EXEEXT}"
6736 # Extract the first word of "dotty", so it can be a program name with args.
6737 set dummy dotty; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_DOTTY+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6767 DOTTY=$ac_cv_path_DOTTY
6768 if test -n "$DOTTY"; then
6769 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6770 echo "${ECHO_T}$DOTTY" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 if test "$DOTTY" != "echo dotty" ; then
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_DOTTY 1
6783 if test "$llvm_cv_os_type" = "MingW" ; then
6784 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787 cat >>confdefs.h <<_ACEOF
6788 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6792 # Extract the first word of "xdot.py", so it can be a program name with args.
6793 set dummy xdot.py; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6823 XDOT_PY=$ac_cv_path_XDOT_PY
6824 if test -n "$XDOT_PY"; then
6825 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6826 echo "${ECHO_T}$XDOT_PY" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 if test "$XDOT_PY" != "echo xdot.py" ; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_XDOT_PY 1
6839 if test "$llvm_cv_os_type" = "MingW" ; then
6840 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6850 # Extract the first word of "perl", so it can be a program name with args.
6851 set dummy perl; ac_word=$2
6852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6854 if test "${ac_cv_path_PERL+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6881 PERL=$ac_cv_path_PERL
6882 if test -n "$PERL"; then
6883 { echo "$as_me:$LINENO: result: $PERL" >&5
6884 echo "${ECHO_T}$PERL" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6891 if test "$PERL" != "none"; then
6892 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6893 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6894 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6895 { echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6; }
6899 { echo "$as_me:$LINENO: result: not found" >&5
6900 echo "${ECHO_T}not found" >&6; }
6905 if test x"$PERL" = xnone; then
6908 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6909 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6910 { (exit 1); exit 1; }; }
6916 # Find a good install program. We prefer a C program (faster),
6917 # so one script is as good as another. But avoid the broken or
6918 # incompatible versions:
6919 # SysV /etc/install, /usr/sbin/install
6920 # SunOS /usr/etc/install
6921 # IRIX /sbin/install
6923 # AmigaOS /C/install, which installs bootblocks on floppy discs
6924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6927 # OS/2's system install, which has a completely different semantic
6928 # ./install, which can be erroneously created by make from ./install.sh.
6929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6931 if test -z "$INSTALL"; then
6932 if test "${ac_cv_path_install+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 # Account for people who put trailing slashes in PATH elements.
6942 ./ | .// | /cC/* | \
6943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6947 # OSF1 and SCO ODT 3.0 have their own names for install.
6948 # Don't use installbsd from OSF since it installs stuff as root
6950 for ac_prog in ginstall scoinst install; do
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6953 if test $ac_prog = install &&
6954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955 # AIX install. It has an incompatible calling convention.
6957 elif test $ac_prog = install &&
6958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6959 # program-specific install script used by HP pwplus--don't use.
6962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6975 if test "${ac_cv_path_install+set}" = set; then
6976 INSTALL=$ac_cv_path_install
6978 # As a last resort, use the slow shell script. Don't cache a
6979 # value for INSTALL within a source directory, because that will
6980 # break other packages using the cache if that directory is
6981 # removed, or if the value is a relative name.
6982 INSTALL=$ac_install_sh
6985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6986 echo "${ECHO_T}$INSTALL" >&6; }
6988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6989 # It thinks the first close brace ends the variable substitution.
6990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6997 [\\/$]* | ?:[\\/]* ) ;;
6998 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7001 # Extract the first word of "bzip2", so it can be a program name with args.
7002 set dummy bzip2; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_BZIP2+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 BZIP2=$ac_cv_path_BZIP2
7032 if test -n "$BZIP2"; then
7033 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7034 echo "${ECHO_T}$BZIP2" >&6; }
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7041 # Extract the first word of "cat", so it can be a program name with args.
7042 set dummy cat; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_CAT+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 if test -n "$CAT"; then
7073 { echo "$as_me:$LINENO: result: $CAT" >&5
7074 echo "${ECHO_T}$CAT" >&6; }
7076 { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7081 # Extract the first word of "doxygen", so it can be a program name with args.
7082 set dummy doxygen; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 DOXYGEN=$ac_cv_path_DOXYGEN
7112 if test -n "$DOXYGEN"; then
7113 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7114 echo "${ECHO_T}$DOXYGEN" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "groff", so it can be a program name with args.
7122 set dummy groff; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GROFF+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 GROFF=$ac_cv_path_GROFF
7152 if test -n "$GROFF"; then
7153 { echo "$as_me:$LINENO: result: $GROFF" >&5
7154 echo "${ECHO_T}$GROFF" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 # Extract the first word of "gzip", so it can be a program name with args.
7162 set dummy gzip; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 GZIPBIN=$ac_cv_path_GZIPBIN
7192 if test -n "$GZIPBIN"; then
7193 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7194 echo "${ECHO_T}$GZIPBIN" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7201 # Extract the first word of "pod2html", so it can be a program name with args.
7202 set dummy pod2html; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_POD2HTML+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 POD2HTML=$ac_cv_path_POD2HTML
7232 if test -n "$POD2HTML"; then
7233 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7234 echo "${ECHO_T}$POD2HTML" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 # Extract the first word of "pod2man", so it can be a program name with args.
7242 set dummy pod2man; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_POD2MAN+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 POD2MAN=$ac_cv_path_POD2MAN
7272 if test -n "$POD2MAN"; then
7273 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7274 echo "${ECHO_T}$POD2MAN" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7281 # Extract the first word of "pdfroff", so it can be a program name with args.
7282 set dummy pdfroff; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_PDFROFF+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 PDFROFF=$ac_cv_path_PDFROFF
7312 if test -n "$PDFROFF"; then
7313 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7314 echo "${ECHO_T}$PDFROFF" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 # Extract the first word of "runtest", so it can be a program name with args.
7322 set dummy runtest; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_RUNTEST+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 RUNTEST=$ac_cv_path_RUNTEST
7352 if test -n "$RUNTEST"; then
7353 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7354 echo "${ECHO_T}$RUNTEST" >&6; }
7356 { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7363 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7364 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7366 # Check whether --with-tclinclude was given.
7367 if test "${with_tclinclude+set}" = set; then
7368 withval=$with_tclinclude; with_tclinclude=${withval}
7373 if test "${ac_cv_path_tclsh+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 if test x"${with_tclinclude}" != x ; then
7378 if test -f ${with_tclinclude}/tclsh ; then
7379 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7380 elif test -f ${with_tclinclude}/src/tclsh ; then
7381 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7383 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7384 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7385 { (exit 1); exit 1; }; }
7391 if test x"${ac_cv_path_tclsh}" = x ; then
7392 { echo "$as_me:$LINENO: result: none" >&5
7393 echo "${ECHO_T}none" >&6; }
7394 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
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_path_TCLSH+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 TCLSH=$ac_cv_path_TCLSH
7427 if test -n "$TCLSH"; then
7428 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7429 echo "${ECHO_T}$TCLSH" >&6; }
7431 { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7436 test -n "$TCLSH" && break
7439 if test x"${TCLSH}" = x ; then
7440 ac_cv_path_tclsh='';
7442 ac_cv_path_tclsh="${TCLSH}";
7445 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7446 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7447 TCLSH="${ac_cv_path_tclsh}"
7451 # Extract the first word of "zip", so it can be a program name with args.
7452 set dummy zip; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_ZIP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 if test -n "$ZIP"; then
7483 { echo "$as_me:$LINENO: result: $ZIP" >&5
7484 echo "${ECHO_T}$ZIP" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 for ac_prog in ocamlc
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494 set dummy $ac_prog; ac_word=$2
7495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497 if test "${ac_cv_path_OCAMLC+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 OCAMLC=$ac_cv_path_OCAMLC
7524 if test -n "$OCAMLC"; then
7525 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7526 echo "${ECHO_T}$OCAMLC" >&6; }
7528 { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7533 test -n "$OCAMLC" && break
7536 for ac_prog in ocamlopt
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 OCAMLOPT=$ac_cv_path_OCAMLOPT
7569 if test -n "$OCAMLOPT"; then
7570 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7571 echo "${ECHO_T}$OCAMLOPT" >&6; }
7573 { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7578 test -n "$OCAMLOPT" && break
7581 for ac_prog in ocamldep
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 OCAMLDEP=$ac_cv_path_OCAMLDEP
7614 if test -n "$OCAMLDEP"; then
7615 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7616 echo "${ECHO_T}$OCAMLDEP" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 test -n "$OCAMLDEP" && break
7626 for ac_prog in ocamldoc
7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
7629 set dummy $ac_prog; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 OCAMLDOC=$ac_cv_path_OCAMLDOC
7659 if test -n "$OCAMLDOC"; then
7660 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7661 echo "${ECHO_T}$OCAMLDOC" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 test -n "$OCAMLDOC" && break
7671 for ac_prog in gas as
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_GAS+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 if test -n "$GAS"; then
7705 { echo "$as_me:$LINENO: result: $GAS" >&5
7706 echo "${ECHO_T}$GAS" >&6; }
7708 { echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6; }
7713 test -n "$GAS" && break
7717 { echo "$as_me:$LINENO: checking for linker version" >&5
7718 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7719 if test "${llvm_cv_link_version+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 version_string="$(ld -v 2>&1 | head -1)"
7726 if (echo "$version_string" | grep -q "ld64"); then
7727 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7729 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7733 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7734 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7736 cat >>confdefs.h <<_ACEOF
7737 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7742 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7743 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7744 if test "${llvm_cv_link_use_r+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 CFLAGS="$CFLAGS -Wl,-R."
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 llvm_cv_link_use_r=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 llvm_cv_link_use_r=no
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7824 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7825 if test "$llvm_cv_link_use_r" = yes ; then
7827 cat >>confdefs.h <<\_ACEOF
7828 #define HAVE_LINK_R 1
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 llvm_cv_link_use_export_dynamic=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 llvm_cv_link_use_export_dynamic=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7917 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_EXPORT_DYNAMIC 1
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_version_script+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 # The following code is from the autoconf manual,
7940 # "11.13: Limitations of Usual Tools".
7941 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7942 # Use mktemp if possible; otherwise fall back on mkdir,
7943 # with $RANDOM to make collisions less likely.
7947 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7949 test -n "$tmp" && test -d "$tmp"
7951 tmp=$TMPDIR/foo$$-$RANDOM
7952 (umask 077 && mkdir "$tmp")
7955 echo "{" > "$tmp/export.map"
7956 echo " global: main;" >> "$tmp/export.map"
7957 echo " local: *;" >> "$tmp/export.map"
7958 echo "};" >> "$tmp/export.map"
7960 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (ac_try="$ac_link"
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_link") 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest$ac_exeext'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 llvm_cv_link_use_version_script=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 llvm_cv_link_use_version_script=no
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 rm "$tmp/export.map"
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8032 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8033 if test "$llvm_cv_link_use_version_script" = yes ; then
8034 HAVE_LINK_VERSION_SCRIPT=1
8041 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8042 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8043 if test "${ac_cv_c_const+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8056 /* FIXME: Include the comments suggested by Paul. */
8058 /* Ultrix mips cc rejects this. */
8059 typedef int charset[2];
8061 /* SunOS 4.1.1 cc rejects this. */
8062 char const *const *ccp;
8064 /* NEC SVR4.0.2 mips cc rejects this. */
8065 struct point {int x, y;};
8066 static struct point const zero = {0,0};
8067 /* AIX XL C 1.02.0.0 rejects this.
8068 It does not let you subtract one const X* pointer from another in
8069 an arm of an if-expression whose if-part is not a constant
8071 const char *g = "string";
8072 ccp = &g + (g ? g-g : 0);
8073 /* HPUX 7.0 cc rejects these. */
8076 ccp = (char const *const *) p;
8077 { /* SCO 3.2v4 cc rejects this. */
8079 char const *s = 0 ? (char *) 0 : (char const *) 0;
8084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8086 const int *foo = &x[0];
8089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8090 typedef const int *iptr;
8094 { /* AIX XL C 1.02.0.0 rejects this saying
8095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8096 struct s { int j; const int *ap[3]; };
8097 struct s *b; b->j = 5;
8099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8103 return !x[0] && !zero.x;
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8155 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8156 if test $ac_cv_c_const = no; then
8158 cat >>confdefs.h <<\_ACEOF
8170 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8171 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8172 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8173 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 eval "$as_ac_Header=yes"
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 eval "$as_ac_Header=no"
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239 ac_res=`eval echo '${'$as_ac_Header'}'`
8240 { echo "$as_me:$LINENO: result: $ac_res" >&5
8241 echo "${ECHO_T}$ac_res" >&6; }
8242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243 cat >>confdefs.h <<_ACEOF
8244 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8247 ac_header_dirent=$ac_hdr; break
8251 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8252 if test $ac_header_dirent = dirent.h; then
8253 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8254 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8255 if test "${ac_cv_search_opendir+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 ac_func_search_save_LIBS=$LIBS
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8281 for ac_lib in '' dir; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required"
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_search_opendir=$ac_res
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8330 rm -f core conftest.err conftest.$ac_objext \
8332 if test "${ac_cv_search_opendir+set}" = set; then
8336 if test "${ac_cv_search_opendir+set}" = set; then
8339 ac_cv_search_opendir=no
8342 LIBS=$ac_func_search_save_LIBS
8344 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8345 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8346 ac_res=$ac_cv_search_opendir
8347 if test "$ac_res" != no; then
8348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8353 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8354 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8355 if test "${ac_cv_search_opendir+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_func_search_save_LIBS=$LIBS
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8366 /* Override any GCC internal prototype to avoid an error.
8367 Use char because int might match the return type of a GCC
8368 builtin and then its argument prototype would still apply. */
8381 for ac_lib in '' x; do
8382 if test -z "$ac_lib"; then
8383 ac_res="none required"
8386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (ac_try="$ac_link"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_link") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest$ac_exeext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_search_opendir=$ac_res
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8430 rm -f core conftest.err conftest.$ac_objext \
8432 if test "${ac_cv_search_opendir+set}" = set; then
8436 if test "${ac_cv_search_opendir+set}" = set; then
8439 ac_cv_search_opendir=no
8442 LIBS=$ac_func_search_save_LIBS
8444 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8445 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8446 ac_res=$ac_cv_search_opendir
8447 if test "$ac_res" != no; then
8448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8455 for ac_header in dlfcn.h
8457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_res=`eval echo '${'$as_ac_Header'}'`
8465 { echo "$as_me:$LINENO: result: $ac_res" >&5
8466 echo "${ECHO_T}$ac_res" >&6; }
8468 # Is the header compilable?
8469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 $ac_includes_default
8478 #include <$ac_header>
8480 rm -f conftest.$ac_objext
8481 if { (ac_try="$ac_compile"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_header_compiler=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_header_compiler=no
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524 echo "${ECHO_T}$ac_header_compiler" >&6; }
8526 # Is the header present?
8527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #include <$ac_header>
8537 if { (ac_try="$ac_cpp conftest.$ac_ext"
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8545 grep -v '^ *+' conftest.er1 >conftest.err
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } >/dev/null; then
8550 if test -s conftest.err; then
8551 ac_cpp_err=$ac_c_preproc_warn_flag
8552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8559 if test -z "$ac_cpp_err"; then
8560 ac_header_preproc=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_header_preproc=no
8568 rm -f conftest.err conftest.$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8570 echo "${ECHO_T}$ac_header_preproc" >&6; }
8572 # So? What about this header?
8573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8579 ac_header_preproc=yes
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8595 ## ------------------------------ ##
8596 ## Report this to bugs@yourdomain ##
8597 ## ------------------------------ ##
8599 ) | sed "s/^/$as_me: WARNING: /" >&2
8602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 eval "$as_ac_Header=\$ac_header_preproc"
8609 ac_res=`eval echo '${'$as_ac_Header'}'`
8610 { echo "$as_me:$LINENO: result: $ac_res" >&5
8611 echo "${ECHO_T}$ac_res" >&6; }
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8623 # Check whether --enable-ltdl-install was given.
8624 if test "${enable_ltdl_install+set}" = set; then
8625 enableval=$enable_ltdl_install;
8631 if test x"${enable_ltdl_install-no}" != xno; then
8633 INSTALL_LTDL_FALSE='#'
8635 INSTALL_LTDL_TRUE='#'
8641 if test x"${enable_ltdl_convenience-no}" != xno; then
8642 CONVENIENCE_LTDL_TRUE=
8643 CONVENIENCE_LTDL_FALSE='#'
8645 CONVENIENCE_LTDL_TRUE='#'
8646 CONVENIENCE_LTDL_FALSE=
8650 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8653 libname_spec='lib$name'
8661 shlibpath_overrides_runpath=unknown
8663 dynamic_linker="$host_os ld.so"
8664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8665 if test "$GCC" = yes; then
8666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8667 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8668 # if the path contains ";" then we assume it to be the separator
8669 # otherwise default to the standard path separator (i.e. ":") - it is
8670 # assumed that no part of a normal pathname contains ";" but that should
8671 # okay in the real world where ";" in dirpaths is itself problematic.
8672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679 need_lib_prefix=unknown
8680 hardcode_into_libs=no
8682 # when you set need_version to no, make sure it does not cause -set_version
8683 # flags to be left without arguments
8684 need_version=unknown
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8690 shlibpath_var=LIBPATH
8692 # AIX 3 has no versioning support, so we append a major version to the name.
8693 soname_spec='${libname}${release}${shared_ext}$major'
8700 hardcode_into_libs=yes
8701 if test "$host_cpu" = ia64; then
8702 # AIX 5 supports IA64
8703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8704 shlibpath_var=LD_LIBRARY_PATH
8706 # With GCC up to 2.95.x, collect2 would create an import file
8707 # for dependence libraries. The import file would start with
8708 # the line `#! .'. This would cause the generated library to
8709 # depend on `.', always an invalid library. This was fixed in
8710 # development snapshots of GCC prior to 3.0.
8712 aix4 | aix4.[01] | aix4.[01].*)
8713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8723 # soname into executable. Probably we can add versioning support to
8724 # collect2, so additional links can be useful in future.
8725 if test "$aix_use_runtimelinking" = yes; then
8726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8727 # instead of lib<name>.a to let people know that these are not
8728 # typical AIX shared libraries.
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 # We preserve .a as extension for shared libraries through AIX4.2
8732 # and later when we are not doing run time linking.
8733 library_names_spec='${libname}${release}.a $libname.a'
8734 soname_spec='${libname}${release}${shared_ext}$major'
8736 shlibpath_var=LIBPATH
8741 library_names_spec='$libname.ixlibrary $libname.a'
8742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8743 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'
8747 library_names_spec='${libname}${shared_ext}'
8748 dynamic_linker="$host_os ld.so"
8749 shlibpath_var=LIBRARY_PATH
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8761 # the default ld.so.conf also contains /usr/contrib/lib and
8762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8763 # libtool to hard-code these into programs
8766 cygwin* | mingw* | pw32*)
8767 version_type=windows
8772 case $GCC,$host_os in
8773 yes,cygwin* | yes,mingw* | yes,pw32*)
8774 library_names_spec='$libname.dll.a'
8775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8776 postinstall_cmds='base_file=`basename \${file}`~
8777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8778 dldir=$destdir/`dirname \$dlpath`~
8779 test -d \$dldir || mkdir -p \$dldir~
8780 $install_prog $dir/$dlname \$dldir/$dlname~
8781 chmod a+x \$dldir/$dlname'
8782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8783 dlpath=$dir/\$dldll~
8785 shlibpath_overrides_runpath=yes
8789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8794 # MinGW DLLs use traditional 'lib' prefix
8795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8798 # It is most probably a Windows format PATH printed by
8799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8800 # path with ; separators, and with drive letters. We can handle the
8801 # drive letters (cygwin fileutils understands them), so leave them,
8802 # especially as we might pass files found there to a mingw objdump,
8803 # which wouldn't understand a cygwinified path. Ahh.
8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8810 # pw32 DLLs use 'pw' prefix rather than 'lib'
8811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8820 dynamic_linker='Win32 ld.exe'
8821 # FIXME: first we should search . and the directory the executable is in
8825 darwin* | rhapsody*)
8826 dynamic_linker="$host_os dyld"
8830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8831 soname_spec='${libname}${release}${major}$shared_ext'
8832 shlibpath_overrides_runpath=yes
8833 shlibpath_var=DYLD_LIBRARY_PATH
8834 shrext_cmds='.dylib'
8835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8836 if test "$GCC" = yes; then
8837 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"`
8839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 shlibpath_var=LD_LIBRARY_PATH
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8866 dynamic_linker='GNU ld.so'
8869 freebsd* | dragonfly*)
8870 # DragonFly does not have aout. When/if they implement a new
8871 # versioning mechanism, adjust this.
8872 if test -x /usr/bin/objformat; then
8873 objformat=`/usr/bin/objformat`
8876 freebsd[123]*) objformat=aout ;;
8880 version_type=freebsd-$objformat
8881 case $version_type in
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8892 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes
8897 freebsd3.[01]* | freebsdelf3.[01]*)
8898 shlibpath_overrides_runpath=yes
8899 hardcode_into_libs=yes
8901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8903 shlibpath_overrides_runpath=no
8904 hardcode_into_libs=yes
8906 freebsd*) # from 4.6 on
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 hardcode_into_libs=yes
8923 hpux9* | hpux10* | hpux11*)
8924 # Give a soname corresponding to the major version so that dld.sl refuses to
8925 # link against other versions.
8932 hardcode_into_libs=yes
8933 dynamic_linker="$host_os dld.so"
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 if test "X$HPUX_IA64_MODE" = X32; then
8939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=SHLIB_PATH
8960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8966 postinstall_cmds='chmod 555 $lib'
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8981 irix5* | irix6* | nonstopux*)
8983 nonstopux*) version_type=nonstopux ;;
8985 if test "$lt_cv_prog_gnu_ld" = yes; then
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8996 irix5* | nonstopux*)
9000 case $LD in # libtool.m4 will add one of these switches to LD
9001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9002 libsuff= shlibsuff= libmagic=32-bit;;
9003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9004 libsuff=32 shlibsuff=N32 libmagic=N32;;
9005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9007 *) libsuff= shlibsuff= libmagic=never-match;;
9011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9012 shlibpath_overrides_runpath=no
9013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9015 hardcode_into_libs=yes
9018 # No shared lib support for Linux oldld, aout, or coff.
9019 linux*oldld* | linux*aout* | linux*coff*)
9023 # This must be Linux ELF.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 # This implies no fast_install, which is unacceptable.
9034 # Some rework will be needed to allow for fast_install
9035 # before this can be enabled.
9036 hardcode_into_libs=yes
9038 # Append ld.so.conf contents to the search path
9039 if test -f /etc/ld.so.conf; then
9040 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' ' '`
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9044 # We used to test for /lib/ld.so.1 and disable shared libraries on
9045 # powerpc, because MkLinux only supported shared libraries with the
9046 # GNU dynamic linker. Since this was broken with cross compilers,
9047 # most powerpc-linux boxes support dynamic linking these days and
9048 # people can always --disable-shared, the test was removed, and we
9049 # assume the GNU/Linux dynamic linker is in use.
9050 dynamic_linker='GNU/Linux ld.so'
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=no
9061 hardcode_into_libs=yes
9062 dynamic_linker='GNU ld.so'
9069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 dynamic_linker='NetBSD (a.out) ld.so'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 dynamic_linker='NetBSD ld.elf_so'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9102 sys_lib_dlsearch_path_spec="/usr/lib"
9104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9107 *) need_version=no ;;
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114 openbsd2.[89] | openbsd2.[89].*)
9115 shlibpath_overrides_runpath=no
9118 shlibpath_overrides_runpath=yes
9122 shlibpath_overrides_runpath=yes
9127 libname_spec='$name'
9130 library_names_spec='$libname${shared_ext} $libname.a'
9131 dynamic_linker='OS/2 ld.exe'
9132 shlibpath_var=LIBPATH
9135 osf3* | osf4* | osf5*)
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 hardcode_into_libs=yes
9155 # ldd complains unless libraries are executable
9156 postinstall_cmds='chmod +x $lib'
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes
9165 if test "$with_gnu_ld" = yes; then
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 case $host_vendor in
9178 shlibpath_overrides_runpath=no
9180 export_dynamic_flag_spec='${wl}-Blargedynsym'
9181 runpath_var=LD_RUN_PATH
9189 shlibpath_overrides_runpath=no
9190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9196 if test -d /usr/nec ;then
9198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9199 soname_spec='$libname${shared_ext}.$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9205 version_type=freebsd-elf
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 hardcode_into_libs=yes
9212 if test "$with_gnu_ld" = yes; then
9213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9214 shlibpath_overrides_runpath=no
9216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9217 shlibpath_overrides_runpath=yes
9220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9224 sys_lib_dlsearch_path_spec='/usr/lib'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9238 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9239 echo "${ECHO_T}$dynamic_linker" >&6; }
9240 test "$dynamic_linker" = no && can_build_shared=no
9242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9243 if test "$GCC" = yes; then
9244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9248 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9249 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9250 if test "${libltdl_cv_shlibext+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 eval libltdl_cv_shlibext=$shrext_cmds
9258 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9259 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9260 if test -n "$libltdl_cv_shlibext"; then
9262 cat >>confdefs.h <<_ACEOF
9263 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9269 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9270 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9271 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 libltdl_cv_shlibpath_var="$shlibpath_var"
9276 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9277 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9278 if test -n "$libltdl_cv_shlibpath_var"; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9287 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9288 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9289 if test "${libltdl_cv_sys_search_path+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9294 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9295 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9296 if test -n "$libltdl_cv_sys_search_path"; then
9298 for dir in $libltdl_cv_sys_search_path; do
9299 if test -z "$sys_search_path"; then
9300 sys_search_path="$dir"
9302 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9306 cat >>confdefs.h <<_ACEOF
9307 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9312 { echo "$as_me:$LINENO: checking for objdir" >&5
9313 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9314 if test "${libltdl_cv_objdir+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 libltdl_cv_objdir="$objdir"
9318 if test -n "$objdir"; then
9321 rm -f .libs 2>/dev/null
9322 mkdir .libs 2>/dev/null
9323 if test -d .libs; then
9324 libltdl_cv_objdir=.libs
9326 # MS-DOS does not allow filenames that begin with a dot.
9327 libltdl_cv_objdir=_libs
9329 rmdir .libs 2>/dev/null
9333 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9334 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9336 cat >>confdefs.h <<_ACEOF
9337 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9345 # Check for command to grab the raw symbol name followed by C symbol from nm.
9346 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9347 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9348 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 # These are sane defaults that work on at least a few old systems.
9353 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9355 # Character class describing NM global symbol codes.
9356 symcode='[BCDEGRST]'
9358 # Regexp to match symbols that can be accessed directly from C.
9359 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9361 # Transform an extracted symbol line into a proper C declaration
9362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9364 # Transform an extracted symbol line into symbol name and symbol address
9365 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'"
9367 # Define system-specific variables.
9372 cygwin* | mingw* | pw32*)
9373 symcode='[ABCDGISTW]'
9375 hpux*) # Its linker distinguishes data from code symbols
9376 if test "$host_cpu" = ia64; then
9377 symcode='[ABCDEGRST]'
9379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9380 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'"
9383 if test "$host_cpu" = ia64; then
9384 symcode='[ABCDGIRSTW]'
9385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9386 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'"
9390 symcode='[BCDEGRST]'
9393 symcode='[BCDEGQRST]'
9404 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9412 # Handle CRLF in mingw tool chain
9416 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9420 # If we're using GNU nm, then use its standard symbol codes.
9421 case `$NM -V 2>&1` in
9422 *GNU* | *'with BFD'*)
9423 symcode='[ABCDGIRSTW]' ;;
9426 # Try without a prefix undercore, then with it.
9427 for ac_symprfx in "" "_"; do
9429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9430 symxfrm="\\1 $ac_symprfx\\2 \\2"
9432 # Write the raw and C identifiers.
9433 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9435 # Check to see that the pipe works correctly.
9439 cat > conftest.$ac_ext <<EOF
9444 void nm_test_func(){}
9448 int main(){nm_test_var='a';nm_test_func();return(0);}
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; then
9456 # Now try to grab the symbols.
9458 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9459 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && test -s "$nlist"; then
9463 # Try sorting and uniquifying the output.
9464 if sort "$nlist" | uniq > "$nlist"T; then
9465 mv -f "$nlist"T "$nlist"
9470 # Make sure that we snagged all the symbols we need.
9471 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9472 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9473 cat <<EOF > conftest.$ac_ext
9479 # Now generate the symbol file.
9480 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9482 cat <<EOF >> conftest.$ac_ext
9483 #if defined (__STDC__) && __STDC__
9484 # define lt_ptr_t void *
9486 # define lt_ptr_t char *
9490 /* The mapping between symbol names and symbols. */
9495 lt_preloaded_symbols[] =
9498 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9499 cat <<\EOF >> conftest.$ac_ext
9507 # Now try linking the two files.
9508 mv conftest.$ac_objext conftstm.$ac_objext
9509 lt_save_LIBS="$LIBS"
9510 lt_save_CFLAGS="$CFLAGS"
9511 LIBS="conftstm.$ac_objext"
9512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9520 LIBS="$lt_save_LIBS"
9521 CFLAGS="$lt_save_CFLAGS"
9523 echo "cannot find nm_test_func in $nlist" >&5
9526 echo "cannot find nm_test_var in $nlist" >&5
9529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9532 echo "$progname: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9535 rm -f conftest* conftst*
9537 # Do not use the global_symbol_pipe unless it works.
9538 if test "$pipe_works" = yes; then
9541 lt_cv_sys_global_symbol_pipe=
9547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9548 lt_cv_sys_global_symbol_to_cdecl=
9550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9551 { echo "$as_me:$LINENO: result: failed" >&5
9552 echo "${ECHO_T}failed" >&6; }
9554 { echo "$as_me:$LINENO: result: ok" >&5
9555 echo "${ECHO_T}ok" >&6; }
9559 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9560 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9561 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9565 libltdl_cv_preloaded_symbols=yes
9567 libltdl_cv_preloaded_symbols=no
9571 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9572 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9573 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9575 cat >>confdefs.h <<\_ACEOF
9576 #define HAVE_PRELOADED_SYMBOLS 1
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 { echo "$as_me:$LINENO: checking for shl_load" >&5
9591 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9592 if test "${ac_cv_func_shl_load+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9601 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9603 #define shl_load innocuous_shl_load
9605 /* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char shl_load (); below.
9607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9608 <limits.h> exists even on freestanding compilers. */
9611 # include <limits.h>
9613 # include <assert.h>
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined __stub_shl_load || defined __stub___shl_load
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_link") 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_func_shl_load=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_func_shl_load=no
9682 rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9686 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9687 if test $ac_cv_func_shl_load = yes; then
9689 cat >>confdefs.h <<\_ACEOF
9690 #define HAVE_SHL_LOAD 1
9694 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9695 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9696 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 ac_check_lib_save_LIBS=$LIBS
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_link") 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_dld_shl_load=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_lib_dld_shl_load=no
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_lib_save_LIBS
9769 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9770 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9771 if test $ac_cv_lib_dld_shl_load = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_SHL_LOAD 1
9777 LIBADD_DL="$LIBADD_DL -ldld"
9779 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 ac_check_lib_save_LIBS=$LIBS
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_lib_dl_dlopen=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_cv_lib_dl_dlopen=no
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9855 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9856 if test $ac_cv_lib_dl_dlopen = yes; then
9858 cat >>confdefs.h <<\_ACEOF
9859 #define HAVE_LIBDL 1
9862 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_LIBDL 1
9920 libltdl_cv_func_dlopen="yes"
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9926 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 ac_check_lib_save_LIBS=$LIBS
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9963 grep -v '^ *+' conftest.er1 >conftest.err
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_lib_svld_dlopen=yes
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_lib_svld_dlopen=no
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
10000 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10002 if test $ac_cv_lib_svld_dlopen = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_LIBDL 1
10008 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10010 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10011 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 ac_check_lib_save_LIBS=$LIBS
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10034 return dld_link ();
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_lib_dld_dld_link=yes
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_dld_dld_link=no
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10086 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10087 if test $ac_cv_lib_dld_dld_link = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10093 LIBADD_DL="$LIBADD_DL -ldld"
10095 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10096 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10097 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10108 #define _dyld_func_lookup innocuous__dyld_func_lookup
10110 /* System header to define __stub macros and hopefully few prototypes,
10111 which can conflict with char _dyld_func_lookup (); below.
10112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10113 <limits.h> exists even on freestanding compilers. */
10116 # include <limits.h>
10118 # include <assert.h>
10121 #undef _dyld_func_lookup
10123 /* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10129 char _dyld_func_lookup ();
10130 /* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10140 return _dyld_func_lookup ();
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_func__dyld_func_lookup=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_func__dyld_func_lookup=no
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10190 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10191 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10192 if test $ac_cv_func__dyld_func_lookup = yes; then
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_DYLD 1
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10221 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10223 lt_save_LIBS="$LIBS"
10224 LIBS="$LIBS $LIBADD_DL"
10226 for ac_func in dlerror
10228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10242 #define $ac_func innocuous_$ac_func
10244 /* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char $ac_func (); below.
10246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247 <limits.h> exists even on freestanding compilers. */
10250 # include <limits.h>
10252 # include <assert.h>
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined __stub_$ac_func || defined __stub___$ac_func
10274 return $ac_func ();
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (ac_try="$ac_link"
10281 case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_link") 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 eval "$as_ac_var=yes"
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 eval "$as_ac_var=no"
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10324 ac_res=`eval echo '${'$as_ac_var'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326 echo "${ECHO_T}$ac_res" >&6; }
10327 if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335 LIBS="$lt_save_LIBS"
10338 ac_cpp='$CPP $CPPFLAGS'
10339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10345 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10346 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10347 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 ac_cv_sys_symbol_underscore=no
10351 cat > conftest.$ac_ext <<EOF
10352 void nm_test_func(){}
10353 int main(){nm_test_func;return 0;}
10355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; then
10360 # Now try to grab the symbols.
10361 ac_nlist=conftest.nm
10362 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10363 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && test -s "$ac_nlist"; then
10367 # See whether the symbols have a leading underscore.
10368 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10369 ac_cv_sys_symbol_underscore=yes
10371 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10374 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10378 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10381 echo "configure: failed program was:" >&5
10387 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10388 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10391 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10392 if test x"$libltdl_cv_func_dlopen" = xyes ||
10393 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10394 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10395 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10396 if test "${libltdl_cv_need_uscore+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 libltdl_cv_need_uscore=unknown
10401 LIBS="$LIBS $LIBADD_DL"
10402 if test "$cross_compiling" = yes; then :
10403 libltdl_cv_need_uscore=cross
10405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10406 lt_status=$lt_dlunknown
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10423 "configure"
10409 #include "confdefs.h"
10418 # define LT_DLGLOBAL RTLD_GLOBAL
10421 # define LT_DLGLOBAL DL_GLOBAL
10423 # define LT_DLGLOBAL 0
10427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10428 find out it does not work in some platform. */
10429 #ifndef LT_DLLAZY_OR_NOW
10431 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10434 # define LT_DLLAZY_OR_NOW DL_LAZY
10437 # define LT_DLLAZY_OR_NOW RTLD_NOW
10440 # define LT_DLLAZY_OR_NOW DL_NOW
10442 # define LT_DLLAZY_OR_NOW 0
10450 extern "C" void exit (int);
10453 void fnord() { int i=42;}
10456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10457 int status = $lt_dlunknown;
10461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10463 /* dlclose (self); */
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10476 (./conftest; exit; ) >&5 2>/dev/null
10478 case x$lt_status in
10479 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10480 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10481 x$lt_dlunknown|x*) ;;
10484 # compilation failed
10493 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10494 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10498 if test x"$libltdl_cv_need_uscore" = xyes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define NEED_USCORE 1
10507 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10508 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10509 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 # PORTME does your system automatically load deplibs for dlopen?
10513 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10514 # For now, we just catch OSes we know something about -- in the
10515 # future, we'll try test this programmatically.
10516 libltdl_cv_sys_dlopen_deplibs=unknown
10518 aix3*|aix4.1.*|aix4.2.*)
10519 # Unknown whether this is true for these versions of AIX, but
10520 # we want this `case' here to explicitly catch those versions.
10521 libltdl_cv_sys_dlopen_deplibs=unknown
10524 libltdl_cv_sys_dlopen_deplibs=yes
10527 # Assuming the user has installed a libdl from somewhere, this is true
10528 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10529 libltdl_cv_sys_dlopen_deplibs=yes
10531 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10532 # GNU and its variants, using gnu ld.so (Glibc)
10533 libltdl_cv_sys_dlopen_deplibs=yes
10536 libltdl_cv_sys_dlopen_deplibs=yes
10539 libltdl_cv_sys_dlopen_deplibs=yes
10541 irix[12345]*|irix6.[01]*)
10542 # Catch all versions of IRIX before 6.2, and indicate that we don't
10543 # know how it worked for any of those versions.
10544 libltdl_cv_sys_dlopen_deplibs=unknown
10547 # The case above catches anything before 6.2, and it's known that
10548 # at 6.2 and later dlopen does load deplibs.
10549 libltdl_cv_sys_dlopen_deplibs=yes
10552 libltdl_cv_sys_dlopen_deplibs=yes
10555 libltdl_cv_sys_dlopen_deplibs=yes
10558 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10559 # it did *not* use an RPATH in a shared library to find objects the
10560 # library depends on, so we explicitly say `no'.
10561 libltdl_cv_sys_dlopen_deplibs=no
10563 osf5.0|osf5.0a|osf5.1)
10564 # dlopen *does* load deplibs and with the right loader patch applied
10565 # it even uses RPATH in a shared library to search for shared objects
10566 # that the library depends on, but there's no easy way to know if that
10567 # patch is installed. Since this is the case, all we can really
10568 # say is unknown -- it depends on the patch being installed. If
10569 # it is, this changes to `yes'. Without it, it would be `no'.
10570 libltdl_cv_sys_dlopen_deplibs=unknown
10573 # the two cases above should catch all versions of osf <= 5.1. Read
10574 # the comments above for what we know about them.
10575 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10576 # is used to find them so we can finally say `yes'.
10577 libltdl_cv_sys_dlopen_deplibs=yes
10580 libltdl_cv_sys_dlopen_deplibs=yes
10582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10588 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10589 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10590 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define LTDL_DLOPEN_DEPLIBS 1
10599 for ac_header in argz.h
10601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 ac_res=`eval echo '${'$as_ac_Header'}'`
10609 { echo "$as_me:$LINENO: result: $ac_res" >&5
10610 echo "${ECHO_T}$ac_res" >&6; }
10612 # Is the header compilable?
10613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 $ac_includes_default
10622 #include <$ac_header>
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_header_compiler=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_header_compiler=no
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10668 echo "${ECHO_T}$ac_header_compiler" >&6; }
10670 # Is the header present?
10671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <$ac_header>
10681 if { (ac_try="$ac_cpp conftest.$ac_ext"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10689 grep -v '^ *+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } >/dev/null; then
10694 if test -s conftest.err; then
10695 ac_cpp_err=$ac_c_preproc_warn_flag
10696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10703 if test -z "$ac_cpp_err"; then
10704 ac_header_preproc=yes
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_header_preproc=no
10712 rm -f conftest.err conftest.$ac_ext
10713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714 echo "${ECHO_T}$ac_header_preproc" >&6; }
10716 # So? What about this header?
10717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10723 ac_header_preproc=yes
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10739 ## ------------------------------ ##
10740 ## Report this to bugs@yourdomain ##
10741 ## ------------------------------ ##
10743 ) | sed "s/^/$as_me: WARNING: /" >&2
10746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 eval "$as_ac_Header=\$ac_header_preproc"
10753 ac_res=`eval echo '${'$as_ac_Header'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 { echo "$as_me:$LINENO: checking for error_t" >&5
10769 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10770 if test "${ac_cv_type_error_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10783 typedef error_t ac__type_new_;
10787 if ((ac__type_new_ *) 0)
10789 if (sizeof (ac__type_new_))
10795 rm -f conftest.$ac_objext
10796 if { (ac_try="$ac_compile"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10804 grep -v '^ *+' conftest.er1 >conftest.err
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_type_error_t=yes
10831 echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 ac_cv_type_error_t=no
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10840 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10841 if test $ac_cv_type_error_t = yes; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define HAVE_ERROR_T 1
10850 cat >>confdefs.h <<\_ACEOF
10851 #define error_t int
10862 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10878 #define $ac_func innocuous_$ac_func
10880 /* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char $ac_func (); below.
10882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883 <limits.h> exists even on freestanding compilers. */
10886 # include <limits.h>
10888 # include <assert.h>
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10900 /* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903 #if defined __stub_$ac_func || defined __stub___$ac_func
10910 return $ac_func ();
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10930 { (case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_try") 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 eval "$as_ac_var=yes"
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 eval "$as_ac_var=no"
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10960 ac_res=`eval echo '${'$as_ac_var'}'`
10961 { echo "$as_me:$LINENO: result: $ac_res" >&5
10962 echo "${ECHO_T}$ac_res" >&6; }
10963 if test `eval echo '${'$as_ac_var'}'` = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10998 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11012 # Is the header compilable?
11013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 $ac_includes_default
11022 #include <$ac_header>
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_try") 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 ac_header_compiler=yes
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_header_compiler=no
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11068 echo "${ECHO_T}$ac_header_compiler" >&6; }
11070 # Is the header present?
11071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 #include <$ac_header>
11081 if { (ac_try="$ac_cpp conftest.$ac_ext"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } >/dev/null; then
11094 if test -s conftest.err; then
11095 ac_cpp_err=$ac_c_preproc_warn_flag
11096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11103 if test -z "$ac_cpp_err"; then
11104 ac_header_preproc=yes
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_header_preproc=no
11112 rm -f conftest.err conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11114 echo "${ECHO_T}$ac_header_preproc" >&6; }
11116 # So? What about this header?
11117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11123 ac_header_preproc=yes
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11139 ## ------------------------------ ##
11140 ## Report this to bugs@yourdomain ##
11141 ## ------------------------------ ##
11143 ) | sed "s/^/$as_me: WARNING: /" >&2
11146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 eval "$as_ac_Header=\$ac_header_preproc"
11153 ac_res=`eval echo '${'$as_ac_Header'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11171 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11184 # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 $ac_includes_default
11194 #include <$ac_header>
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242 # Is the header present?
11243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251 #include <$ac_header>
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11275 if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_preproc=no
11284 rm -f conftest.err conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 ## ------------------------------ ##
11312 ## Report this to bugs@yourdomain ##
11313 ## ------------------------------ ##
11315 ) | sed "s/^/$as_me: WARNING: /" >&2
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 eval "$as_ac_Header=\$ac_header_preproc"
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341 for ac_header in string.h strings.h
11343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 ac_res=`eval echo '${'$as_ac_Header'}'`
11351 { echo "$as_me:$LINENO: result: $ac_res" >&5
11352 echo "${ECHO_T}$ac_res" >&6; }
11354 # Is the header compilable?
11355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 $ac_includes_default
11364 #include <$ac_header>
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_header_compiler=yes
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_header_compiler=no
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410 echo "${ECHO_T}$ac_header_compiler" >&6; }
11412 # Is the header present?
11413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 #include <$ac_header>
11423 if { (ac_try="$ac_cpp conftest.$ac_ext"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1 >conftest.err
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } >/dev/null; then
11436 if test -s conftest.err; then
11437 ac_cpp_err=$ac_c_preproc_warn_flag
11438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11445 if test -z "$ac_cpp_err"; then
11446 ac_header_preproc=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_header_preproc=no
11454 rm -f conftest.err conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456 echo "${ECHO_T}$ac_header_preproc" >&6; }
11458 # So? What about this header?
11459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11481 ## ------------------------------ ##
11482 ## Report this to bugs@yourdomain ##
11483 ## ------------------------------ ##
11485 ) | sed "s/^/$as_me: WARNING: /" >&2
11488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 eval "$as_ac_Header=\$ac_header_preproc"
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 for ac_func in strchr index
11514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 cat >conftest.$ac_ext <<_ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11528 #define $ac_func innocuous_$ac_func
11530 /* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char $ac_func (); below.
11532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11533 <limits.h> exists even on freestanding compilers. */
11536 # include <limits.h>
11538 # include <assert.h>
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11550 /* The GNU C library defines this for functions which it implements
11551 to always fail with ENOSYS. Some functions are actually named
11552 something starting with __ and the normal name is an alias. */
11553 #if defined __stub_$ac_func || defined __stub___$ac_func
11560 return $ac_func ();
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11574 grep -v '^ *+' conftest.er1 >conftest.err
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest$ac_exeext'
11590 { (case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_try") 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 eval "$as_ac_var=yes"
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 eval "$as_ac_var=no"
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11610 ac_res=`eval echo '${'$as_ac_var'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11613 if test `eval echo '${'$as_ac_var'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 for ac_func in strrchr rindex
11625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 cat >conftest.$ac_ext <<_ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639 #define $ac_func innocuous_$ac_func
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char $ac_func (); below.
11643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 <limits.h> exists even on freestanding compilers. */
11647 # include <limits.h>
11649 # include <assert.h>
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined __stub_$ac_func || defined __stub___$ac_func
11671 return $ac_func ();
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_link") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest$ac_exeext'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 eval "$as_ac_var=yes"
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 eval "$as_ac_var=no"
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11721 ac_res=`eval echo '${'$as_ac_var'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11734 for ac_func in memcpy bcopy
11736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11750 #define $ac_func innocuous_$ac_func
11752 /* System header to define __stub macros and hopefully few prototypes,
11753 which can conflict with char $ac_func (); below.
11754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11755 <limits.h> exists even on freestanding compilers. */
11758 # include <limits.h>
11760 # include <assert.h>
11765 /* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11772 /* The GNU C library defines this for functions which it implements
11773 to always fail with ENOSYS. Some functions are actually named
11774 something starting with __ and the normal name is an alias. */
11775 #if defined __stub_$ac_func || defined __stub___$ac_func
11782 return $ac_func ();
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (ac_try="$ac_link"
11789 case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_link") 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 eval "$as_ac_var=yes"
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 eval "$as_ac_var=no"
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11832 ac_res=`eval echo '${'$as_ac_var'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11835 if test `eval echo '${'$as_ac_var'}'` = yes; then
11836 cat >>confdefs.h <<_ACEOF
11837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11845 for ac_func in memmove strcmp
11847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11861 #define $ac_func innocuous_$ac_func
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below.
11865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11866 <limits.h> exists even on freestanding compilers. */
11869 # include <limits.h>
11871 # include <assert.h>
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11883 /* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
11886 #if defined __stub_$ac_func || defined __stub___$ac_func
11893 return $ac_func ();
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
11907 grep -v '^ *+' conftest.er1 >conftest.err
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 eval "$as_ac_var=yes"
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 eval "$as_ac_var=no"
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11943 ac_res=`eval echo '${'$as_ac_var'}'`
11944 { echo "$as_me:$LINENO: result: $ac_res" >&5
11945 echo "${ECHO_T}$ac_res" >&6; }
11946 if test `eval echo '${'$as_ac_var'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11957 for ac_func in closedir opendir readdir
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11973 #define $ac_func innocuous_$ac_func
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11981 # include <limits.h>
11983 # include <assert.h>
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined __stub_$ac_func || defined __stub___$ac_func
12005 return $ac_func ();
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (ac_try="$ac_link"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 eval "$as_ac_var=no"
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12055 ac_res=`eval echo '${'$as_ac_var'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12069 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12082 if test "$GCC" != "yes" && test "$ICC" != "yes"
12084 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12085 echo "$as_me: error: gcc|icc required but not found" >&2;}
12086 { (exit 1); exit 1; }; }
12089 if test "$GXX" != "yes" && test "$IXX" != "yes"
12091 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12092 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12093 { (exit 1); exit 1; }; }
12096 if test "$GCC" = "yes"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #if !defined(__GNUC__) || __GNUC__ < 3
12100 #error Unsupported GCC version
12104 rm -f conftest.$ac_objext
12105 if { (ac_try="$ac_compile"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1 >conftest.err
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12144 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12145 { (exit 1); exit 1; }; }
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 if test -z "$llvm_cv_gnu_make_command"
12153 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12154 echo "$as_me: error: GNU Make required but not found" >&2;}
12155 { (exit 1); exit 1; }; }
12158 { echo "$as_me:$LINENO: result: ok" >&5
12159 echo "${ECHO_T}ok" >&6; }
12161 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12162 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12163 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12165 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12167 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12168 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12172 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12173 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_m_sin+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS=$LIBS
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_m_sin=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12248 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12249 if test $ac_cv_lib_m_sin = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define HAVE_LIBM 1
12258 if test "$llvm_cv_os_type" = "MingW" ; then
12260 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12261 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12262 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-limagehlp $LIBS"
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12283 rm -f conftest.$ac_objext conftest$ac_exeext
12284 if { (ac_try="$ac_link"
12285 case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1 >conftest.err
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_imagehlp_main=yes
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_lib_imagehlp_main=no
12325 rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327 LIBS=$ac_check_lib_save_LIBS
12329 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12330 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12331 if test $ac_cv_lib_imagehlp_main = yes; then
12332 cat >>confdefs.h <<_ACEOF
12333 #define HAVE_LIBIMAGEHLP 1
12336 LIBS="-limagehlp $LIBS"
12341 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12342 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12343 if test "${ac_cv_lib_psapi_main+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_check_lib_save_LIBS=$LIBS
12347 LIBS="-lpsapi $LIBS"
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_lib_psapi_main=yes
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_cv_lib_psapi_main=no
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12411 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12412 if test $ac_cv_lib_psapi_main = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define HAVE_LIBPSAPI 1
12417 LIBS="-lpsapi $LIBS"
12423 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12424 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12425 if test "${ac_cv_search_dlopen+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 ac_func_search_save_LIBS=$LIBS
12429 cat >conftest.$ac_ext <<_ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12451 for ac_lib in '' dl; do
12452 if test -z "$ac_lib"; then
12453 ac_res="none required"
12456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_search_dlopen=$ac_res
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12500 rm -f core conftest.err conftest.$ac_objext \
12502 if test "${ac_cv_search_dlopen+set}" = set; then
12506 if test "${ac_cv_search_dlopen+set}" = set; then
12509 ac_cv_search_dlopen=no
12511 rm conftest.$ac_ext
12512 LIBS=$ac_func_search_save_LIBS
12514 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12515 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12516 ac_res=$ac_cv_search_dlopen
12517 if test "$ac_res" != no; then
12518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_DLOPEN 1
12525 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12526 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12530 if test "$llvm_cv_enable_libffi" = "yes" ; then
12531 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12532 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12533 if test "${ac_cv_search_ffi_call+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 ac_func_search_save_LIBS=$LIBS
12537 cat >conftest.$ac_ext <<_ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12554 return ffi_call ();
12559 for ac_lib in '' ffi; do
12560 if test -z "$ac_lib"; then
12561 ac_res="none required"
12564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (ac_try="$ac_link"
12568 case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_link") 2>conftest.er1
12575 grep -v '^ *+' conftest.er1 >conftest.err
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest$ac_exeext'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_cv_search_ffi_call=$ac_res
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12608 rm -f core conftest.err conftest.$ac_objext \
12610 if test "${ac_cv_search_ffi_call+set}" = set; then
12614 if test "${ac_cv_search_ffi_call+set}" = set; then
12617 ac_cv_search_ffi_call=no
12619 rm conftest.$ac_ext
12620 LIBS=$ac_func_search_save_LIBS
12622 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12623 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12624 ac_res=$ac_cv_search_ffi_call
12625 if test "$ac_res" != no; then
12626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_FFI_CALL 1
12633 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12634 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12635 { (exit 1); exit 1; }; }
12640 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12641 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12642 if test "${ac_cv_search_mallinfo+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_func_search_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12663 return mallinfo ();
12668 for ac_lib in '' malloc; do
12669 if test -z "$ac_lib"; then
12670 ac_res="none required"
12673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_search_mallinfo=$ac_res
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12717 rm -f core conftest.err conftest.$ac_objext \
12719 if test "${ac_cv_search_mallinfo+set}" = set; then
12723 if test "${ac_cv_search_mallinfo+set}" = set; then
12726 ac_cv_search_mallinfo=no
12728 rm conftest.$ac_ext
12729 LIBS=$ac_func_search_save_LIBS
12731 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12732 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12733 ac_res=$ac_cv_search_mallinfo
12734 if test "$ac_res" != no; then
12735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_MALLINFO 1
12744 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12746 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12747 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12748 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-lpthread $LIBS"
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12766 char pthread_mutex_init ();
12770 return pthread_mutex_init ();
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_pthread_pthread_mutex_init=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_cv_lib_pthread_pthread_mutex_init=no
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LIBS=$ac_check_lib_save_LIBS
12821 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12822 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12823 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_LIBPTHREAD 1
12828 LIBS="-lpthread $LIBS"
12832 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12833 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12834 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_func_search_save_LIBS=$LIBS
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12851 char pthread_mutex_lock ();
12855 return pthread_mutex_lock ();
12860 for ac_lib in '' pthread; do
12861 if test -z "$ac_lib"; then
12862 ac_res="none required"
12865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_search_pthread_mutex_lock=$ac_res
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12909 rm -f core conftest.err conftest.$ac_objext \
12911 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12915 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12918 ac_cv_search_pthread_mutex_lock=no
12920 rm conftest.$ac_ext
12921 LIBS=$ac_func_search_save_LIBS
12923 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12924 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12925 ac_res=$ac_cv_search_pthread_mutex_lock
12926 if test "$ac_res" != no; then
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_PTHREAD_MUTEX_LOCK 1
12935 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12936 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12937 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 ac_func_search_save_LIBS=$LIBS
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12954 char pthread_rwlock_init ();
12958 return pthread_rwlock_init ();
12963 for ac_lib in '' pthread; do
12964 if test -z "$ac_lib"; then
12965 ac_res="none required"
12968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (ac_try="$ac_link"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest$ac_exeext'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_search_pthread_rwlock_init=$ac_res
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13012 rm -f core conftest.err conftest.$ac_objext \
13014 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13018 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13021 ac_cv_search_pthread_rwlock_init=no
13023 rm conftest.$ac_ext
13024 LIBS=$ac_func_search_save_LIBS
13026 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13027 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13028 ac_res=$ac_cv_search_pthread_rwlock_init
13029 if test "$ac_res" != no; then
13030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13032 cat >>confdefs.h <<\_ACEOF
13033 #define HAVE_PTHREAD_RWLOCK_INIT 1
13038 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13039 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13040 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 ac_func_search_save_LIBS=$LIBS
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13057 char pthread_getspecific ();
13061 return pthread_getspecific ();
13066 for ac_lib in '' pthread; do
13067 if test -z "$ac_lib"; then
13068 ac_res="none required"
13071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (ac_try="$ac_link"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_link") 2>conftest.er1
13082 grep -v '^ *+' conftest.er1 >conftest.err
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_search_pthread_getspecific=$ac_res
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13115 rm -f core conftest.err conftest.$ac_objext \
13117 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13121 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13124 ac_cv_search_pthread_getspecific=no
13126 rm conftest.$ac_ext
13127 LIBS=$ac_func_search_save_LIBS
13129 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13130 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13131 ac_res=$ac_cv_search_pthread_getspecific
13132 if test "$ac_res" != no; then
13133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135 cat >>confdefs.h <<\_ACEOF
13136 #define HAVE_PTHREAD_GETSPECIFIC 1
13144 # Check whether --with-udis86 was given.
13145 if test "${with_udis86+set}" = set; then
13146 withval=$with_udis86;
13151 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13154 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13155 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13156 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 ac_check_lib_save_LIBS=$LIBS
13160 LIBS="-ludis86 $LIBS"
13161 cat >conftest.$ac_ext <<_ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } &&
13207 { ac_try='test -s conftest$ac_exeext'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_lib_udis86_ud_init=yes
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 ac_cv_lib_udis86_ud_init=no
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13230 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13231 if test $ac_cv_lib_udis86_ud_init = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_LIBUDIS86 1
13236 LIBS="-ludis86 $LIBS"
13240 echo "Error! You need to have libudis86 around."
13252 cat >>confdefs.h <<_ACEOF
13253 #define USE_UDIS86 $USE_UDIS86
13258 # Check whether --with-oprofile was given.
13259 if test "${with_oprofile+set}" = set; then
13260 withval=$with_oprofile;
13264 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13265 no) llvm_cv_oppath=
13268 *) llvm_cv_oppath="${withval}/lib/oprofile"
13269 CPPFLAGS="-I${withval}/include";;
13271 if test -n "$llvm_cv_oppath" ; then
13272 LIBS="$LIBS -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 bugs@yourdomain ##
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."
13650 cat >>confdefs.h <<_ACEOF
13651 #define USE_OPROFILE $USE_OPROFILE
13661 ac_header_dirent=no
13662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13663 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13664 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13665 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 #include <sys/types.h>
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 eval "$as_ac_Header=yes"
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 eval "$as_ac_Header=no"
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 ac_res=`eval echo '${'$as_ac_Header'}'`
13732 { echo "$as_me:$LINENO: result: $ac_res" >&5
13733 echo "${ECHO_T}$ac_res" >&6; }
13734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13739 ac_header_dirent=$ac_hdr; break
13743 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13744 if test $ac_header_dirent = dirent.h; then
13745 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13746 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13747 if test "${ac_cv_search_opendir+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 ac_func_search_save_LIBS=$LIBS
13751 cat >conftest.$ac_ext <<_ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13773 for ac_lib in '' dir; do
13774 if test -z "$ac_lib"; then
13775 ac_res="none required"
13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (ac_try="$ac_link"
13782 case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_link") 2>conftest.er1
13789 grep -v '^ *+' conftest.er1 >conftest.err
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13795 { (case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_try") 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest$ac_exeext'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_search_opendir=$ac_res
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13822 rm -f core conftest.err conftest.$ac_objext \
13824 if test "${ac_cv_search_opendir+set}" = set; then
13828 if test "${ac_cv_search_opendir+set}" = set; then
13831 ac_cv_search_opendir=no
13833 rm conftest.$ac_ext
13834 LIBS=$ac_func_search_save_LIBS
13836 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13837 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13838 ac_res=$ac_cv_search_opendir
13839 if test "$ac_res" != no; then
13840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13845 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13846 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13847 if test "${ac_cv_search_opendir+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_func_search_save_LIBS=$LIBS
13851 cat >conftest.$ac_ext <<_ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13873 for ac_lib in '' x; do
13874 if test -z "$ac_lib"; then
13875 ac_res="none required"
13878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_search_opendir=$ac_res
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13922 rm -f core conftest.err conftest.$ac_objext \
13924 if test "${ac_cv_search_opendir+set}" = set; then
13928 if test "${ac_cv_search_opendir+set}" = set; then
13931 ac_cv_search_opendir=no
13933 rm conftest.$ac_ext
13934 LIBS=$ac_func_search_save_LIBS
13936 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13937 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13938 ac_res=$ac_cv_search_opendir
13939 if test "$ac_res" != no; then
13940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13946 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13947 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13948 if test "${ac_cv_header_mmap_anon+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 ac_cpp='$CPP $CPPFLAGS'
13953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957 cat >conftest.$ac_ext <<_ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 #include <sys/mman.h>
13964 #include <unistd.h>
13969 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_cv_header_mmap_anon=yes
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_cv_header_mmap_anon=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14026 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14027 if test "$ac_cv_header_mmap_anon" = yes; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_MMAP_ANONYMOUS 1
14035 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14036 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_stat_broken+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include <sys/types.h>
14047 #include <sys/stat.h>
14049 #if defined S_ISBLK && defined S_IFDIR
14050 # if S_ISBLK (S_IFDIR)
14055 #if defined S_ISBLK && defined S_IFCHR
14056 # if S_ISBLK (S_IFCHR)
14061 #if defined S_ISLNK && defined S_IFREG
14062 # if S_ISLNK (S_IFREG)
14067 #if defined S_ISSOCK && defined S_IFREG
14068 # if S_ISSOCK (S_IFREG)
14074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14075 $EGREP "You lose" >/dev/null 2>&1; then
14076 ac_cv_header_stat_broken=yes
14078 ac_cv_header_stat_broken=no
14083 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14084 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14085 if test $ac_cv_header_stat_broken = yes; then
14087 cat >>confdefs.h <<\_ACEOF
14088 #define STAT_MACROS_BROKEN 1
14093 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14094 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14095 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <sys/types.h>
14105 #include <sys/wait.h>
14106 #ifndef WEXITSTATUS
14107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14132 grep -v '^ *+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_try") 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest.$ac_objext'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_cv_header_sys_wait_h=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_header_sys_wait_h=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14169 if test $ac_cv_header_sys_wait_h = yes; then
14171 cat >>confdefs.h <<\_ACEOF
14172 #define HAVE_SYS_WAIT_H 1
14177 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14178 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14179 if test "${ac_cv_header_time+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 #include <sys/types.h>
14189 #include <sys/time.h>
14195 if ((struct tm *) 0)
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14210 grep -v '^ *+' conftest.er1 >conftest.err
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_header_time=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_header_time=no
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14246 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14247 if test $ac_cv_header_time = yes; then
14249 cat >>confdefs.h <<\_ACEOF
14250 #define TIME_WITH_SYS_TIME 1
14262 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_res=`eval echo '${'$as_ac_Header'}'`
14272 { echo "$as_me:$LINENO: result: $ac_res" >&5
14273 echo "${ECHO_T}$ac_res" >&6; }
14275 # Is the header compilable?
14276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 $ac_includes_default
14285 #include <$ac_header>
14287 rm -f conftest.$ac_objext
14288 if { (ac_try="$ac_compile"
14289 case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_compile") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_header_compiler=yes
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_header_compiler=no
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14331 echo "${ECHO_T}$ac_header_compiler" >&6; }
14333 # Is the header present?
14334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <$ac_header>
14344 if { (ac_try="$ac_cpp conftest.$ac_ext"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } >/dev/null; then
14357 if test -s conftest.err; then
14358 ac_cpp_err=$ac_c_preproc_warn_flag
14359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14366 if test -z "$ac_cpp_err"; then
14367 ac_header_preproc=yes
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_header_preproc=no
14375 rm -f conftest.err conftest.$ac_ext
14376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14377 echo "${ECHO_T}$ac_header_preproc" >&6; }
14379 # So? What about this header?
14380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14386 ac_header_preproc=yes
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14402 ## ------------------------------ ##
14403 ## Report this to bugs@yourdomain ##
14404 ## ------------------------------ ##
14406 ) | sed "s/^/$as_me: WARNING: /" >&2
14409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 eval "$as_ac_Header=\$ac_header_preproc"
14416 ac_res=`eval echo '${'$as_ac_Header'}'`
14417 { echo "$as_me:$LINENO: result: $ac_res" >&5
14418 echo "${ECHO_T}$ac_res" >&6; }
14421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14422 cat >>confdefs.h <<_ACEOF
14423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14436 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 ac_res=`eval echo '${'$as_ac_Header'}'`
14446 { echo "$as_me:$LINENO: result: $ac_res" >&5
14447 echo "${ECHO_T}$ac_res" >&6; }
14449 # Is the header compilable?
14450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 $ac_includes_default
14459 #include <$ac_header>
14461 rm -f conftest.$ac_objext
14462 if { (ac_try="$ac_compile"
14463 case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_compile") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14476 { (case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_try") 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 ac_header_compiler=yes
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_header_compiler=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6; }
14507 # Is the header present?
14508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14518 if { (ac_try="$ac_cpp conftest.$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev/null; then
14531 if test -s conftest.err; then
14532 ac_cpp_err=$ac_c_preproc_warn_flag
14533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14540 if test -z "$ac_cpp_err"; then
14541 ac_header_preproc=yes
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 ac_header_preproc=no
14549 rm -f conftest.err conftest.$ac_ext
14550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14551 echo "${ECHO_T}$ac_header_preproc" >&6; }
14553 # So? What about this header?
14554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14560 ac_header_preproc=yes
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14576 ## ------------------------------ ##
14577 ## Report this to bugs@yourdomain ##
14578 ## ------------------------------ ##
14580 ) | sed "s/^/$as_me: WARNING: /" >&2
14583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 eval "$as_ac_Header=\$ac_header_preproc"
14590 ac_res=`eval echo '${'$as_ac_Header'}'`
14591 { echo "$as_me:$LINENO: result: $ac_res" >&5
14592 echo "${ECHO_T}$ac_res" >&6; }
14595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14606 for ac_header in utime.h windows.h
14608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 ac_res=`eval echo '${'$as_ac_Header'}'`
14616 { echo "$as_me:$LINENO: result: $ac_res" >&5
14617 echo "${ECHO_T}$ac_res" >&6; }
14619 # Is the header compilable?
14620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 #include <$ac_header>
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1 >conftest.err
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_header_compiler=yes
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ac_header_compiler=no
14673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14675 echo "${ECHO_T}$ac_header_compiler" >&6; }
14677 # Is the header present?
14678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 #include <$ac_header>
14688 if { (ac_try="$ac_cpp conftest.$ac_ext"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } >/dev/null; then
14701 if test -s conftest.err; then
14702 ac_cpp_err=$ac_c_preproc_warn_flag
14703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14710 if test -z "$ac_cpp_err"; then
14711 ac_header_preproc=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_header_preproc=no
14719 rm -f conftest.err conftest.$ac_ext
14720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14721 echo "${ECHO_T}$ac_header_preproc" >&6; }
14723 # So? What about this header?
14724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14730 ac_header_preproc=yes
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14746 ## ------------------------------ ##
14747 ## Report this to bugs@yourdomain ##
14748 ## ------------------------------ ##
14750 ) | sed "s/^/$as_me: WARNING: /" >&2
14753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 eval "$as_ac_Header=\$ac_header_preproc"
14760 ac_res=`eval echo '${'$as_ac_Header'}'`
14761 { echo "$as_me:$LINENO: result: $ac_res" >&5
14762 echo "${ECHO_T}$ac_res" >&6; }
14765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14766 cat >>confdefs.h <<_ACEOF
14767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14779 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 ac_res=`eval echo '${'$as_ac_Header'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14792 # Is the header compilable?
14793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14795 cat >conftest.$ac_ext <<_ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14802 #include <$ac_header>
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14813 grep -v '^ *+' conftest.er1 >conftest.err
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14819 { (case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_try") 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest.$ac_objext'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 ac_header_compiler=yes
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_header_compiler=no
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6; }
14850 # Is the header present?
14851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <$ac_header>
14861 if { (ac_try="$ac_cpp conftest.$ac_ext"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } >/dev/null; then
14874 if test -s conftest.err; then
14875 ac_cpp_err=$ac_c_preproc_warn_flag
14876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14883 if test -z "$ac_cpp_err"; then
14884 ac_header_preproc=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_header_preproc=no
14892 rm -f conftest.err conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894 echo "${ECHO_T}$ac_header_preproc" >&6; }
14896 # So? What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14903 ac_header_preproc=yes
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14919 ## ------------------------------ ##
14920 ## Report this to bugs@yourdomain ##
14921 ## ------------------------------ ##
14923 ) | sed "s/^/$as_me: WARNING: /" >&2
14926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 eval "$as_ac_Header=\$ac_header_preproc"
14933 ac_res=`eval echo '${'$as_ac_Header'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935 echo "${ECHO_T}$ac_res" >&6; }
14938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14939 cat >>confdefs.h <<_ACEOF
14940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14951 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 ac_res=`eval echo '${'$as_ac_Header'}'`
14961 { echo "$as_me:$LINENO: result: $ac_res" >&5
14962 echo "${ECHO_T}$ac_res" >&6; }
14964 # Is the header compilable?
14965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 $ac_includes_default
14974 #include <$ac_header>
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_header_compiler=yes
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_header_compiler=no
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020 echo "${ECHO_T}$ac_header_compiler" >&6; }
15022 # Is the header present?
15023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <$ac_header>
15033 if { (ac_try="$ac_cpp conftest.$ac_ext"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } >/dev/null; then
15046 if test -s conftest.err; then
15047 ac_cpp_err=$ac_c_preproc_warn_flag
15048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15055 if test -z "$ac_cpp_err"; then
15056 ac_header_preproc=yes
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_header_preproc=no
15064 rm -f conftest.err conftest.$ac_ext
15065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15066 echo "${ECHO_T}$ac_header_preproc" >&6; }
15068 # So? What about this header?
15069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15075 ac_header_preproc=yes
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15091 ## ------------------------------ ##
15092 ## Report this to bugs@yourdomain ##
15093 ## ------------------------------ ##
15095 ) | sed "s/^/$as_me: WARNING: /" >&2
15098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 eval "$as_ac_Header=\$ac_header_preproc"
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15111 cat >>confdefs.h <<_ACEOF
15112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15120 for ac_header in valgrind/valgrind.h
15122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 ac_res=`eval echo '${'$as_ac_Header'}'`
15130 { echo "$as_me:$LINENO: result: $ac_res" >&5
15131 echo "${ECHO_T}$ac_res" >&6; }
15133 # Is the header compilable?
15134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 $ac_includes_default
15143 #include <$ac_header>
15145 rm -f conftest.$ac_objext
15146 if { (ac_try="$ac_compile"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_compile") 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ac_header_compiler=no
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189 echo "${ECHO_T}$ac_header_compiler" >&6; }
15191 # Is the header present?
15192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <$ac_header>
15202 if { (ac_try="$ac_cpp conftest.$ac_ext"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } >/dev/null; then
15215 if test -s conftest.err; then
15216 ac_cpp_err=$ac_c_preproc_warn_flag
15217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15224 if test -z "$ac_cpp_err"; then
15225 ac_header_preproc=yes
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_header_preproc=no
15233 rm -f conftest.err conftest.$ac_ext
15234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235 echo "${ECHO_T}$ac_header_preproc" >&6; }
15237 # So? What about this header?
15238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244 ac_header_preproc=yes
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15260 ## ------------------------------ ##
15261 ## Report this to bugs@yourdomain ##
15262 ## ------------------------------ ##
15264 ) | sed "s/^/$as_me: WARNING: /" >&2
15267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 eval "$as_ac_Header=\$ac_header_preproc"
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15289 for ac_header in fenv.h
15291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 ac_res=`eval echo '${'$as_ac_Header'}'`
15299 { echo "$as_me:$LINENO: result: $ac_res" >&5
15300 echo "${ECHO_T}$ac_res" >&6; }
15302 # Is the header compilable?
15303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <$ac_header>
15314 rm -f conftest.$ac_objext
15315 if { (ac_try="$ac_compile"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_compile") 2>conftest.er1
15323 grep -v '^ *+' conftest.er1 >conftest.err
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358 echo "${ECHO_T}$ac_header_compiler" >&6; }
15360 # Is the header present?
15361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <$ac_header>
15371 if { (ac_try="$ac_cpp conftest.$ac_ext"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } >/dev/null; then
15384 if test -s conftest.err; then
15385 ac_cpp_err=$ac_c_preproc_warn_flag
15386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15393 if test -z "$ac_cpp_err"; then
15394 ac_header_preproc=yes
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ac_header_preproc=no
15402 rm -f conftest.err conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15404 echo "${ECHO_T}$ac_header_preproc" >&6; }
15406 # So? What about this header?
15407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15413 ac_header_preproc=yes
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15429 ## ------------------------------ ##
15430 ## Report this to bugs@yourdomain ##
15431 ## ------------------------------ ##
15433 ) | sed "s/^/$as_me: WARNING: /" >&2
15436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 eval "$as_ac_Header=\$ac_header_preproc"
15443 ac_res=`eval echo '${'$as_ac_Header'}'`
15444 { echo "$as_me:$LINENO: result: $ac_res" >&5
15445 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15457 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15459 for ac_header in pthread.h
15461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 ac_res=`eval echo '${'$as_ac_Header'}'`
15469 { echo "$as_me:$LINENO: result: $ac_res" >&5
15470 echo "${ECHO_T}$ac_res" >&6; }
15472 # Is the header compilable?
15473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15482 #include <$ac_header>
15484 rm -f conftest.$ac_objext
15485 if { (ac_try="$ac_compile"
15486 case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15493 grep -v '^ *+' conftest.er1 >conftest.err
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_header_compiler=yes
15520 echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_compiler=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528 echo "${ECHO_T}$ac_header_compiler" >&6; }
15530 # Is the header present?
15531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <$ac_header>
15541 if { (ac_try="$ac_cpp conftest.$ac_ext"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } >/dev/null; then
15554 if test -s conftest.err; then
15555 ac_cpp_err=$ac_c_preproc_warn_flag
15556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15563 if test -z "$ac_cpp_err"; then
15564 ac_header_preproc=yes
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_preproc=no
15572 rm -f conftest.err conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15574 echo "${ECHO_T}$ac_header_preproc" >&6; }
15576 # So? What about this header?
15577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15583 ac_header_preproc=yes
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15599 ## ------------------------------ ##
15600 ## Report this to bugs@yourdomain ##
15601 ## ------------------------------ ##
15603 ) | sed "s/^/$as_me: WARNING: /" >&2
15606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 eval "$as_ac_Header=\$ac_header_preproc"
15613 ac_res=`eval echo '${'$as_ac_Header'}'`
15614 { echo "$as_me:$LINENO: result: $ac_res" >&5
15615 echo "${ECHO_T}$ac_res" >&6; }
15618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15619 cat >>confdefs.h <<_ACEOF
15620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15636 if test "$llvm_cv_enable_libffi" = "yes" ; then
15639 for ac_header in ffi.h ffi/ffi.h
15641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15652 # Is the header compilable?
15653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655 cat >conftest.$ac_ext <<_ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <$ac_header>
15664 rm -f conftest.$ac_objext
15665 if { (ac_try="$ac_compile"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15673 grep -v '^ *+' conftest.er1 >conftest.err
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_compiler=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6; }
15710 # Is the header present?
15711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <$ac_header>
15721 if { (ac_try="$ac_cpp conftest.$ac_ext"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743 if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_preproc=no
15752 rm -f conftest.err conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754 echo "${ECHO_T}$ac_header_preproc" >&6; }
15756 # So? What about this header?
15757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15779 ## ------------------------------ ##
15780 ## Report this to bugs@yourdomain ##
15781 ## ------------------------------ ##
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 eval "$as_ac_Header=\$ac_header_preproc"
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15810 for ac_header in CrashReporterClient.h
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_header_compiler=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_compiler=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <$ac_header>
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_preproc=no
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950 ## ------------------------------ ##
15951 ## Report this to bugs@yourdomain ##
15952 ## ------------------------------ ##
15954 ) | sed "s/^/$as_me: WARNING: /" >&2
15957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 eval "$as_ac_Header=\$ac_header_preproc"
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15979 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15980 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 extern const char *__crashreporter_info__;
15989 __crashreporter_info__ = "test";
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1 >conftest.err
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 { echo "$as_me:$LINENO: result: yes" >&5
16029 echo "${ECHO_T}yes" >&6; }
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE_CRASHREPORTER_INFO 1
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 { echo "$as_me:$LINENO: result: no" >&5
16040 echo "${ECHO_T}no" >&6; }
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_CRASHREPORTER_INFO 0
16048 rm -f core conftest.err conftest.$ac_objext \
16049 conftest$ac_exeext conftest.$ac_ext
16054 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16055 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16056 if test "${ac_cv_huge_val_sanity+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 ac_cpp='$CXXCPP $CPPFLAGS'
16062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16066 ac_save_CXXFLAGS=$CXXFLAGS
16068 if test "$cross_compiling" = yes; then
16069 ac_cv_huge_val_sanity=yes
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16081 double x = HUGE_VAL; return x != x;
16086 rm -f conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_huge_val_sanity=yes
16108 echo "$as_me: program exited with status $ac_status" >&5
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ( exit $ac_status )
16113 ac_cv_huge_val_sanity=no
16115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16119 CXXFLAGS=$ac_save_CXXFLAGS
16121 ac_cpp='$CPP $CPPFLAGS'
16122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16128 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16129 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16130 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16133 { echo "$as_me:$LINENO: checking for pid_t" >&5
16134 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16135 if test "${ac_cv_type_pid_t+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 $ac_includes_default
16145 typedef pid_t ac__type_new_;
16149 if ((ac__type_new_ *) 0)
16151 if (sizeof (ac__type_new_))
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_type_pid_t=yes
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_type_pid_t=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16202 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16203 if test $ac_cv_type_pid_t = yes; then
16207 cat >>confdefs.h <<_ACEOF
16213 { echo "$as_me:$LINENO: checking for size_t" >&5
16214 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16215 if test "${ac_cv_type_size_t+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 $ac_includes_default
16225 typedef size_t ac__type_new_;
16229 if ((ac__type_new_ *) 0)
16231 if (sizeof (ac__type_new_))
16237 rm -f conftest.$ac_objext
16238 if { (ac_try="$ac_compile"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_compile") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_cv_type_size_t=yes
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ac_cv_type_size_t=no
16279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16282 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16283 if test $ac_cv_type_size_t = yes; then
16287 cat >>confdefs.h <<_ACEOF
16288 #define size_t unsigned int
16294 cat >>confdefs.h <<_ACEOF
16295 #define RETSIGTYPE void
16298 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16299 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16300 if test "${ac_cv_struct_tm+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <sys/types.h>
16315 struct tm *tp; tp->tm_sec;
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_struct_tm=time.h
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_cv_struct_tm=sys/time.h
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16365 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16366 if test $ac_cv_struct_tm = sys/time.h; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define TM_IN_SYS_TIME 1
16374 { echo "$as_me:$LINENO: checking for int64_t" >&5
16375 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16376 if test "${ac_cv_type_int64_t+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 $ac_includes_default
16386 typedef int64_t ac__type_new_;
16390 if ((ac__type_new_ *) 0)
16392 if (sizeof (ac__type_new_))
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_compile") 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_type_int64_t=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_cv_type_int64_t=no
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16443 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16444 if test $ac_cv_type_int64_t = yes; then
16446 cat >>confdefs.h <<_ACEOF
16447 #define HAVE_INT64_T 1
16452 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16453 echo "$as_me: error: Type int64_t required but not found" >&2;}
16454 { (exit 1); exit 1; }; }
16457 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16458 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16459 if test "${ac_cv_type_uint64_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 uint64_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_uint64_t=yes
16517 echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16520 ac_cv_type_uint64_t=no
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16526 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16527 if test $ac_cv_type_uint64_t = yes; then
16529 cat >>confdefs.h <<_ACEOF
16530 #define HAVE_UINT64_T 1
16535 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16536 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16537 if test "${ac_cv_type_u_int64_t+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16547 typedef u_int64_t ac__type_new_;
16551 if ((ac__type_new_ *) 0)
16553 if (sizeof (ac__type_new_))
16559 rm -f conftest.$ac_objext
16560 if { (ac_try="$ac_compile"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_compile") 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_type_u_int64_t=yes
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 ac_cv_type_u_int64_t=no
16601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16604 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16605 if test $ac_cv_type_u_int64_t = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_U_INT64_T 1
16613 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16614 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16615 { (exit 1); exit 1; }; }
16629 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645 #define $ac_func innocuous_$ac_func
16647 /* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16653 # include <limits.h>
16655 # include <assert.h>
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16667 /* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670 #if defined __stub_$ac_func || defined __stub___$ac_func
16677 return $ac_func ();
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 eval "$as_ac_var=yes"
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 eval "$as_ac_var=no"
16724 rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16727 ac_res=`eval echo '${'$as_ac_var'}'`
16728 { echo "$as_me:$LINENO: result: $ac_res" >&5
16729 echo "${ECHO_T}$ac_res" >&6; }
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16742 for ac_func in powf fmodf strtof round
16744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16758 #define $ac_func innocuous_$ac_func
16760 /* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char $ac_func (); below.
16762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16763 <limits.h> exists even on freestanding compilers. */
16766 # include <limits.h>
16768 # include <assert.h>
16773 /* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined __stub_$ac_func || defined __stub___$ac_func
16790 return $ac_func ();
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16829 eval "$as_ac_var=yes"
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 eval "$as_ac_var=no"
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16840 ac_res=`eval echo '${'$as_ac_var'}'`
16841 { echo "$as_me:$LINENO: result: $ac_res" >&5
16842 echo "${ECHO_T}$ac_res" >&6; }
16843 if test `eval echo '${'$as_ac_var'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16872 #define $ac_func innocuous_$ac_func
16874 /* System header to define __stub macros and hopefully few prototypes,
16875 which can conflict with char $ac_func (); below.
16876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16877 <limits.h> exists even on freestanding compilers. */
16880 # include <limits.h>
16882 # include <assert.h>
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16894 /* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897 #if defined __stub_$ac_func || defined __stub___$ac_func
16904 return $ac_func ();
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (ac_try="$ac_link"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_link") 2>conftest.er1
16918 grep -v '^ *+' conftest.er1 >conftest.err
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924 { (case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_try") 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 eval "$as_ac_var=yes"
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 eval "$as_ac_var=no"
16951 rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16954 ac_res=`eval echo '${'$as_ac_var'}'`
16955 { echo "$as_me:$LINENO: result: $ac_res" >&5
16956 echo "${ECHO_T}$ac_res" >&6; }
16957 if test `eval echo '${'$as_ac_var'}'` = yes; then
16958 cat >>confdefs.h <<_ACEOF
16959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968 for ac_func in isatty mkdtemp mkstemp
16970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984 #define $ac_func innocuous_$ac_func
16986 /* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char $ac_func (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16992 # include <limits.h>
16994 # include <assert.h>
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17006 /* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009 #if defined __stub_$ac_func || defined __stub___$ac_func
17016 return $ac_func ();
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (ac_try="$ac_link"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_link") 2>conftest.er1
17030 grep -v '^ *+' conftest.er1 >conftest.err
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 eval "$as_ac_var=no"
17063 rm -f core conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
17066 ac_res=`eval echo '${'$as_ac_var'}'`
17067 { echo "$as_me:$LINENO: result: $ac_res" >&5
17068 echo "${ECHO_T}$ac_res" >&6; }
17069 if test `eval echo '${'$as_ac_var'}'` = yes; then
17070 cat >>confdefs.h <<_ACEOF
17071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17083 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099 #define $ac_func innocuous_$ac_func
17101 /* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char $ac_func (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17107 # include <limits.h>
17109 # include <assert.h>
17114 /* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined __stub_$ac_func || defined __stub___$ac_func
17131 return $ac_func ();
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17145 grep -v '^ *+' conftest.er1 >conftest.err
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 eval "$as_ac_var=yes"
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 eval "$as_ac_var=no"
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17181 ac_res=`eval echo '${'$as_ac_var'}'`
17182 { echo "$as_me:$LINENO: result: $ac_res" >&5
17183 echo "${ECHO_T}$ac_res" >&6; }
17184 if test `eval echo '${'$as_ac_var'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195 for ac_func in strerror strerror_r setenv
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17219 # include <limits.h>
17221 # include <assert.h>
17226 /* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17243 return $ac_func ();
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 eval "$as_ac_var=no"
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17293 ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295 echo "${ECHO_T}$ac_res" >&6; }
17296 if test `eval echo '${'$as_ac_var'}'` = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17308 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17324 #define $ac_func innocuous_$ac_func
17326 /* System header to define __stub macros and hopefully few prototypes,
17327 which can conflict with char $ac_func (); below.
17328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17329 <limits.h> exists even on freestanding compilers. */
17332 # include <limits.h>
17334 # include <assert.h>
17339 /* Override any GCC internal prototype to avoid an error.
17340 Use char because int might match the return type of a GCC
17341 builtin and then its argument prototype would still apply. */
17346 /* The GNU C library defines this for functions which it implements
17347 to always fail with ENOSYS. Some functions are actually named
17348 something starting with __ and the normal name is an alias. */
17349 #if defined __stub_$ac_func || defined __stub___$ac_func
17356 return $ac_func ();
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_link") 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 eval "$as_ac_var=yes"
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 eval "$as_ac_var=no"
17403 rm -f core conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17406 ac_res=`eval echo '${'$as_ac_var'}'`
17407 { echo "$as_me:$LINENO: result: $ac_res" >&5
17408 echo "${ECHO_T}$ac_res" >&6; }
17409 if test `eval echo '${'$as_ac_var'}'` = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17438 #define $ac_func innocuous_$ac_func
17440 /* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char $ac_func (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
17446 # include <limits.h>
17448 # include <assert.h>
17453 /* Override any GCC internal prototype to avoid an error.
17454 Use char because int might match the return type of a GCC
17455 builtin and then its argument prototype would still apply. */
17460 /* The GNU C library defines this for functions which it implements
17461 to always fail with ENOSYS. Some functions are actually named
17462 something starting with __ and the normal name is an alias. */
17463 #if defined __stub_$ac_func || defined __stub___$ac_func
17470 return $ac_func ();
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; } &&
17499 { ac_try='test -s conftest$ac_exeext'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 eval "$as_ac_var=yes"
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 eval "$as_ac_var=no"
17517 rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
17520 ac_res=`eval echo '${'$as_ac_var'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522 echo "${ECHO_T}$ac_res" >&6; }
17523 if test `eval echo '${'$as_ac_var'}'` = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17531 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17532 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17533 if test "${llvm_cv_c_printf_a+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 ac_cpp='$CPP $CPPFLAGS'
17538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17542 if test "$cross_compiling" = yes; then
17543 llvmac_cv_c_printf_a=no
17545 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17554 #include <stdlib.h>
17560 volatile double A, B;
17564 sprintf(Buffer, "%a", A);
17568 if (A != 0x1.999999999999ap-4)
17575 rm -f conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 llvm_cv_c_printf_a=yes
17597 echo "$as_me: program exited with status $ac_status" >&5
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ( exit $ac_status )
17602 llvmac_cv_c_printf_a=no
17604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17609 ac_cpp='$CPP $CPPFLAGS'
17610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17615 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17616 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17617 if test "$llvm_cv_c_printf_a" = "yes"; then
17619 cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_PRINTF_A 1
17626 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17627 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17628 if test "${ac_cv_func_rand48+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 ac_cpp='$CXXCPP $CPPFLAGS'
17633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <stdlib.h>
17647 srand48(0);lrand48();drand48();
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_compile") 2>conftest.er1
17661 grep -v '^ *+' conftest.er1 >conftest.err
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 ac_cv_func_rand48=yes
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 ac_cv_func_rand48=no
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696 ac_cpp='$CPP $CPPFLAGS'
17697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17702 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17703 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17705 if test "$ac_cv_func_rand48" = "yes" ; then
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_RAND48 1
17714 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17715 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17716 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 cat >conftest.$ac_ext <<_ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17725 $ac_includes_default
17730 char *p = (char *) strerror_s;
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_have_decl_strerror_s=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_have_decl_strerror_s=no
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17783 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17784 if test $ac_cv_have_decl_strerror_s = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787 #define HAVE_DECL_STRERROR_S 1
17792 cat >>confdefs.h <<_ACEOF
17793 #define HAVE_DECL_STRERROR_S 0
17801 if test "$llvm_cv_os_type" = "MingW" ; then
17802 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17803 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17804 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 ac_check_lib_save_LIBS=$LIBS
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_lib_gcc__alloca=yes
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_cv_lib_gcc__alloca=no
17873 rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875 LIBS=$ac_check_lib_save_LIBS
17877 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17878 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17879 if test $ac_cv_lib_gcc__alloca = yes; then
17881 cat >>confdefs.h <<\_ACEOF
17882 #define HAVE__ALLOCA 1
17887 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17888 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17889 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 ac_check_lib_save_LIBS=$LIBS
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17901 /* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17911 return __alloca ();
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest$ac_exeext'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_gcc___alloca=yes
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_cv_lib_gcc___alloca=no
17958 rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960 LIBS=$ac_check_lib_save_LIBS
17962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17963 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17964 if test $ac_cv_lib_gcc___alloca = yes; then
17966 cat >>confdefs.h <<\_ACEOF
17967 #define HAVE___ALLOCA 1
17972 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17973 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17974 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 ac_check_lib_save_LIBS=$LIBS
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17996 return __chkstk ();
18001 rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_lib_gcc___chkstk=yes
18037 echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18040 ac_cv_lib_gcc___chkstk=no
18043 rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 LIBS=$ac_check_lib_save_LIBS
18047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18048 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18049 if test $ac_cv_lib_gcc___chkstk = yes; then
18051 cat >>confdefs.h <<\_ACEOF
18052 #define HAVE___CHKSTK 1
18057 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18058 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_check_lib_save_LIBS=$LIBS
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18081 return ___chkstk ();
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_lib_gcc____chkstk=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_cv_lib_gcc____chkstk=no
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 LIBS=$ac_check_lib_save_LIBS
18132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18133 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18134 if test $ac_cv_lib_gcc____chkstk = yes; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE____CHKSTK 1
18143 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18144 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18145 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_check_lib_save_LIBS=$LIBS
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18157 /* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18167 return __ashldi3 ();
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc___ashldi3=yes
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 ac_cv_lib_gcc___ashldi3=no
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18219 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18220 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE___ASHLDI3 1
18228 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18229 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18230 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 ac_check_lib_save_LIBS=$LIBS
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18242 /* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18252 return __ashrdi3 ();
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___ashrdi3=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_lib_gcc___ashrdi3=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18304 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18305 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE___ASHRDI3 1
18313 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18314 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_check_lib_save_LIBS=$LIBS
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18337 return __divdi3 ();
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___divdi3=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_gcc___divdi3=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18390 if test $ac_cv_lib_gcc___divdi3 = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE___DIVDI3 1
18398 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18399 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18422 return __fixdfdi ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___fixdfdi=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_cv_lib_gcc___fixdfdi=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18475 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___FIXDFDI 1
18483 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18484 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 ac_check_lib_save_LIBS=$LIBS
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 /* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18507 return __fixsfdi ();
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___fixsfdi=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_gcc___fixsfdi=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18560 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___FIXSFDI 1
18568 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18569 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 ac_check_lib_save_LIBS=$LIBS
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18588 char __floatdidf ();
18592 return __floatdidf ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc___floatdidf=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_lib_gcc___floatdidf=no
18639 rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18645 if test $ac_cv_lib_gcc___floatdidf = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE___FLOATDIDF 1
18653 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18654 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18655 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 ac_check_lib_save_LIBS=$LIBS
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18667 /* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18677 return __lshrdi3 ();
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_gcc___lshrdi3=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_cv_lib_gcc___lshrdi3=no
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18729 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18730 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18732 cat >>confdefs.h <<\_ACEOF
18733 #define HAVE___LSHRDI3 1
18738 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18739 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18740 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 ac_check_lib_save_LIBS=$LIBS
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18762 return __moddi3 ();
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_link") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest$ac_exeext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_lib_gcc___moddi3=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_gcc___moddi3=no
18809 rm -f core conftest.err conftest.$ac_objext \
18810 conftest$ac_exeext conftest.$ac_ext
18811 LIBS=$ac_check_lib_save_LIBS
18813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18814 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18815 if test $ac_cv_lib_gcc___moddi3 = yes; then
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE___MODDI3 1
18823 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18824 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18825 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 ac_check_lib_save_LIBS=$LIBS
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18847 return __udivdi3 ();
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
18861 grep -v '^ *+' conftest.er1 >conftest.err
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_lib_gcc___udivdi3=yes
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 ac_cv_lib_gcc___udivdi3=no
18894 rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896 LIBS=$ac_check_lib_save_LIBS
18898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18899 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18900 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18902 cat >>confdefs.h <<\_ACEOF
18903 #define HAVE___UDIVDI3 1
18908 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18909 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 ac_check_lib_save_LIBS=$LIBS
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18932 return __umoddi3 ();
18937 rm -f conftest.$ac_objext conftest$ac_exeext
18938 if { (ac_try="$ac_link"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18946 grep -v '^ *+' conftest.er1 >conftest.err
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_lib_gcc___umoddi3=yes
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 ac_cv_lib_gcc___umoddi3=no
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18984 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18985 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18987 cat >>confdefs.h <<\_ACEOF
18988 #define HAVE___UMODDI3 1
18994 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18995 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___main+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_check_lib_save_LIBS=$LIBS
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___main=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_gcc___main=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19071 if test $ac_cv_lib_gcc___main = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___MAIN 1
19079 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19080 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_check_lib_save_LIBS=$LIBS
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19103 return __cmpdi2 ();
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___cmpdi2=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_gcc___cmpdi2=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19156 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___CMPDI2 1
19166 if test "$llvm_cv_os_type" = "MingW" ; then
19167 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19168 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19169 cat >conftest.$ac_ext <<_ACEOF
19170 #include <windows.h>
19171 #include <imagehlp.h>
19172 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19173 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19175 rm -f conftest.$ac_objext
19176 if { (ac_try="$ac_compile"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_compile") 2>conftest.er1
19184 grep -v '^ *+' conftest.er1 >conftest.err
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19210 { echo "$as_me:$LINENO: result: yes" >&5
19211 echo "${ECHO_T}yes" >&6; }
19212 llvm_cv_win32_elmcb_pcstr="PCSTR"
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19219 { echo "$as_me:$LINENO: result: no" >&5
19220 echo "${ECHO_T}no" >&6; }
19221 llvm_cv_win32_elmcb_pcstr="PSTR"
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 cat >>confdefs.h <<_ACEOF
19228 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19234 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19235 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19236 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 ac_cpp='$CXXCPP $CPPFLAGS'
19241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_func_isnan_in_math_h=yes
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ac_cv_func_isnan_in_math_h=no
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304 ac_cpp='$CPP $CPPFLAGS'
19305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19311 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19314 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19316 cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_ISNAN_IN_MATH_H 1
19322 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19323 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19324 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 ac_cpp='$CXXCPP $CPPFLAGS'
19329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19348 rm -f conftest.$ac_objext
19349 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_isnan_in_cmath=yes
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_cv_func_isnan_in_cmath=no
19390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392 ac_cpp='$CPP $CPPFLAGS'
19393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19398 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19399 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19401 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19403 cat >>confdefs.h <<\_ACEOF
19404 #define HAVE_ISNAN_IN_CMATH 1
19409 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19410 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19411 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 ac_cpp='$CXXCPP $CPPFLAGS'
19416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19430 float f; std::isnan(f);
19435 rm -f conftest.$ac_objext
19436 if { (ac_try="$ac_compile"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_compile") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest.$ac_objext'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_func_std_isnan_in_cmath=yes
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_func_std_isnan_in_cmath=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 ac_cpp='$CPP $CPPFLAGS'
19480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19486 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19488 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_STD_ISNAN_IN_CMATH 1
19497 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19498 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19499 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 ac_cpp='$CXXCPP $CPPFLAGS'
19504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_func_isinf_in_math_h=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_func_isinf_in_math_h=no
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 ac_cpp='$CPP $CPPFLAGS'
19568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19573 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19574 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19576 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19578 cat >>confdefs.h <<\_ACEOF
19579 #define HAVE_ISINF_IN_MATH_H 1
19584 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19585 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19586 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cpp='$CXXCPP $CPPFLAGS'
19591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19610 rm -f conftest.$ac_objext
19611 if { (ac_try="$ac_compile"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_compile") 2>conftest.er1
19619 grep -v '^ *+' conftest.er1 >conftest.err
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19625 { (case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_try") 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_func_isinf_in_cmath=yes
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_cv_func_isinf_in_cmath=no
19652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 ac_cpp='$CPP $CPPFLAGS'
19655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19660 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19661 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19663 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE_ISINF_IN_CMATH 1
19671 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19672 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19673 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 ac_cpp='$CXXCPP $CPPFLAGS'
19678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19682 cat >conftest.$ac_ext <<_ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19692 float f; std::isinf(f)}
19697 rm -f conftest.$ac_objext
19698 if { (ac_try="$ac_compile"
19699 case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_compile") 2>conftest.er1
19706 grep -v '^ *+' conftest.er1 >conftest.err
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_func_std_isinf_in_cmath=yes
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_func_std_isinf_in_cmath=no
19739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19741 ac_cpp='$CPP $CPPFLAGS'
19742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19748 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19750 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE_STD_ISINF_IN_CMATH 1
19758 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19759 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19760 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 ac_cpp='$CXXCPP $CPPFLAGS'
19765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <ieeefp.h>
19779 float f; finite(f);
19784 rm -f conftest.$ac_objext
19785 if { (ac_try="$ac_compile"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_compile") 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_cv_func_finite_in_ieeefp_h=yes
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 ac_cv_func_finite_in_ieeefp_h=no
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 ac_cpp='$CPP $CPPFLAGS'
19829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19834 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19835 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19837 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_FINITE_IN_IEEEFP_H 1
19847 if test "$llvm_cv_platform_type" = "Unix" ; then
19850 for ac_header in stdlib.h unistd.h
19852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19859 ac_res=`eval echo '${'$as_ac_Header'}'`
19860 { echo "$as_me:$LINENO: result: $ac_res" >&5
19861 echo "${ECHO_T}$ac_res" >&6; }
19863 # Is the header compilable?
19864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 $ac_includes_default
19873 #include <$ac_header>
19875 rm -f conftest.$ac_objext
19876 if { (ac_try="$ac_compile"
19877 case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_header_compiler=yes
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ac_header_compiler=no
19917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19919 echo "${ECHO_T}$ac_header_compiler" >&6; }
19921 # Is the header present?
19922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19924 cat >conftest.$ac_ext <<_ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 #include <$ac_header>
19932 if { (ac_try="$ac_cpp conftest.$ac_ext"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } >/dev/null; then
19945 if test -s conftest.err; then
19946 ac_cpp_err=$ac_c_preproc_warn_flag
19947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19954 if test -z "$ac_cpp_err"; then
19955 ac_header_preproc=yes
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_header_preproc=no
19963 rm -f conftest.err conftest.$ac_ext
19964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19965 echo "${ECHO_T}$ac_header_preproc" >&6; }
19967 # So? What about this header?
19968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19974 ac_header_preproc=yes
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19990 ## ------------------------------ ##
19991 ## Report this to bugs@yourdomain ##
19992 ## ------------------------------ ##
19994 ) | sed "s/^/$as_me: WARNING: /" >&2
19997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 eval "$as_ac_Header=\$ac_header_preproc"
20004 ac_res=`eval echo '${'$as_ac_Header'}'`
20005 { echo "$as_me:$LINENO: result: $ac_res" >&5
20006 echo "${ECHO_T}$ac_res" >&6; }
20009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20019 for ac_func in getpagesize
20021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20035 #define $ac_func innocuous_$ac_func
20037 /* System header to define __stub macros and hopefully few prototypes,
20038 which can conflict with char $ac_func (); below.
20039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20040 <limits.h> exists even on freestanding compilers. */
20043 # include <limits.h>
20045 # include <assert.h>
20050 /* Override any GCC internal prototype to avoid an error.
20051 Use char because int might match the return type of a GCC
20052 builtin and then its argument prototype would still apply. */
20057 /* The GNU C library defines this for functions which it implements
20058 to always fail with ENOSYS. Some functions are actually named
20059 something starting with __ and the normal name is an alias. */
20060 #if defined __stub_$ac_func || defined __stub___$ac_func
20067 return $ac_func ();
20072 rm -f conftest.$ac_objext conftest$ac_exeext
20073 if { (ac_try="$ac_link"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_link") 2>conftest.er1
20081 grep -v '^ *+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20087 { (case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_try") 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest$ac_exeext'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 eval "$as_ac_var=yes"
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20111 eval "$as_ac_var=no"
20114 rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20117 ac_res=`eval echo '${'$as_ac_var'}'`
20118 { echo "$as_me:$LINENO: result: $ac_res" >&5
20119 echo "${ECHO_T}$ac_res" >&6; }
20120 if test `eval echo '${'$as_ac_var'}'` = yes; then
20121 cat >>confdefs.h <<_ACEOF
20122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 { echo "$as_me:$LINENO: checking for working mmap" >&5
20129 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20130 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 if test "$cross_compiling" = yes; then
20134 ac_cv_func_mmap_fixed_mapped=no
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 $ac_includes_default
20143 /* malloc might have been renamed as rpl_malloc. */
20146 /* Thanks to Mike Haertel and Jim Avera for this test.
20147 Here is a matrix of mmap possibilities:
20148 mmap private not fixed
20149 mmap private fixed at somewhere currently unmapped
20150 mmap private fixed at somewhere already mapped
20151 mmap shared not fixed
20152 mmap shared fixed at somewhere currently unmapped
20153 mmap shared fixed at somewhere already mapped
20154 For private mappings, we should verify that changes cannot be read()
20155 back from the file, nor mmap's back from the file at a different
20156 address. (There have been systems where private was not correctly
20157 implemented like the infamous i386 svr4.0, and systems where the
20158 VM page cache was not coherent with the file system buffer cache
20159 like early versions of FreeBSD and possibly contemporary NetBSD.)
20160 For shared mappings, we should conversely verify that changes get
20161 propagated back to all the places they're supposed to be.
20163 Grep wants private fixed already mapped.
20164 The main things grep needs to know about mmap are:
20165 * does it exist and is it safe to write into the mmap'd area
20166 * how to use it (BSD variants) */
20169 #include <sys/mman.h>
20171 #if !STDC_HEADERS && !HAVE_STDLIB_H
20175 /* This mess was copied from the GNU getpagesize.h. */
20176 #if !HAVE_GETPAGESIZE
20177 /* Assume that all systems that can run configure have sys/param.h. */
20178 # if !HAVE_SYS_PARAM_H
20179 # define HAVE_SYS_PARAM_H 1
20182 # ifdef _SC_PAGESIZE
20183 # define getpagesize() sysconf(_SC_PAGESIZE)
20184 # else /* no _SC_PAGESIZE */
20185 # if HAVE_SYS_PARAM_H
20186 # include <sys/param.h>
20187 # ifdef EXEC_PAGESIZE
20188 # define getpagesize() EXEC_PAGESIZE
20189 # else /* no EXEC_PAGESIZE */
20191 # define getpagesize() NBPG * CLSIZE
20194 # endif /* no CLSIZE */
20195 # else /* no NBPG */
20197 # define getpagesize() NBPC
20198 # else /* no NBPC */
20200 # define getpagesize() PAGESIZE
20201 # endif /* PAGESIZE */
20202 # endif /* no NBPC */
20203 # endif /* no NBPG */
20204 # endif /* no EXEC_PAGESIZE */
20205 # else /* no HAVE_SYS_PARAM_H */
20206 # define getpagesize() 8192 /* punt totally */
20207 # endif /* no HAVE_SYS_PARAM_H */
20208 # endif /* no _SC_PAGESIZE */
20210 #endif /* no HAVE_GETPAGESIZE */
20215 char *data, *data2, *data3;
20219 pagesize = getpagesize ();
20221 /* First, make a file with some known garbage in it. */
20222 data = (char *) malloc (pagesize);
20225 for (i = 0; i < pagesize; ++i)
20226 *(data + i) = rand ();
20228 fd = creat ("conftest.mmap", 0600);
20231 if (write (fd, data, pagesize) != pagesize)
20235 /* Next, try to mmap the file at a fixed address which already has
20236 something else allocated at it. If we can, also make sure that
20237 we see the same garbage. */
20238 fd = open ("conftest.mmap", O_RDWR);
20241 data2 = (char *) malloc (2 * pagesize);
20244 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20245 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20246 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20248 for (i = 0; i < pagesize; ++i)
20249 if (*(data + i) != *(data2 + i))
20252 /* Finally, make sure that changes to the mapped area do not
20253 percolate back to the file as seen by read(). (This is a bug on
20254 some variants of i386 svr4.0.) */
20255 for (i = 0; i < pagesize; ++i)
20256 *(data2 + i) = *(data2 + i) + 1;
20257 data3 = (char *) malloc (pagesize);
20260 if (read (fd, data3, pagesize) != pagesize)
20262 for (i = 0; i < pagesize; ++i)
20263 if (*(data + i) != *(data3 + i))
20269 rm -f conftest$ac_exeext
20270 if { (ac_try="$ac_link"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_link") 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_func_mmap_fixed_mapped=yes
20291 echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ( exit $ac_status )
20296 ac_cv_func_mmap_fixed_mapped=no
20298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20304 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20305 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_MMAP 1
20312 rm -f conftest.mmap
20314 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20315 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20316 if test "${ac_cv_func_mmap_file+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 ac_cpp='$CPP $CPPFLAGS'
20321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20325 if test "$cross_compiling" = yes; then
20326 ac_cv_func_mmap_file=no
20328 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20336 #include <sys/types.h>
20337 #include <sys/mman.h>
20345 fd = creat ("foo",0777);
20346 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20348 return (fd != (int) MAP_FAILED);
20353 rm -f conftest$ac_exeext
20354 if { (ac_try="$ac_link"
20355 case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_link") 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_func_mmap_file=yes
20375 echo "$as_me: program exited with status $ac_status" >&5
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ( exit $ac_status )
20380 ac_cv_func_mmap_file=no
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387 ac_cpp='$CPP $CPPFLAGS'
20388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20394 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20395 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20396 if test "$ac_cv_func_mmap_file" = yes; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_MMAP_FILE
20406 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20407 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20408 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 if test "$llvm_cv_os_type" = "Interix" ; then
20412 ac_cv_need_dev_zero_for_mmap=yes
20414 ac_cv_need_dev_zero_for_mmap=no
20418 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20419 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20420 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20422 cat >>confdefs.h <<\_ACEOF
20423 #define NEED_DEV_ZERO_FOR_MMAP 1
20428 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20430 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20431 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20433 if test "$ac_cv_func_mmap_file" = "no"
20435 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20436 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20440 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20441 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20443 ac_cpp='$CXXCPP $CPPFLAGS'
20444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20455 volatile unsigned long val = 1;
20456 __sync_synchronize();
20457 __sync_val_compare_and_swap(&val, 1, 0);
20458 __sync_add_and_fetch(&val, 1);
20459 __sync_sub_and_fetch(&val, 1);
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20499 ac_cpp='$CPP $CPPFLAGS'
20500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504 { echo "$as_me:$LINENO: result: yes" >&5
20505 echo "${ECHO_T}yes" >&6; }
20507 cat >>confdefs.h <<\_ACEOF
20508 #define LLVM_HAS_ATOMICS 1
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 { echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6; }
20518 cat >>confdefs.h <<\_ACEOF
20519 #define LLVM_HAS_ATOMICS 0
20522 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20523 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20526 rm -f core conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20530 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20531 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20532 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20533 if test "${llvm_cv_linux_mixed+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 ac_cpp='$CPP $CPPFLAGS'
20538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20542 cat >conftest.$ac_ext <<_ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20549 error: Not x86-64 even if uname says so!
20560 rm -f conftest.$ac_objext
20561 if { (ac_try="$ac_compile"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_compile") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest.$ac_objext'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 llvm_cv_linux_mixed=no
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 llvm_cv_linux_mixed=yes
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604 ac_cpp='$CPP $CPPFLAGS'
20605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20611 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20612 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20614 if test "$llvm_cv_linux_mixed" = "yes"; then
20615 llvm_cv_target_arch="x86"
20621 for ac_func in __dso_handle
20623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20637 #define $ac_func innocuous_$ac_func
20639 /* System header to define __stub macros and hopefully few prototypes,
20640 which can conflict with char $ac_func (); below.
20641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642 <limits.h> exists even on freestanding compilers. */
20645 # include <limits.h>
20647 # include <assert.h>
20652 /* Override any GCC internal prototype to avoid an error.
20653 Use char because int might match the return type of a GCC
20654 builtin and then its argument prototype would still apply. */
20659 /* The GNU C library defines this for functions which it implements
20660 to always fail with ENOSYS. Some functions are actually named
20661 something starting with __ and the normal name is an alias. */
20662 #if defined __stub_$ac_func || defined __stub___$ac_func
20669 return $ac_func ();
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (ac_try="$ac_link"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_link") 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20698 { ac_try='test -s conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 eval "$as_ac_var=yes"
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 eval "$as_ac_var=no"
20716 rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
20719 ac_res=`eval echo '${'$as_ac_var'}'`
20720 { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20722 if test `eval echo '${'$as_ac_var'}'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20731 SHLIBEXT=$libltdl_cv_shlibext
20734 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20737 # Translate the various configuration directories and other basic
20738 # information into substitutions that will end up in Makefile.config.in
20739 # that these configured values can be used by the makefiles
20740 if test "${prefix}" = "NONE" ; then
20741 prefix="/usr/local"
20743 eval LLVM_PREFIX="${prefix}";
20744 eval LLVM_BINDIR="${prefix}/bin";
20745 eval LLVM_LIBDIR="${prefix}/lib";
20746 eval LLVM_DATADIR="${prefix}/share/llvm";
20747 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20748 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20749 eval LLVM_INCLUDEDIR="${prefix}/include";
20750 eval LLVM_INFODIR="${prefix}/info";
20751 eval LLVM_MANDIR="${prefix}/man";
20752 LLVM_CONFIGTIME=`date`
20764 # Place the various directores into the config.h file as #defines so that we
20765 # can know about the installation paths within LLVM.
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_PREFIX "$LLVM_PREFIX"
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_BINDIR "$LLVM_BINDIR"
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_DATADIR "$LLVM_DATADIR"
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_INFODIR "$LLVM_INFODIR"
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_MANDIR "$LLVM_MANDIR"
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20822 # Determine which bindings to build.
20823 if test "$BINDINGS_TO_BUILD" = auto ; then
20824 BINDINGS_TO_BUILD=""
20825 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20826 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20829 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20832 # This isn't really configurey, but it avoids having to repeat the list in
20837 # Do any work necessary to ensure that bindings have what they need.
20838 binding_prereqs_failed=0
20839 for a_binding in $BINDINGS_TO_BUILD ; do
20840 case "$a_binding" in
20842 if test "x$OCAMLC" = x ; then
20843 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20844 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20845 binding_prereqs_failed=1
20847 if test "x$OCAMLDEP" = x ; then
20848 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20849 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20850 binding_prereqs_failed=1
20852 if test "x$OCAMLOPT" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20854 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20856 if test "x$with_ocaml_libdir" != xauto ; then
20857 OCAML_LIBDIR=$with_ocaml_libdir
20860 ocaml_stdlib="`"$OCAMLC" -where`"
20861 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20863 # ocaml stdlib is beneath our prefix; use stdlib
20864 OCAML_LIBDIR=$ocaml_stdlib
20867 # ocaml stdlib is outside our prefix; use libdir/ocaml
20868 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20875 if test "$binding_prereqs_failed" = 1 ; then
20876 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20877 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20878 { (exit 1); exit 1; }; }
20881 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20882 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20883 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 ac_cpp='$CXXCPP $CPPFLAGS'
20888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20892 oldcxxflags="$CXXFLAGS"
20893 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 llvm_cv_cxx_visibility_inlines_hidden=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 llvm_cv_cxx_visibility_inlines_hidden=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 CXXFLAGS="$oldcxxflags"
20954 ac_cpp='$CPP $CPPFLAGS'
20955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20962 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20963 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20964 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20967 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20972 if test "$llvm_cv_link_use_r" = "yes" ; then
20979 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20980 RDYNAMIC="-Wl,-export-dynamic"
20988 ac_config_files="$ac_config_files Makefile.common"
20990 ac_config_files="$ac_config_files Makefile.llvm.config"
20993 ac_config_commands="$ac_config_commands Makefile"
20996 ac_config_commands="$ac_config_commands lib/Makefile"
20999 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21002 ac_config_commands="$ac_config_commands tools/Makefile"
21005 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21009 cat >confcache <<\_ACEOF
21010 # This file is a shell script that caches the results of configure
21011 # tests run on this system so they can be shared between configure
21012 # scripts and configure runs, see configure's option --config-cache.
21013 # It is not useful on other systems. If it contains results you don't
21014 # want to keep, you may remove or edit it.
21016 # config.status only pays attention to the cache file if you give it
21017 # the --recheck option to rerun configure.
21019 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21020 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21021 # following values.
21025 # The following way of writing the cache mishandles newlines in values,
21026 # but we know of no workaround that is simple, portable, and efficient.
21027 # So, we kill variables containing newlines.
21028 # Ultrix sh set writes to stderr and can't be redirected directly,
21029 # and sets the high bit in the cache file unless we assign to the vars.
21031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21032 eval ac_val=\$$ac_var
21036 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21037 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21040 _ | IFS | as_nl) ;; #(
21041 *) $as_unset $ac_var ;;
21047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21048 *${as_nl}ac_space=\ *)
21049 # `set' does not quote correctly, so add quotes (double-quote
21050 # substitution turns \\\\ into \\, and sed turns \\ into \).
21053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21056 # `set' quotes correctly as required by POSIX, so do not add quotes.
21057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21071 if test -w "$cache_file"; then
21072 test "x$cache_file" != "x/dev/null" &&
21073 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21074 echo "$as_me: updating cache $cache_file" >&6;}
21075 cat confcache >$cache_file
21077 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21078 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21084 # Let make expand exec_prefix.
21085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21087 # Transform confdefs.h into DEFS.
21088 # Protect against shell expansion while executing Makefile rules.
21089 # Protect against Makefile macro expansion.
21091 # If the first sed substitution is executed (which looks for macros that
21092 # take arguments), then branch to the quote section. Otherwise,
21093 # look for a macro that doesn't take arguments.
21097 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21099 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21103 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21116 DEFS=`sed -n "$ac_script" confdefs.h`
21121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21122 # 1. Remove the extension, and $U if already installed.
21123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21124 ac_i=`echo "$ac_i" | sed "$ac_script"`
21125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21126 # will be set to the directory where LIBOBJS objects are built.
21127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21130 LIBOBJS=$ac_libobjs
21132 LTLIBOBJS=$ac_ltlibobjs
21135 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21136 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21137 Usually this means the macro was only invoked conditionally." >&5
21138 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21139 Usually this means the macro was only invoked conditionally." >&2;}
21140 { (exit 1); exit 1; }; }
21142 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21143 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21144 Usually this means the macro was only invoked conditionally." >&5
21145 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21146 Usually this means the macro was only invoked conditionally." >&2;}
21147 { (exit 1); exit 1; }; }
21150 : ${CONFIG_STATUS=./config.status}
21151 ac_clean_files_save=$ac_clean_files
21152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21153 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21154 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21155 cat >$CONFIG_STATUS <<_ACEOF
21157 # Generated by $as_me.
21158 # Run this file to recreate the current configuration.
21159 # Compiler output produced by configure, useful for debugging
21160 # configure, is in config.log if it exists.
21163 ac_cs_recheck=false
21165 SHELL=\${CONFIG_SHELL-$SHELL}
21168 cat >>$CONFIG_STATUS <<\_ACEOF
21169 ## --------------------- ##
21170 ## M4sh Initialization. ##
21171 ## --------------------- ##
21173 # Be Bourne compatible
21174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21178 # is contrary to our usage. Disable this feature.
21179 alias -g '${1+"$@"}'='"$@"'
21180 setopt NO_GLOB_SUBST
21182 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21184 BIN_SH=xpg4; export BIN_SH # for Tru64
21185 DUALCASE=1; export DUALCASE # for MKS sh
21189 # Avoid depending upon Character Ranges.
21190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21193 as_cr_digits='0123456789'
21194 as_cr_alnum=$as_cr_Letters$as_cr_digits
21196 # The user is always right.
21197 if test "${PATH_SEPARATOR+set}" != set; then
21198 echo "#! /bin/sh" >conf$$.sh
21199 echo "exit 0" >>conf$$.sh
21201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21209 # Support unset when possible.
21210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21218 # We need space, tab and new line, in precisely that order. Quoting is
21219 # there to prevent editors from complaining about space-tab.
21220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21221 # splitting by setting IFS to empty value.)
21226 # Find who we are. Look in the path if we contain no directory separator.
21228 *[\\/]* ) as_myself=$0 ;;
21229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21230 for as_dir in $PATH
21233 test -z "$as_dir" && as_dir=.
21234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21240 # We did not find ourselves, most probably we were run as `sh COMMAND'
21241 # in which case we are not to be found in the path.
21242 if test "x$as_myself" = x; then
21245 if test ! -f "$as_myself"; then
21246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21247 { (exit 1); exit 1; }
21250 # Work around bugs in pre-3.0 UWIN ksh.
21251 for as_var in ENV MAIL MAILPATH
21252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21262 LC_TELEPHONE LC_TIME
21264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21265 eval $as_var=C; export $as_var
21267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21271 # Required to use basename.
21272 if expr a : '\(a\)' >/dev/null 2>&1 &&
21273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21280 as_basename=basename
21286 # Name of the executable.
21287 as_me=`$as_basename -- "$0" ||
21288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21289 X"$0" : 'X\(//\)$' \| \
21290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21292 sed '/^.*\/\([^/][^/]*\)\/*$/{
21311 as_lineno_1=$LINENO
21312 as_lineno_2=$LINENO
21313 test "x$as_lineno_1" != "x$as_lineno_2" &&
21314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21317 # uniformly replaced by the line number. The first 'sed' inserts a
21318 # line-number line after each line using $LINENO; the second 'sed'
21319 # does the real work. The second script uses 'N' to pair each
21320 # line-number line with the line containing $LINENO, and appends
21321 # trailing '-' during substitution so that $LINENO is not a special
21322 # case at line end.
21323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21324 # scripts with optimization help from Paolo Bonzini. Blame Lee
21325 # E. McMahon (1931-1989) for sed's syntax. :-)
21337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21340 ' >$as_me.lineno &&
21341 chmod +x "$as_me.lineno" ||
21342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21343 { (exit 1); exit 1; }; }
21345 # Don't try to exec as it changes $[0], causing all sort of problems
21346 # (the dirname of $[0] is not the place where we might find the
21347 # original and so on. Autoconf is especially sensitive to this).
21348 . "./$as_me.lineno"
21349 # Exit status is that of the last command.
21354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21360 ECHO_C= ECHO_N= ECHO_T=
21361 case `echo -n x` in
21363 case `echo 'x\c'` in
21364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21371 if expr a : '\(a\)' >/dev/null 2>&1 &&
21372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21378 rm -f conf$$ conf$$.exe conf$$.file
21379 if test -d conf$$.dir; then
21380 rm -f conf$$.dir/conf$$.file
21386 if ln -s conf$$.file conf$$ 2>/dev/null; then
21388 # ... but there are two gotchas:
21389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21391 # In both cases, we have to default to `cp -p'.
21392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21394 elif ln conf$$.file conf$$ 2>/dev/null; then
21399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21400 rmdir conf$$.dir 2>/dev/null
21402 if mkdir -p . 2>/dev/null; then
21405 test -d ./-p && rmdir ./-p
21409 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21410 # systems may use methods other than mode bits to determine executability.
21411 cat >conf$$.file <<_ASEOF
21415 chmod +x conf$$.file
21416 if test -x conf$$.file >/dev/null 2>&1; then
21417 as_executable_p="test -x"
21423 # Sed expression to map a string onto a valid CPP name.
21424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21426 # Sed expression to map a string onto a valid variable name.
21427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21432 # Save the log message, to keep $[0] and so on meaningful, and to
21433 # report actual input values of CONFIG_FILES etc. instead of their
21434 # values after options handling.
21436 This file was extended by [SAMPLE] $as_me [x.xx], which was
21437 generated by GNU Autoconf 2.60. Invocation command line was
21439 CONFIG_FILES = $CONFIG_FILES
21440 CONFIG_HEADERS = $CONFIG_HEADERS
21441 CONFIG_LINKS = $CONFIG_LINKS
21442 CONFIG_COMMANDS = $CONFIG_COMMANDS
21445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21450 cat >>$CONFIG_STATUS <<_ACEOF
21451 # Files that config.status was made for.
21452 config_files="$ac_config_files"
21453 config_commands="$ac_config_commands"
21457 cat >>$CONFIG_STATUS <<\_ACEOF
21459 \`$as_me' instantiates files from templates according to the
21460 current configuration.
21462 Usage: $0 [OPTIONS] [FILE]...
21464 -h, --help print this help, then exit
21465 -V, --version print version number, then exit
21466 -q, --quiet do not print progress messages
21467 -d, --debug don't remove temporary files
21468 --recheck update $as_me by reconfiguring in the same conditions
21469 --file=FILE[:TEMPLATE]
21470 instantiate the configuration file FILE
21472 Configuration files:
21475 Configuration commands:
21478 Report bugs to <bug-autoconf@gnu.org>."
21481 cat >>$CONFIG_STATUS <<_ACEOF
21483 [SAMPLE] config.status [x.xx]
21484 configured by $0, generated by GNU Autoconf 2.60,
21485 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21487 Copyright (C) 2006 Free Software Foundation, Inc.
21488 This config.status script is free software; the Free Software Foundation
21489 gives unlimited permission to copy, distribute and modify it."
21496 cat >>$CONFIG_STATUS <<\_ACEOF
21497 # If no file are specified by the user, then we need to provide default
21498 # value. By we need to know if files were specified by the user.
21504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21516 # Handling of the options.
21517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21520 echo "$ac_cs_version"; exit ;;
21521 --debug | --debu | --deb | --de | --d | -d )
21523 --file | --fil | --fi | --f )
21525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21526 ac_need_defaults=false;;
21527 --he | --h | --help | --hel | -h )
21528 echo "$ac_cs_usage"; exit ;;
21529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21533 # This is an error.
21534 -*) { echo "$as_me: error: unrecognized option: $1
21535 Try \`$0 --help' for more information." >&2
21536 { (exit 1); exit 1; }; } ;;
21538 *) ac_config_targets="$ac_config_targets $1"
21539 ac_need_defaults=false ;;
21545 ac_configure_extra_args=
21547 if $ac_cs_silent; then
21549 ac_configure_extra_args="$ac_configure_extra_args --silent"
21553 cat >>$CONFIG_STATUS <<_ACEOF
21554 if \$ac_cs_recheck; then
21555 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21556 CONFIG_SHELL=$SHELL
21557 export CONFIG_SHELL
21558 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21562 cat >>$CONFIG_STATUS <<\_ACEOF
21566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21567 ## Running $as_me. ##
21573 cat >>$CONFIG_STATUS <<_ACEOF
21577 llvm_src="${LLVM_SRC}"
21581 cat >>$CONFIG_STATUS <<\_ACEOF
21583 # Handling of arguments.
21584 for ac_config_target in $ac_config_targets
21586 case $ac_config_target in
21587 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21588 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21589 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21590 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21591 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21592 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21593 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21594 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21598 { (exit 1); exit 1; }; };;
21603 # If the user did not use the arguments to specify the items to instantiate,
21604 # then the envvar interface is used. Set only those that are not.
21605 # We use the long form for the default assignment because of an extremely
21606 # bizarre bug on SunOS 4.1.3.
21607 if $ac_need_defaults; then
21608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21612 # Have a temporary directory for convenience. Make it in the build tree
21613 # simply because there is no reason against having it here, and in addition,
21614 # creating and moving files from /tmp can sometimes cause problems.
21615 # Hook for its removal unless debugging.
21616 # Note that there is a small window in which the directory will not be cleaned:
21617 # after its creation but before its name has been assigned to `$tmp'.
21621 trap 'exit_status=$?
21622 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21624 trap '{ (exit 1); exit 1; }' 1 2 13 15
21626 # Create a (secure) tmp directory for tmp files.
21629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21630 test -n "$tmp" && test -d "$tmp"
21633 tmp=./conf$$-$RANDOM
21634 (umask 077 && mkdir "$tmp")
21637 echo "$me: cannot create a temporary directory in ." >&2
21638 { (exit 1); exit 1; }
21642 # Set up the sed scripts for CONFIG_FILES section.
21645 # No need to generate the scripts if there are no CONFIG_FILES.
21646 # This happens for instance when ./config.status config.h
21647 if test -n "$CONFIG_FILES"; then
21654 for ac_last_try in false false false false false :; do
21655 cat >conf$$subs.sed <<_ACEOF
21656 SHELL!$SHELL$ac_delim
21657 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21658 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21659 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21660 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21661 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21662 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21663 exec_prefix!$exec_prefix$ac_delim
21664 prefix!$prefix$ac_delim
21665 program_transform_name!$program_transform_name$ac_delim
21666 bindir!$bindir$ac_delim
21667 sbindir!$sbindir$ac_delim
21668 libexecdir!$libexecdir$ac_delim
21669 datarootdir!$datarootdir$ac_delim
21670 datadir!$datadir$ac_delim
21671 sysconfdir!$sysconfdir$ac_delim
21672 sharedstatedir!$sharedstatedir$ac_delim
21673 localstatedir!$localstatedir$ac_delim
21674 includedir!$includedir$ac_delim
21675 oldincludedir!$oldincludedir$ac_delim
21676 docdir!$docdir$ac_delim
21677 infodir!$infodir$ac_delim
21678 htmldir!$htmldir$ac_delim
21679 dvidir!$dvidir$ac_delim
21680 pdfdir!$pdfdir$ac_delim
21681 psdir!$psdir$ac_delim
21682 libdir!$libdir$ac_delim
21683 localedir!$localedir$ac_delim
21684 mandir!$mandir$ac_delim
21685 DEFS!$DEFS$ac_delim
21686 ECHO_C!$ECHO_C$ac_delim
21687 ECHO_N!$ECHO_N$ac_delim
21688 ECHO_T!$ECHO_T$ac_delim
21689 LIBS!$LIBS$ac_delim
21690 build_alias!$build_alias$ac_delim
21691 host_alias!$host_alias$ac_delim
21692 target_alias!$target_alias$ac_delim
21693 LLVM_SRC!$LLVM_SRC$ac_delim
21694 LLVM_OBJ!$LLVM_OBJ$ac_delim
21695 LLVM_VERSION!$LLVM_VERSION$ac_delim
21697 CFLAGS!$CFLAGS$ac_delim
21698 LDFLAGS!$LDFLAGS$ac_delim
21699 CPPFLAGS!$CPPFLAGS$ac_delim
21700 ac_ct_CC!$ac_ct_CC$ac_delim
21701 EXEEXT!$EXEEXT$ac_delim
21702 OBJEXT!$OBJEXT$ac_delim
21704 CXXFLAGS!$CXXFLAGS$ac_delim
21705 ac_ct_CXX!$ac_ct_CXX$ac_delim
21707 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21708 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21709 subdirs!$subdirs$ac_delim
21710 build!$build$ac_delim
21711 build_cpu!$build_cpu$ac_delim
21712 build_vendor!$build_vendor$ac_delim
21713 build_os!$build_os$ac_delim
21714 host!$host$ac_delim
21715 host_cpu!$host_cpu$ac_delim
21716 host_vendor!$host_vendor$ac_delim
21717 host_os!$host_os$ac_delim
21718 target!$target$ac_delim
21719 target_cpu!$target_cpu$ac_delim
21720 target_vendor!$target_vendor$ac_delim
21721 target_os!$target_os$ac_delim
21723 HOST_OS!$HOST_OS$ac_delim
21724 TARGET_OS!$TARGET_OS$ac_delim
21725 LINKALL!$LINKALL$ac_delim
21726 NOLINKALL!$NOLINKALL$ac_delim
21727 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21728 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21729 ARCH!$ARCH$ac_delim
21730 ENDIAN!$ENDIAN$ac_delim
21731 GREP!$GREP$ac_delim
21732 EGREP!$EGREP$ac_delim
21733 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21734 BUILD_CC!$BUILD_CC$ac_delim
21735 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21736 BUILD_CXX!$BUILD_CXX$ac_delim
21737 CVSBUILD!$CVSBUILD$ac_delim
21738 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21739 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21740 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21741 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21742 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21743 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21744 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21746 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21747 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21748 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21749 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21750 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21751 ENABLE_PIC!$ENABLE_PIC$ac_delim
21752 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21755 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21757 elif $ac_last_try; then
21758 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21759 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21760 { (exit 1); exit 1; }; }
21762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21766 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21767 if test -n "$ac_eof"; then
21768 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21769 ac_eof=`expr $ac_eof + 1`
21772 cat >>$CONFIG_STATUS <<_ACEOF
21773 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21777 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21778 s/^/s,@/; s/!/@,|#_!!_#|/
21781 s/'"$ac_delim"'$/,g/; t
21783 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21784 ' >>$CONFIG_STATUS <conf$$subs.sed
21785 rm -f conf$$subs.sed
21786 cat >>$CONFIG_STATUS <<_ACEOF
21792 for ac_last_try in false false false false false :; do
21793 cat >conf$$subs.sed <<_ACEOF
21794 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21795 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21796 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21797 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21798 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21799 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21800 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21801 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21802 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21803 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21804 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21805 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21807 ifGNUmake!$ifGNUmake$ac_delim
21808 LN_S!$LN_S$ac_delim
21811 DATE!$DATE$ac_delim
21812 FIND!$FIND$ac_delim
21813 MKDIR!$MKDIR$ac_delim
21815 RANLIB!$RANLIB$ac_delim
21820 BINPWD!$BINPWD$ac_delim
21821 GRAPHVIZ!$GRAPHVIZ$ac_delim
21824 NEATO!$NEATO$ac_delim
21825 TWOPI!$TWOPI$ac_delim
21826 CIRCO!$CIRCO$ac_delim
21828 DOTTY!$DOTTY$ac_delim
21829 XDOT_PY!$XDOT_PY$ac_delim
21830 PERL!$PERL$ac_delim
21831 HAVE_PERL!$HAVE_PERL$ac_delim
21832 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21833 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21834 INSTALL_DATA!$INSTALL_DATA$ac_delim
21835 BZIP2!$BZIP2$ac_delim
21837 DOXYGEN!$DOXYGEN$ac_delim
21838 GROFF!$GROFF$ac_delim
21839 GZIPBIN!$GZIPBIN$ac_delim
21840 POD2HTML!$POD2HTML$ac_delim
21841 POD2MAN!$POD2MAN$ac_delim
21842 PDFROFF!$PDFROFF$ac_delim
21843 RUNTEST!$RUNTEST$ac_delim
21844 TCLSH!$TCLSH$ac_delim
21846 OCAMLC!$OCAMLC$ac_delim
21847 OCAMLOPT!$OCAMLOPT$ac_delim
21848 OCAMLDEP!$OCAMLDEP$ac_delim
21849 OCAMLDOC!$OCAMLDOC$ac_delim
21851 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21852 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21853 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21854 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21855 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21856 LIBADD_DL!$LIBADD_DL$ac_delim
21857 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21858 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21859 USE_UDIS86!$USE_UDIS86$ac_delim
21860 USE_OPROFILE!$USE_OPROFILE$ac_delim
21861 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21862 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21863 MMAP_FILE!$MMAP_FILE$ac_delim
21864 SHLIBEXT!$SHLIBEXT$ac_delim
21865 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21866 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21867 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21868 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21869 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21870 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21871 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21872 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21873 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21874 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21875 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21876 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21877 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21878 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21879 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21880 RPATH!$RPATH$ac_delim
21881 RDYNAMIC!$RDYNAMIC$ac_delim
21882 LIBOBJS!$LIBOBJS$ac_delim
21883 LTLIBOBJS!$LTLIBOBJS$ac_delim
21886 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21888 elif $ac_last_try; then
21889 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21890 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21891 { (exit 1); exit 1; }; }
21893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21897 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21898 if test -n "$ac_eof"; then
21899 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21900 ac_eof=`expr $ac_eof + 1`
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21908 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21909 s/^/s,@/; s/!/@,|#_!!_#|/
21912 s/'"$ac_delim"'$/,g/; t
21914 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21915 ' >>$CONFIG_STATUS <conf$$subs.sed
21916 rm -f conf$$subs.sed
21917 cat >>$CONFIG_STATUS <<_ACEOF
21924 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21925 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21926 # trailing colons and then remove the whole line if VPATH becomes empty
21927 # (actually we leave an empty line to preserve line numbers).
21928 if test "x$srcdir" = x.; then
21929 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21930 s/:*\$(srcdir):*/:/
21931 s/:*\${srcdir}:*/:/
21933 s/^\([^=]*=[ ]*\):*/\1/
21939 cat >>$CONFIG_STATUS <<\_ACEOF
21940 fi # test -n "$CONFIG_FILES"
21943 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21946 :[FHLC]) ac_mode=$ac_tag; continue;;
21948 case $ac_mode$ac_tag in
21950 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21951 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21952 { (exit 1); exit 1; }; };;
21953 :[FH]-) ac_tag=-:-;;
21954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21971 -) ac_f="$tmp/stdin";;
21972 *) # Look for the file first in the build tree, then in the source tree
21973 # (if the path is not absolute). The absolute path cannot be DOS-style,
21974 # because $ac_f cannot contain `:'.
21978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21980 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21981 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21982 { (exit 1); exit 1; }; };;
21984 ac_file_inputs="$ac_file_inputs $ac_f"
21987 # Let's still pretend it is `configure' which instantiates (i.e., don't
21988 # use $as_me), people would be surprised to read:
21989 # /* config.h. Generated by config.status. */
21990 configure_input="Generated from "`IFS=:
21991 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21992 if test x"$ac_file" != x-; then
21993 configure_input="$ac_file. $configure_input"
21994 { echo "$as_me:$LINENO: creating $ac_file" >&5
21995 echo "$as_me: creating $ac_file" >&6;}
21999 *:-:* | *:-) cat >"$tmp/stdin";;
22004 ac_dir=`$as_dirname -- "$ac_file" ||
22005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22006 X"$ac_file" : 'X\(//\)[^/]' \| \
22007 X"$ac_file" : 'X\(//\)$' \| \
22008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22014 /^X\(\/\/\)[^/].*/{
22029 -*) as_dir=./$as_dir;;
22031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22035 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22036 *) as_qdir=$as_dir;;
22038 as_dirs="'$as_qdir' $as_dirs"
22039 as_dir=`$as_dirname -- "$as_dir" ||
22040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22041 X"$as_dir" : 'X\(//\)[^/]' \| \
22042 X"$as_dir" : 'X\(//\)$' \| \
22043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22049 /^X\(\/\/\)[^/].*/{
22062 test -d "$as_dir" && break
22064 test -z "$as_dirs" || eval "mkdir $as_dirs"
22065 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22066 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22067 { (exit 1); exit 1; }; }; }
22071 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22074 # A ".." for each directory in $ac_dir_suffix.
22075 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22076 case $ac_top_builddir_sub in
22077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22081 ac_abs_top_builddir=$ac_pwd
22082 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22083 # for backward compatibility:
22084 ac_top_builddir=$ac_top_build_prefix
22087 .) # We are building in place.
22089 ac_top_srcdir=$ac_top_builddir_sub
22090 ac_abs_top_srcdir=$ac_pwd ;;
22091 [\\/]* | ?:[\\/]* ) # Absolute name.
22092 ac_srcdir=$srcdir$ac_dir_suffix;
22093 ac_top_srcdir=$srcdir
22094 ac_abs_top_srcdir=$srcdir ;;
22095 *) # Relative name.
22096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22097 ac_top_srcdir=$ac_top_build_prefix$srcdir
22098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22100 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22111 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22115 cat >>$CONFIG_STATUS <<\_ACEOF
22116 # If the template does not know about datarootdir, expand it.
22117 # FIXME: This hack should be removed a few years after 2.60.
22118 ac_datarootdir_hack=; ac_datarootdir_seen=
22120 case `sed -n '/datarootdir/ {
22129 ' $ac_file_inputs` in
22130 *datarootdir*) ac_datarootdir_seen=yes;;
22131 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22132 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22133 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22135 cat >>$CONFIG_STATUS <<_ACEOF
22136 ac_datarootdir_hack='
22137 s&@datadir@&$datadir&g
22138 s&@docdir@&$docdir&g
22139 s&@infodir@&$infodir&g
22140 s&@localedir@&$localedir&g
22141 s&@mandir@&$mandir&g
22142 s&\\\${datarootdir}&$datarootdir&g' ;;
22146 # Neutralize VPATH when `$srcdir' = `.'.
22147 # Shell code in configure.ac might set extrasub.
22148 # FIXME: do we really want to maintain this feature?
22149 cat >>$CONFIG_STATUS <<_ACEOF
22153 cat >>$CONFIG_STATUS <<\_ACEOF
22155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22156 s&@configure_input@&$configure_input&;t t
22157 s&@top_builddir@&$ac_top_builddir_sub&;t t
22158 s&@srcdir@&$ac_srcdir&;t t
22159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22160 s&@top_srcdir@&$ac_top_srcdir&;t t
22161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22162 s&@builddir@&$ac_builddir&;t t
22163 s&@abs_builddir@&$ac_abs_builddir&;t t
22164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22165 s&@INSTALL@&$ac_INSTALL&;t t
22166 $ac_datarootdir_hack
22167 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22172 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22173 which seems to be undefined. Please make sure it is defined." >&5
22174 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22175 which seems to be undefined. Please make sure it is defined." >&2;}
22179 -) cat "$tmp/out"; rm -f "$tmp/out";;
22180 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22185 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22186 echo "$as_me: executing $ac_file commands" >&6;}
22191 case $ac_file$ac_mode in
22192 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22193 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22194 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22195 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22196 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22197 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22198 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22199 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22200 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22201 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22207 { (exit 0); exit 0; }
22209 chmod +x $CONFIG_STATUS
22210 ac_clean_files=$ac_clean_files_save
22213 # configure is writing to config.log, and then calls config.status.
22214 # config.status does its own redirection, appending to config.log.
22215 # Unfortunately, on DOS this fails, as config.log is still kept open
22216 # by configure, so config.status won't be able to write to it; its
22217 # output is simply discarded. So we exec the FD to /dev/null,
22218 # effectively closing config.log, so it can be properly (re)opened and
22219 # appended to by config.status. When coming back to configure, we
22220 # need to make the FD available again.
22221 if test "$no_create" != yes; then
22223 ac_config_status_args=
22224 test "$silent" = yes &&
22225 ac_config_status_args="$ac_config_status_args --quiet"
22227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22230 # would make configure fail if this is the last instruction.
22231 $ac_cs_success || { (exit 1); exit 1; }
22235 # CONFIG_SUBDIRS section.
22237 if test "$no_recursion" != yes; then
22239 # Remove --cache-file and --srcdir arguments so they do not pile up.
22240 ac_sub_configure_args=
22242 eval "set x $ac_configure_args"
22246 if test -n "$ac_prev"; then
22251 -cache-file | --cache-file | --cache-fil | --cache-fi \
22252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22253 ac_prev=cache_file ;;
22254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22258 --config-cache | -C)
22260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22270 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22272 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22276 # Always prepend --prefix to ensure using the same prefix
22277 # in subdir configurations.
22278 ac_arg="--prefix=$prefix"
22280 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22282 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22287 # Do not complain, so a configure script can configure whichever
22288 # parts of a large source tree are present.
22289 test -d "$srcdir/$ac_dir" || continue
22291 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22292 echo "$as_me:$LINENO: $ac_msg" >&5
22296 -*) as_dir=./$as_dir;;
22298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22302 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22303 *) as_qdir=$as_dir;;
22305 as_dirs="'$as_qdir' $as_dirs"
22306 as_dir=`$as_dirname -- "$as_dir" ||
22307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22308 X"$as_dir" : 'X\(//\)[^/]' \| \
22309 X"$as_dir" : 'X\(//\)$' \| \
22310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22316 /^X\(\/\/\)[^/].*/{
22329 test -d "$as_dir" && break
22331 test -z "$as_dirs" || eval "mkdir $as_dirs"
22332 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22333 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22334 { (exit 1); exit 1; }; }; }
22338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22341 # A ".." for each directory in $ac_dir_suffix.
22342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22343 case $ac_top_builddir_sub in
22344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22348 ac_abs_top_builddir=$ac_pwd
22349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22350 # for backward compatibility:
22351 ac_top_builddir=$ac_top_build_prefix
22354 .) # We are building in place.
22356 ac_top_srcdir=$ac_top_builddir_sub
22357 ac_abs_top_srcdir=$ac_pwd ;;
22358 [\\/]* | ?:[\\/]* ) # Absolute name.
22359 ac_srcdir=$srcdir$ac_dir_suffix;
22360 ac_top_srcdir=$srcdir
22361 ac_abs_top_srcdir=$srcdir ;;
22362 *) # Relative name.
22363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22364 ac_top_srcdir=$ac_top_build_prefix$srcdir
22365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22372 # Check for guested configure; otherwise get Cygnus style configure.
22373 if test -f "$ac_srcdir/configure.gnu"; then
22374 ac_sub_configure=$ac_srcdir/configure.gnu
22375 elif test -f "$ac_srcdir/configure"; then
22376 ac_sub_configure=$ac_srcdir/configure
22377 elif test -f "$ac_srcdir/configure.in"; then
22378 # This should be Cygnus configure.
22379 ac_sub_configure=$ac_aux_dir/configure
22381 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22382 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22386 # The recursion is here.
22387 if test -n "$ac_sub_configure"; then
22388 # Make the cache file name correct relative to the subdirectory.
22389 case $cache_file in
22390 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22391 *) # Relative name.
22392 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22395 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22396 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22397 # The eval makes quoting arguments work.
22398 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22399 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22400 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22401 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22402 { (exit 1); exit 1; }; }