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
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='tools/polly'
805 # Initialize some variables set by options.
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
817 program_transform_name=s,x,x,
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912 eval enable_$ac_feature=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_package=`echo $ac_package| sed 's/-/_/g'`
1128 eval with_$ac_package=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package | sed 's/-/_/g'`
1137 eval with_$ac_package=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1188 # Be sure to have absolute directory names.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
1245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274 { (exit 1); exit 1; }; }
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279 { (exit 1); exit 1; }; }
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
1379 --enable-libcpp Use libc++ if available (default is NO)
1380 --enable-cxx11 Use c++11 if available (default is NO)
1381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1385 --enable-werror Compile with -Werror enabled (default is NO)
1386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-pic Build LLVM with Position Independent Code (default
1400 --enable-shared Build a shared library and link tools against it
1402 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1403 Win32 DLL (default is YES)
1404 --enable-timestamps Enable embedding timestamp information in build
1406 --enable-targets Build specific host targets: all or
1407 target1,target2,... Valid targets are: host, x86,
1408 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1409 xcore, msp430, nvptx, systemz, and cpp (default=all)
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
1420 --with-optimize-option Select the compiler options to use for optimized
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1429 --with-c-include-dirs Colon separated list of directories clang will
1431 --with-gcc-toolchain Directory where gcc is installed.
1432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <bugs@yourdomain>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60. Invocation command line was
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 ac_config_commands="$ac_config_commands setup"
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1928 llvm_package_version="unknown";
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3474 case "$enableval" in
3479 default) ENABLE_POLLY=1
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490 subdirs="$subdirs tools/polly"
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3528 ac_save_IFS=$IFS; IFS='-'
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3620 program_prefix=${target_alias}-
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
3653 *-*-freebsd* | *-*-kfreebsd-gnu)
3654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 llvm_cv_target_os_type="AIX" ;;
3747 llvm_cv_target_os_type="IRIX" ;;
3749 llvm_cv_target_os_type="Cygwin" ;;
3751 llvm_cv_target_os_type="Darwin" ;;
3753 llvm_cv_target_os_type="Minix" ;;
3754 *-*-freebsd* | *-*-kfreebsd-gnu)
3755 llvm_cv_target_os_type="FreeBSD" ;;
3757 llvm_cv_target_os_type="OpenBSD" ;;
3759 llvm_cv_target_os_type="NetBSD" ;;
3761 llvm_cv_target_os_type="DragonFly" ;;
3763 llvm_cv_target_os_type="HP-UX" ;;
3765 llvm_cv_target_os_type="Interix" ;;
3767 llvm_cv_target_os_type="Linux" ;;
3769 llvm_cv_target_os_type="GNU" ;;
3771 llvm_cv_target_os_type="SunOS" ;;
3773 llvm_cv_target_os_type="AuroraUX" ;;
3775 llvm_cv_target_os_type="Win32" ;;
3777 llvm_cv_target_os_type="MingW" ;;
3779 llvm_cv_target_os_type="Haiku" ;;
3781 llvm_cv_target_os_type="RTEMS" ;;
3783 llvm_cv_target_os_type="NativeClient" ;;
3785 llvm_cv_target_os_type="Freestanding" ;;
3787 llvm_cv_target_os_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3801 HOST_OS=$llvm_cv_os_type
3803 TARGET_OS=$llvm_cv_target_os_type
3806 LINKALL=$llvm_cv_link_all_option
3808 NOLINKALL=$llvm_cv_no_link_all_option
3811 case $llvm_cv_platform_type in
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3846 arm*-*) llvm_cv_target_arch="ARM" ;;
3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3853 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3854 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3855 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3856 *) llvm_cv_target_arch="Unknown" ;;
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869 x86) LLVM_NATIVE_ARCH="X86" ;;
3870 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3871 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3874 ARCH=$llvm_cv_target_arch
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3908 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 ac_count=`expr $ac_count + 1`
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3930 $ac_path_GREP_found && break 3
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944 { (exit 1); exit 1; }; }
3948 ac_cv_path_GREP=$GREP
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955 GREP="$ac_cv_path_GREP"
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3966 # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in egrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983 # Check for GNU ac_path_EGREP and select it if it is found.
3984 # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3987 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'EGREP' >> "conftest.nl"
3997 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_EGREP="$ac_path_EGREP"
4003 ac_path_EGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_EGREP_found && break 3
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4030 ac_cv_path_EGREP=$EGREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_try") 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 ac_cv_header_stdc=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_header_stdc=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_header_stdc = yes; then
4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "memchr" >/dev/null 2>&1; then
4124 ac_cv_header_stdc=no
4130 if test $ac_cv_header_stdc = yes; then
4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "free" >/dev/null 2>&1; then
4145 ac_cv_header_stdc=no
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 # define ISLOWER(c) \
4169 (('a' <= (c) && (c) <= 'i') \
4170 || ('j' <= (c) && (c) <= 'r') \
4171 || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 for (i = 0; i < 256; i++)
4181 if (XOR (islower (i), ISLOWER (i))
4182 || toupper (i) != TOUPPER (i))
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_link") 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4209 echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_header_stdc=no
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243 inttypes.h stdint.h unistd.h
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4259 #include <$ac_header>
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 eval "$as_ac_Header=yes"
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 eval "$as_ac_Header=no"
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306 { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309 cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
4358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_try") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4391 #if BYTE_ORDER != BIG_ENDIAN
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } &&
4413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_try") 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_try") 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_c_bigendian=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 ac_cv_c_bigendian=no
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448 # try to guess the endianness by grepping values into an object file
4449 ac_cv_c_bigendian=unknown
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4465 _ascii (); _ebcdic ();
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505 ac_cv_c_bigendian=yes
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508 if test "$ac_cv_c_bigendian" = unknown; then
4509 ac_cv_c_bigendian=no
4511 # finding both strings is unlikely to happen, but who knows?
4512 ac_cv_c_bigendian=unknown
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4535 /* Are we little or big endian? From Harbison&Steele. */
4539 char c[sizeof (long int)];
4542 return u.c[sizeof (long int) - 1] == 1;
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_link") 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_c_bigendian=no
4570 echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_cv_c_bigendian=yes
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4595 { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4603 if test "$cross_compiling" = yes; then
4604 LLVM_CROSS_COMPILING=1
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613 ac_cv_build_exeext=.exe
4615 ac_build_prefix=${build_alias}-
4617 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$BUILD_CC"; then
4625 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4649 { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4654 if test -z "$BUILD_CC"; then
4655 # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_BUILD_CC="gcc"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712 ac_prog_rejected=yes
4715 ac_cv_prog_BUILD_CC="cc"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test $ac_prog_rejected = yes; then
4724 # We found a bogon in the path, so make sure we never use it.
4725 set dummy $ac_cv_prog_BUILD_CC
4727 if test $# != 0; then
4728 # We chose a different compiler from the bogus one.
4729 # However, it has the same basename, so the bogon will be chosen
4730 # first if we set BUILD_CC to just the basename; use the full file name.
4732 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4749 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751 { (exit 1); exit 1; }; }
4752 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4754 echo 'int main () { return 0; }' > conftest.$ac_ext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757 (eval $ac_build_link) 2>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; then
4761 for file in conftest.*; do
4763 *.c | *.o | *.obj | *.dSYM) ;;
4764 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4768 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770 { (exit 1); exit 1; }; }
4773 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4783 ac_build_prefix=${build_alias}-
4784 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -n "$BUILD_CXX"; then
4792 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 if test -z "$BUILD_CXX"; then
4822 # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_BUILD_CXX="g++"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879 ac_prog_rejected=yes
4882 ac_cv_prog_BUILD_CXX="c++"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test $ac_prog_rejected = yes; then
4891 # We found a bogon in the path, so make sure we never use it.
4892 set dummy $ac_cv_prog_BUILD_CXX
4894 if test $# != 0; then
4895 # We chose a different compiler from the bogus one.
4896 # However, it has the same basename, so the bogon will be chosen
4897 # first if we set BUILD_CXX to just the basename; use the full file name.
4899 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4917 LLVM_CROSS_COMPILING=0
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934 enableval=$enable_libcpp;
4939 case "$enableval" in
4940 yes) ENABLE_LIBCPP=1
4944 default) ENABLE_LIBCPP=0
4946 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948 { (exit 1); exit 1; }; } ;;
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953 enableval=$enable_cxx11;
4958 case "$enableval" in
4963 default) ENABLE_CXX11=0
4965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967 { (exit 1); exit 1; }; } ;;
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972 enableval=$enable_optimized;
4977 if test ${enableval} = "no" ; then
4981 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987 enableval=$enable_profiling;
4992 if test ${enableval} = "no" ; then
4996 ENABLE_PROFILING=ENABLE_PROFILING=1
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002 enableval=$enable_assertions;
5007 if test ${enableval} = "yes" ; then
5011 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017 enableval=$enable_werror;
5022 case "$enableval" in
5023 yes) ENABLE_WERROR=1
5027 default) ENABLE_WERROR=0
5029 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031 { (exit 1); exit 1; }; } ;;
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036 enableval=$enable_expensive_checks;
5041 if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044 EXPENSIVE_CHECKS=yes
5047 ENABLE_EXPENSIVE_CHECKS=
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055 enableval=$enable_debug_runtime;
5060 if test ${enableval} = "no" ; then
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070 enableval=$enable_debug_symbols;
5075 if test ${enableval} = "no" ; then
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085 enableval=$enable_jit;
5090 if test ${enableval} = "no"
5095 case "$llvm_cv_target_arch" in
5096 x86) TARGET_HAS_JIT=1
5098 Sparc) TARGET_HAS_JIT=0
5100 PowerPC) TARGET_HAS_JIT=1
5102 x86_64) TARGET_HAS_JIT=1
5104 ARM) TARGET_HAS_JIT=1
5106 AArch64) TARGET_HAS_JIT=0
5108 Mips) TARGET_HAS_JIT=1
5110 XCore) TARGET_HAS_JIT=0
5112 MSP430) TARGET_HAS_JIT=0
5114 Hexagon) TARGET_HAS_JIT=0
5116 MBlaze) TARGET_HAS_JIT=0
5118 NVPTX) TARGET_HAS_JIT=0
5120 SystemZ) TARGET_HAS_JIT=1
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129 enableval=$enable_docs;
5134 case "$enableval" in
5139 default) ENABLE_DOCS=1
5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148 enableval=$enable_doxygen;
5153 case "$enableval" in
5154 yes) ENABLE_DOXYGEN=1
5156 no) ENABLE_DOXYGEN=0
5158 default) ENABLE_DOXYGEN=0
5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162 { (exit 1); exit 1; }; } ;;
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167 enableval=$enable_threads;
5172 case "$enableval" in
5173 yes) ENABLE_THREADS=1
5175 no) ENABLE_THREADS=0
5177 default) ENABLE_THREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191 enableval=$enable_pthreads;
5196 case "$enableval" in
5197 yes) ENABLE_PTHREADS=1
5199 no) ENABLE_PTHREADS=0
5201 default) ENABLE_PTHREADS=1
5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205 { (exit 1); exit 1; }; } ;;
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210 enableval=$enable_pic;
5215 case "$enableval" in
5220 default) ENABLE_PIC=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5239 case "$enableval" in
5240 yes) ENABLE_SHARED=1
5244 default) ENABLE_SHARED=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5258 case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5261 no) ENABLE_EMBED_STDCXX=0
5263 default) ENABLE_EMBED_STDCXX=1
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5277 case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5280 no) ENABLE_TIMESTAMPS=0
5282 default) ENABLE_TIMESTAMPS=1
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297 enableval=$enable_targets;
5302 if test "$enableval" = host-only ; then
5305 case "$enableval" in
5306 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX SystemZ" ;;
5307 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5315 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5319 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5320 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5321 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5322 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5323 host) case "$llvm_cv_target_arch" in
5324 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5325 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5327 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5328 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5329 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5331 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5333 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5334 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5335 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5336 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5338 echo "$as_me: error: Can not set target to build" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5341 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5342 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5343 { (exit 1); exit 1; }; } ;;
5348 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5351 # Determine whether we are building LLVM support for the native architecture.
5352 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5353 for a_target in $TARGETS_TO_BUILD; do
5354 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5360 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5361 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5362 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5363 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5364 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5365 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5367 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5368 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5386 cat >>confdefs.h <<_ACEOF
5387 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5390 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5392 cat >>confdefs.h <<_ACEOF
5393 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5397 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5407 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5408 # target feature def files.
5409 LLVM_ENUM_TARGETS=""
5410 LLVM_ENUM_ASM_PRINTERS=""
5411 LLVM_ENUM_ASM_PARSERS=""
5412 LLVM_ENUM_DISASSEMBLERS=""
5413 for target_to_build in $TARGETS_TO_BUILD; do
5414 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5415 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5416 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5418 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5419 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5421 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5422 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5431 # Check whether --with-optimize-option was given.
5432 if test "${with_optimize_option+set}" = set; then
5433 withval=$with_optimize_option;
5438 { echo "$as_me:$LINENO: checking optimization flags" >&5
5439 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5442 case "$llvm_cv_os_type" in
5443 FreeBSD) optimize_option=-O2 ;;
5444 MingW) optimize_option=-O2 ;;
5445 *) optimize_option=-O3 ;;
5447 *) optimize_option="$withval" ;;
5449 OPTIMIZE_OPTION=$optimize_option
5451 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5452 echo "${ECHO_T}$optimize_option" >&6; }
5455 # Check whether --with-extra-options was given.
5456 if test "${with_extra_options+set}" = set; then
5457 withval=$with_extra_options;
5463 default) EXTRA_OPTIONS= ;;
5464 *) EXTRA_OPTIONS=$withval ;;
5466 EXTRA_OPTIONS=$EXTRA_OPTIONS
5470 # Check whether --with-extra-ld-options was given.
5471 if test "${with_extra_ld_options+set}" = set; then
5472 withval=$with_extra_ld_options;
5478 default) EXTRA_LD_OPTIONS= ;;
5479 *) EXTRA_LD_OPTIONS=$withval ;;
5481 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5484 # Check whether --enable-bindings was given.
5485 if test "${enable_bindings+set}" = set; then
5486 enableval=$enable_bindings;
5491 BINDINGS_TO_BUILD=""
5492 case "$enableval" in
5493 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5494 all ) BINDINGS_TO_BUILD="ocaml" ;;
5495 none | no) BINDINGS_TO_BUILD="" ;;
5496 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5497 case "$a_binding" in
5498 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5499 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5500 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5501 { (exit 1); exit 1; }; } ;;
5508 # Check whether --with-ocaml-libdir was given.
5509 if test "${with_ocaml_libdir+set}" = set; then
5510 withval=$with_ocaml_libdir;
5516 auto) with_ocaml_libdir="$withval" ;;
5517 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5518 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5519 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5520 { (exit 1); exit 1; }; } ;;
5524 # Check whether --with-clang-resource-dir was given.
5525 if test "${with_clang_resource_dir+set}" = set; then
5526 withval=$with_clang_resource_dir;
5532 cat >>confdefs.h <<_ACEOF
5533 #define CLANG_RESOURCE_DIR "$withval"
5538 # Check whether --with-c-include-dirs was given.
5539 if test "${with_c_include_dirs+set}" = set; then
5540 withval=$with_c_include_dirs;
5546 cat >>confdefs.h <<_ACEOF
5547 #define C_INCLUDE_DIRS "$withval"
5551 # Clang normally uses the system c++ headers and libraries. With this option,
5552 # clang will use the ones provided by a gcc installation instead. This option should
5553 # be passed the same value that was used with --prefix when configuring gcc.
5555 # Check whether --with-gcc-toolchain was given.
5556 if test "${with_gcc_toolchain+set}" = set; then
5557 withval=$with_gcc_toolchain;
5563 cat >>confdefs.h <<_ACEOF
5564 #define GCC_INSTALL_PREFIX "$withval"
5569 # Check whether --with-binutils-include was given.
5570 if test "${with_binutils_include+set}" = set; then
5571 withval=$with_binutils_include;
5577 default) WITH_BINUTILS_INCDIR=default ;;
5578 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5579 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5580 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5583 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5584 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5586 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5587 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5588 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5589 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5590 { (exit 1); exit 1; }; };
5595 # Check whether --with-bug-report-url was given.
5596 if test "${with_bug_report_url+set}" = set; then
5597 withval=$with_bug_report_url;
5599 withval="http://llvm.org/bugs/"
5603 cat >>confdefs.h <<_ACEOF
5604 #define BUG_REPORT_URL "$withval"
5608 # Check whether --enable-libffi was given.
5609 if test "${enable_libffi+set}" = set; then
5610 enableval=$enable_libffi; case "$enableval" in
5611 yes) llvm_cv_enable_libffi="yes" ;;
5612 no) llvm_cv_enable_libffi="no" ;;
5613 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5615 { (exit 1); exit 1; }; } ;;
5618 llvm_cv_enable_libffi=no
5623 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5625 if test "${lt_cv_path_NM+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 if test -n "$NM"; then
5629 # Let the user override the test.
5632 lt_nm_to_check="${ac_tool_prefix}nm"
5633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5634 lt_nm_to_check="$lt_nm_to_check nm"
5636 for lt_tmp_nm in $lt_nm_to_check; do
5637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5640 test -z "$ac_dir" && ac_dir=.
5641 tmp_nm="$ac_dir/$lt_tmp_nm"
5642 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5643 # Check to see if the nm accepts a BSD-compat flag.
5644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5645 # nm: unknown option "B" ignored
5646 # Tru64's nm complains that /dev/null is an invalid object file
5647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5648 */dev/null* | *'Invalid file or object type'*)
5649 lt_cv_path_NM="$tmp_nm -B"
5653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5655 lt_cv_path_NM="$tmp_nm -p"
5659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5660 continue # so that we can try to find one that supports BSD flags
5669 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5672 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5673 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5678 { echo "$as_me:$LINENO: checking for GNU make" >&5
5679 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5680 if test "${llvm_cv_gnu_make_command+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 llvm_cv_gnu_make_command=''
5684 for a in "$MAKE" make gmake gnumake ; do
5685 if test -z "$a" ; then continue ; fi ;
5686 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5688 llvm_cv_gnu_make_command=$a ;
5693 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5694 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5695 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5699 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5700 echo "${ECHO_T}\"Not found\"" >&6; };
5704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5707 if test "$LN_S" = "ln -s"; then
5708 { echo "$as_me:$LINENO: result: yes" >&5
5709 echo "${ECHO_T}yes" >&6; }
5711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5712 echo "${ECHO_T}no, using $LN_S" >&6; }
5715 # Extract the first word of "cmp", so it can be a program name with args.
5716 set dummy cmp; ac_word=$2
5717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719 if test "${ac_cv_path_CMP+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5747 if test -n "$CMP"; then
5748 { echo "$as_me:$LINENO: result: $CMP" >&5
5749 echo "${ECHO_T}$CMP" >&6; }
5751 { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5756 # Extract the first word of "cp", so it can be a program name with args.
5757 set dummy cp; ac_word=$2
5758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5760 if test "${ac_cv_path_CP+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5788 if test -n "$CP"; then
5789 { echo "$as_me:$LINENO: result: $CP" >&5
5790 echo "${ECHO_T}$CP" >&6; }
5792 { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5797 # Extract the first word of "date", so it can be a program name with args.
5798 set dummy date; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_path_DATE+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5828 DATE=$ac_cv_path_DATE
5829 if test -n "$DATE"; then
5830 { echo "$as_me:$LINENO: result: $DATE" >&5
5831 echo "${ECHO_T}$DATE" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5838 # Extract the first word of "find", so it can be a program name with args.
5839 set dummy find; ac_word=$2
5840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842 if test "${ac_cv_path_FIND+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5869 FIND=$ac_cv_path_FIND
5870 if test -n "$FIND"; then
5871 { echo "$as_me:$LINENO: result: $FIND" >&5
5872 echo "${ECHO_T}$FIND" >&6; }
5874 { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5879 # Extract the first word of "grep", so it can be a program name with args.
5880 set dummy grep; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_GREP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5910 GREP=$ac_cv_path_GREP
5911 if test -n "$GREP"; then
5912 { echo "$as_me:$LINENO: result: $GREP" >&5
5913 echo "${ECHO_T}$GREP" >&6; }
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5920 # Extract the first word of "mkdir", so it can be a program name with args.
5921 set dummy mkdir; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_MKDIR+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5951 MKDIR=$ac_cv_path_MKDIR
5952 if test -n "$MKDIR"; then
5953 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5954 echo "${ECHO_T}$MKDIR" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5961 # Extract the first word of "mv", so it can be a program name with args.
5962 set dummy mv; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_MV+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5993 if test -n "$MV"; then
5994 { echo "$as_me:$LINENO: result: $MV" >&5
5995 echo "${ECHO_T}$MV" >&6; }
5997 { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_RANLIB+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 if test -n "$RANLIB"; then
6011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 RANLIB=$ac_cv_prog_RANLIB
6031 if test -n "$RANLIB"; then
6032 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6033 echo "${ECHO_T}$RANLIB" >&6; }
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6041 if test -z "$ac_cv_prog_RANLIB"; then
6042 ac_ct_RANLIB=$RANLIB
6043 # Extract the first word of "ranlib", so it can be a program name with args.
6044 set dummy ranlib; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 if test -n "$ac_ct_RANLIB"; then
6051 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_RANLIB="ranlib"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6071 if test -n "$ac_ct_RANLIB"; then
6072 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6073 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6075 { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6079 if test "x$ac_ct_RANLIB" = x; then
6082 case $cross_compiling:$ac_tool_warned in
6084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet. If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&5
6087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet. If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6090 ac_tool_warned=yes ;;
6092 RANLIB=$ac_ct_RANLIB
6095 RANLIB="$ac_cv_prog_RANLIB"
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ar; ac_word=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_prog_AR+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 if test -n "$AR"; then
6107 ac_cv_prog_AR="$AR" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_AR="${ac_tool_prefix}ar"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 if test -n "$AR"; then
6128 { echo "$as_me:$LINENO: result: $AR" >&5
6129 echo "${ECHO_T}$AR" >&6; }
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6137 if test -z "$ac_cv_prog_AR"; then
6139 # Extract the first word of "ar", so it can be a program name with args.
6140 set dummy ar; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 if test -n "$ac_ct_AR"; then
6147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_AR="ar"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6167 if test -n "$ac_ct_AR"; then
6168 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6169 echo "${ECHO_T}$ac_ct_AR" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6175 if test "x$ac_ct_AR" = x; then
6178 case $cross_compiling:$ac_tool_warned in
6180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&5
6183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184 whose name does not start with the host triplet. If you think this
6185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6186 ac_tool_warned=yes ;;
6194 # Extract the first word of "rm", so it can be a program name with args.
6195 set dummy rm; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_path_RM+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6226 if test -n "$RM"; then
6227 { echo "$as_me:$LINENO: result: $RM" >&5
6228 echo "${ECHO_T}$RM" >&6; }
6230 { echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6; }
6235 # Extract the first word of "sed", so it can be a program name with args.
6236 set dummy sed; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_path_SED+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6267 if test -n "$SED"; then
6268 { echo "$as_me:$LINENO: result: $SED" >&5
6269 echo "${ECHO_T}$SED" >&6; }
6271 { echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6; }
6276 # Extract the first word of "tar", so it can be a program name with args.
6277 set dummy tar; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_path_TAR+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6308 if test -n "$TAR"; then
6309 { echo "$as_me:$LINENO: result: $TAR" >&5
6310 echo "${ECHO_T}$TAR" >&6; }
6312 { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6317 # Extract the first word of "pwd", so it can be a program name with args.
6318 set dummy pwd; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_path_BINPWD+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6348 BINPWD=$ac_cv_path_BINPWD
6349 if test -n "$BINPWD"; then
6350 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6351 echo "${ECHO_T}$BINPWD" >&6; }
6353 { echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6; }
6359 # Extract the first word of "Graphviz", so it can be a program name with args.
6360 set dummy Graphviz; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6390 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6391 if test -n "$GRAPHVIZ"; then
6392 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6393 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6402 cat >>confdefs.h <<\_ACEOF
6403 #define HAVE_GRAPHVIZ 1
6406 if test "$llvm_cv_os_type" = "MingW" ; then
6407 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6410 cat >>confdefs.h <<_ACEOF
6411 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6415 # Extract the first word of "dot", so it can be a program name with args.
6416 set dummy dot; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_DOT+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6447 if test -n "$DOT"; then
6448 { echo "$as_me:$LINENO: result: $DOT" >&5
6449 echo "${ECHO_T}$DOT" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6456 if test "$DOT" != "echo dot" ; then
6458 cat >>confdefs.h <<\_ACEOF
6462 if test "$llvm_cv_os_type" = "MingW" ; then
6463 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6466 cat >>confdefs.h <<_ACEOF
6467 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6471 # Extract the first word of "fdp", so it can be a program name with args.
6472 set dummy fdp; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_path_FDP+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6503 if test -n "$FDP"; then
6504 { echo "$as_me:$LINENO: result: $FDP" >&5
6505 echo "${ECHO_T}$FDP" >&6; }
6507 { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6512 if test "$FDP" != "echo fdp" ; then
6514 cat >>confdefs.h <<\_ACEOF
6518 if test "$llvm_cv_os_type" = "MingW" ; then
6519 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6522 cat >>confdefs.h <<_ACEOF
6523 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6527 # Extract the first word of "neato", so it can be a program name with args.
6528 set dummy neato; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_path_NEATO+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6558 NEATO=$ac_cv_path_NEATO
6559 if test -n "$NEATO"; then
6560 { echo "$as_me:$LINENO: result: $NEATO" >&5
6561 echo "${ECHO_T}$NEATO" >&6; }
6563 { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6568 if test "$NEATO" != "echo neato" ; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_NEATO 1
6574 if test "$llvm_cv_os_type" = "MingW" ; then
6575 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6578 cat >>confdefs.h <<_ACEOF
6579 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6583 # Extract the first word of "twopi", so it can be a program name with args.
6584 set dummy twopi; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_TWOPI+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6614 TWOPI=$ac_cv_path_TWOPI
6615 if test -n "$TWOPI"; then
6616 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6617 echo "${ECHO_T}$TWOPI" >&6; }
6619 { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6624 if test "$TWOPI" != "echo twopi" ; then
6626 cat >>confdefs.h <<\_ACEOF
6627 #define HAVE_TWOPI 1
6630 if test "$llvm_cv_os_type" = "MingW" ; then
6631 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6634 cat >>confdefs.h <<_ACEOF
6635 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6639 # Extract the first word of "circo", so it can be a program name with args.
6640 set dummy circo; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_CIRCO+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6670 CIRCO=$ac_cv_path_CIRCO
6671 if test -n "$CIRCO"; then
6672 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6673 echo "${ECHO_T}$CIRCO" >&6; }
6675 { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6680 if test "$CIRCO" != "echo circo" ; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_CIRCO 1
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6695 for ac_prog in gv gsview32
6697 # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_GV+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 if test -n "$GV"; then
6729 { echo "$as_me:$LINENO: result: $GV" >&5
6730 echo "${ECHO_T}$GV" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 test -n "$GV" && break
6739 test -n "$GV" || GV="echo gv"
6741 if test "$GV" != "echo gv" ; then
6743 cat >>confdefs.h <<\_ACEOF
6747 if test "$llvm_cv_os_type" = "MingW" ; then
6748 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6751 cat >>confdefs.h <<_ACEOF
6752 #define LLVM_PATH_GV "$GV${EXEEXT}"
6756 # Extract the first word of "dotty", so it can be a program name with args.
6757 set dummy dotty; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_path_DOTTY+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6787 DOTTY=$ac_cv_path_DOTTY
6788 if test -n "$DOTTY"; then
6789 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6790 echo "${ECHO_T}$DOTTY" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6797 if test "$DOTTY" != "echo dotty" ; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_DOTTY 1
6803 if test "$llvm_cv_os_type" = "MingW" ; then
6804 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6812 # Extract the first word of "xdot.py", so it can be a program name with args.
6813 set dummy xdot.py; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6843 XDOT_PY=$ac_cv_path_XDOT_PY
6844 if test -n "$XDOT_PY"; then
6845 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6846 echo "${ECHO_T}$XDOT_PY" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6853 if test "$XDOT_PY" != "echo xdot.py" ; then
6855 cat >>confdefs.h <<\_ACEOF
6856 #define HAVE_XDOT_PY 1
6859 if test "$llvm_cv_os_type" = "MingW" ; then
6860 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6869 # Find a good install program. We prefer a C program (faster),
6870 # so one script is as good as another. But avoid the broken or
6871 # incompatible versions:
6872 # SysV /etc/install, /usr/sbin/install
6873 # SunOS /usr/etc/install
6874 # IRIX /sbin/install
6876 # AmigaOS /C/install, which installs bootblocks on floppy discs
6877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6880 # OS/2's system install, which has a completely different semantic
6881 # ./install, which can be erroneously created by make from ./install.sh.
6882 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6884 if test -z "$INSTALL"; then
6885 if test "${ac_cv_path_install+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 # Account for people who put trailing slashes in PATH elements.
6895 ./ | .// | /cC/* | \
6896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6897 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6900 # OSF1 and SCO ODT 3.0 have their own names for install.
6901 # Don't use installbsd from OSF since it installs stuff as root
6903 for ac_prog in ginstall scoinst install; do
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6906 if test $ac_prog = install &&
6907 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6908 # AIX install. It has an incompatible calling convention.
6910 elif test $ac_prog = install &&
6911 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912 # program-specific install script used by HP pwplus--don't use.
6915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6928 if test "${ac_cv_path_install+set}" = set; then
6929 INSTALL=$ac_cv_path_install
6931 # As a last resort, use the slow shell script. Don't cache a
6932 # value for INSTALL within a source directory, because that will
6933 # break other packages using the cache if that directory is
6934 # removed, or if the value is a relative name.
6935 INSTALL=$ac_install_sh
6938 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6939 echo "${ECHO_T}$INSTALL" >&6; }
6941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6942 # It thinks the first close brace ends the variable substitution.
6943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6950 [\\/$]* | ?:[\\/]* ) ;;
6951 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6954 # Extract the first word of "bzip2", so it can be a program name with args.
6955 set dummy bzip2; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_BZIP2+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 BZIP2=$ac_cv_path_BZIP2
6985 if test -n "$BZIP2"; then
6986 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6987 echo "${ECHO_T}$BZIP2" >&6; }
6989 { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6994 # Extract the first word of "cat", so it can be a program name with args.
6995 set dummy cat; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_path_CAT+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 if test -n "$CAT"; then
7026 { echo "$as_me:$LINENO: result: $CAT" >&5
7027 echo "${ECHO_T}$CAT" >&6; }
7029 { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7034 # Extract the first word of "doxygen", so it can be a program name with args.
7035 set dummy doxygen; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 DOXYGEN=$ac_cv_path_DOXYGEN
7065 if test -n "$DOXYGEN"; then
7066 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7067 echo "${ECHO_T}$DOXYGEN" >&6; }
7069 { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7074 # Extract the first word of "groff", so it can be a program name with args.
7075 set dummy groff; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GROFF+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 GROFF=$ac_cv_path_GROFF
7105 if test -n "$GROFF"; then
7106 { echo "$as_me:$LINENO: result: $GROFF" >&5
7107 echo "${ECHO_T}$GROFF" >&6; }
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7114 # Extract the first word of "gzip", so it can be a program name with args.
7115 set dummy gzip; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 GZIPBIN=$ac_cv_path_GZIPBIN
7145 if test -n "$GZIPBIN"; then
7146 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7147 echo "${ECHO_T}$GZIPBIN" >&6; }
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7154 # Extract the first word of "pod2html", so it can be a program name with args.
7155 set dummy pod2html; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_POD2HTML+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 POD2HTML=$ac_cv_path_POD2HTML
7185 if test -n "$POD2HTML"; then
7186 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7187 echo "${ECHO_T}$POD2HTML" >&6; }
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7194 # Extract the first word of "pod2man", so it can be a program name with args.
7195 set dummy pod2man; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_path_POD2MAN+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 POD2MAN=$ac_cv_path_POD2MAN
7225 if test -n "$POD2MAN"; then
7226 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7227 echo "${ECHO_T}$POD2MAN" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7234 # Extract the first word of "pdfroff", so it can be a program name with args.
7235 set dummy pdfroff; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_path_PDFROFF+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 PDFROFF=$ac_cv_path_PDFROFF
7265 if test -n "$PDFROFF"; then
7266 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7267 echo "${ECHO_T}$PDFROFF" >&6; }
7269 { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7274 # Extract the first word of "runtest", so it can be a program name with args.
7275 set dummy runtest; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_path_RUNTEST+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 RUNTEST=$ac_cv_path_RUNTEST
7305 if test -n "$RUNTEST"; then
7306 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7307 echo "${ECHO_T}$RUNTEST" >&6; }
7309 { echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6; }
7316 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7317 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7319 # Check whether --with-tclinclude was given.
7320 if test "${with_tclinclude+set}" = set; then
7321 withval=$with_tclinclude; with_tclinclude=${withval}
7326 if test "${ac_cv_path_tclsh+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 if test x"${with_tclinclude}" != x ; then
7331 if test -f ${with_tclinclude}/tclsh ; then
7332 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7333 elif test -f ${with_tclinclude}/src/tclsh ; then
7334 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7336 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7337 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7338 { (exit 1); exit 1; }; }
7344 if test x"${ac_cv_path_tclsh}" = x ; then
7345 { echo "$as_me:$LINENO: result: none" >&5
7346 echo "${ECHO_T}none" >&6; }
7347 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
7349 # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_TCLSH+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 TCLSH=$ac_cv_path_TCLSH
7380 if test -n "$TCLSH"; then
7381 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7382 echo "${ECHO_T}$TCLSH" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7389 test -n "$TCLSH" && break
7392 if test x"${TCLSH}" = x ; then
7393 ac_cv_path_tclsh='';
7395 ac_cv_path_tclsh="${TCLSH}";
7398 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7399 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7400 TCLSH="${ac_cv_path_tclsh}"
7404 # Extract the first word of "zip", so it can be a program name with args.
7405 set dummy zip; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_ZIP+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 if test -n "$ZIP"; then
7436 { echo "$as_me:$LINENO: result: $ZIP" >&5
7437 echo "${ECHO_T}$ZIP" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7444 for ac_prog in ocamlc
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLC+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 OCAMLC=$ac_cv_path_OCAMLC
7477 if test -n "$OCAMLC"; then
7478 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7479 echo "${ECHO_T}$OCAMLC" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 test -n "$OCAMLC" && break
7489 for ac_prog in ocamlopt
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 OCAMLOPT=$ac_cv_path_OCAMLOPT
7522 if test -n "$OCAMLOPT"; then
7523 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7524 echo "${ECHO_T}$OCAMLOPT" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 test -n "$OCAMLOPT" && break
7534 for ac_prog in ocamldep
7536 # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 OCAMLDEP=$ac_cv_path_OCAMLDEP
7567 if test -n "$OCAMLDEP"; then
7568 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7569 echo "${ECHO_T}$OCAMLDEP" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7576 test -n "$OCAMLDEP" && break
7579 for ac_prog in ocamldoc
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 OCAMLDOC=$ac_cv_path_OCAMLDOC
7612 if test -n "$OCAMLDOC"; then
7613 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7614 echo "${ECHO_T}$OCAMLDOC" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 test -n "$OCAMLDOC" && break
7624 for ac_prog in gas as
7626 # Extract the first word of "$ac_prog", so it can be a program name with args.
7627 set dummy $ac_prog; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_GAS+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 if test -n "$GAS"; then
7658 { echo "$as_me:$LINENO: result: $GAS" >&5
7659 echo "${ECHO_T}$GAS" >&6; }
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7666 test -n "$GAS" && break
7670 { echo "$as_me:$LINENO: checking for linker version" >&5
7671 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7672 if test "${llvm_cv_link_version+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 version_string="$(ld -v 2>&1 | head -1)"
7679 if (echo "$version_string" | grep -q "ld64"); then
7680 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7682 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7686 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7687 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7689 cat >>confdefs.h <<_ACEOF
7690 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7695 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7696 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7697 if test "${llvm_cv_link_use_r+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707 CFLAGS="$CFLAGS -Wl,-R."
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (ac_try="$ac_link"
7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727 *) ac_try_echo=$ac_try;;
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730 (eval "$ac_link") 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; } &&
7747 { ac_try='test -s conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 llvm_cv_link_use_r=yes
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 llvm_cv_link_use_r=no
7765 rm -f core conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7769 ac_cpp='$CPP $CPPFLAGS'
7770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7777 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7778 if test "$llvm_cv_link_use_r" = yes ; then
7780 cat >>confdefs.h <<\_ACEOF
7781 #define HAVE_LINK_R 1
7787 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7788 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7789 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 ac_cpp='$CPP $CPPFLAGS'
7794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (ac_try="$ac_link"
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_link") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 llvm_cv_link_use_export_dynamic=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 llvm_cv_link_use_export_dynamic=no
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7869 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7870 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_LINK_EXPORT_DYNAMIC 1
7879 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7880 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7881 if test "${llvm_cv_link_use_version_script+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 ac_cpp='$CPP $CPPFLAGS'
7886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 # The following code is from the autoconf manual,
7893 # "11.13: Limitations of Usual Tools".
7894 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7895 # Use mktemp if possible; otherwise fall back on mkdir,
7896 # with $RANDOM to make collisions less likely.
7900 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7902 test -n "$tmp" && test -d "$tmp"
7904 tmp=$TMPDIR/foo$$-$RANDOM
7905 (umask 077 && mkdir "$tmp")
7908 echo "{" > "$tmp/export.map"
7909 echo " global: main;" >> "$tmp/export.map"
7910 echo " local: *;" >> "$tmp/export.map"
7911 echo "};" >> "$tmp/export.map"
7913 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_link") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7944 { (case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_try") 2>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_try") 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 llvm_cv_link_use_version_script=yes
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 llvm_cv_link_use_version_script=no
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973 rm "$tmp/export.map"
7977 ac_cpp='$CPP $CPPFLAGS'
7978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7985 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7986 if test "$llvm_cv_link_use_version_script" = yes ; then
7987 HAVE_LINK_VERSION_SCRIPT=1
7994 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7995 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7996 if test "${ac_cv_c_const+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8009 /* FIXME: Include the comments suggested by Paul. */
8011 /* Ultrix mips cc rejects this. */
8012 typedef int charset[2];
8014 /* SunOS 4.1.1 cc rejects this. */
8015 char const *const *ccp;
8017 /* NEC SVR4.0.2 mips cc rejects this. */
8018 struct point {int x, y;};
8019 static struct point const zero = {0,0};
8020 /* AIX XL C 1.02.0.0 rejects this.
8021 It does not let you subtract one const X* pointer from another in
8022 an arm of an if-expression whose if-part is not a constant
8024 const char *g = "string";
8025 ccp = &g + (g ? g-g : 0);
8026 /* HPUX 7.0 cc rejects these. */
8029 ccp = (char const *const *) p;
8030 { /* SCO 3.2v4 cc rejects this. */
8032 char const *s = 0 ? (char *) 0 : (char const *) 0;
8037 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8039 const int *foo = &x[0];
8042 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8043 typedef const int *iptr;
8047 { /* AIX XL C 1.02.0.0 rejects this saying
8048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8049 struct s { int j; const int *ap[3]; };
8050 struct s *b; b->j = 5;
8052 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8056 return !x[0] && !zero.x;
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } &&
8077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078 { (case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_try") 2>&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_try") 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8108 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8109 if test $ac_cv_c_const = no; then
8111 cat >>confdefs.h <<\_ACEOF
8123 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8124 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8125 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8126 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <sys/types.h>
8148 rm -f conftest.$ac_objext
8149 if { (ac_try="$ac_compile"
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_compile") 2>conftest.er1
8157 grep -v '^ *+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_try") 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 eval "$as_ac_Header=yes"
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 eval "$as_ac_Header=no"
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 ac_res=`eval echo '${'$as_ac_Header'}'`
8193 { echo "$as_me:$LINENO: result: $ac_res" >&5
8194 echo "${ECHO_T}$ac_res" >&6; }
8195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8196 cat >>confdefs.h <<_ACEOF
8197 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8200 ac_header_dirent=$ac_hdr; break
8204 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8205 if test $ac_header_dirent = dirent.h; then
8206 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8207 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8208 if test "${ac_cv_search_opendir+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 ac_func_search_save_LIBS=$LIBS
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8219 /* Override any GCC internal prototype to avoid an error.
8220 Use char because int might match the return type of a GCC
8221 builtin and then its argument prototype would still apply. */
8234 for ac_lib in '' dir; do
8235 if test -z "$ac_lib"; then
8236 ac_res="none required"
8239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_link") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_search_opendir=$ac_res
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8283 rm -f core conftest.err conftest.$ac_objext \
8285 if test "${ac_cv_search_opendir+set}" = set; then
8289 if test "${ac_cv_search_opendir+set}" = set; then
8292 ac_cv_search_opendir=no
8295 LIBS=$ac_func_search_save_LIBS
8297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8299 ac_res=$ac_cv_search_opendir
8300 if test "$ac_res" != no; then
8301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8306 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8308 if test "${ac_cv_search_opendir+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 ac_func_search_save_LIBS=$LIBS
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8319 /* Override any GCC internal prototype to avoid an error.
8320 Use char because int might match the return type of a GCC
8321 builtin and then its argument prototype would still apply. */
8334 for ac_lib in '' x; do
8335 if test -z "$ac_lib"; then
8336 ac_res="none required"
8339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (ac_try="$ac_link"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_link") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_search_opendir=$ac_res
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8383 rm -f core conftest.err conftest.$ac_objext \
8385 if test "${ac_cv_search_opendir+set}" = set; then
8389 if test "${ac_cv_search_opendir+set}" = set; then
8392 ac_cv_search_opendir=no
8395 LIBS=$ac_func_search_save_LIBS
8397 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8398 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8399 ac_res=$ac_cv_search_opendir
8400 if test "$ac_res" != no; then
8401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8408 for ac_header in dlfcn.h
8410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_res=`eval echo '${'$as_ac_Header'}'`
8418 { echo "$as_me:$LINENO: result: $ac_res" >&5
8419 echo "${ECHO_T}$ac_res" >&6; }
8421 # Is the header compilable?
8422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 #include <$ac_header>
8433 rm -f conftest.$ac_objext
8434 if { (ac_try="$ac_compile"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_compile") 2>conftest.er1
8442 grep -v '^ *+' conftest.er1 >conftest.err
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest.$ac_objext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_header_compiler=yes
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8472 ac_header_compiler=no
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8477 echo "${ECHO_T}$ac_header_compiler" >&6; }
8479 # Is the header present?
8480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 #include <$ac_header>
8490 if { (ac_try="$ac_cpp conftest.$ac_ext"
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } >/dev/null; then
8503 if test -s conftest.err; then
8504 ac_cpp_err=$ac_c_preproc_warn_flag
8505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8512 if test -z "$ac_cpp_err"; then
8513 ac_header_preproc=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_header_preproc=no
8521 rm -f conftest.err conftest.$ac_ext
8522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6; }
8525 # So? What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8548 ## ------------------------------ ##
8549 ## Report this to bugs@yourdomain ##
8550 ## ------------------------------ ##
8552 ) | sed "s/^/$as_me: WARNING: /" >&2
8555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 eval "$as_ac_Header=\$ac_header_preproc"
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563 { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8568 cat >>confdefs.h <<_ACEOF
8569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8576 # Check whether --enable-ltdl-install was given.
8577 if test "${enable_ltdl_install+set}" = set; then
8578 enableval=$enable_ltdl_install;
8584 if test x"${enable_ltdl_install-no}" != xno; then
8586 INSTALL_LTDL_FALSE='#'
8588 INSTALL_LTDL_TRUE='#'
8594 if test x"${enable_ltdl_convenience-no}" != xno; then
8595 CONVENIENCE_LTDL_TRUE=
8596 CONVENIENCE_LTDL_FALSE='#'
8598 CONVENIENCE_LTDL_TRUE='#'
8599 CONVENIENCE_LTDL_FALSE=
8603 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8606 libname_spec='lib$name'
8614 shlibpath_overrides_runpath=unknown
8616 dynamic_linker="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618 if test "$GCC" = yes; then
8619 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621 # if the path contains ";" then we assume it to be the separator
8622 # otherwise default to the standard path separator (i.e. ":") - it is
8623 # assumed that no part of a normal pathname contains ";" but that should
8624 # okay in the real world where ";" in dirpaths is itself problematic.
8625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8630 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8632 need_lib_prefix=unknown
8633 hardcode_into_libs=no
8635 # when you set need_version to no, make sure it does not cause -set_version
8636 # flags to be left without arguments
8637 need_version=unknown
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643 shlibpath_var=LIBPATH
8645 # AIX 3 has no versioning support, so we append a major version to the name.
8646 soname_spec='${libname}${release}${shared_ext}$major'
8653 hardcode_into_libs=yes
8654 if test "$host_cpu" = ia64; then
8655 # AIX 5 supports IA64
8656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657 shlibpath_var=LD_LIBRARY_PATH
8659 # With GCC up to 2.95.x, collect2 would create an import file
8660 # for dependence libraries. The import file would start with
8661 # the line `#! .'. This would cause the generated library to
8662 # depend on `.', always an invalid library. This was fixed in
8663 # development snapshots of GCC prior to 3.0.
8665 aix4 | aix4.[01] | aix4.[01].*)
8666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8668 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676 # soname into executable. Probably we can add versioning support to
8677 # collect2, so additional links can be useful in future.
8678 if test "$aix_use_runtimelinking" = yes; then
8679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680 # instead of lib<name>.a to let people know that these are not
8681 # typical AIX shared libraries.
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684 # We preserve .a as extension for shared libraries through AIX4.2
8685 # and later when we are not doing run time linking.
8686 library_names_spec='${libname}${release}.a $libname.a'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8689 shlibpath_var=LIBPATH
8694 library_names_spec='$libname.ixlibrary $libname.a'
8695 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696 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'
8700 library_names_spec='${libname}${shared_ext}'
8701 dynamic_linker="$host_os ld.so"
8702 shlibpath_var=LIBRARY_PATH
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711 shlibpath_var=LD_LIBRARY_PATH
8712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714 # the default ld.so.conf also contains /usr/contrib/lib and
8715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716 # libtool to hard-code these into programs
8719 cygwin* | mingw* | pw32*)
8720 version_type=windows
8725 case $GCC,$host_os in
8726 yes,cygwin* | yes,mingw* | yes,pw32*)
8727 library_names_spec='$libname.dll.a'
8728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729 postinstall_cmds='base_file=`basename \${file}`~
8730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731 dldir=$destdir/`dirname \$dlpath`~
8732 test -d \$dldir || mkdir -p \$dldir~
8733 $install_prog $dir/$dlname \$dldir/$dlname~
8734 chmod a+x \$dldir/$dlname'
8735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736 dlpath=$dir/\$dldll~
8738 shlibpath_overrides_runpath=yes
8742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8747 # MinGW DLLs use traditional 'lib' prefix
8748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751 # It is most probably a Windows format PATH printed by
8752 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753 # path with ; separators, and with drive letters. We can handle the
8754 # drive letters (cygwin fileutils understands them), so leave them,
8755 # especially as we might pass files found there to a mingw objdump,
8756 # which wouldn't understand a cygwinified path. Ahh.
8757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8763 # pw32 DLLs use 'pw' prefix rather than 'lib'
8764 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8773 dynamic_linker='Win32 ld.exe'
8774 # FIXME: first we should search . and the directory the executable is in
8778 darwin* | rhapsody*)
8779 dynamic_linker="$host_os dyld"
8783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784 soname_spec='${libname}${release}${major}$shared_ext'
8785 shlibpath_overrides_runpath=yes
8786 shlibpath_var=DYLD_LIBRARY_PATH
8787 shrext_cmds='.dylib'
8788 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789 if test "$GCC" = yes; then
8790 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"`
8792 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8794 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 shlibpath_var=LD_LIBRARY_PATH
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8819 dynamic_linker='GNU ld.so'
8822 freebsd* | dragonfly*)
8823 # DragonFly does not have aout. When/if they implement a new
8824 # versioning mechanism, adjust this.
8825 if test -x /usr/bin/objformat; then
8826 objformat=`/usr/bin/objformat`
8829 freebsd[123].*) objformat=aout ;;
8833 version_type=freebsd-$objformat
8834 case $version_type in
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8845 shlibpath_var=LD_LIBRARY_PATH
8848 shlibpath_overrides_runpath=yes
8850 freebsd3.[01]* | freebsdelf3.[01]*)
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856 shlibpath_overrides_runpath=no
8857 hardcode_into_libs=yes
8859 freebsd*) # from 4.6 on
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8876 hpux9* | hpux10* | hpux11*)
8877 # Give a soname corresponding to the major version so that dld.sl refuses to
8878 # link against other versions.
8885 hardcode_into_libs=yes
8886 dynamic_linker="$host_os dld.so"
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 if test "X$HPUX_IA64_MODE" = X32; then
8892 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8911 dynamic_linker="$host_os dld.sl"
8912 shlibpath_var=SHLIB_PATH
8913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8918 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919 postinstall_cmds='chmod 555 $lib'
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=no
8931 hardcode_into_libs=yes
8934 irix5* | irix6* | nonstopux*)
8936 nonstopux*) version_type=nonstopux ;;
8938 if test "$lt_cv_prog_gnu_ld" = yes; then
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 irix5* | nonstopux*)
8953 case $LD in # libtool.m4 will add one of these switches to LD
8954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955 libsuff= shlibsuff= libmagic=32-bit;;
8956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957 libsuff=32 shlibsuff=N32 libmagic=N32;;
8958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960 *) libsuff= shlibsuff= libmagic=never-match;;
8964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965 shlibpath_overrides_runpath=no
8966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968 hardcode_into_libs=yes
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8976 # This must be Linux ELF.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 # This implies no fast_install, which is unacceptable.
8987 # Some rework will be needed to allow for fast_install
8988 # before this can be enabled.
8989 hardcode_into_libs=yes
8991 # Append ld.so.conf contents to the search path
8992 if test -f /etc/ld.so.conf; then
8993 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' ' '`
8994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8997 # We used to test for /lib/ld.so.1 and disable shared libraries on
8998 # powerpc, because MkLinux only supported shared libraries with the
8999 # GNU dynamic linker. Since this was broken with cross compilers,
9000 # most powerpc-linux boxes support dynamic linking these days and
9001 # people can always --disable-shared, the test was removed, and we
9002 # assume the GNU/Linux dynamic linker is in use.
9003 dynamic_linker='GNU/Linux ld.so'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=no
9014 hardcode_into_libs=yes
9015 dynamic_linker='GNU ld.so'
9022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025 dynamic_linker='NetBSD (a.out) ld.so'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 dynamic_linker='NetBSD ld.elf_so'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9055 sys_lib_dlsearch_path_spec="/usr/lib"
9057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9060 *) need_version=no ;;
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9067 openbsd2.[89] | openbsd2.[89].*)
9068 shlibpath_overrides_runpath=no
9071 shlibpath_overrides_runpath=yes
9075 shlibpath_overrides_runpath=yes
9080 libname_spec='$name'
9083 library_names_spec='$libname${shared_ext} $libname.a'
9084 dynamic_linker='OS/2 ld.exe'
9085 shlibpath_var=LIBPATH
9088 osf3* | osf4* | osf5*)
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9108 # ldd complains unless libraries are executable
9109 postinstall_cmds='chmod +x $lib'
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9118 if test "$with_gnu_ld" = yes; then
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 case $host_vendor in
9131 shlibpath_overrides_runpath=no
9133 export_dynamic_flag_spec='${wl}-Blargedynsym'
9134 runpath_var=LD_RUN_PATH
9142 shlibpath_overrides_runpath=no
9143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9149 if test -d /usr/nec ;then
9151 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9152 soname_spec='$libname${shared_ext}.$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9158 version_type=freebsd-elf
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 hardcode_into_libs=yes
9165 if test "$with_gnu_ld" = yes; then
9166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9167 shlibpath_overrides_runpath=no
9169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9170 shlibpath_overrides_runpath=yes
9173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9177 sys_lib_dlsearch_path_spec='/usr/lib'
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9191 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9192 echo "${ECHO_T}$dynamic_linker" >&6; }
9193 test "$dynamic_linker" = no && can_build_shared=no
9195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9196 if test "$GCC" = yes; then
9197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9201 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9202 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9203 if test "${libltdl_cv_shlibext+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 eval libltdl_cv_shlibext=$shrext_cmds
9211 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9212 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9213 if test -n "$libltdl_cv_shlibext"; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9222 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9223 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9224 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 libltdl_cv_shlibpath_var="$shlibpath_var"
9229 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9230 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9231 if test -n "$libltdl_cv_shlibpath_var"; then
9233 cat >>confdefs.h <<_ACEOF
9234 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9240 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9241 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9242 if test "${libltdl_cv_sys_search_path+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9247 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9248 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9249 if test -n "$libltdl_cv_sys_search_path"; then
9251 for dir in $libltdl_cv_sys_search_path; do
9252 if test -z "$sys_search_path"; then
9253 sys_search_path="$dir"
9255 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9259 cat >>confdefs.h <<_ACEOF
9260 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9265 { echo "$as_me:$LINENO: checking for objdir" >&5
9266 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_objdir+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 libltdl_cv_objdir="$objdir"
9271 if test -n "$objdir"; then
9274 rm -f .libs 2>/dev/null
9275 mkdir .libs 2>/dev/null
9276 if test -d .libs; then
9277 libltdl_cv_objdir=.libs
9279 # MS-DOS does not allow filenames that begin with a dot.
9280 libltdl_cv_objdir=_libs
9282 rmdir .libs 2>/dev/null
9286 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9287 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9289 cat >>confdefs.h <<_ACEOF
9290 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9298 # Check for command to grab the raw symbol name followed by C symbol from nm.
9299 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 # These are sane defaults that work on at least a few old systems.
9306 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9308 # Character class describing NM global symbol codes.
9309 symcode='[BCDEGRST]'
9311 # Regexp to match symbols that can be accessed directly from C.
9312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9314 # Transform an extracted symbol line into a proper C declaration
9315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9317 # Transform an extracted symbol line into symbol name and symbol address
9318 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'"
9320 # Define system-specific variables.
9325 cygwin* | mingw* | pw32*)
9326 symcode='[ABCDGISTW]'
9328 hpux*) # Its linker distinguishes data from code symbols
9329 if test "$host_cpu" = ia64; then
9330 symcode='[ABCDEGRST]'
9332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9333 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'"
9336 if test "$host_cpu" = ia64; then
9337 symcode='[ABCDGIRSTW]'
9338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9339 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'"
9343 symcode='[BCDEGRST]'
9346 symcode='[BCDEGQRST]'
9357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9365 # Handle CRLF in mingw tool chain
9369 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9373 # If we're using GNU nm, then use its standard symbol codes.
9374 case `$NM -V 2>&1` in
9375 *GNU* | *'with BFD'*)
9376 symcode='[ABCDGIRSTW]' ;;
9379 # Try without a prefix undercore, then with it.
9380 for ac_symprfx in "" "_"; do
9382 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9383 symxfrm="\\1 $ac_symprfx\\2 \\2"
9385 # Write the raw and C identifiers.
9386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9388 # Check to see that the pipe works correctly.
9392 cat > conftest.$ac_ext <<EOF
9397 void nm_test_func(){}
9401 int main(){nm_test_var='a';nm_test_func();return(0);}
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; then
9409 # Now try to grab the symbols.
9411 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9412 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && test -s "$nlist"; then
9416 # Try sorting and uniquifying the output.
9417 if sort "$nlist" | uniq > "$nlist"T; then
9418 mv -f "$nlist"T "$nlist"
9423 # Make sure that we snagged all the symbols we need.
9424 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9425 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9426 cat <<EOF > conftest.$ac_ext
9432 # Now generate the symbol file.
9433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9435 cat <<EOF >> conftest.$ac_ext
9436 #if defined (__STDC__) && __STDC__
9437 # define lt_ptr_t void *
9439 # define lt_ptr_t char *
9443 /* The mapping between symbol names and symbols. */
9448 lt_preloaded_symbols[] =
9451 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9452 cat <<\EOF >> conftest.$ac_ext
9460 # Now try linking the two files.
9461 mv conftest.$ac_objext conftstm.$ac_objext
9462 lt_save_LIBS="$LIBS"
9463 lt_save_CFLAGS="$CFLAGS"
9464 LIBS="conftstm.$ac_objext"
9465 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9473 LIBS="$lt_save_LIBS"
9474 CFLAGS="$lt_save_CFLAGS"
9476 echo "cannot find nm_test_func in $nlist" >&5
9479 echo "cannot find nm_test_var in $nlist" >&5
9482 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9485 echo "$progname: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9488 rm -f conftest* conftst*
9490 # Do not use the global_symbol_pipe unless it works.
9491 if test "$pipe_works" = yes; then
9494 lt_cv_sys_global_symbol_pipe=
9500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9501 lt_cv_sys_global_symbol_to_cdecl=
9503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9504 { echo "$as_me:$LINENO: result: failed" >&5
9505 echo "${ECHO_T}failed" >&6; }
9507 { echo "$as_me:$LINENO: result: ok" >&5
9508 echo "${ECHO_T}ok" >&6; }
9512 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9513 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9514 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9518 libltdl_cv_preloaded_symbols=yes
9520 libltdl_cv_preloaded_symbols=no
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9525 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9526 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_PRELOADED_SYMBOLS 1
9537 ac_cpp='$CPP $CPPFLAGS'
9538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9543 { echo "$as_me:$LINENO: checking for shl_load" >&5
9544 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9545 if test "${ac_cv_func_shl_load+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556 #define shl_load innocuous_shl_load
9558 /* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char shl_load (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9564 # include <limits.h>
9566 # include <assert.h>
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined __stub_shl_load || defined __stub___shl_load
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (ac_try="$ac_link"
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_link") 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9608 { (case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_try") 2>&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_try") 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_func_shl_load=yes
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_cv_func_shl_load=no
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9639 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9640 if test $ac_cv_func_shl_load = yes; then
9642 cat >>confdefs.h <<\_ACEOF
9643 #define HAVE_SHL_LOAD 1
9647 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9648 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9649 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 ac_check_lib_save_LIBS=$LIBS
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_link") 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9691 { (case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_try") 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_try") 2>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_cv_lib_dld_shl_load=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 ac_cv_lib_dld_shl_load=no
9718 rm -f core conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9724 if test $ac_cv_lib_dld_shl_load = yes; then
9726 cat >>confdefs.h <<\_ACEOF
9727 #define HAVE_SHL_LOAD 1
9730 LIBADD_DL="$LIBADD_DL -ldld"
9732 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9733 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_check_lib_save_LIBS=$LIBS
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_lib_dl_dlopen=yes
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_lib_dl_dlopen=no
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9809 if test $ac_cv_lib_dl_dlopen = yes; then
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_LIBDL 1
9815 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_link") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LIBDL 1
9873 libltdl_cv_func_dlopen="yes"
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9879 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9880 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 ac_check_lib_save_LIBS=$LIBS
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9892 /* Override any GCC internal prototype to avoid an error.
9893 Use char because int might match the return type of a GCC
9894 builtin and then its argument prototype would still apply. */
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_link") 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_try") 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_lib_svld_dlopen=yes
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_cv_lib_svld_dlopen=no
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9955 if test $ac_cv_lib_svld_dlopen = yes; then
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_LIBDL 1
9961 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9963 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9964 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_check_lib_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10007 { (case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_try") 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_try") 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_lib_dld_dld_link=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_cv_lib_dld_dld_link=no
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10038 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10039 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10040 if test $ac_cv_lib_dld_dld_link = yes; then
10042 cat >>confdefs.h <<\_ACEOF
10046 LIBADD_DL="$LIBADD_DL -ldld"
10048 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10049 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10050 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10061 #define _dyld_func_lookup innocuous__dyld_func_lookup
10063 /* System header to define __stub macros and hopefully few prototypes,
10064 which can conflict with char _dyld_func_lookup (); below.
10065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066 <limits.h> exists even on freestanding compilers. */
10069 # include <limits.h>
10071 # include <assert.h>
10074 #undef _dyld_func_lookup
10076 /* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10082 char _dyld_func_lookup ();
10083 /* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10093 return _dyld_func_lookup ();
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_func__dyld_func_lookup=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_func__dyld_func_lookup=no
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10143 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10144 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10145 if test $ac_cv_func__dyld_func_lookup = yes; then
10147 cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_DYLD 1
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10174 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10176 lt_save_LIBS="$LIBS"
10177 LIBS="$LIBS $LIBADD_DL"
10179 for ac_func in dlerror
10181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10195 #define $ac_func innocuous_$ac_func
10197 /* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char $ac_func (); below.
10199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10200 <limits.h> exists even on freestanding compilers. */
10203 # include <limits.h>
10205 # include <assert.h>
10210 /* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
10217 /* The GNU C library defines this for functions which it implements
10218 to always fail with ENOSYS. Some functions are actually named
10219 something starting with __ and the normal name is an alias. */
10220 #if defined __stub_$ac_func || defined __stub___$ac_func
10227 return $ac_func ();
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_link") 2>conftest.er1
10241 grep -v '^ *+' conftest.er1 >conftest.err
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } &&
10246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10247 { (case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_try") 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 eval "$as_ac_var=yes"
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 eval "$as_ac_var=no"
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10277 ac_res=`eval echo '${'$as_ac_var'}'`
10278 { echo "$as_me:$LINENO: result: $ac_res" >&5
10279 echo "${ECHO_T}$ac_res" >&6; }
10280 if test `eval echo '${'$as_ac_var'}'` = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10288 LIBS="$lt_save_LIBS"
10291 ac_cpp='$CPP $CPPFLAGS'
10292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10298 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10299 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10300 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 ac_cv_sys_symbol_underscore=no
10304 cat > conftest.$ac_ext <<EOF
10305 void nm_test_func(){}
10306 int main(){nm_test_func;return 0;}
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; then
10313 # Now try to grab the symbols.
10314 ac_nlist=conftest.nm
10315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && test -s "$ac_nlist"; then
10320 # See whether the symbols have a leading underscore.
10321 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10322 ac_cv_sys_symbol_underscore=yes
10324 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10327 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10331 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10334 echo "configure: failed program was:" >&5
10340 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10341 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10344 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10345 if test x"$libltdl_cv_func_dlopen" = xyes ||
10346 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10347 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10348 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10349 if test "${libltdl_cv_need_uscore+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 libltdl_cv_need_uscore=unknown
10354 LIBS="$LIBS $LIBADD_DL"
10355 if test "$cross_compiling" = yes; then :
10356 libltdl_cv_need_uscore=cross
10358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10359 lt_status=$lt_dlunknown
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10361 "configure"
10362 #include "confdefs.h"
10371 # define LT_DLGLOBAL RTLD_GLOBAL
10374 # define LT_DLGLOBAL DL_GLOBAL
10376 # define LT_DLGLOBAL 0
10380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10381 find out it does not work in some platform. */
10382 #ifndef LT_DLLAZY_OR_NOW
10384 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10387 # define LT_DLLAZY_OR_NOW DL_LAZY
10390 # define LT_DLLAZY_OR_NOW RTLD_NOW
10393 # define LT_DLLAZY_OR_NOW DL_NOW
10395 # define LT_DLLAZY_OR_NOW 0
10403 extern "C" void exit (int);
10406 void fnord() { int i=42;}
10409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10410 int status = $lt_dlunknown;
10414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10416 /* dlclose (self); */
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10429 (./conftest; exit; ) >&5 2>/dev/null
10431 case x$lt_status in
10432 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10433 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10434 x$lt_dlunknown|x*) ;;
10437 # compilation failed
10446 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10447 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10451 if test x"$libltdl_cv_need_uscore" = xyes; then
10453 cat >>confdefs.h <<\_ACEOF
10454 #define NEED_USCORE 1
10460 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10461 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10462 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 # PORTME does your system automatically load deplibs for dlopen?
10466 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10467 # For now, we just catch OSes we know something about -- in the
10468 # future, we'll try test this programmatically.
10469 libltdl_cv_sys_dlopen_deplibs=unknown
10471 aix3*|aix4.1.*|aix4.2.*)
10472 # Unknown whether this is true for these versions of AIX, but
10473 # we want this `case' here to explicitly catch those versions.
10474 libltdl_cv_sys_dlopen_deplibs=unknown
10477 libltdl_cv_sys_dlopen_deplibs=yes
10480 # Assuming the user has installed a libdl from somewhere, this is true
10481 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10482 libltdl_cv_sys_dlopen_deplibs=yes
10484 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10485 # GNU and its variants, using gnu ld.so (Glibc)
10486 libltdl_cv_sys_dlopen_deplibs=yes
10489 libltdl_cv_sys_dlopen_deplibs=yes
10492 libltdl_cv_sys_dlopen_deplibs=yes
10494 irix[12345]*|irix6.[01]*)
10495 # Catch all versions of IRIX before 6.2, and indicate that we don't
10496 # know how it worked for any of those versions.
10497 libltdl_cv_sys_dlopen_deplibs=unknown
10500 # The case above catches anything before 6.2, and it's known that
10501 # at 6.2 and later dlopen does load deplibs.
10502 libltdl_cv_sys_dlopen_deplibs=yes
10505 libltdl_cv_sys_dlopen_deplibs=yes
10508 libltdl_cv_sys_dlopen_deplibs=yes
10511 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10512 # it did *not* use an RPATH in a shared library to find objects the
10513 # library depends on, so we explicitly say `no'.
10514 libltdl_cv_sys_dlopen_deplibs=no
10516 osf5.0|osf5.0a|osf5.1)
10517 # dlopen *does* load deplibs and with the right loader patch applied
10518 # it even uses RPATH in a shared library to search for shared objects
10519 # that the library depends on, but there's no easy way to know if that
10520 # patch is installed. Since this is the case, all we can really
10521 # say is unknown -- it depends on the patch being installed. If
10522 # it is, this changes to `yes'. Without it, it would be `no'.
10523 libltdl_cv_sys_dlopen_deplibs=unknown
10526 # the two cases above should catch all versions of osf <= 5.1. Read
10527 # the comments above for what we know about them.
10528 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10529 # is used to find them so we can finally say `yes'.
10530 libltdl_cv_sys_dlopen_deplibs=yes
10533 libltdl_cv_sys_dlopen_deplibs=yes
10535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10536 libltdl_cv_sys_dlopen_deplibs=yes
10541 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10542 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10543 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define LTDL_DLOPEN_DEPLIBS 1
10552 for ac_header in argz.h
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 ac_res=`eval echo '${'$as_ac_Header'}'`
10562 { echo "$as_me:$LINENO: result: $ac_res" >&5
10563 echo "${ECHO_T}$ac_res" >&6; }
10565 # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 $ac_includes_default
10575 #include <$ac_header>
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10592 { (case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_try") 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try='test -s conftest.$ac_objext'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_header_compiler=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_header_compiler=no
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6; }
10623 # Is the header present?
10624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <$ac_header>
10634 if { (ac_try="$ac_cpp conftest.$ac_ext"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10642 grep -v '^ *+' conftest.er1 >conftest.err
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } >/dev/null; then
10647 if test -s conftest.err; then
10648 ac_cpp_err=$ac_c_preproc_warn_flag
10649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10656 if test -z "$ac_cpp_err"; then
10657 ac_header_preproc=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_header_preproc=no
10665 rm -f conftest.err conftest.$ac_ext
10666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10667 echo "${ECHO_T}$ac_header_preproc" >&6; }
10669 # So? What about this header?
10670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10676 ac_header_preproc=yes
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10692 ## ------------------------------ ##
10693 ## Report this to bugs@yourdomain ##
10694 ## ------------------------------ ##
10696 ) | sed "s/^/$as_me: WARNING: /" >&2
10699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 eval "$as_ac_Header=\$ac_header_preproc"
10706 ac_res=`eval echo '${'$as_ac_Header'}'`
10707 { echo "$as_me:$LINENO: result: $ac_res" >&5
10708 echo "${ECHO_T}$ac_res" >&6; }
10711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10712 cat >>confdefs.h <<_ACEOF
10713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10721 { echo "$as_me:$LINENO: checking for error_t" >&5
10722 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10723 if test "${ac_cv_type_error_t+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10736 typedef error_t ac__type_new_;
10740 if ((ac__type_new_ *) 0)
10742 if (sizeof (ac__type_new_))
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_compile") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_type_error_t=yes
10784 echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 ac_cv_type_error_t=no
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10793 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10794 if test $ac_cv_type_error_t = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_ERROR_T 1
10803 cat >>confdefs.h <<\_ACEOF
10804 #define error_t int
10815 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10831 #define $ac_func innocuous_$ac_func
10833 /* System header to define __stub macros and hopefully few prototypes,
10834 which can conflict with char $ac_func (); below.
10835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 <limits.h> exists even on freestanding compilers. */
10839 # include <limits.h>
10841 # include <assert.h>
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined __stub_$ac_func || defined __stub___$ac_func
10863 return $ac_func ();
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 eval "$as_ac_var=yes"
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 eval "$as_ac_var=no"
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10913 ac_res=`eval echo '${'$as_ac_var'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 if test `eval echo '${'$as_ac_var'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10951 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 ac_res=`eval echo '${'$as_ac_Header'}'`
10962 { echo "$as_me:$LINENO: result: $ac_res" >&5
10963 echo "${ECHO_T}$ac_res" >&6; }
10965 # Is the header compilable?
10966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 $ac_includes_default
10975 #include <$ac_header>
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1 >conftest.err
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest.$ac_objext'
11002 { (case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_try") 2>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_header_compiler=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_compiler=no
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11021 echo "${ECHO_T}$ac_header_compiler" >&6; }
11023 # Is the header present?
11024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 #include <$ac_header>
11034 if { (ac_try="$ac_cpp conftest.$ac_ext"
11035 case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11042 grep -v '^ *+' conftest.er1 >conftest.err
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } >/dev/null; then
11047 if test -s conftest.err; then
11048 ac_cpp_err=$ac_c_preproc_warn_flag
11049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11056 if test -z "$ac_cpp_err"; then
11057 ac_header_preproc=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_header_preproc=no
11065 rm -f conftest.err conftest.$ac_ext
11066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11067 echo "${ECHO_T}$ac_header_preproc" >&6; }
11069 # So? What about this header?
11070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11076 ac_header_preproc=yes
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11092 ## ------------------------------ ##
11093 ## Report this to bugs@yourdomain ##
11094 ## ------------------------------ ##
11096 ) | sed "s/^/$as_me: WARNING: /" >&2
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 eval "$as_ac_Header=\$ac_header_preproc"
11106 ac_res=`eval echo '${'$as_ac_Header'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11112 cat >>confdefs.h <<_ACEOF
11113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11124 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 ac_res=`eval echo '${'$as_ac_Header'}'`
11134 { echo "$as_me:$LINENO: result: $ac_res" >&5
11135 echo "${ECHO_T}$ac_res" >&6; }
11137 # Is the header compilable?
11138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <$ac_header>
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_compile") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_header_compiler=yes
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_header_compiler=no
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11193 echo "${ECHO_T}$ac_header_compiler" >&6; }
11195 # Is the header present?
11196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <$ac_header>
11206 if { (ac_try="$ac_cpp conftest.$ac_ext"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11214 grep -v '^ *+' conftest.er1 >conftest.err
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } >/dev/null; then
11219 if test -s conftest.err; then
11220 ac_cpp_err=$ac_c_preproc_warn_flag
11221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11228 if test -z "$ac_cpp_err"; then
11229 ac_header_preproc=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_header_preproc=no
11237 rm -f conftest.err conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6; }
11241 # So? What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248 ac_header_preproc=yes
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11264 ## ------------------------------ ##
11265 ## Report this to bugs@yourdomain ##
11266 ## ------------------------------ ##
11268 ) | sed "s/^/$as_me: WARNING: /" >&2
11271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 eval "$as_ac_Header=\$ac_header_preproc"
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284 cat >>confdefs.h <<_ACEOF
11285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 for ac_header in string.h strings.h
11296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11307 # Is the header compilable?
11308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11317 #include <$ac_header>
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try='test -s conftest.$ac_objext'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_header_compiler=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_compiler=no
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11363 echo "${ECHO_T}$ac_header_compiler" >&6; }
11365 # Is the header present?
11366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 #include <$ac_header>
11376 if { (ac_try="$ac_cpp conftest.$ac_ext"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } >/dev/null; then
11389 if test -s conftest.err; then
11390 ac_cpp_err=$ac_c_preproc_warn_flag
11391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11398 if test -z "$ac_cpp_err"; then
11399 ac_header_preproc=yes
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 ac_header_preproc=no
11407 rm -f conftest.err conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11409 echo "${ECHO_T}$ac_header_preproc" >&6; }
11411 # So? What about this header?
11412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11418 ac_header_preproc=yes
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434 ## ------------------------------ ##
11435 ## Report this to bugs@yourdomain ##
11436 ## ------------------------------ ##
11438 ) | sed "s/^/$as_me: WARNING: /" >&2
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 eval "$as_ac_Header=\$ac_header_preproc"
11448 ac_res=`eval echo '${'$as_ac_Header'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11454 cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11465 for ac_func in strchr index
11467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11481 #define $ac_func innocuous_$ac_func
11483 /* System header to define __stub macros and hopefully few prototypes,
11484 which can conflict with char $ac_func (); below.
11485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11486 <limits.h> exists even on freestanding compilers. */
11489 # include <limits.h>
11491 # include <assert.h>
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11503 /* The GNU C library defines this for functions which it implements
11504 to always fail with ENOSYS. Some functions are actually named
11505 something starting with __ and the normal name is an alias. */
11506 #if defined __stub_$ac_func || defined __stub___$ac_func
11513 return $ac_func ();
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_link") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_try") 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest$ac_exeext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 eval "$as_ac_var=yes"
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11557 eval "$as_ac_var=no"
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11563 ac_res=`eval echo '${'$as_ac_var'}'`
11564 { echo "$as_me:$LINENO: result: $ac_res" >&5
11565 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_var'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11576 for ac_func in strrchr rindex
11578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 cat >conftest.$ac_ext <<_ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11592 #define $ac_func innocuous_$ac_func
11594 /* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func (); below.
11596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597 <limits.h> exists even on freestanding compilers. */
11600 # include <limits.h>
11602 # include <assert.h>
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11614 /* The GNU C library defines this for functions which it implements
11615 to always fail with ENOSYS. Some functions are actually named
11616 something starting with __ and the normal name is an alias. */
11617 #if defined __stub_$ac_func || defined __stub___$ac_func
11624 return $ac_func ();
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (ac_try="$ac_link"
11631 case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_link") 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644 { (case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_try") 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_try") 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 eval "$as_ac_var=yes"
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11674 ac_res=`eval echo '${'$as_ac_var'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11687 for ac_func in memcpy bcopy
11689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11711 # include <limits.h>
11713 # include <assert.h>
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11735 return $ac_func ();
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_link") 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; } &&
11764 { ac_try='test -s conftest$ac_exeext'
11765 { (case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_try") 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 eval "$as_ac_var=yes"
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11779 eval "$as_ac_var=no"
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11785 ac_res=`eval echo '${'$as_ac_var'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 for ac_func in memmove strcmp
11800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814 #define $ac_func innocuous_$ac_func
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char $ac_func (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
11822 # include <limits.h>
11824 # include <assert.h>
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined __stub_$ac_func || defined __stub___$ac_func
11846 return $ac_func ();
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_link") 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_try") 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 eval "$as_ac_var=yes"
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 eval "$as_ac_var=no"
11893 rm -f core conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
11896 ac_res=`eval echo '${'$as_ac_var'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_var'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910 for ac_func in closedir opendir readdir
11912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11926 #define $ac_func innocuous_$ac_func
11928 /* System header to define __stub macros and hopefully few prototypes,
11929 which can conflict with char $ac_func (); below.
11930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931 <limits.h> exists even on freestanding compilers. */
11934 # include <limits.h>
11936 # include <assert.h>
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11948 /* The GNU C library defines this for functions which it implements
11949 to always fail with ENOSYS. Some functions are actually named
11950 something starting with __ and the normal name is an alias. */
11951 #if defined __stub_$ac_func || defined __stub___$ac_func
11958 return $ac_func ();
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_try") 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest$ac_exeext'
11988 { (case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_try") 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 eval "$as_ac_var=yes"
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 eval "$as_ac_var=no"
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12008 ac_res=`eval echo '${'$as_ac_var'}'`
12009 { echo "$as_me:$LINENO: result: $ac_res" >&5
12010 echo "${ECHO_T}$ac_res" >&6; }
12011 if test `eval echo '${'$as_ac_var'}'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12021 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12022 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12035 if test "$GCC" != "yes" && test "$ICC" != "yes"
12037 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12038 echo "$as_me: error: gcc|icc required but not found" >&2;}
12039 { (exit 1); exit 1; }; }
12042 if test "$GXX" != "yes" && test "$IXX" != "yes"
12044 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12045 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12046 { (exit 1); exit 1; }; }
12049 if test "$GCC" = "yes"
12051 cat >conftest.$ac_ext <<_ACEOF
12052 #if !defined(__GNUC__) || __GNUC__ < 3
12053 #error Unsupported GCC version
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_compile") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12093 echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12096 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12097 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12098 { (exit 1); exit 1; }; }
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 if test -z "$llvm_cv_gnu_make_command"
12106 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12107 echo "$as_me: error: GNU Make required but not found" >&2;}
12108 { (exit 1); exit 1; }; }
12111 { echo "$as_me:$LINENO: result: ok" >&5
12112 echo "${ECHO_T}ok" >&6; }
12114 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12115 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12116 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12118 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12120 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12122 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12123 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12127 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12128 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12129 if test "${ac_cv_lib_m_sin+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 ac_check_lib_save_LIBS=$LIBS
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12156 rm -f conftest.$ac_objext conftest$ac_exeext
12157 if { (ac_try="$ac_link"
12158 case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_link") 2>conftest.er1
12165 grep -v '^ *+' conftest.er1 >conftest.err
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12171 { (case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_try") 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; } &&
12180 { ac_try='test -s conftest$ac_exeext'
12181 { (case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_try") 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 ac_cv_lib_m_sin=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12203 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12204 if test $ac_cv_lib_m_sin = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_LIBM 1
12213 if test "$llvm_cv_os_type" = "MingW" ; then
12215 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12216 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12217 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-limagehlp $LIBS"
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1 >conftest.err
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253 { (case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 ac_cv_lib_imagehlp_main=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12277 ac_cv_lib_imagehlp_main=no
12280 rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12285 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12286 if test $ac_cv_lib_imagehlp_main = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBIMAGEHLP 1
12291 LIBS="-limagehlp $LIBS"
12296 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12297 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12298 if test "${ac_cv_lib_psapi_main+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-lpsapi $LIBS"
12303 cat >conftest.$ac_ext <<_ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (ac_try="$ac_link"
12321 case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_link") 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12334 { (case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_try") 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_try") 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_lib_psapi_main=yes
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 ac_cv_lib_psapi_main=no
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12366 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12367 if test $ac_cv_lib_psapi_main = yes; then
12368 cat >>confdefs.h <<_ACEOF
12369 #define HAVE_LIBPSAPI 1
12372 LIBS="-lpsapi $LIBS"
12378 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12379 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12380 if test "${ac_cv_search_dlopen+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_func_search_save_LIBS=$LIBS
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12406 for ac_lib in '' dl; do
12407 if test -z "$ac_lib"; then
12408 ac_res="none required"
12411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_search_dlopen=$ac_res
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12455 rm -f core conftest.err conftest.$ac_objext \
12457 if test "${ac_cv_search_dlopen+set}" = set; then
12461 if test "${ac_cv_search_dlopen+set}" = set; then
12464 ac_cv_search_dlopen=no
12466 rm conftest.$ac_ext
12467 LIBS=$ac_func_search_save_LIBS
12469 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12470 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12471 ac_res=$ac_cv_search_dlopen
12472 if test "$ac_res" != no; then
12473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_DLOPEN 1
12480 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12481 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12485 if test "$llvm_cv_enable_libffi" = "yes" ; then
12486 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12487 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12488 if test "${ac_cv_search_ffi_call+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 ac_func_search_save_LIBS=$LIBS
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12509 return ffi_call ();
12514 for ac_lib in '' ffi; do
12515 if test -z "$ac_lib"; then
12516 ac_res="none required"
12519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_link") 2>conftest.er1
12530 grep -v '^ *+' conftest.er1 >conftest.err
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536 { (case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_try") 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
12546 { (case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_try") 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_search_ffi_call=$ac_res
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12563 rm -f core conftest.err conftest.$ac_objext \
12565 if test "${ac_cv_search_ffi_call+set}" = set; then
12569 if test "${ac_cv_search_ffi_call+set}" = set; then
12572 ac_cv_search_ffi_call=no
12574 rm conftest.$ac_ext
12575 LIBS=$ac_func_search_save_LIBS
12577 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12578 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12579 ac_res=$ac_cv_search_ffi_call
12580 if test "$ac_res" != no; then
12581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_FFI_CALL 1
12588 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12589 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12590 { (exit 1); exit 1; }; }
12595 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12596 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12597 if test "${ac_cv_search_mallinfo+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 ac_func_search_save_LIBS=$LIBS
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12608 /* Override any GCC internal prototype to avoid an error.
12609 Use char because int might match the return type of a GCC
12610 builtin and then its argument prototype would still apply. */
12618 return mallinfo ();
12623 for ac_lib in '' malloc; do
12624 if test -z "$ac_lib"; then
12625 ac_res="none required"
12628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_link") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_try") 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_cv_search_mallinfo=$ac_res
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12672 rm -f core conftest.err conftest.$ac_objext \
12674 if test "${ac_cv_search_mallinfo+set}" = set; then
12678 if test "${ac_cv_search_mallinfo+set}" = set; then
12681 ac_cv_search_mallinfo=no
12683 rm conftest.$ac_ext
12684 LIBS=$ac_func_search_save_LIBS
12686 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12687 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12688 ac_res=$ac_cv_search_mallinfo
12689 if test "$ac_res" != no; then
12690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_MALLINFO 1
12699 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12701 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12702 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12703 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lpthread $LIBS"
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12721 char pthread_mutex_init ();
12725 return pthread_mutex_init ();
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737 (eval "$ac_link") 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_try") 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_lib_pthread_pthread_mutex_init=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_cv_lib_pthread_pthread_mutex_init=no
12772 rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12777 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12778 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12779 cat >>confdefs.h <<_ACEOF
12780 #define HAVE_LIBPTHREAD 1
12783 LIBS="-lpthread $LIBS"
12787 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12788 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12789 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 ac_func_search_save_LIBS=$LIBS
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12800 /* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12806 char pthread_mutex_lock ();
12810 return pthread_mutex_lock ();
12815 for ac_lib in '' pthread; do
12816 if test -z "$ac_lib"; then
12817 ac_res="none required"
12820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_search_pthread_mutex_lock=$ac_res
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12864 rm -f core conftest.err conftest.$ac_objext \
12866 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12870 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12873 ac_cv_search_pthread_mutex_lock=no
12875 rm conftest.$ac_ext
12876 LIBS=$ac_func_search_save_LIBS
12878 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12879 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12880 ac_res=$ac_cv_search_pthread_mutex_lock
12881 if test "$ac_res" != no; then
12882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_PTHREAD_MUTEX_LOCK 1
12890 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12891 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12909 char pthread_rwlock_init ();
12913 return pthread_rwlock_init ();
12918 for ac_lib in '' pthread; do
12919 if test -z "$ac_lib"; then
12920 ac_res="none required"
12923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_search_pthread_rwlock_init=$ac_res
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12967 rm -f core conftest.err conftest.$ac_objext \
12969 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12973 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12976 ac_cv_search_pthread_rwlock_init=no
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12983 ac_res=$ac_cv_search_pthread_rwlock_init
12984 if test "$ac_res" != no; then
12985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_RWLOCK_INIT 1
12993 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12994 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13012 char pthread_getspecific ();
13016 return pthread_getspecific ();
13021 for ac_lib in '' pthread; do
13022 if test -z "$ac_lib"; then
13023 ac_res="none required"
13026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_try") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_search_pthread_getspecific=$ac_res
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13070 rm -f core conftest.err conftest.$ac_objext \
13072 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13076 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13079 ac_cv_search_pthread_getspecific=no
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13085 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13086 ac_res=$ac_cv_search_pthread_getspecific
13087 if test "$ac_res" != no; then
13088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_PTHREAD_GETSPECIFIC 1
13099 # Check whether --with-udis86 was given.
13100 if test "${with_udis86+set}" = set; then
13101 withval=$with_udis86;
13106 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13109 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13110 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13111 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ludis86 $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_link") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_lib_udis86_ud_init=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_cv_lib_udis86_ud_init=no
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13184 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13185 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13186 if test $ac_cv_lib_udis86_ud_init = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define HAVE_LIBUDIS86 1
13191 LIBS="-ludis86 $LIBS"
13195 echo "Error! You need to have libudis86 around."
13207 cat >>confdefs.h <<_ACEOF
13208 #define USE_UDIS86 $USE_UDIS86
13213 # Check whether --with-oprofile was given.
13214 if test "${with_oprofile+set}" = set; then
13215 withval=$with_oprofile;
13219 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13220 no) llvm_cv_oppath=
13223 *) llvm_cv_oppath="${withval}/lib/oprofile"
13224 CPPFLAGS="-I${withval}/include";;
13226 if test -n "$llvm_cv_oppath" ; then
13227 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13228 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13229 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13230 if test "${ac_cv_search_bfd_init+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 ac_func_search_save_LIBS=$LIBS
13234 cat >conftest.$ac_ext <<_ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13241 /* Override any GCC internal prototype to avoid an error.
13242 Use char because int might match the return type of a GCC
13243 builtin and then its argument prototype would still apply. */
13251 return bfd_init ();
13256 for ac_lib in '' bfd; do
13257 if test -z "$ac_lib"; then
13258 ac_res="none required"
13261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (ac_try="$ac_link"
13265 case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_link") 2>conftest.er1
13272 grep -v '^ *+' conftest.er1 >conftest.err
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } &&
13277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13278 { (case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_try") 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 ac_cv_search_bfd_init=$ac_res
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13305 rm -f core conftest.err conftest.$ac_objext \
13307 if test "${ac_cv_search_bfd_init+set}" = set; then
13311 if test "${ac_cv_search_bfd_init+set}" = set; then
13314 ac_cv_search_bfd_init=no
13316 rm conftest.$ac_ext
13317 LIBS=$ac_func_search_save_LIBS
13319 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13320 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13321 ac_res=$ac_cv_search_bfd_init
13322 if test "$ac_res" != no; then
13323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13327 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13328 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13329 if test "${ac_cv_search_op_open_agent+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 ac_func_search_save_LIBS=$LIBS
13333 cat >conftest.$ac_ext <<_ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h. */
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13346 char op_open_agent ();
13350 return op_open_agent ();
13355 for ac_lib in '' opagent; do
13356 if test -z "$ac_lib"; then
13357 ac_res="none required"
13360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_link") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; } &&
13386 { ac_try='test -s conftest$ac_exeext'
13387 { (case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_try") 2>&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
13396 ac_cv_search_op_open_agent=$ac_res
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13404 rm -f core conftest.err conftest.$ac_objext \
13406 if test "${ac_cv_search_op_open_agent+set}" = set; then
13410 if test "${ac_cv_search_op_open_agent+set}" = set; then
13413 ac_cv_search_op_open_agent=no
13415 rm conftest.$ac_ext
13416 LIBS=$ac_func_search_save_LIBS
13418 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13419 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13420 ac_res=$ac_cv_search_op_open_agent
13421 if test "$ac_res" != no; then
13422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13426 echo "Error! You need to have libopagent around."
13431 if test "${ac_cv_header_opagent_h+set}" = set; then
13432 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13433 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13434 if test "${ac_cv_header_opagent_h+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13438 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13440 # Is the header compilable?
13441 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13442 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 $ac_includes_default
13450 #include <opagent.h>
13452 rm -f conftest.$ac_objext
13453 if { (ac_try="$ac_compile"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_compile") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_header_compiler=yes
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13491 ac_header_compiler=no
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13496 echo "${ECHO_T}$ac_header_compiler" >&6; }
13498 # Is the header present?
13499 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13500 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13507 #include <opagent.h>
13509 if { (ac_try="$ac_cpp conftest.$ac_ext"
13510 case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13517 grep -v '^ *+' conftest.er1 >conftest.err
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } >/dev/null; then
13522 if test -s conftest.err; then
13523 ac_cpp_err=$ac_c_preproc_warn_flag
13524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13531 if test -z "$ac_cpp_err"; then
13532 ac_header_preproc=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_header_preproc=no
13540 rm -f conftest.err conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13542 echo "${ECHO_T}$ac_header_preproc" >&6; }
13544 # So? What about this header?
13545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13548 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13550 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13551 ac_header_preproc=yes
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13555 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13557 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13559 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13561 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13563 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13565 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13567 ## ------------------------------ ##
13568 ## Report this to bugs@yourdomain ##
13569 ## ------------------------------ ##
13571 ) | sed "s/^/$as_me: WARNING: /" >&2
13574 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576 if test "${ac_cv_header_opagent_h+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 ac_cv_header_opagent_h=$ac_header_preproc
13581 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13582 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13585 if test $ac_cv_header_opagent_h = yes; then
13589 echo "Error! You need to have opagent.h around."
13605 cat >>confdefs.h <<_ACEOF
13606 #define USE_OPROFILE $USE_OPROFILE
13616 ac_header_dirent=no
13617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13618 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13619 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13620 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 #include <sys/types.h>
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } &&
13656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657 { (case "(($ac_try" in
13658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659 *) ac_try_echo=$ac_try;;
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662 (eval "$ac_try") 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_try") 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 eval "$as_ac_Header=yes"
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 eval "$as_ac_Header=no"
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 ac_res=`eval echo '${'$as_ac_Header'}'`
13687 { echo "$as_me:$LINENO: result: $ac_res" >&5
13688 echo "${ECHO_T}$ac_res" >&6; }
13689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13690 cat >>confdefs.h <<_ACEOF
13691 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13694 ac_header_dirent=$ac_hdr; break
13698 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13699 if test $ac_header_dirent = dirent.h; then
13700 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13701 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13702 if test "${ac_cv_search_opendir+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 ac_func_search_save_LIBS=$LIBS
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 /* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
13728 for ac_lib in '' dir; do
13729 if test -z "$ac_lib"; then
13730 ac_res="none required"
13733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_link") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_search_opendir=$ac_res
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13777 rm -f core conftest.err conftest.$ac_objext \
13779 if test "${ac_cv_search_opendir+set}" = set; then
13783 if test "${ac_cv_search_opendir+set}" = set; then
13786 ac_cv_search_opendir=no
13788 rm conftest.$ac_ext
13789 LIBS=$ac_func_search_save_LIBS
13791 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13792 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13793 ac_res=$ac_cv_search_opendir
13794 if test "$ac_res" != no; then
13795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_opendir+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13813 /* Override any GCC internal prototype to avoid an error.
13814 Use char because int might match the return type of a GCC
13815 builtin and then its argument prototype would still apply. */
13828 for ac_lib in '' x; do
13829 if test -z "$ac_lib"; then
13830 ac_res="none required"
13833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_try") 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
13860 { (case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_try") 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_search_opendir=$ac_res
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13877 rm -f core conftest.err conftest.$ac_objext \
13879 if test "${ac_cv_search_opendir+set}" = set; then
13883 if test "${ac_cv_search_opendir+set}" = set; then
13886 ac_cv_search_opendir=no
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13892 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13893 ac_res=$ac_cv_search_opendir
13894 if test "$ac_res" != no; then
13895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13901 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13902 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_mmap_anon+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_cpp='$CPP $CPPFLAGS'
13908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <sys/mman.h>
13919 #include <unistd.h>
13924 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_compile") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944 { (case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_try") 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_cv_header_mmap_anon=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_cv_header_mmap_anon=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 ac_cpp='$CPP $CPPFLAGS'
13974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13980 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13981 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13982 if test "$ac_cv_header_mmap_anon" = yes; then
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_MMAP_ANONYMOUS 1
13990 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13991 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13992 if test "${ac_cv_header_stat_broken+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <sys/types.h>
14002 #include <sys/stat.h>
14004 #if defined S_ISBLK && defined S_IFDIR
14005 # if S_ISBLK (S_IFDIR)
14010 #if defined S_ISBLK && defined S_IFCHR
14011 # if S_ISBLK (S_IFCHR)
14016 #if defined S_ISLNK && defined S_IFREG
14017 # if S_ISLNK (S_IFREG)
14022 #if defined S_ISSOCK && defined S_IFREG
14023 # if S_ISSOCK (S_IFREG)
14029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14030 $EGREP "You lose" >/dev/null 2>&1; then
14031 ac_cv_header_stat_broken=yes
14033 ac_cv_header_stat_broken=no
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14039 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14040 if test $ac_cv_header_stat_broken = yes; then
14042 cat >>confdefs.h <<\_ACEOF
14043 #define STAT_MACROS_BROKEN 1
14048 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14049 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14050 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <sys/types.h>
14060 #include <sys/wait.h>
14061 #ifndef WEXITSTATUS
14062 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14065 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14073 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14093 { (case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_try") 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_try") 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_cv_header_sys_wait_h=yes
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_cv_header_sys_wait_h=no
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14123 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14124 if test $ac_cv_header_sys_wait_h = yes; then
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_SYS_WAIT_H 1
14132 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14133 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14134 if test "${ac_cv_header_time+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 #include <sys/types.h>
14144 #include <sys/time.h>
14150 if ((struct tm *) 0)
14156 rm -f conftest.$ac_objext
14157 if { (ac_try="$ac_compile"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_compile") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_header_time=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 ac_cv_header_time=no
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14201 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14202 if test $ac_cv_header_time = yes; then
14204 cat >>confdefs.h <<\_ACEOF
14205 #define TIME_WITH_SYS_TIME 1
14217 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 ac_res=`eval echo '${'$as_ac_Header'}'`
14227 { echo "$as_me:$LINENO: result: $ac_res" >&5
14228 echo "${ECHO_T}$ac_res" >&6; }
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <$ac_header>
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14251 grep -v '^ *+' conftest.er1 >conftest.err
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
14256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14257 { (case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_try") 2>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_header_compiler=yes
14278 echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_header_compiler=no
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 echo "${ECHO_T}$ac_header_compiler" >&6; }
14288 # Is the header present?
14289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <$ac_header>
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } >/dev/null; then
14312 if test -s conftest.err; then
14313 ac_cpp_err=$ac_c_preproc_warn_flag
14314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14321 if test -z "$ac_cpp_err"; then
14322 ac_header_preproc=yes
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_preproc=no
14330 rm -f conftest.err conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6; }
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14341 ac_header_preproc=yes
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14357 ## ------------------------------ ##
14358 ## Report this to bugs@yourdomain ##
14359 ## ------------------------------ ##
14361 ) | sed "s/^/$as_me: WARNING: /" >&2
14364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 eval "$as_ac_Header=\$ac_header_preproc"
14371 ac_res=`eval echo '${'$as_ac_Header'}'`
14372 { echo "$as_me:$LINENO: result: $ac_res" >&5
14373 echo "${ECHO_T}$ac_res" >&6; }
14376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14377 cat >>confdefs.h <<_ACEOF
14378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14391 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 ac_res=`eval echo '${'$as_ac_Header'}'`
14401 { echo "$as_me:$LINENO: result: $ac_res" >&5
14402 echo "${ECHO_T}$ac_res" >&6; }
14404 # Is the header compilable?
14405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 $ac_includes_default
14414 #include <$ac_header>
14416 rm -f conftest.$ac_objext
14417 if { (ac_try="$ac_compile"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_compile") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest.$ac_objext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_header_compiler=yes
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_header_compiler=no
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14460 echo "${ECHO_T}$ac_header_compiler" >&6; }
14462 # Is the header present?
14463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14465 cat >conftest.$ac_ext <<_ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 #include <$ac_header>
14473 if { (ac_try="$ac_cpp conftest.$ac_ext"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } >/dev/null; then
14486 if test -s conftest.err; then
14487 ac_cpp_err=$ac_c_preproc_warn_flag
14488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14495 if test -z "$ac_cpp_err"; then
14496 ac_header_preproc=yes
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14501 ac_header_preproc=no
14504 rm -f conftest.err conftest.$ac_ext
14505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14506 echo "${ECHO_T}$ac_header_preproc" >&6; }
14508 # So? What about this header?
14509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14515 ac_header_preproc=yes
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14531 ## ------------------------------ ##
14532 ## Report this to bugs@yourdomain ##
14533 ## ------------------------------ ##
14535 ) | sed "s/^/$as_me: WARNING: /" >&2
14538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 eval "$as_ac_Header=\$ac_header_preproc"
14545 ac_res=`eval echo '${'$as_ac_Header'}'`
14546 { echo "$as_me:$LINENO: result: $ac_res" >&5
14547 echo "${ECHO_T}$ac_res" >&6; }
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561 for ac_header in utime.h windows.h
14563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571 { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14574 # Is the header compilable?
14575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14577 cat >conftest.$ac_ext <<_ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14584 #include <$ac_header>
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_header_compiler=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_header_compiler=no
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6; }
14632 # Is the header present?
14633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 #include <$ac_header>
14643 if { (ac_try="$ac_cpp conftest.$ac_ext"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } >/dev/null; then
14656 if test -s conftest.err; then
14657 ac_cpp_err=$ac_c_preproc_warn_flag
14658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14665 if test -z "$ac_cpp_err"; then
14666 ac_header_preproc=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_header_preproc=no
14674 rm -f conftest.err conftest.$ac_ext
14675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676 echo "${ECHO_T}$ac_header_preproc" >&6; }
14678 # So? What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14701 ## ------------------------------ ##
14702 ## Report this to bugs@yourdomain ##
14703 ## ------------------------------ ##
14705 ) | sed "s/^/$as_me: WARNING: /" >&2
14708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 eval "$as_ac_Header=\$ac_header_preproc"
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716 { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14721 cat >>confdefs.h <<_ACEOF
14722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14734 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 ac_res=`eval echo '${'$as_ac_Header'}'`
14744 { echo "$as_me:$LINENO: result: $ac_res" >&5
14745 echo "${ECHO_T}$ac_res" >&6; }
14747 # Is the header compilable?
14748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <$ac_header>
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_compile") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14774 { (case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_try") 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_try") 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_header_compiler=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_header_compiler=no
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14803 echo "${ECHO_T}$ac_header_compiler" >&6; }
14805 # Is the header present?
14806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 #include <$ac_header>
14816 if { (ac_try="$ac_cpp conftest.$ac_ext"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } >/dev/null; then
14829 if test -s conftest.err; then
14830 ac_cpp_err=$ac_c_preproc_warn_flag
14831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14838 if test -z "$ac_cpp_err"; then
14839 ac_header_preproc=yes
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_header_preproc=no
14847 rm -f conftest.err conftest.$ac_ext
14848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14849 echo "${ECHO_T}$ac_header_preproc" >&6; }
14851 # So? What about this header?
14852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14858 ac_header_preproc=yes
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14874 ## ------------------------------ ##
14875 ## Report this to bugs@yourdomain ##
14876 ## ------------------------------ ##
14878 ) | sed "s/^/$as_me: WARNING: /" >&2
14881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 eval "$as_ac_Header=\$ac_header_preproc"
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889 { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14906 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 ac_res=`eval echo '${'$as_ac_Header'}'`
14916 { echo "$as_me:$LINENO: result: $ac_res" >&5
14917 echo "${ECHO_T}$ac_res" >&6; }
14919 # Is the header compilable?
14920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14922 cat >conftest.$ac_ext <<_ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14929 #include <$ac_header>
14931 rm -f conftest.$ac_objext
14932 if { (ac_try="$ac_compile"
14933 case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_compile") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14946 { (case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_try") 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; } &&
14955 { ac_try='test -s conftest.$ac_objext'
14956 { (case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_try") 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_header_compiler=yes
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_header_compiler=no
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 echo "${ECHO_T}$ac_header_compiler" >&6; }
14977 # Is the header present?
14978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <$ac_header>
14988 if { (ac_try="$ac_cpp conftest.$ac_ext"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } >/dev/null; then
15001 if test -s conftest.err; then
15002 ac_cpp_err=$ac_c_preproc_warn_flag
15003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15010 if test -z "$ac_cpp_err"; then
15011 ac_header_preproc=yes
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_header_preproc=no
15019 rm -f conftest.err conftest.$ac_ext
15020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021 echo "${ECHO_T}$ac_header_preproc" >&6; }
15023 # So? What about this header?
15024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15030 ac_header_preproc=yes
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15046 ## ------------------------------ ##
15047 ## Report this to bugs@yourdomain ##
15048 ## ------------------------------ ##
15050 ) | sed "s/^/$as_me: WARNING: /" >&2
15053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 eval "$as_ac_Header=\$ac_header_preproc"
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061 { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15066 cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 for ac_header in valgrind/valgrind.h
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15088 # Is the header compilable?
15089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 $ac_includes_default
15098 #include <$ac_header>
15100 rm -f conftest.$ac_objext
15101 if { (ac_try="$ac_compile"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_compile") 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_try") 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_header_compiler=yes
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_header_compiler=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144 echo "${ECHO_T}$ac_header_compiler" >&6; }
15146 # Is the header present?
15147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 #include <$ac_header>
15157 if { (ac_try="$ac_cpp conftest.$ac_ext"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } >/dev/null; then
15170 if test -s conftest.err; then
15171 ac_cpp_err=$ac_c_preproc_warn_flag
15172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15179 if test -z "$ac_cpp_err"; then
15180 ac_header_preproc=yes
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_header_preproc=no
15188 rm -f conftest.err conftest.$ac_ext
15189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190 echo "${ECHO_T}$ac_header_preproc" >&6; }
15192 # So? What about this header?
15193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15199 ac_header_preproc=yes
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15215 ## ------------------------------ ##
15216 ## Report this to bugs@yourdomain ##
15217 ## ------------------------------ ##
15219 ) | sed "s/^/$as_me: WARNING: /" >&2
15222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 eval "$as_ac_Header=\$ac_header_preproc"
15229 ac_res=`eval echo '${'$as_ac_Header'}'`
15230 { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15235 cat >>confdefs.h <<_ACEOF
15236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15244 for ac_header in fenv.h
15246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 ac_res=`eval echo '${'$as_ac_Header'}'`
15254 { echo "$as_me:$LINENO: result: $ac_res" >&5
15255 echo "${ECHO_T}$ac_res" >&6; }
15257 # Is the header compilable?
15258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15260 cat >conftest.$ac_ext <<_ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15267 #include <$ac_header>
15269 rm -f conftest.$ac_objext
15270 if { (ac_try="$ac_compile"
15271 case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_compile") 2>conftest.er1
15278 grep -v '^ *+' conftest.er1 >conftest.err
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284 { (case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_try") 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_header_compiler=yes
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_header_compiler=no
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15313 echo "${ECHO_T}$ac_header_compiler" >&6; }
15315 # Is the header present?
15316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 #include <$ac_header>
15326 if { (ac_try="$ac_cpp conftest.$ac_ext"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } >/dev/null; then
15339 if test -s conftest.err; then
15340 ac_cpp_err=$ac_c_preproc_warn_flag
15341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15348 if test -z "$ac_cpp_err"; then
15349 ac_header_preproc=yes
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_header_preproc=no
15357 rm -f conftest.err conftest.$ac_ext
15358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15359 echo "${ECHO_T}$ac_header_preproc" >&6; }
15361 # So? What about this header?
15362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15368 ac_header_preproc=yes
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15384 ## ------------------------------ ##
15385 ## Report this to bugs@yourdomain ##
15386 ## ------------------------------ ##
15388 ) | sed "s/^/$as_me: WARNING: /" >&2
15391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 eval "$as_ac_Header=\$ac_header_preproc"
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399 { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15412 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15414 for ac_header in pthread.h
15416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 ac_res=`eval echo '${'$as_ac_Header'}'`
15424 { echo "$as_me:$LINENO: result: $ac_res" >&5
15425 echo "${ECHO_T}$ac_res" >&6; }
15427 # Is the header compilable?
15428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15437 #include <$ac_header>
15439 rm -f conftest.$ac_objext
15440 if { (ac_try="$ac_compile"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_compile") 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest.$ac_objext'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_header_compiler=yes
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 ac_header_compiler=no
15481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15483 echo "${ECHO_T}$ac_header_compiler" >&6; }
15485 # Is the header present?
15486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 #include <$ac_header>
15496 if { (ac_try="$ac_cpp conftest.$ac_ext"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } >/dev/null; then
15509 if test -s conftest.err; then
15510 ac_cpp_err=$ac_c_preproc_warn_flag
15511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15518 if test -z "$ac_cpp_err"; then
15519 ac_header_preproc=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_header_preproc=no
15527 rm -f conftest.err conftest.$ac_ext
15528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15529 echo "${ECHO_T}$ac_header_preproc" >&6; }
15531 # So? What about this header?
15532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15538 ac_header_preproc=yes
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15554 ## ------------------------------ ##
15555 ## Report this to bugs@yourdomain ##
15556 ## ------------------------------ ##
15558 ) | sed "s/^/$as_me: WARNING: /" >&2
15561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 eval "$as_ac_Header=\$ac_header_preproc"
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569 { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574 cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591 if test "$llvm_cv_enable_libffi" = "yes" ; then
15594 for ac_header in ffi.h ffi/ffi.h
15596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 ac_res=`eval echo '${'$as_ac_Header'}'`
15604 { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15607 # Is the header compilable?
15608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15617 #include <$ac_header>
15619 rm -f conftest.$ac_objext
15620 if { (ac_try="$ac_compile"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_compile") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15634 { (case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_try") 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_try") 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_header_compiler=yes
15655 echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_header_compiler=no
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15663 echo "${ECHO_T}$ac_header_compiler" >&6; }
15665 # Is the header present?
15666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 #include <$ac_header>
15676 if { (ac_try="$ac_cpp conftest.$ac_ext"
15677 case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } >/dev/null; then
15689 if test -s conftest.err; then
15690 ac_cpp_err=$ac_c_preproc_warn_flag
15691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15698 if test -z "$ac_cpp_err"; then
15699 ac_header_preproc=yes
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15734 ## ------------------------------ ##
15735 ## Report this to bugs@yourdomain ##
15736 ## ------------------------------ ##
15738 ) | sed "s/^/$as_me: WARNING: /" >&2
15741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 eval "$as_ac_Header=\$ac_header_preproc"
15748 ac_res=`eval echo '${'$as_ac_Header'}'`
15749 { echo "$as_me:$LINENO: result: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15754 cat >>confdefs.h <<_ACEOF
15755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15765 for ac_header in CrashReporterClient.h
15767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775 { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15778 # Is the header compilable?
15779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15788 #include <$ac_header>
15790 rm -f conftest.$ac_objext
15791 if { (ac_try="$ac_compile"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_compile") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805 { (case "(($ac_try" in
15806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807 *) ac_try_echo=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_try") 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_try") 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_header_compiler=yes
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_compiler=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <$ac_header>
15847 if { (ac_try="$ac_cpp conftest.$ac_ext"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } >/dev/null; then
15860 if test -s conftest.err; then
15861 ac_cpp_err=$ac_c_preproc_warn_flag
15862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15869 if test -z "$ac_cpp_err"; then
15870 ac_header_preproc=yes
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_header_preproc=no
15878 rm -f conftest.err conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15880 echo "${ECHO_T}$ac_header_preproc" >&6; }
15882 # So? What about this header?
15883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15889 ac_header_preproc=yes
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15905 ## ------------------------------ ##
15906 ## Report this to bugs@yourdomain ##
15907 ## ------------------------------ ##
15909 ) | sed "s/^/$as_me: WARNING: /" >&2
15912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15917 eval "$as_ac_Header=\$ac_header_preproc"
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15934 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15935 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 extern const char *__crashreporter_info__;
15944 __crashreporter_info__ = "test";
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (ac_try="$ac_link"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_link") 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15964 { (case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_try") 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest$ac_exeext'
15974 { (case "(($ac_try" in
15975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979 (eval "$ac_try") 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 { echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6; }
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_CRASHREPORTER_INFO 1
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_CRASHREPORTER_INFO 0
16003 rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16010 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16011 if test "${ac_cv_huge_val_sanity+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 ac_cpp='$CXXCPP $CPPFLAGS'
16017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16021 ac_save_CXXFLAGS=$CXXFLAGS
16022 CXXFLAGS="$CXXFLAGS -pedantic"
16023 if test "$cross_compiling" = yes; then
16024 ac_cv_huge_val_sanity=yes
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16036 double x = HUGE_VAL; return x != x;
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_huge_val_sanity=yes
16063 echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ( exit $ac_status )
16068 ac_cv_huge_val_sanity=no
16070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16074 CXXFLAGS=$ac_save_CXXFLAGS
16076 ac_cpp='$CPP $CPPFLAGS'
16077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16083 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16084 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16085 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16088 { echo "$as_me:$LINENO: checking for pid_t" >&5
16089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16090 if test "${ac_cv_type_pid_t+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 $ac_includes_default
16100 typedef pid_t ac__type_new_;
16104 if ((ac__type_new_ *) 0)
16106 if (sizeof (ac__type_new_))
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } &&
16126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16127 { (case "(($ac_try" in
16128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129 *) ac_try_echo=$ac_try;;
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132 (eval "$ac_try") 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
16137 { (case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_try") 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_type_pid_t=yes
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 ac_cv_type_pid_t=no
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16157 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16158 if test $ac_cv_type_pid_t = yes; then
16162 cat >>confdefs.h <<_ACEOF
16168 { echo "$as_me:$LINENO: checking for size_t" >&5
16169 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16170 if test "${ac_cv_type_size_t+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 $ac_includes_default
16180 typedef size_t ac__type_new_;
16184 if ((ac__type_new_ *) 0)
16186 if (sizeof (ac__type_new_))
16192 rm -f conftest.$ac_objext
16193 if { (ac_try="$ac_compile"
16194 case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_compile") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_try") 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_try") 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_type_size_t=yes
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 ac_cv_type_size_t=no
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16237 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16238 if test $ac_cv_type_size_t = yes; then
16242 cat >>confdefs.h <<_ACEOF
16243 #define size_t unsigned int
16249 cat >>confdefs.h <<_ACEOF
16250 #define RETSIGTYPE void
16253 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16254 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16255 if test "${ac_cv_struct_tm+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 #include <sys/types.h>
16270 struct tm *tp; tp->tm_sec;
16275 rm -f conftest.$ac_objext
16276 if { (ac_try="$ac_compile"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_compile") 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16290 { (case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_try") 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_try") 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_cv_struct_tm=time.h
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_cv_struct_tm=sys/time.h
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16320 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16321 if test $ac_cv_struct_tm = sys/time.h; then
16323 cat >>confdefs.h <<\_ACEOF
16324 #define TM_IN_SYS_TIME 1
16329 { echo "$as_me:$LINENO: checking for int64_t" >&5
16330 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16331 if test "${ac_cv_type_int64_t+set}" = set; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 $ac_includes_default
16341 typedef int64_t ac__type_new_;
16345 if ((ac__type_new_ *) 0)
16347 if (sizeof (ac__type_new_))
16353 rm -f conftest.$ac_objext
16354 if { (ac_try="$ac_compile"
16355 case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_compile") 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16368 { (case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_try") 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_try") 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_cv_type_int64_t=yes
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_cv_type_int64_t=no
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16397 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16398 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16399 if test $ac_cv_type_int64_t = yes; then
16401 cat >>confdefs.h <<_ACEOF
16402 #define HAVE_INT64_T 1
16407 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16408 echo "$as_me: error: Type int64_t required but not found" >&2;}
16409 { (exit 1); exit 1; }; }
16412 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16413 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16414 if test "${ac_cv_type_uint64_t+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 $ac_includes_default
16424 typedef uint64_t ac__type_new_;
16428 if ((ac__type_new_ *) 0)
16430 if (sizeof (ac__type_new_))
16436 rm -f conftest.$ac_objext
16437 if { (ac_try="$ac_compile"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_compile") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16451 { (case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_try") 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try='test -s conftest.$ac_objext'
16461 { (case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_try") 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 ac_cv_type_uint64_t=yes
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ac_cv_type_uint64_t=no
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16481 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16482 if test $ac_cv_type_uint64_t = yes; then
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_UINT64_T 1
16490 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16491 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16492 if test "${ac_cv_type_u_int64_t+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 $ac_includes_default
16502 typedef u_int64_t ac__type_new_;
16506 if ((ac__type_new_ *) 0)
16508 if (sizeof (ac__type_new_))
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_type_u_int64_t=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_type_u_int64_t=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16559 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16560 if test $ac_cv_type_u_int64_t = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_U_INT64_T 1
16568 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16569 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16570 { (exit 1); exit 1; }; }
16584 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16600 #define $ac_func innocuous_$ac_func
16602 /* System header to define __stub macros and hopefully few prototypes,
16603 which can conflict with char $ac_func (); below.
16604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16605 <limits.h> exists even on freestanding compilers. */
16608 # include <limits.h>
16610 # include <assert.h>
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16622 /* The GNU C library defines this for functions which it implements
16623 to always fail with ENOSYS. Some functions are actually named
16624 something starting with __ and the normal name is an alias. */
16625 #if defined __stub_$ac_func || defined __stub___$ac_func
16632 return $ac_func ();
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (ac_try="$ac_link"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_link") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; } &&
16661 { ac_try='test -s conftest$ac_exeext'
16662 { (case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_try") 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 eval "$as_ac_var=yes"
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 eval "$as_ac_var=no"
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16682 ac_res=`eval echo '${'$as_ac_var'}'`
16683 { echo "$as_me:$LINENO: result: $ac_res" >&5
16684 echo "${ECHO_T}$ac_res" >&6; }
16685 if test `eval echo '${'$as_ac_var'}'` = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16697 for ac_func in powf fmodf strtof round
16699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16713 #define $ac_func innocuous_$ac_func
16715 /* System header to define __stub macros and hopefully few prototypes,
16716 which can conflict with char $ac_func (); below.
16717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16718 <limits.h> exists even on freestanding compilers. */
16721 # include <limits.h>
16723 # include <assert.h>
16728 /* Override any GCC internal prototype to avoid an error.
16729 Use char because int might match the return type of a GCC
16730 builtin and then its argument prototype would still apply. */
16735 /* The GNU C library defines this for functions which it implements
16736 to always fail with ENOSYS. Some functions are actually named
16737 something starting with __ and the normal name is an alias. */
16738 #if defined __stub_$ac_func || defined __stub___$ac_func
16745 return $ac_func ();
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_link") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest$ac_exeext'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 eval "$as_ac_var=yes"
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 eval "$as_ac_var=no"
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16795 ac_res=`eval echo '${'$as_ac_var'}'`
16796 { echo "$as_me:$LINENO: result: $ac_res" >&5
16797 echo "${ECHO_T}$ac_res" >&6; }
16798 if test `eval echo '${'$as_ac_var'}'` = yes; then
16799 cat >>confdefs.h <<_ACEOF
16800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16827 #define $ac_func innocuous_$ac_func
16829 /* System header to define __stub macros and hopefully few prototypes,
16830 which can conflict with char $ac_func (); below.
16831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16832 <limits.h> exists even on freestanding compilers. */
16835 # include <limits.h>
16837 # include <assert.h>
16842 /* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply. */
16849 /* The GNU C library defines this for functions which it implements
16850 to always fail with ENOSYS. Some functions are actually named
16851 something starting with __ and the normal name is an alias. */
16852 #if defined __stub_$ac_func || defined __stub___$ac_func
16859 return $ac_func ();
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_link") 2>conftest.er1
16873 grep -v '^ *+' conftest.er1 >conftest.err
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
16878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } &&
16888 { ac_try='test -s conftest$ac_exeext'
16889 { (case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_try") 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 eval "$as_ac_var=yes"
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 eval "$as_ac_var=no"
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16909 ac_res=`eval echo '${'$as_ac_var'}'`
16910 { echo "$as_me:$LINENO: result: $ac_res" >&5
16911 echo "${ECHO_T}$ac_res" >&6; }
16912 if test `eval echo '${'$as_ac_var'}'` = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 for ac_func in isatty mkdtemp mkstemp
16925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16939 #define $ac_func innocuous_$ac_func
16941 /* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func (); below.
16943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944 <limits.h> exists even on freestanding compilers. */
16947 # include <limits.h>
16949 # include <assert.h>
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16961 /* The GNU C library defines this for functions which it implements
16962 to always fail with ENOSYS. Some functions are actually named
16963 something starting with __ and the normal name is an alias. */
16964 #if defined __stub_$ac_func || defined __stub___$ac_func
16971 return $ac_func ();
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 eval "$as_ac_var=yes"
17012 echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 eval "$as_ac_var=no"
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17021 ac_res=`eval echo '${'$as_ac_var'}'`
17022 { echo "$as_me:$LINENO: result: $ac_res" >&5
17023 echo "${ECHO_T}$ac_res" >&6; }
17024 if test `eval echo '${'$as_ac_var'}'` = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17038 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17054 #define $ac_func innocuous_$ac_func
17056 /* System header to define __stub macros and hopefully few prototypes,
17057 which can conflict with char $ac_func (); below.
17058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17059 <limits.h> exists even on freestanding compilers. */
17062 # include <limits.h>
17064 # include <assert.h>
17069 /* Override any GCC internal prototype to avoid an error.
17070 Use char because int might match the return type of a GCC
17071 builtin and then its argument prototype would still apply. */
17076 /* The GNU C library defines this for functions which it implements
17077 to always fail with ENOSYS. Some functions are actually named
17078 something starting with __ and the normal name is an alias. */
17079 #if defined __stub_$ac_func || defined __stub___$ac_func
17086 return $ac_func ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest$ac_exeext'
17116 { (case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_try") 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 eval "$as_ac_var=yes"
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17130 eval "$as_ac_var=no"
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17136 ac_res=`eval echo '${'$as_ac_var'}'`
17137 { echo "$as_me:$LINENO: result: $ac_res" >&5
17138 echo "${ECHO_T}$ac_res" >&6; }
17139 if test `eval echo '${'$as_ac_var'}'` = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17150 for ac_func in strerror strerror_r setenv
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 #define $ac_func innocuous_$ac_func
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17174 # include <limits.h>
17176 # include <assert.h>
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17188 /* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17198 return $ac_func ();
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_link") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest$ac_exeext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 eval "$as_ac_var=yes"
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 eval "$as_ac_var=no"
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17248 ac_res=`eval echo '${'$as_ac_var'}'`
17249 { echo "$as_me:$LINENO: result: $ac_res" >&5
17250 echo "${ECHO_T}$ac_res" >&6; }
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17263 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17279 #define $ac_func innocuous_$ac_func
17281 /* System header to define __stub macros and hopefully few prototypes,
17282 which can conflict with char $ac_func (); below.
17283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284 <limits.h> exists even on freestanding compilers. */
17287 # include <limits.h>
17289 # include <assert.h>
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17301 /* The GNU C library defines this for functions which it implements
17302 to always fail with ENOSYS. Some functions are actually named
17303 something starting with __ and the normal name is an alias. */
17304 #if defined __stub_$ac_func || defined __stub___$ac_func
17311 return $ac_func ();
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_link") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1 >conftest.err
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
17330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331 { (case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_try") 2>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; } &&
17340 { ac_try='test -s conftest$ac_exeext'
17341 { (case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_try") 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 eval "$as_ac_var=yes"
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 eval "$as_ac_var=no"
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17361 ac_res=`eval echo '${'$as_ac_var'}'`
17362 { echo "$as_me:$LINENO: result: $ac_res" >&5
17363 echo "${ECHO_T}$ac_res" >&6; }
17364 if test `eval echo '${'$as_ac_var'}'` = yes; then
17365 cat >>confdefs.h <<_ACEOF
17366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393 #define $ac_func innocuous_$ac_func
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17401 # include <limits.h>
17403 # include <assert.h>
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17415 /* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 return $ac_func ();
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_link") 2>conftest.er1
17439 grep -v '^ *+' conftest.er1 >conftest.err
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest$ac_exeext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 eval "$as_ac_var=no"
17472 rm -f core conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17475 ac_res=`eval echo '${'$as_ac_var'}'`
17476 { echo "$as_me:$LINENO: result: $ac_res" >&5
17477 echo "${ECHO_T}$ac_res" >&6; }
17478 if test `eval echo '${'$as_ac_var'}'` = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17486 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17487 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17488 if test "${llvm_cv_c_printf_a+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 ac_cpp='$CPP $CPPFLAGS'
17493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17497 if test "$cross_compiling" = yes; then
17498 llvmac_cv_c_printf_a=no
17500 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17509 #include <stdlib.h>
17515 volatile double A, B;
17519 sprintf(Buffer, "%a", A);
17523 if (A != 0x1.999999999999ap-4)
17530 rm -f conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17541 { (case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_try") 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); }; }; then
17550 llvm_cv_c_printf_a=yes
17552 echo "$as_me: program exited with status $ac_status" >&5
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 ( exit $ac_status )
17557 llvmac_cv_c_printf_a=no
17559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17570 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17571 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17572 if test "$llvm_cv_c_printf_a" = "yes"; then
17574 cat >>confdefs.h <<\_ACEOF
17575 #define HAVE_PRINTF_A 1
17581 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17582 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17583 if test "${ac_cv_func_rand48+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 ac_cpp='$CXXCPP $CPPFLAGS'
17588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17602 srand48(0);lrand48();drand48();
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17622 { (case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627 (eval "$ac_try") 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_cv_func_rand48=yes
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_cv_func_rand48=no
17649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17657 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17658 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17660 if test "$ac_cv_func_rand48" = "yes" ; then
17662 cat >>confdefs.h <<\_ACEOF
17663 #define HAVE_RAND48 1
17669 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17670 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17671 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 cat >conftest.$ac_ext <<_ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17685 char *p = (char *) strerror_s;
17693 rm -f conftest.$ac_objext
17694 if { (ac_try="$ac_compile"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_compile") 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
17718 { (case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723 (eval "$ac_try") 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_have_decl_strerror_s=yes
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_have_decl_strerror_s=no
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17738 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17739 if test $ac_cv_have_decl_strerror_s = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define HAVE_DECL_STRERROR_S 1
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_DECL_STRERROR_S 0
17756 if test "$llvm_cv_os_type" = "MingW" ; then
17757 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17758 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17759 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_check_lib_save_LIBS=$LIBS
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (ac_try="$ac_link"
17788 case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_link") 2>conftest.er1
17795 grep -v '^ *+' conftest.er1 >conftest.err
17797 cat conftest.err >&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } &&
17800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17801 { (case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_try") 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest$ac_exeext'
17811 { (case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_try") 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_cv_lib_gcc__alloca=yes
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 ac_cv_lib_gcc__alloca=no
17828 rm -f core conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17830 LIBS=$ac_check_lib_save_LIBS
17832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17833 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17834 if test $ac_cv_lib_gcc__alloca = yes; then
17836 cat >>confdefs.h <<\_ACEOF
17837 #define HAVE__ALLOCA 1
17842 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17843 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17844 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_check_lib_save_LIBS=$LIBS
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17856 /* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17866 return __alloca ();
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_try") 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_try") 2>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_lib_gcc___alloca=yes
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17910 ac_cv_lib_gcc___alloca=no
17913 rm -f core conftest.err conftest.$ac_objext \
17914 conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17918 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17919 if test $ac_cv_lib_gcc___alloca = yes; then
17921 cat >>confdefs.h <<\_ACEOF
17922 #define HAVE___ALLOCA 1
17927 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17928 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 ac_check_lib_save_LIBS=$LIBS
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17951 return __chkstk ();
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 ac_cv_lib_gcc___chkstk=yes
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17995 ac_cv_lib_gcc___chkstk=no
17998 rm -f core conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18003 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18004 if test $ac_cv_lib_gcc___chkstk = yes; then
18006 cat >>confdefs.h <<\_ACEOF
18007 #define HAVE___CHKSTK 1
18012 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18013 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18014 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 ac_check_lib_save_LIBS=$LIBS
18019 cat >conftest.$ac_ext <<_ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18026 /* Override any GCC internal prototype to avoid an error.
18027 Use char because int might match the return type of a GCC
18028 builtin and then its argument prototype would still apply. */
18036 return ___chkstk ();
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (ac_try="$ac_link"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_link") 2>conftest.er1
18050 grep -v '^ *+' conftest.er1 >conftest.err
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
18055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18056 { (case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061 (eval "$ac_try") 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest$ac_exeext'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 ac_cv_lib_gcc____chkstk=yes
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 ac_cv_lib_gcc____chkstk=no
18083 rm -f core conftest.err conftest.$ac_objext \
18084 conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18088 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18089 if test $ac_cv_lib_gcc____chkstk = yes; then
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE____CHKSTK 1
18098 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18099 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18100 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18101 echo $ECHO_N "(cached) $ECHO_C" >&6
18103 ac_check_lib_save_LIBS=$LIBS
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18112 /* Override any GCC internal prototype to avoid an error.
18113 Use char because int might match the return type of a GCC
18114 builtin and then its argument prototype would still apply. */
18122 return __ashldi3 ();
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18142 { (case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_try") 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } &&
18151 { ac_try='test -s conftest$ac_exeext'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_try") 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_lib_gcc___ashldi3=yes
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 ac_cv_lib_gcc___ashldi3=no
18169 rm -f core conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_lib_save_LIBS
18173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18174 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18175 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18177 cat >>confdefs.h <<\_ACEOF
18178 #define HAVE___ASHLDI3 1
18183 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18184 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18185 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_check_lib_save_LIBS=$LIBS
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18197 /* Override any GCC internal prototype to avoid an error.
18198 Use char because int might match the return type of a GCC
18199 builtin and then its argument prototype would still apply. */
18207 return __ashrdi3 ();
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
18226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18227 { (case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_try") 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest$ac_exeext'
18237 { (case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242 (eval "$ac_try") 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_cv_lib_gcc___ashrdi3=yes
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_cv_lib_gcc___ashrdi3=no
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18259 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18260 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE___ASHRDI3 1
18268 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18269 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18270 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18273 ac_check_lib_save_LIBS=$LIBS
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18292 return __divdi3 ();
18297 rm -f conftest.$ac_objext conftest$ac_exeext
18298 if { (ac_try="$ac_link"
18299 case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_link") 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18312 { (case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317 (eval "$ac_try") 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try='test -s conftest$ac_exeext'
18322 { (case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_try") 2>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 ac_cv_lib_gcc___divdi3=yes
18333 echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18336 ac_cv_lib_gcc___divdi3=no
18339 rm -f core conftest.err conftest.$ac_objext \
18340 conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18344 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18345 if test $ac_cv_lib_gcc___divdi3 = yes; then
18347 cat >>confdefs.h <<\_ACEOF
18348 #define HAVE___DIVDI3 1
18353 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18354 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18355 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_check_lib_save_LIBS=$LIBS
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18377 return __fixdfdi ();
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (ac_try="$ac_link"
18384 case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389 (eval "$ac_link") 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18397 { (case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_try") 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; } &&
18406 { ac_try='test -s conftest$ac_exeext'
18407 { (case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_try") 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 ac_cv_lib_gcc___fixdfdi=yes
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18421 ac_cv_lib_gcc___fixdfdi=no
18424 rm -f core conftest.err conftest.$ac_objext \
18425 conftest$ac_exeext conftest.$ac_ext
18426 LIBS=$ac_check_lib_save_LIBS
18428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18429 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18430 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18432 cat >>confdefs.h <<\_ACEOF
18433 #define HAVE___FIXDFDI 1
18438 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18439 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18440 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 ac_check_lib_save_LIBS=$LIBS
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18462 return __fixsfdi ();
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (ac_try="$ac_link"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_link") 2>conftest.er1
18476 grep -v '^ *+' conftest.er1 >conftest.err
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } &&
18481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_try") 2>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; } &&
18491 { ac_try='test -s conftest$ac_exeext'
18492 { (case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_try") 2>&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_lib_gcc___fixsfdi=yes
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_cv_lib_gcc___fixsfdi=no
18509 rm -f core conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18514 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18515 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18517 cat >>confdefs.h <<\_ACEOF
18518 #define HAVE___FIXSFDI 1
18523 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18524 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18525 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 ac_check_lib_save_LIBS=$LIBS
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18543 char __floatdidf ();
18547 return __floatdidf ();
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_link") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (case "(($ac_try" in
18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579 *) ac_try_echo=$ac_try;;
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582 (eval "$ac_try") 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 ac_cv_lib_gcc___floatdidf=yes
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ac_cv_lib_gcc___floatdidf=no
18594 rm -f core conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18596 LIBS=$ac_check_lib_save_LIBS
18598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18599 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18600 if test $ac_cv_lib_gcc___floatdidf = yes; then
18602 cat >>confdefs.h <<\_ACEOF
18603 #define HAVE___FLOATDIDF 1
18608 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18609 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18610 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 ac_check_lib_save_LIBS=$LIBS
18615 cat >conftest.$ac_ext <<_ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18622 /* Override any GCC internal prototype to avoid an error.
18623 Use char because int might match the return type of a GCC
18624 builtin and then its argument prototype would still apply. */
18632 return __lshrdi3 ();
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } &&
18651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652 { (case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_try") 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest$ac_exeext'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 ac_cv_lib_gcc___lshrdi3=yes
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 ac_cv_lib_gcc___lshrdi3=no
18679 rm -f core conftest.err conftest.$ac_objext \
18680 conftest$ac_exeext conftest.$ac_ext
18681 LIBS=$ac_check_lib_save_LIBS
18683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18684 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18685 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE___LSHRDI3 1
18693 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18694 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18695 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 ac_check_lib_save_LIBS=$LIBS
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18717 return __moddi3 ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest$ac_exeext'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 ac_cv_lib_gcc___moddi3=yes
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 ac_cv_lib_gcc___moddi3=no
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18766 LIBS=$ac_check_lib_save_LIBS
18768 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18769 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18770 if test $ac_cv_lib_gcc___moddi3 = yes; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE___MODDI3 1
18778 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18779 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18780 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 ac_check_lib_save_LIBS=$LIBS
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18802 return __udivdi3 ();
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811 *) ac_try_echo=$ac_try;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_link") 2>conftest.er1
18816 grep -v '^ *+' conftest.er1 >conftest.err
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822 { (case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_try") 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; } &&
18831 { ac_try='test -s conftest$ac_exeext'
18832 { (case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_try") 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_cv_lib_gcc___udivdi3=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_lib_gcc___udivdi3=no
18849 rm -f core conftest.err conftest.$ac_objext \
18850 conftest$ac_exeext conftest.$ac_ext
18851 LIBS=$ac_check_lib_save_LIBS
18853 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18854 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18855 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18857 cat >>confdefs.h <<\_ACEOF
18858 #define HAVE___UDIVDI3 1
18863 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18864 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18865 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 ac_check_lib_save_LIBS=$LIBS
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18887 return __umoddi3 ();
18892 rm -f conftest.$ac_objext conftest$ac_exeext
18893 if { (ac_try="$ac_link"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_link") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18907 { (case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_try") 2>&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; } &&
18916 { ac_try='test -s conftest$ac_exeext'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; }; then
18926 ac_cv_lib_gcc___umoddi3=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_cv_lib_gcc___umoddi3=no
18934 rm -f core conftest.err conftest.$ac_objext \
18935 conftest$ac_exeext conftest.$ac_ext
18936 LIBS=$ac_check_lib_save_LIBS
18938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18939 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18940 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18942 cat >>confdefs.h <<\_ACEOF
18943 #define HAVE___UMODDI3 1
18949 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18950 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18951 if test "${ac_cv_lib_gcc___main+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 ac_check_lib_save_LIBS=$LIBS
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_link") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest$ac_exeext'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_cv_lib_gcc___main=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_lib_gcc___main=no
19020 rm -f core conftest.err conftest.$ac_objext \
19021 conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19024 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19025 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19026 if test $ac_cv_lib_gcc___main = yes; then
19028 cat >>confdefs.h <<\_ACEOF
19029 #define HAVE___MAIN 1
19034 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19035 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19036 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 ac_check_lib_save_LIBS=$LIBS
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19048 /* Override any GCC internal prototype to avoid an error.
19049 Use char because int might match the return type of a GCC
19050 builtin and then its argument prototype would still apply. */
19058 return __cmpdi2 ();
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_link") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19078 { (case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_try") 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; } &&
19087 { ac_try='test -s conftest$ac_exeext'
19088 { (case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_try") 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_lib_gcc___cmpdi2=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_cv_lib_gcc___cmpdi2=no
19105 rm -f core conftest.err conftest.$ac_objext \
19106 conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19109 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19110 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19111 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19113 cat >>confdefs.h <<\_ACEOF
19114 #define HAVE___CMPDI2 1
19121 if test "$llvm_cv_os_type" = "MingW" ; then
19122 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19123 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19124 cat >conftest.$ac_ext <<_ACEOF
19125 #include <windows.h>
19126 #include <imagehlp.h>
19127 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19128 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_compile") 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest.$ac_objext'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19165 { echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6; }
19167 llvm_cv_win32_elmcb_pcstr="PCSTR"
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19174 { echo "$as_me:$LINENO: result: no" >&5
19175 echo "${ECHO_T}no" >&6; }
19176 llvm_cv_win32_elmcb_pcstr="PSTR"
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182 cat >>confdefs.h <<_ACEOF
19183 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19189 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19190 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19191 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 ac_cpp='$CXXCPP $CPPFLAGS'
19196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19215 rm -f conftest.$ac_objext
19216 if { (ac_try="$ac_compile"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest.$ac_objext'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_func_isnan_in_math_h=yes
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_cv_func_isnan_in_math_h=no
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 ac_cpp='$CPP $CPPFLAGS'
19260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19265 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19266 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19269 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define HAVE_ISNAN_IN_MATH_H 1
19277 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19278 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19279 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 ac_cpp='$CXXCPP $CPPFLAGS'
19284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_compile") 2>conftest.er1
19312 grep -v '^ *+' conftest.er1 >conftest.err
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19318 { (case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_try") 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19337 ac_cv_func_isnan_in_cmath=yes
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_func_isnan_in_cmath=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 ac_cpp='$CPP $CPPFLAGS'
19348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19353 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19354 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19356 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE_ISNAN_IN_CMATH 1
19364 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19365 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19366 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 ac_cpp='$CXXCPP $CPPFLAGS'
19371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19385 float f; std::isnan(f);
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19405 { (case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_try") 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
19415 { (case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_try") 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_cv_func_std_isnan_in_cmath=yes
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_cv_func_std_isnan_in_cmath=no
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 ac_cpp='$CPP $CPPFLAGS'
19435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19440 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19441 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19443 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19445 cat >>confdefs.h <<\_ACEOF
19446 #define HAVE_STD_ISNAN_IN_CMATH 1
19452 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19453 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19454 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 ac_cpp='$CXXCPP $CPPFLAGS'
19459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19478 rm -f conftest.$ac_objext
19479 if { (ac_try="$ac_compile"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_compile") 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_cv_func_isinf_in_math_h=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_func_isinf_in_math_h=no
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19528 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19529 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19531 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_ISINF_IN_MATH_H 1
19539 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19540 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19541 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 ac_cpp='$CXXCPP $CPPFLAGS'
19546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19565 rm -f conftest.$ac_objext
19566 if { (ac_try="$ac_compile"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_compile") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_try") 2>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_func_isinf_in_cmath=yes
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_func_isinf_in_cmath=no
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609 ac_cpp='$CPP $CPPFLAGS'
19610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19615 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19616 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19618 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19620 cat >>confdefs.h <<\_ACEOF
19621 #define HAVE_ISINF_IN_CMATH 1
19626 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19627 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19628 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 ac_cpp='$CXXCPP $CPPFLAGS'
19633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19647 float f; std::isinf(f);
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_compile") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19667 { (case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_try") 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest.$ac_objext'
19677 { (case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_try") 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 ac_cv_func_std_isinf_in_cmath=yes
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ac_cv_func_std_isinf_in_cmath=no
19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19696 ac_cpp='$CPP $CPPFLAGS'
19697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19702 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19703 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19705 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_STD_ISINF_IN_CMATH 1
19713 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19714 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19715 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 ac_cpp='$CXXCPP $CPPFLAGS'
19720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 #include <ieeefp.h>
19734 float f; finite(f);
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_compile") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19754 { (case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759 (eval "$ac_try") 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; } &&
19763 { ac_try='test -s conftest.$ac_objext'
19764 { (case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_try") 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; }; then
19773 ac_cv_func_finite_in_ieeefp_h=yes
19775 echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 ac_cv_func_finite_in_ieeefp_h=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 ac_cpp='$CPP $CPPFLAGS'
19784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19789 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19790 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19792 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_FINITE_IN_IEEEFP_H 1
19802 if test "$llvm_cv_platform_type" = "Unix" ; then
19805 for ac_header in stdlib.h unistd.h
19807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 ac_res=`eval echo '${'$as_ac_Header'}'`
19815 { echo "$as_me:$LINENO: result: $ac_res" >&5
19816 echo "${ECHO_T}$ac_res" >&6; }
19818 # Is the header compilable?
19819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19821 cat >conftest.$ac_ext <<_ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 $ac_includes_default
19828 #include <$ac_header>
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest.$ac_objext'
19855 { (case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_try") 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_header_compiler=yes
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_header_compiler=no
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19874 echo "${ECHO_T}$ac_header_compiler" >&6; }
19876 # Is the header present?
19877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19879 cat >conftest.$ac_ext <<_ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h. */
19885 #include <$ac_header>
19887 if { (ac_try="$ac_cpp conftest.$ac_ext"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } >/dev/null; then
19900 if test -s conftest.err; then
19901 ac_cpp_err=$ac_c_preproc_warn_flag
19902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19909 if test -z "$ac_cpp_err"; then
19910 ac_header_preproc=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_header_preproc=no
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19922 # So? What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19945 ## ------------------------------ ##
19946 ## Report this to bugs@yourdomain ##
19947 ## ------------------------------ ##
19949 ) | sed "s/^/$as_me: WARNING: /" >&2
19952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 eval "$as_ac_Header=\$ac_header_preproc"
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960 { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19965 cat >>confdefs.h <<_ACEOF
19966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19974 for ac_func in getpagesize
19976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19990 #define $ac_func innocuous_$ac_func
19992 /* System header to define __stub macros and hopefully few prototypes,
19993 which can conflict with char $ac_func (); below.
19994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19995 <limits.h> exists even on freestanding compilers. */
19998 # include <limits.h>
20000 # include <assert.h>
20005 /* Override any GCC internal prototype to avoid an error.
20006 Use char because int might match the return type of a GCC
20007 builtin and then its argument prototype would still apply. */
20012 /* The GNU C library defines this for functions which it implements
20013 to always fail with ENOSYS. Some functions are actually named
20014 something starting with __ and the normal name is an alias. */
20015 #if defined __stub_$ac_func || defined __stub___$ac_func
20022 return $ac_func ();
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (ac_try="$ac_link"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_link") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042 { (case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_try") 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; } &&
20051 { ac_try='test -s conftest$ac_exeext'
20052 { (case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_try") 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 eval "$as_ac_var=yes"
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 eval "$as_ac_var=no"
20069 rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20072 ac_res=`eval echo '${'$as_ac_var'}'`
20073 { echo "$as_me:$LINENO: result: $ac_res" >&5
20074 echo "${ECHO_T}$ac_res" >&6; }
20075 if test `eval echo '${'$as_ac_var'}'` = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20083 { echo "$as_me:$LINENO: checking for working mmap" >&5
20084 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 if test "$cross_compiling" = yes; then
20089 ac_cv_func_mmap_fixed_mapped=no
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 $ac_includes_default
20098 /* malloc might have been renamed as rpl_malloc. */
20101 /* Thanks to Mike Haertel and Jim Avera for this test.
20102 Here is a matrix of mmap possibilities:
20103 mmap private not fixed
20104 mmap private fixed at somewhere currently unmapped
20105 mmap private fixed at somewhere already mapped
20106 mmap shared not fixed
20107 mmap shared fixed at somewhere currently unmapped
20108 mmap shared fixed at somewhere already mapped
20109 For private mappings, we should verify that changes cannot be read()
20110 back from the file, nor mmap's back from the file at a different
20111 address. (There have been systems where private was not correctly
20112 implemented like the infamous i386 svr4.0, and systems where the
20113 VM page cache was not coherent with the file system buffer cache
20114 like early versions of FreeBSD and possibly contemporary NetBSD.)
20115 For shared mappings, we should conversely verify that changes get
20116 propagated back to all the places they're supposed to be.
20118 Grep wants private fixed already mapped.
20119 The main things grep needs to know about mmap are:
20120 * does it exist and is it safe to write into the mmap'd area
20121 * how to use it (BSD variants) */
20124 #include <sys/mman.h>
20126 #if !STDC_HEADERS && !HAVE_STDLIB_H
20130 /* This mess was copied from the GNU getpagesize.h. */
20131 #if !HAVE_GETPAGESIZE
20132 /* Assume that all systems that can run configure have sys/param.h. */
20133 # if !HAVE_SYS_PARAM_H
20134 # define HAVE_SYS_PARAM_H 1
20137 # ifdef _SC_PAGESIZE
20138 # define getpagesize() sysconf(_SC_PAGESIZE)
20139 # else /* no _SC_PAGESIZE */
20140 # if HAVE_SYS_PARAM_H
20141 # include <sys/param.h>
20142 # ifdef EXEC_PAGESIZE
20143 # define getpagesize() EXEC_PAGESIZE
20144 # else /* no EXEC_PAGESIZE */
20146 # define getpagesize() NBPG * CLSIZE
20149 # endif /* no CLSIZE */
20150 # else /* no NBPG */
20152 # define getpagesize() NBPC
20153 # else /* no NBPC */
20155 # define getpagesize() PAGESIZE
20156 # endif /* PAGESIZE */
20157 # endif /* no NBPC */
20158 # endif /* no NBPG */
20159 # endif /* no EXEC_PAGESIZE */
20160 # else /* no HAVE_SYS_PARAM_H */
20161 # define getpagesize() 8192 /* punt totally */
20162 # endif /* no HAVE_SYS_PARAM_H */
20163 # endif /* no _SC_PAGESIZE */
20165 #endif /* no HAVE_GETPAGESIZE */
20170 char *data, *data2, *data3;
20174 pagesize = getpagesize ();
20176 /* First, make a file with some known garbage in it. */
20177 data = (char *) malloc (pagesize);
20180 for (i = 0; i < pagesize; ++i)
20181 *(data + i) = rand ();
20183 fd = creat ("conftest.mmap", 0600);
20186 if (write (fd, data, pagesize) != pagesize)
20190 /* Next, try to mmap the file at a fixed address which already has
20191 something else allocated at it. If we can, also make sure that
20192 we see the same garbage. */
20193 fd = open ("conftest.mmap", O_RDWR);
20196 data2 = (char *) malloc (2 * pagesize);
20199 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20201 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20203 for (i = 0; i < pagesize; ++i)
20204 if (*(data + i) != *(data2 + i))
20207 /* Finally, make sure that changes to the mapped area do not
20208 percolate back to the file as seen by read(). (This is a bug on
20209 some variants of i386 svr4.0.) */
20210 for (i = 0; i < pagesize; ++i)
20211 *(data2 + i) = *(data2 + i) + 1;
20212 data3 = (char *) malloc (pagesize);
20215 if (read (fd, data3, pagesize) != pagesize)
20217 for (i = 0; i < pagesize; ++i)
20218 if (*(data + i) != *(data3 + i))
20224 rm -f conftest$ac_exeext
20225 if { (ac_try="$ac_link"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231 (eval "$ac_link") 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_func_mmap_fixed_mapped=yes
20246 echo "$as_me: program exited with status $ac_status" >&5
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20250 ( exit $ac_status )
20251 ac_cv_func_mmap_fixed_mapped=no
20253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20259 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20260 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE_MMAP 1
20267 rm -f conftest.mmap
20269 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20270 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20271 if test "${ac_cv_func_mmap_file+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20280 if test "$cross_compiling" = yes; then
20281 ac_cv_func_mmap_file=no
20283 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20291 #include <sys/types.h>
20292 #include <sys/mman.h>
20300 fd = creat ("foo",0777);
20301 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20303 return (fd != (int) MAP_FAILED);
20308 rm -f conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20319 { (case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_try") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_cv_func_mmap_file=yes
20330 echo "$as_me: program exited with status $ac_status" >&5
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ( exit $ac_status )
20335 ac_cv_func_mmap_file=no
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20342 ac_cpp='$CPP $CPPFLAGS'
20343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20349 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20350 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20351 if test "$ac_cv_func_mmap_file" = yes; then
20353 cat >>confdefs.h <<\_ACEOF
20354 #define HAVE_MMAP_FILE
20361 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20362 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20363 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 if test "$llvm_cv_os_type" = "Interix" ; then
20367 ac_cv_need_dev_zero_for_mmap=yes
20369 ac_cv_need_dev_zero_for_mmap=no
20373 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20374 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20375 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20377 cat >>confdefs.h <<\_ACEOF
20378 #define NEED_DEV_ZERO_FOR_MMAP 1
20383 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20385 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20386 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20388 if test "$ac_cv_func_mmap_file" = "no"
20390 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20391 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20395 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20396 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20410 volatile unsigned long val = 1;
20411 __sync_synchronize();
20412 __sync_val_compare_and_swap(&val, 1, 0);
20413 __sync_add_and_fetch(&val, 1);
20414 __sync_sub_and_fetch(&val, 1);
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } &&
20433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; } &&
20443 { ac_try='test -s conftest$ac_exeext'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20454 ac_cpp='$CPP $CPPFLAGS'
20455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20459 { echo "$as_me:$LINENO: result: yes" >&5
20460 echo "${ECHO_T}yes" >&6; }
20462 cat >>confdefs.h <<\_ACEOF
20463 #define LLVM_HAS_ATOMICS 1
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 { echo "$as_me:$LINENO: result: no" >&5
20471 echo "${ECHO_T}no" >&6; }
20473 cat >>confdefs.h <<\_ACEOF
20474 #define LLVM_HAS_ATOMICS 0
20477 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20478 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20481 rm -f core conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20485 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20486 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20487 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20488 if test "${llvm_cv_linux_mixed+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 error: Not x86-64 even if uname says so!
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20530 { (case "(($ac_try" in
20531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_try") 2>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; } &&
20539 { ac_try='test -s conftest.$ac_objext'
20540 { (case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_try") 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; }; then
20549 llvm_cv_linux_mixed=no
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 llvm_cv_linux_mixed=yes
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20566 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20567 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20569 if test "$llvm_cv_linux_mixed" = "yes"; then
20570 llvm_cv_target_arch="x86"
20576 for ac_func in __dso_handle
20578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20592 #define $ac_func innocuous_$ac_func
20594 /* System header to define __stub macros and hopefully few prototypes,
20595 which can conflict with char $ac_func (); below.
20596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597 <limits.h> exists even on freestanding compilers. */
20600 # include <limits.h>
20602 # include <assert.h>
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20614 /* The GNU C library defines this for functions which it implements
20615 to always fail with ENOSYS. Some functions are actually named
20616 something starting with __ and the normal name is an alias. */
20617 #if defined __stub_$ac_func || defined __stub___$ac_func
20624 return $ac_func ();
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; } &&
20653 { ac_try='test -s conftest$ac_exeext'
20654 { (case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_try") 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 eval "$as_ac_var=yes"
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 eval "$as_ac_var=no"
20671 rm -f core conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20674 ac_res=`eval echo '${'$as_ac_var'}'`
20675 { echo "$as_me:$LINENO: result: $ac_res" >&5
20676 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_var'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686 SHLIBEXT=$libltdl_cv_shlibext
20689 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20692 # Translate the various configuration directories and other basic
20693 # information into substitutions that will end up in Makefile.config.in
20694 # that these configured values can be used by the makefiles
20695 if test "${prefix}" = "NONE" ; then
20696 prefix="/usr/local"
20698 eval LLVM_PREFIX="${prefix}";
20699 eval LLVM_BINDIR="${prefix}/bin";
20700 eval LLVM_LIBDIR="${prefix}/lib";
20701 eval LLVM_DATADIR="${prefix}/share/llvm";
20702 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20703 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20704 eval LLVM_INCLUDEDIR="${prefix}/include";
20705 eval LLVM_INFODIR="${prefix}/info";
20706 eval LLVM_MANDIR="${prefix}/man";
20707 LLVM_CONFIGTIME=`date`
20719 # Place the various directores into the config.h file as #defines so that we
20720 # can know about the installation paths within LLVM.
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_PREFIX "$LLVM_PREFIX"
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_BINDIR "$LLVM_BINDIR"
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_DATADIR "$LLVM_DATADIR"
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_INFODIR "$LLVM_INFODIR"
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_MANDIR "$LLVM_MANDIR"
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20777 # Determine which bindings to build.
20778 if test "$BINDINGS_TO_BUILD" = auto ; then
20779 BINDINGS_TO_BUILD=""
20780 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20781 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20784 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20787 # This isn't really configurey, but it avoids having to repeat the list in
20792 # Do any work necessary to ensure that bindings have what they need.
20793 binding_prereqs_failed=0
20794 for a_binding in $BINDINGS_TO_BUILD ; do
20795 case "$a_binding" in
20797 if test "x$OCAMLC" = x ; then
20798 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20799 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20800 binding_prereqs_failed=1
20802 if test "x$OCAMLDEP" = x ; then
20803 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20805 binding_prereqs_failed=1
20807 if test "x$OCAMLOPT" = x ; then
20808 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20809 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20811 if test "x$with_ocaml_libdir" != xauto ; then
20812 OCAML_LIBDIR=$with_ocaml_libdir
20815 ocaml_stdlib="`"$OCAMLC" -where`"
20816 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20818 # ocaml stdlib is beneath our prefix; use stdlib
20819 OCAML_LIBDIR=$ocaml_stdlib
20822 # ocaml stdlib is outside our prefix; use libdir/ocaml
20823 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20830 if test "$binding_prereqs_failed" = 1 ; then
20831 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20832 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20833 { (exit 1); exit 1; }; }
20836 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20837 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20838 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_cpp='$CXXCPP $CPPFLAGS'
20843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20847 oldcxxflags="$CXXFLAGS"
20848 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20879 { (case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_try") 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 llvm_cv_cxx_visibility_inlines_hidden=yes
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 llvm_cv_cxx_visibility_inlines_hidden=no
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907 CXXFLAGS="$oldcxxflags"
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20916 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20917 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20918 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20919 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20922 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20927 if test "$llvm_cv_link_use_r" = "yes" ; then
20934 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20935 RDYNAMIC="-Wl,-export-dynamic"
20943 ac_config_files="$ac_config_files Makefile.common"
20945 ac_config_files="$ac_config_files Makefile.llvm.config"
20948 ac_config_commands="$ac_config_commands Makefile"
20951 ac_config_commands="$ac_config_commands lib/Makefile"
20954 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20957 ac_config_commands="$ac_config_commands tools/Makefile"
20960 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20964 cat >confcache <<\_ACEOF
20965 # This file is a shell script that caches the results of configure
20966 # tests run on this system so they can be shared between configure
20967 # scripts and configure runs, see configure's option --config-cache.
20968 # It is not useful on other systems. If it contains results you don't
20969 # want to keep, you may remove or edit it.
20971 # config.status only pays attention to the cache file if you give it
20972 # the --recheck option to rerun configure.
20974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20976 # following values.
20980 # The following way of writing the cache mishandles newlines in values,
20981 # but we know of no workaround that is simple, portable, and efficient.
20982 # So, we kill variables containing newlines.
20983 # Ultrix sh set writes to stderr and can't be redirected directly,
20984 # and sets the high bit in the cache file unless we assign to the vars.
20986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987 eval ac_val=\$$ac_var
20991 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20995 _ | IFS | as_nl) ;; #(
20996 *) $as_unset $ac_var ;;
21002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003 *${as_nl}ac_space=\ *)
21004 # `set' does not quote correctly, so add quotes (double-quote
21005 # substitution turns \\\\ into \\, and sed turns \\ into \).
21008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21011 # `set' quotes correctly as required by POSIX, so do not add quotes.
21012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026 if test -w "$cache_file"; then
21027 test "x$cache_file" != "x/dev/null" &&
21028 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029 echo "$as_me: updating cache $cache_file" >&6;}
21030 cat confcache >$cache_file
21032 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21042 # Transform confdefs.h into DEFS.
21043 # Protect against shell expansion while executing Makefile rules.
21044 # Protect against Makefile macro expansion.
21046 # If the first sed substitution is executed (which looks for macros that
21047 # take arguments), then branch to the quote section. Otherwise,
21048 # look for a macro that doesn't take arguments.
21052 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21054 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21058 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21071 DEFS=`sed -n "$ac_script" confdefs.h`
21076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21077 # 1. Remove the extension, and $U if already installed.
21078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21079 ac_i=`echo "$ac_i" | sed "$ac_script"`
21080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21081 # will be set to the directory where LIBOBJS objects are built.
21082 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21083 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21085 LIBOBJS=$ac_libobjs
21087 LTLIBOBJS=$ac_ltlibobjs
21090 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21091 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&5
21093 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&2;}
21095 { (exit 1); exit 1; }; }
21097 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21098 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&5
21100 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&2;}
21102 { (exit 1); exit 1; }; }
21105 : ${CONFIG_STATUS=./config.status}
21106 ac_clean_files_save=$ac_clean_files
21107 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21108 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21109 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21110 cat >$CONFIG_STATUS <<_ACEOF
21112 # Generated by $as_me.
21113 # Run this file to recreate the current configuration.
21114 # Compiler output produced by configure, useful for debugging
21115 # configure, is in config.log if it exists.
21118 ac_cs_recheck=false
21120 SHELL=\${CONFIG_SHELL-$SHELL}
21123 cat >>$CONFIG_STATUS <<\_ACEOF
21124 ## --------------------- ##
21125 ## M4sh Initialization. ##
21126 ## --------------------- ##
21128 # Be Bourne compatible
21129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21132 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21133 # is contrary to our usage. Disable this feature.
21134 alias -g '${1+"$@"}'='"$@"'
21135 setopt NO_GLOB_SUBST
21137 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21139 BIN_SH=xpg4; export BIN_SH # for Tru64
21140 DUALCASE=1; export DUALCASE # for MKS sh
21144 # Avoid depending upon Character Ranges.
21145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21148 as_cr_digits='0123456789'
21149 as_cr_alnum=$as_cr_Letters$as_cr_digits
21151 # The user is always right.
21152 if test "${PATH_SEPARATOR+set}" != set; then
21153 echo "#! /bin/sh" >conf$$.sh
21154 echo "exit 0" >>conf$$.sh
21156 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21164 # Support unset when possible.
21165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21173 # We need space, tab and new line, in precisely that order. Quoting is
21174 # there to prevent editors from complaining about space-tab.
21175 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21176 # splitting by setting IFS to empty value.)
21181 # Find who we are. Look in the path if we contain no directory separator.
21183 *[\\/]* ) as_myself=$0 ;;
21184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21185 for as_dir in $PATH
21188 test -z "$as_dir" && as_dir=.
21189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21195 # We did not find ourselves, most probably we were run as `sh COMMAND'
21196 # in which case we are not to be found in the path.
21197 if test "x$as_myself" = x; then
21200 if test ! -f "$as_myself"; then
21201 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21202 { (exit 1); exit 1; }
21205 # Work around bugs in pre-3.0 UWIN ksh.
21206 for as_var in ENV MAIL MAILPATH
21207 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21215 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21216 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21217 LC_TELEPHONE LC_TIME
21219 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21220 eval $as_var=C; export $as_var
21222 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21226 # Required to use basename.
21227 if expr a : '\(a\)' >/dev/null 2>&1 &&
21228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21234 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21235 as_basename=basename
21241 # Name of the executable.
21242 as_me=`$as_basename -- "$0" ||
21243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21244 X"$0" : 'X\(//\)$' \| \
21245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21247 sed '/^.*\/\([^/][^/]*\)\/*$/{
21266 as_lineno_1=$LINENO
21267 as_lineno_2=$LINENO
21268 test "x$as_lineno_1" != "x$as_lineno_2" &&
21269 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21271 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21272 # uniformly replaced by the line number. The first 'sed' inserts a
21273 # line-number line after each line using $LINENO; the second 'sed'
21274 # does the real work. The second script uses 'N' to pair each
21275 # line-number line with the line containing $LINENO, and appends
21276 # trailing '-' during substitution so that $LINENO is not a special
21277 # case at line end.
21278 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21279 # scripts with optimization help from Paolo Bonzini. Blame Lee
21280 # E. McMahon (1931-1989) for sed's syntax. :-)
21292 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21295 ' >$as_me.lineno &&
21296 chmod +x "$as_me.lineno" ||
21297 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21298 { (exit 1); exit 1; }; }
21300 # Don't try to exec as it changes $[0], causing all sort of problems
21301 # (the dirname of $[0] is not the place where we might find the
21302 # original and so on. Autoconf is especially sensitive to this).
21303 . "./$as_me.lineno"
21304 # Exit status is that of the last command.
21309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21315 ECHO_C= ECHO_N= ECHO_T=
21316 case `echo -n x` in
21318 case `echo 'x\c'` in
21319 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21326 if expr a : '\(a\)' >/dev/null 2>&1 &&
21327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21333 rm -f conf$$ conf$$.exe conf$$.file
21334 if test -d conf$$.dir; then
21335 rm -f conf$$.dir/conf$$.file
21341 if ln -s conf$$.file conf$$ 2>/dev/null; then
21343 # ... but there are two gotchas:
21344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21346 # In both cases, we have to default to `cp -p'.
21347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21349 elif ln conf$$.file conf$$ 2>/dev/null; then
21354 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21355 rmdir conf$$.dir 2>/dev/null
21357 if mkdir -p . 2>/dev/null; then
21360 test -d ./-p && rmdir ./-p
21364 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21365 # systems may use methods other than mode bits to determine executability.
21366 cat >conf$$.file <<_ASEOF
21370 chmod +x conf$$.file
21371 if test -x conf$$.file >/dev/null 2>&1; then
21372 as_executable_p="test -x"
21378 # Sed expression to map a string onto a valid CPP name.
21379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21381 # Sed expression to map a string onto a valid variable name.
21382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21387 # Save the log message, to keep $[0] and so on meaningful, and to
21388 # report actual input values of CONFIG_FILES etc. instead of their
21389 # values after options handling.
21391 This file was extended by [SAMPLE] $as_me [x.xx], which was
21392 generated by GNU Autoconf 2.60. Invocation command line was
21394 CONFIG_FILES = $CONFIG_FILES
21395 CONFIG_HEADERS = $CONFIG_HEADERS
21396 CONFIG_LINKS = $CONFIG_LINKS
21397 CONFIG_COMMANDS = $CONFIG_COMMANDS
21400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21405 cat >>$CONFIG_STATUS <<_ACEOF
21406 # Files that config.status was made for.
21407 config_files="$ac_config_files"
21408 config_commands="$ac_config_commands"
21412 cat >>$CONFIG_STATUS <<\_ACEOF
21414 \`$as_me' instantiates files from templates according to the
21415 current configuration.
21417 Usage: $0 [OPTIONS] [FILE]...
21419 -h, --help print this help, then exit
21420 -V, --version print version number, then exit
21421 -q, --quiet do not print progress messages
21422 -d, --debug don't remove temporary files
21423 --recheck update $as_me by reconfiguring in the same conditions
21424 --file=FILE[:TEMPLATE]
21425 instantiate the configuration file FILE
21427 Configuration files:
21430 Configuration commands:
21433 Report bugs to <bug-autoconf@gnu.org>."
21436 cat >>$CONFIG_STATUS <<_ACEOF
21438 [SAMPLE] config.status [x.xx]
21439 configured by $0, generated by GNU Autoconf 2.60,
21440 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21442 Copyright (C) 2006 Free Software Foundation, Inc.
21443 This config.status script is free software; the Free Software Foundation
21444 gives unlimited permission to copy, distribute and modify it."
21451 cat >>$CONFIG_STATUS <<\_ACEOF
21452 # If no file are specified by the user, then we need to provide default
21453 # value. By we need to know if files were specified by the user.
21459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21471 # Handling of the options.
21472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21474 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21475 echo "$ac_cs_version"; exit ;;
21476 --debug | --debu | --deb | --de | --d | -d )
21478 --file | --fil | --fi | --f )
21480 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21481 ac_need_defaults=false;;
21482 --he | --h | --help | --hel | -h )
21483 echo "$ac_cs_usage"; exit ;;
21484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21485 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21488 # This is an error.
21489 -*) { echo "$as_me: error: unrecognized option: $1
21490 Try \`$0 --help' for more information." >&2
21491 { (exit 1); exit 1; }; } ;;
21493 *) ac_config_targets="$ac_config_targets $1"
21494 ac_need_defaults=false ;;
21500 ac_configure_extra_args=
21502 if $ac_cs_silent; then
21504 ac_configure_extra_args="$ac_configure_extra_args --silent"
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 if \$ac_cs_recheck; then
21510 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21511 CONFIG_SHELL=$SHELL
21512 export CONFIG_SHELL
21513 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21517 cat >>$CONFIG_STATUS <<\_ACEOF
21521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21522 ## Running $as_me. ##
21528 cat >>$CONFIG_STATUS <<_ACEOF
21532 llvm_src="${LLVM_SRC}"
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21538 # Handling of arguments.
21539 for ac_config_target in $ac_config_targets
21541 case $ac_config_target in
21542 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21543 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21544 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21545 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21546 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21547 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21548 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21549 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21551 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21553 { (exit 1); exit 1; }; };;
21558 # If the user did not use the arguments to specify the items to instantiate,
21559 # then the envvar interface is used. Set only those that are not.
21560 # We use the long form for the default assignment because of an extremely
21561 # bizarre bug on SunOS 4.1.3.
21562 if $ac_need_defaults; then
21563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21567 # Have a temporary directory for convenience. Make it in the build tree
21568 # simply because there is no reason against having it here, and in addition,
21569 # creating and moving files from /tmp can sometimes cause problems.
21570 # Hook for its removal unless debugging.
21571 # Note that there is a small window in which the directory will not be cleaned:
21572 # after its creation but before its name has been assigned to `$tmp'.
21576 trap 'exit_status=$?
21577 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21579 trap '{ (exit 1); exit 1; }' 1 2 13 15
21581 # Create a (secure) tmp directory for tmp files.
21584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21585 test -n "$tmp" && test -d "$tmp"
21588 tmp=./conf$$-$RANDOM
21589 (umask 077 && mkdir "$tmp")
21592 echo "$me: cannot create a temporary directory in ." >&2
21593 { (exit 1); exit 1; }
21597 # Set up the sed scripts for CONFIG_FILES section.
21600 # No need to generate the scripts if there are no CONFIG_FILES.
21601 # This happens for instance when ./config.status config.h
21602 if test -n "$CONFIG_FILES"; then
21609 for ac_last_try in false false false false false :; do
21610 cat >conf$$subs.sed <<_ACEOF
21611 SHELL!$SHELL$ac_delim
21612 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21613 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21614 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21615 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21616 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21617 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21618 exec_prefix!$exec_prefix$ac_delim
21619 prefix!$prefix$ac_delim
21620 program_transform_name!$program_transform_name$ac_delim
21621 bindir!$bindir$ac_delim
21622 sbindir!$sbindir$ac_delim
21623 libexecdir!$libexecdir$ac_delim
21624 datarootdir!$datarootdir$ac_delim
21625 datadir!$datadir$ac_delim
21626 sysconfdir!$sysconfdir$ac_delim
21627 sharedstatedir!$sharedstatedir$ac_delim
21628 localstatedir!$localstatedir$ac_delim
21629 includedir!$includedir$ac_delim
21630 oldincludedir!$oldincludedir$ac_delim
21631 docdir!$docdir$ac_delim
21632 infodir!$infodir$ac_delim
21633 htmldir!$htmldir$ac_delim
21634 dvidir!$dvidir$ac_delim
21635 pdfdir!$pdfdir$ac_delim
21636 psdir!$psdir$ac_delim
21637 libdir!$libdir$ac_delim
21638 localedir!$localedir$ac_delim
21639 mandir!$mandir$ac_delim
21640 DEFS!$DEFS$ac_delim
21641 ECHO_C!$ECHO_C$ac_delim
21642 ECHO_N!$ECHO_N$ac_delim
21643 ECHO_T!$ECHO_T$ac_delim
21644 LIBS!$LIBS$ac_delim
21645 build_alias!$build_alias$ac_delim
21646 host_alias!$host_alias$ac_delim
21647 target_alias!$target_alias$ac_delim
21648 LLVM_SRC!$LLVM_SRC$ac_delim
21649 LLVM_OBJ!$LLVM_OBJ$ac_delim
21650 LLVM_VERSION!$LLVM_VERSION$ac_delim
21652 CFLAGS!$CFLAGS$ac_delim
21653 LDFLAGS!$LDFLAGS$ac_delim
21654 CPPFLAGS!$CPPFLAGS$ac_delim
21655 ac_ct_CC!$ac_ct_CC$ac_delim
21656 EXEEXT!$EXEEXT$ac_delim
21657 OBJEXT!$OBJEXT$ac_delim
21659 CXXFLAGS!$CXXFLAGS$ac_delim
21660 ac_ct_CXX!$ac_ct_CXX$ac_delim
21662 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21663 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21664 subdirs!$subdirs$ac_delim
21665 build!$build$ac_delim
21666 build_cpu!$build_cpu$ac_delim
21667 build_vendor!$build_vendor$ac_delim
21668 build_os!$build_os$ac_delim
21669 host!$host$ac_delim
21670 host_cpu!$host_cpu$ac_delim
21671 host_vendor!$host_vendor$ac_delim
21672 host_os!$host_os$ac_delim
21673 target!$target$ac_delim
21674 target_cpu!$target_cpu$ac_delim
21675 target_vendor!$target_vendor$ac_delim
21676 target_os!$target_os$ac_delim
21678 HOST_OS!$HOST_OS$ac_delim
21679 TARGET_OS!$TARGET_OS$ac_delim
21680 LINKALL!$LINKALL$ac_delim
21681 NOLINKALL!$NOLINKALL$ac_delim
21682 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21683 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21684 ARCH!$ARCH$ac_delim
21685 ENDIAN!$ENDIAN$ac_delim
21686 GREP!$GREP$ac_delim
21687 EGREP!$EGREP$ac_delim
21688 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21689 BUILD_CC!$BUILD_CC$ac_delim
21690 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21691 BUILD_CXX!$BUILD_CXX$ac_delim
21692 CVSBUILD!$CVSBUILD$ac_delim
21693 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21694 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21695 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21696 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21697 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21698 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21699 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21700 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21701 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21702 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21704 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21705 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21706 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21707 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21710 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21712 elif $ac_last_try; then
21713 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21714 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21715 { (exit 1); exit 1; }; }
21717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21721 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21722 if test -n "$ac_eof"; then
21723 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21724 ac_eof=`expr $ac_eof + 1`
21727 cat >>$CONFIG_STATUS <<_ACEOF
21728 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21732 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21733 s/^/s,@/; s/!/@,|#_!!_#|/
21736 s/'"$ac_delim"'$/,g/; t
21738 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21739 ' >>$CONFIG_STATUS <conf$$subs.sed
21740 rm -f conf$$subs.sed
21741 cat >>$CONFIG_STATUS <<_ACEOF
21747 for ac_last_try in false false false false false :; do
21748 cat >conf$$subs.sed <<_ACEOF
21749 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21750 ENABLE_PIC!$ENABLE_PIC$ac_delim
21751 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21752 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21753 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21754 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21755 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21756 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21757 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21758 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21759 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21760 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21761 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21762 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21764 ifGNUmake!$ifGNUmake$ac_delim
21765 LN_S!$LN_S$ac_delim
21768 DATE!$DATE$ac_delim
21769 FIND!$FIND$ac_delim
21770 MKDIR!$MKDIR$ac_delim
21772 RANLIB!$RANLIB$ac_delim
21777 BINPWD!$BINPWD$ac_delim
21778 GRAPHVIZ!$GRAPHVIZ$ac_delim
21781 NEATO!$NEATO$ac_delim
21782 TWOPI!$TWOPI$ac_delim
21783 CIRCO!$CIRCO$ac_delim
21785 DOTTY!$DOTTY$ac_delim
21786 XDOT_PY!$XDOT_PY$ac_delim
21787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789 INSTALL_DATA!$INSTALL_DATA$ac_delim
21790 BZIP2!$BZIP2$ac_delim
21792 DOXYGEN!$DOXYGEN$ac_delim
21793 GROFF!$GROFF$ac_delim
21794 GZIPBIN!$GZIPBIN$ac_delim
21795 POD2HTML!$POD2HTML$ac_delim
21796 POD2MAN!$POD2MAN$ac_delim
21797 PDFROFF!$PDFROFF$ac_delim
21798 RUNTEST!$RUNTEST$ac_delim
21799 TCLSH!$TCLSH$ac_delim
21801 OCAMLC!$OCAMLC$ac_delim
21802 OCAMLOPT!$OCAMLOPT$ac_delim
21803 OCAMLDEP!$OCAMLDEP$ac_delim
21804 OCAMLDOC!$OCAMLDOC$ac_delim
21806 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21807 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811 LIBADD_DL!$LIBADD_DL$ac_delim
21812 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21813 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21814 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21815 USE_UDIS86!$USE_UDIS86$ac_delim
21816 USE_OPROFILE!$USE_OPROFILE$ac_delim
21817 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21818 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21819 MMAP_FILE!$MMAP_FILE$ac_delim
21820 SHLIBEXT!$SHLIBEXT$ac_delim
21821 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21822 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21823 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21824 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21825 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21826 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21827 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21828 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21829 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21830 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21831 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21832 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21833 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21834 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21835 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21836 RPATH!$RPATH$ac_delim
21837 RDYNAMIC!$RDYNAMIC$ac_delim
21838 LIBOBJS!$LIBOBJS$ac_delim
21839 LTLIBOBJS!$LTLIBOBJS$ac_delim
21842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21844 elif $ac_last_try; then
21845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21847 { (exit 1); exit 1; }; }
21849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21854 if test -n "$ac_eof"; then
21855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21856 ac_eof=`expr $ac_eof + 1`
21859 cat >>$CONFIG_STATUS <<_ACEOF
21860 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21865 s/^/s,@/; s/!/@,|#_!!_#|/
21868 s/'"$ac_delim"'$/,g/; t
21870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21871 ' >>$CONFIG_STATUS <conf$$subs.sed
21872 rm -f conf$$subs.sed
21873 cat >>$CONFIG_STATUS <<_ACEOF
21880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21882 # trailing colons and then remove the whole line if VPATH becomes empty
21883 # (actually we leave an empty line to preserve line numbers).
21884 if test "x$srcdir" = x.; then
21885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21886 s/:*\$(srcdir):*/:/
21887 s/:*\${srcdir}:*/:/
21889 s/^\([^=]*=[ ]*\):*/\1/
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 fi # test -n "$CONFIG_FILES"
21899 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21902 :[FHLC]) ac_mode=$ac_tag; continue;;
21904 case $ac_mode$ac_tag in
21906 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21907 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21908 { (exit 1); exit 1; }; };;
21909 :[FH]-) ac_tag=-:-;;
21910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21927 -) ac_f="$tmp/stdin";;
21928 *) # Look for the file first in the build tree, then in the source tree
21929 # (if the path is not absolute). The absolute path cannot be DOS-style,
21930 # because $ac_f cannot contain `:'.
21934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21936 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21937 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21938 { (exit 1); exit 1; }; };;
21940 ac_file_inputs="$ac_file_inputs $ac_f"
21943 # Let's still pretend it is `configure' which instantiates (i.e., don't
21944 # use $as_me), people would be surprised to read:
21945 # /* config.h. Generated by config.status. */
21946 configure_input="Generated from "`IFS=:
21947 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21948 if test x"$ac_file" != x-; then
21949 configure_input="$ac_file. $configure_input"
21950 { echo "$as_me:$LINENO: creating $ac_file" >&5
21951 echo "$as_me: creating $ac_file" >&6;}
21955 *:-:* | *:-) cat >"$tmp/stdin";;
21960 ac_dir=`$as_dirname -- "$ac_file" ||
21961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21962 X"$ac_file" : 'X\(//\)[^/]' \| \
21963 X"$ac_file" : 'X\(//\)$' \| \
21964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21970 /^X\(\/\/\)[^/].*/{
21985 -*) as_dir=./$as_dir;;
21987 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21991 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21992 *) as_qdir=$as_dir;;
21994 as_dirs="'$as_qdir' $as_dirs"
21995 as_dir=`$as_dirname -- "$as_dir" ||
21996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21997 X"$as_dir" : 'X\(//\)[^/]' \| \
21998 X"$as_dir" : 'X\(//\)$' \| \
21999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22005 /^X\(\/\/\)[^/].*/{
22018 test -d "$as_dir" && break
22020 test -z "$as_dirs" || eval "mkdir $as_dirs"
22021 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22022 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22023 { (exit 1); exit 1; }; }; }
22027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22030 # A ".." for each directory in $ac_dir_suffix.
22031 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22032 case $ac_top_builddir_sub in
22033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22037 ac_abs_top_builddir=$ac_pwd
22038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22039 # for backward compatibility:
22040 ac_top_builddir=$ac_top_build_prefix
22043 .) # We are building in place.
22045 ac_top_srcdir=$ac_top_builddir_sub
22046 ac_abs_top_srcdir=$ac_pwd ;;
22047 [\\/]* | ?:[\\/]* ) # Absolute name.
22048 ac_srcdir=$srcdir$ac_dir_suffix;
22049 ac_top_srcdir=$srcdir
22050 ac_abs_top_srcdir=$srcdir ;;
22051 *) # Relative name.
22052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22053 ac_top_srcdir=$ac_top_build_prefix$srcdir
22054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22071 cat >>$CONFIG_STATUS <<\_ACEOF
22072 # If the template does not know about datarootdir, expand it.
22073 # FIXME: This hack should be removed a few years after 2.60.
22074 ac_datarootdir_hack=; ac_datarootdir_seen=
22076 case `sed -n '/datarootdir/ {
22085 ' $ac_file_inputs` in
22086 *datarootdir*) ac_datarootdir_seen=yes;;
22087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22088 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22089 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22091 cat >>$CONFIG_STATUS <<_ACEOF
22092 ac_datarootdir_hack='
22093 s&@datadir@&$datadir&g
22094 s&@docdir@&$docdir&g
22095 s&@infodir@&$infodir&g
22096 s&@localedir@&$localedir&g
22097 s&@mandir@&$mandir&g
22098 s&\\\${datarootdir}&$datarootdir&g' ;;
22102 # Neutralize VPATH when `$srcdir' = `.'.
22103 # Shell code in configure.ac might set extrasub.
22104 # FIXME: do we really want to maintain this feature?
22105 cat >>$CONFIG_STATUS <<_ACEOF
22109 cat >>$CONFIG_STATUS <<\_ACEOF
22111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22112 s&@configure_input@&$configure_input&;t t
22113 s&@top_builddir@&$ac_top_builddir_sub&;t t
22114 s&@srcdir@&$ac_srcdir&;t t
22115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22116 s&@top_srcdir@&$ac_top_srcdir&;t t
22117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22118 s&@builddir@&$ac_builddir&;t t
22119 s&@abs_builddir@&$ac_abs_builddir&;t t
22120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22121 s&@INSTALL@&$ac_INSTALL&;t t
22122 $ac_datarootdir_hack
22123 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22126 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22128 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22129 which seems to be undefined. Please make sure it is defined." >&5
22130 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22131 which seems to be undefined. Please make sure it is defined." >&2;}
22135 -) cat "$tmp/out"; rm -f "$tmp/out";;
22136 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22141 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22142 echo "$as_me: executing $ac_file commands" >&6;}
22147 case $ac_file$ac_mode in
22148 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22149 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22150 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22151 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22152 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22153 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22154 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22155 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22156 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22157 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22163 { (exit 0); exit 0; }
22165 chmod +x $CONFIG_STATUS
22166 ac_clean_files=$ac_clean_files_save
22169 # configure is writing to config.log, and then calls config.status.
22170 # config.status does its own redirection, appending to config.log.
22171 # Unfortunately, on DOS this fails, as config.log is still kept open
22172 # by configure, so config.status won't be able to write to it; its
22173 # output is simply discarded. So we exec the FD to /dev/null,
22174 # effectively closing config.log, so it can be properly (re)opened and
22175 # appended to by config.status. When coming back to configure, we
22176 # need to make the FD available again.
22177 if test "$no_create" != yes; then
22179 ac_config_status_args=
22180 test "$silent" = yes &&
22181 ac_config_status_args="$ac_config_status_args --quiet"
22183 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22185 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22186 # would make configure fail if this is the last instruction.
22187 $ac_cs_success || { (exit 1); exit 1; }
22191 # CONFIG_SUBDIRS section.
22193 if test "$no_recursion" != yes; then
22195 # Remove --cache-file and --srcdir arguments so they do not pile up.
22196 ac_sub_configure_args=
22198 eval "set x $ac_configure_args"
22202 if test -n "$ac_prev"; then
22207 -cache-file | --cache-file | --cache-fil | --cache-fi \
22208 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22209 ac_prev=cache_file ;;
22210 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22211 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22214 --config-cache | -C)
22216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22220 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22222 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22226 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22228 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22232 # Always prepend --prefix to ensure using the same prefix
22233 # in subdir configurations.
22234 ac_arg="--prefix=$prefix"
22236 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22238 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22241 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22243 # Do not complain, so a configure script can configure whichever
22244 # parts of a large source tree are present.
22245 test -d "$srcdir/$ac_dir" || continue
22247 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22248 echo "$as_me:$LINENO: $ac_msg" >&5
22252 -*) as_dir=./$as_dir;;
22254 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22258 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22259 *) as_qdir=$as_dir;;
22261 as_dirs="'$as_qdir' $as_dirs"
22262 as_dir=`$as_dirname -- "$as_dir" ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264 X"$as_dir" : 'X\(//\)[^/]' \| \
22265 X"$as_dir" : 'X\(//\)$' \| \
22266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22272 /^X\(\/\/\)[^/].*/{
22285 test -d "$as_dir" && break
22287 test -z "$as_dirs" || eval "mkdir $as_dirs"
22288 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22289 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22290 { (exit 1); exit 1; }; }; }
22294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22297 # A ".." for each directory in $ac_dir_suffix.
22298 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22299 case $ac_top_builddir_sub in
22300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22304 ac_abs_top_builddir=$ac_pwd
22305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22306 # for backward compatibility:
22307 ac_top_builddir=$ac_top_build_prefix
22310 .) # We are building in place.
22312 ac_top_srcdir=$ac_top_builddir_sub
22313 ac_abs_top_srcdir=$ac_pwd ;;
22314 [\\/]* | ?:[\\/]* ) # Absolute name.
22315 ac_srcdir=$srcdir$ac_dir_suffix;
22316 ac_top_srcdir=$srcdir
22317 ac_abs_top_srcdir=$srcdir ;;
22318 *) # Relative name.
22319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22320 ac_top_srcdir=$ac_top_build_prefix$srcdir
22321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22328 # Check for guested configure; otherwise get Cygnus style configure.
22329 if test -f "$ac_srcdir/configure.gnu"; then
22330 ac_sub_configure=$ac_srcdir/configure.gnu
22331 elif test -f "$ac_srcdir/configure"; then
22332 ac_sub_configure=$ac_srcdir/configure
22333 elif test -f "$ac_srcdir/configure.in"; then
22334 # This should be Cygnus configure.
22335 ac_sub_configure=$ac_aux_dir/configure
22337 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22338 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22342 # The recursion is here.
22343 if test -n "$ac_sub_configure"; then
22344 # Make the cache file name correct relative to the subdirectory.
22345 case $cache_file in
22346 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22347 *) # Relative name.
22348 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22351 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22352 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22353 # The eval makes quoting arguments work.
22354 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22355 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22356 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22357 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22358 { (exit 1); exit 1; }; }