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, cbe, 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 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3848 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3849 xcore-*) llvm_cv_target_arch="XCore" ;;
3850 msp430-*) llvm_cv_target_arch="MSP430" ;;
3851 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3852 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3853 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3854 *) llvm_cv_target_arch="Unknown" ;;
3857 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3858 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3860 if test "$llvm_cv_target_arch" = "Unknown" ; then
3861 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3862 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3865 # Determine the LLVM native architecture for the target
3866 case "$llvm_cv_target_arch" in
3867 x86) LLVM_NATIVE_ARCH="X86" ;;
3868 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3869 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3872 ARCH=$llvm_cv_target_arch
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 $ac_path_GREP_found && break 3
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3946 ac_cv_path_GREP=$GREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3964 # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_EGREP_found && break 3
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_EGREP=$EGREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041 if test "${ac_cv_header_stdc+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_header_stdc=yes
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 ac_cv_header_stdc=no
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119 $EGREP "memchr" >/dev/null 2>&1; then
4122 ac_cv_header_stdc=no
4128 if test $ac_cv_header_stdc = yes; then
4129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "free" >/dev/null 2>&1; then
4143 ac_cv_header_stdc=no
4149 if test $ac_cv_header_stdc = yes; then
4150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4151 if test "$cross_compiling" = yes; then
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4162 #if ((' ' & 0x0FF) == 0x020)
4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4166 # define ISLOWER(c) \
4167 (('a' <= (c) && (c) <= 'i') \
4168 || ('j' <= (c) && (c) <= 'r') \
4169 || ('s' <= (c) && (c) <= 'z'))
4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4178 for (i = 0; i < 256; i++)
4179 if (XOR (islower (i), ISLOWER (i))
4180 || toupper (i) != TOUPPER (i))
4185 rm -f conftest$ac_exeext
4186 if { (ac_try="$ac_link"
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_link") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4207 echo "$as_me: program exited with status $ac_status" >&5
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_cv_header_stdc=no
4214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4220 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4222 if test $ac_cv_header_stdc = yes; then
4224 cat >>confdefs.h <<\_ACEOF
4225 #define STDC_HEADERS 1
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241 inttypes.h stdint.h unistd.h
4243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4257 #include <$ac_header>
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 eval "$as_ac_Header=yes"
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 eval "$as_ac_Header=no"
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_res=`eval echo '${'$as_ac_Header'}'`
4304 { echo "$as_me:$LINENO: result: $ac_res" >&5
4305 echo "${ECHO_T}$ac_res" >&6; }
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307 cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4317 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4318 if test "${ac_cv_c_bigendian+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 # See if sys/param.h defines the BYTE_ORDER macro.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 #include <sys/types.h>
4329 #include <sys/param.h>
4334 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4351 grep -v '^ *+' conftest.er1 >conftest.err
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 # It does; now see whether it defined to BIG_ENDIAN or not.
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <sys/types.h>
4384 #include <sys/param.h>
4389 #if BYTE_ORDER != BIG_ENDIAN
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_try") 2>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_cv_c_bigendian=yes
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_c_bigendian=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 # It does not; compile a test program.
4445 if test "$cross_compiling" = yes; then
4446 # try to guess the endianness by grepping values into an object file
4447 ac_cv_c_bigendian=unknown
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4463 _ascii (); _ebcdic ();
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4503 ac_cv_c_bigendian=yes
4505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4506 if test "$ac_cv_c_bigendian" = unknown; then
4507 ac_cv_c_bigendian=no
4509 # finding both strings is unlikely to happen, but who knows?
4510 ac_cv_c_bigendian=unknown
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4533 /* Are we little or big endian? From Harbison&Steele. */
4537 char c[sizeof (long int)];
4540 return u.c[sizeof (long int) - 1] == 1;
4546 rm -f conftest$ac_exeext
4547 if { (ac_try="$ac_link"
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_link") 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_try") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; }; then
4566 ac_cv_c_bigendian=no
4568 echo "$as_me: program exited with status $ac_status" >&5
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4573 ac_cv_c_bigendian=yes
4575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4584 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4585 case $ac_cv_c_bigendian in
4593 { { echo "$as_me:$LINENO: error: unknown endianness
4594 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4595 echo "$as_me: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4597 { (exit 1); exit 1; }; } ;;
4601 if test "$cross_compiling" = yes; then
4602 LLVM_CROSS_COMPILING=1
4605 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4606 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4607 if test "${ac_cv_build_exeext+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4611 ac_cv_build_exeext=.exe
4613 ac_build_prefix=${build_alias}-
4615 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4616 set dummy ${ac_build_prefix}gcc; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$BUILD_CC"; then
4623 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 BUILD_CC=$ac_cv_prog_BUILD_CC
4643 if test -n "$BUILD_CC"; then
4644 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645 echo "${ECHO_T}$BUILD_CC" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 if test -z "$BUILD_CC"; then
4653 # Extract the first word of "gcc", so it can be a program name with args.
4654 set dummy gcc; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test -n "$BUILD_CC"; then
4661 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_BUILD_CC="gcc"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 BUILD_CC=$ac_cv_prog_BUILD_CC
4681 if test -n "$BUILD_CC"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4683 echo "${ECHO_T}$BUILD_CC" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4690 if test -z "$BUILD_CC"; then
4691 # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$BUILD_CC"; then
4699 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710 ac_prog_rejected=yes
4713 ac_cv_prog_BUILD_CC="cc"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 if test $ac_prog_rejected = yes; then
4722 # We found a bogon in the path, so make sure we never use it.
4723 set dummy $ac_cv_prog_BUILD_CC
4725 if test $# != 0; then
4726 # We chose a different compiler from the bogus one.
4727 # However, it has the same basename, so the bogon will be chosen
4728 # first if we set BUILD_CC to just the basename; use the full file name.
4730 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4735 BUILD_CC=$ac_cv_prog_BUILD_CC
4736 if test -n "$BUILD_CC"; then
4737 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4738 echo "${ECHO_T}$BUILD_CC" >&6; }
4740 { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4747 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4748 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4749 { (exit 1); exit 1; }; }
4750 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4752 echo 'int main () { return 0; }' > conftest.$ac_ext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4755 (eval $ac_build_link) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; then
4759 for file in conftest.*; do
4761 *.c | *.o | *.obj | *.dSYM) ;;
4762 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4766 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4767 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4768 { (exit 1); exit 1; }; }
4771 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4776 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4777 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4778 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4779 ac_build_exeext=$BUILD_EXEEXT
4781 ac_build_prefix=${build_alias}-
4782 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4783 set dummy ${ac_build_prefix}g++; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -n "$BUILD_CXX"; then
4790 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810 if test -n "$BUILD_CXX"; then
4811 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812 echo "${ECHO_T}$BUILD_CXX" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 if test -z "$BUILD_CXX"; then
4820 # Extract the first word of "g++", so it can be a program name with args.
4821 set dummy g++; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$BUILD_CXX"; then
4828 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_BUILD_CXX="g++"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4848 if test -n "$BUILD_CXX"; then
4849 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4850 echo "${ECHO_T}$BUILD_CXX" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 if test -z "$BUILD_CXX"; then
4858 # Extract the first word of "c++", so it can be a program name with args.
4859 set dummy c++; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$BUILD_CXX"; then
4866 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4877 ac_prog_rejected=yes
4880 ac_cv_prog_BUILD_CXX="c++"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 if test $ac_prog_rejected = yes; then
4889 # We found a bogon in the path, so make sure we never use it.
4890 set dummy $ac_cv_prog_BUILD_CXX
4892 if test $# != 0; then
4893 # We chose a different compiler from the bogus one.
4894 # However, it has the same basename, so the bogon will be chosen
4895 # first if we set BUILD_CXX to just the basename; use the full file name.
4897 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4902 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4903 if test -n "$BUILD_CXX"; then
4904 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4905 echo "${ECHO_T}$BUILD_CXX" >&6; }
4907 { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4915 LLVM_CROSS_COMPILING=0
4919 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4930 # Check whether --enable-libcpp was given.
4931 if test "${enable_libcpp+set}" = set; then
4932 enableval=$enable_libcpp;
4937 case "$enableval" in
4938 yes) ENABLE_LIBCPP=1
4942 default) ENABLE_LIBCPP=0
4944 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4945 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4949 # Check whether --enable-cxx11 was given.
4950 if test "${enable_cxx11+set}" = set; then
4951 enableval=$enable_cxx11;
4956 case "$enableval" in
4961 default) ENABLE_CXX11=0
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4968 # Check whether --enable-optimized was given.
4969 if test "${enable_optimized+set}" = set; then
4970 enableval=$enable_optimized;
4975 if test ${enableval} = "no" ; then
4979 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983 # Check whether --enable-profiling was given.
4984 if test "${enable_profiling+set}" = set; then
4985 enableval=$enable_profiling;
4990 if test ${enableval} = "no" ; then
4994 ENABLE_PROFILING=ENABLE_PROFILING=1
4998 # Check whether --enable-assertions was given.
4999 if test "${enable_assertions+set}" = set; then
5000 enableval=$enable_assertions;
5005 if test ${enableval} = "yes" ; then
5009 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013 # Check whether --enable-werror was given.
5014 if test "${enable_werror+set}" = set; then
5015 enableval=$enable_werror;
5020 case "$enableval" in
5021 yes) ENABLE_WERROR=1
5025 default) ENABLE_WERROR=0
5027 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5029 { (exit 1); exit 1; }; } ;;
5032 # Check whether --enable-expensive-checks was given.
5033 if test "${enable_expensive_checks+set}" = set; then
5034 enableval=$enable_expensive_checks;
5039 if test ${enableval} = "yes" ; then
5040 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5042 EXPENSIVE_CHECKS=yes
5045 ENABLE_EXPENSIVE_CHECKS=
5051 # Check whether --enable-debug-runtime was given.
5052 if test "${enable_debug_runtime+set}" = set; then
5053 enableval=$enable_debug_runtime;
5058 if test ${enableval} = "no" ; then
5062 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066 # Check whether --enable-debug-symbols was given.
5067 if test "${enable_debug_symbols+set}" = set; then
5068 enableval=$enable_debug_symbols;
5073 if test ${enableval} = "no" ; then
5077 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081 # Check whether --enable-jit was given.
5082 if test "${enable_jit+set}" = set; then
5083 enableval=$enable_jit;
5088 if test ${enableval} = "no"
5093 case "$llvm_cv_target_arch" in
5094 x86) TARGET_HAS_JIT=1
5096 Sparc) TARGET_HAS_JIT=0
5098 PowerPC) TARGET_HAS_JIT=1
5100 x86_64) TARGET_HAS_JIT=1
5102 ARM) TARGET_HAS_JIT=1
5104 Mips) TARGET_HAS_JIT=1
5106 XCore) TARGET_HAS_JIT=0
5108 MSP430) TARGET_HAS_JIT=0
5110 Hexagon) TARGET_HAS_JIT=0
5112 MBlaze) TARGET_HAS_JIT=0
5114 NVPTX) TARGET_HAS_JIT=0
5121 # Check whether --enable-docs was given.
5122 if test "${enable_docs+set}" = set; then
5123 enableval=$enable_docs;
5128 case "$enableval" in
5133 default) ENABLE_DOCS=1
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 # Check whether --enable-doxygen was given.
5141 if test "${enable_doxygen+set}" = set; then
5142 enableval=$enable_doxygen;
5147 case "$enableval" in
5148 yes) ENABLE_DOXYGEN=1
5150 no) ENABLE_DOXYGEN=0
5152 default) ENABLE_DOXYGEN=0
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 # Check whether --enable-threads was given.
5160 if test "${enable_threads+set}" = set; then
5161 enableval=$enable_threads;
5166 case "$enableval" in
5167 yes) ENABLE_THREADS=1
5169 no) ENABLE_THREADS=0
5171 default) ENABLE_THREADS=1
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 cat >>confdefs.h <<_ACEOF
5179 #define ENABLE_THREADS $ENABLE_THREADS
5183 # Check whether --enable-pthreads was given.
5184 if test "${enable_pthreads+set}" = set; then
5185 enableval=$enable_pthreads;
5190 case "$enableval" in
5191 yes) ENABLE_PTHREADS=1
5193 no) ENABLE_PTHREADS=0
5195 default) ENABLE_PTHREADS=1
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 # Check whether --enable-pic was given.
5203 if test "${enable_pic+set}" = set; then
5204 enableval=$enable_pic;
5209 case "$enableval" in
5214 default) ENABLE_PIC=1
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 cat >>confdefs.h <<_ACEOF
5222 #define ENABLE_PIC $ENABLE_PIC
5226 # Check whether --enable-shared was given.
5227 if test "${enable_shared+set}" = set; then
5228 enableval=$enable_shared;
5233 case "$enableval" in
5234 yes) ENABLE_SHARED=1
5238 default) ENABLE_SHARED=0
5240 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5241 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5245 # Check whether --enable-embed-stdcxx was given.
5246 if test "${enable_embed_stdcxx+set}" = set; then
5247 enableval=$enable_embed_stdcxx;
5252 case "$enableval" in
5253 yes) ENABLE_EMBED_STDCXX=1
5255 no) ENABLE_EMBED_STDCXX=0
5257 default) ENABLE_EMBED_STDCXX=1
5259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5260 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5264 # Check whether --enable-timestamps was given.
5265 if test "${enable_timestamps+set}" = set; then
5266 enableval=$enable_timestamps;
5271 case "$enableval" in
5272 yes) ENABLE_TIMESTAMPS=1
5274 no) ENABLE_TIMESTAMPS=0
5276 default) ENABLE_TIMESTAMPS=1
5278 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5279 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5283 cat >>confdefs.h <<_ACEOF
5284 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5289 # Check whether --enable-targets was given.
5290 if test "${enable_targets+set}" = set; then
5291 enableval=$enable_targets;
5296 if test "$enableval" = host-only ; then
5299 case "$enableval" in
5300 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5301 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5303 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5304 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5305 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5306 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5307 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5308 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5309 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5310 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5311 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5312 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5313 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5314 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5315 host) case "$llvm_cv_target_arch" in
5316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5320 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5324 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5325 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5326 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5327 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5328 echo "$as_me: error: Can not set target to build" >&2;}
5329 { (exit 1); exit 1; }; } ;;
5331 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5332 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5333 { (exit 1); exit 1; }; } ;;
5338 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5341 # Determine whether we are building LLVM support for the native architecture.
5342 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5343 for a_target in $TARGETS_TO_BUILD; do
5344 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5346 cat >>confdefs.h <<_ACEOF
5347 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5350 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5351 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5352 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5353 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5354 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5355 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5357 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5358 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5380 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5387 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5397 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5398 # target feature def files.
5399 LLVM_ENUM_TARGETS=""
5400 LLVM_ENUM_ASM_PRINTERS=""
5401 LLVM_ENUM_ASM_PARSERS=""
5402 LLVM_ENUM_DISASSEMBLERS=""
5403 for target_to_build in $TARGETS_TO_BUILD; do
5404 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5405 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5406 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5408 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5409 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5411 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5412 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5421 # Check whether --with-optimize-option was given.
5422 if test "${with_optimize_option+set}" = set; then
5423 withval=$with_optimize_option;
5428 { echo "$as_me:$LINENO: checking optimization flags" >&5
5429 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5432 case "$llvm_cv_os_type" in
5433 FreeBSD) optimize_option=-O2 ;;
5434 MingW) optimize_option=-O2 ;;
5435 *) optimize_option=-O3 ;;
5437 *) optimize_option="$withval" ;;
5439 OPTIMIZE_OPTION=$optimize_option
5441 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5442 echo "${ECHO_T}$optimize_option" >&6; }
5445 # Check whether --with-extra-options was given.
5446 if test "${with_extra_options+set}" = set; then
5447 withval=$with_extra_options;
5453 default) EXTRA_OPTIONS= ;;
5454 *) EXTRA_OPTIONS=$withval ;;
5456 EXTRA_OPTIONS=$EXTRA_OPTIONS
5460 # Check whether --with-extra-ld-options was given.
5461 if test "${with_extra_ld_options+set}" = set; then
5462 withval=$with_extra_ld_options;
5468 default) EXTRA_LD_OPTIONS= ;;
5469 *) EXTRA_LD_OPTIONS=$withval ;;
5471 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5474 # Check whether --enable-bindings was given.
5475 if test "${enable_bindings+set}" = set; then
5476 enableval=$enable_bindings;
5481 BINDINGS_TO_BUILD=""
5482 case "$enableval" in
5483 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5484 all ) BINDINGS_TO_BUILD="ocaml" ;;
5485 none | no) BINDINGS_TO_BUILD="" ;;
5486 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5487 case "$a_binding" in
5488 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5489 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5490 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5491 { (exit 1); exit 1; }; } ;;
5498 # Check whether --with-ocaml-libdir was given.
5499 if test "${with_ocaml_libdir+set}" = set; then
5500 withval=$with_ocaml_libdir;
5506 auto) with_ocaml_libdir="$withval" ;;
5507 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5508 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5509 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5510 { (exit 1); exit 1; }; } ;;
5514 # Check whether --with-clang-resource-dir was given.
5515 if test "${with_clang_resource_dir+set}" = set; then
5516 withval=$with_clang_resource_dir;
5522 cat >>confdefs.h <<_ACEOF
5523 #define CLANG_RESOURCE_DIR "$withval"
5528 # Check whether --with-c-include-dirs was given.
5529 if test "${with_c_include_dirs+set}" = set; then
5530 withval=$with_c_include_dirs;
5536 cat >>confdefs.h <<_ACEOF
5537 #define C_INCLUDE_DIRS "$withval"
5541 # Clang normally uses the system c++ headers and libraries. With this option,
5542 # clang will use the ones provided by a gcc installation instead. This option should
5543 # be passed the same value that was used with --prefix when configuring gcc.
5545 # Check whether --with-gcc-toolchain was given.
5546 if test "${with_gcc_toolchain+set}" = set; then
5547 withval=$with_gcc_toolchain;
5553 cat >>confdefs.h <<_ACEOF
5554 #define GCC_INSTALL_PREFIX "$withval"
5559 # Check whether --with-binutils-include was given.
5560 if test "${with_binutils_include+set}" = set; then
5561 withval=$with_binutils_include;
5567 default) WITH_BINUTILS_INCDIR=default ;;
5568 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5569 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5570 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5573 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5574 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5576 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5577 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5578 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5579 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5580 { (exit 1); exit 1; }; };
5585 # Check whether --with-bug-report-url was given.
5586 if test "${with_bug_report_url+set}" = set; then
5587 withval=$with_bug_report_url;
5589 withval="http://llvm.org/bugs/"
5593 cat >>confdefs.h <<_ACEOF
5594 #define BUG_REPORT_URL "$withval"
5598 # Check whether --enable-libffi was given.
5599 if test "${enable_libffi+set}" = set; then
5600 enableval=$enable_libffi; case "$enableval" in
5601 yes) llvm_cv_enable_libffi="yes" ;;
5602 no) llvm_cv_enable_libffi="no" ;;
5603 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5604 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5605 { (exit 1); exit 1; }; } ;;
5608 llvm_cv_enable_libffi=no
5613 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5614 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5615 if test "${lt_cv_path_NM+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 if test -n "$NM"; then
5619 # Let the user override the test.
5622 lt_nm_to_check="${ac_tool_prefix}nm"
5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624 lt_nm_to_check="$lt_nm_to_check nm"
5626 for lt_tmp_nm in $lt_nm_to_check; do
5627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5630 test -z "$ac_dir" && ac_dir=.
5631 tmp_nm="$ac_dir/$lt_tmp_nm"
5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5633 # Check to see if the nm accepts a BSD-compat flag.
5634 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5635 # nm: unknown option "B" ignored
5636 # Tru64's nm complains that /dev/null is an invalid object file
5637 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5638 */dev/null* | *'Invalid file or object type'*)
5639 lt_cv_path_NM="$tmp_nm -B"
5643 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5645 lt_cv_path_NM="$tmp_nm -p"
5649 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5650 continue # so that we can try to find one that supports BSD flags
5659 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5662 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5663 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5668 { echo "$as_me:$LINENO: checking for GNU make" >&5
5669 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5670 if test "${llvm_cv_gnu_make_command+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 llvm_cv_gnu_make_command=''
5674 for a in "$MAKE" make gmake gnumake ; do
5675 if test -z "$a" ; then continue ; fi ;
5676 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5678 llvm_cv_gnu_make_command=$a ;
5683 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5684 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5685 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5689 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5690 echo "${ECHO_T}\"Not found\"" >&6; };
5694 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5697 if test "$LN_S" = "ln -s"; then
5698 { echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6; }
5701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5702 echo "${ECHO_T}no, using $LN_S" >&6; }
5705 # Extract the first word of "cmp", so it can be a program name with args.
5706 set dummy cmp; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_path_CMP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5737 if test -n "$CMP"; then
5738 { echo "$as_me:$LINENO: result: $CMP" >&5
5739 echo "${ECHO_T}$CMP" >&6; }
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5746 # Extract the first word of "cp", so it can be a program name with args.
5747 set dummy cp; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_path_CP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5778 if test -n "$CP"; then
5779 { echo "$as_me:$LINENO: result: $CP" >&5
5780 echo "${ECHO_T}$CP" >&6; }
5782 { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5787 # Extract the first word of "date", so it can be a program name with args.
5788 set dummy date; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_DATE+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5818 DATE=$ac_cv_path_DATE
5819 if test -n "$DATE"; then
5820 { echo "$as_me:$LINENO: result: $DATE" >&5
5821 echo "${ECHO_T}$DATE" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5828 # Extract the first word of "find", so it can be a program name with args.
5829 set dummy find; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_FIND+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5859 FIND=$ac_cv_path_FIND
5860 if test -n "$FIND"; then
5861 { echo "$as_me:$LINENO: result: $FIND" >&5
5862 echo "${ECHO_T}$FIND" >&6; }
5864 { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5869 # Extract the first word of "grep", so it can be a program name with args.
5870 set dummy grep; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5900 GREP=$ac_cv_path_GREP
5901 if test -n "$GREP"; then
5902 { echo "$as_me:$LINENO: result: $GREP" >&5
5903 echo "${ECHO_T}$GREP" >&6; }
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5910 # Extract the first word of "mkdir", so it can be a program name with args.
5911 set dummy mkdir; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_MKDIR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5941 MKDIR=$ac_cv_path_MKDIR
5942 if test -n "$MKDIR"; then
5943 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5944 echo "${ECHO_T}$MKDIR" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5951 # Extract the first word of "mv", so it can be a program name with args.
5952 set dummy mv; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_MV+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5983 if test -n "$MV"; then
5984 { echo "$as_me:$LINENO: result: $MV" >&5
5985 echo "${ECHO_T}$MV" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 if test -n "$RANLIB"; then
6001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 RANLIB=$ac_cv_prog_RANLIB
6021 if test -n "$RANLIB"; then
6022 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6023 echo "${ECHO_T}$RANLIB" >&6; }
6025 { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6031 if test -z "$ac_cv_prog_RANLIB"; then
6032 ac_ct_RANLIB=$RANLIB
6033 # Extract the first word of "ranlib", so it can be a program name with args.
6034 set dummy ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$ac_ct_RANLIB"; then
6041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_RANLIB="ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6061 if test -n "$ac_ct_RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6063 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6069 if test "x$ac_ct_RANLIB" = x; then
6072 case $cross_compiling:$ac_tool_warned in
6074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075 whose name does not start with the host triplet. If you think this
6076 configuration is useful to you, please write to autoconf@gnu.org." >&5
6077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078 whose name does not start with the host triplet. If you think this
6079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080 ac_tool_warned=yes ;;
6082 RANLIB=$ac_ct_RANLIB
6085 RANLIB="$ac_cv_prog_RANLIB"
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$AR"; then
6118 { echo "$as_me:$LINENO: result: $AR" >&5
6119 echo "${ECHO_T}$AR" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6127 if test -z "$ac_cv_prog_AR"; then
6129 # Extract the first word of "ar", so it can be a program name with args.
6130 set dummy ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$ac_ct_AR"; then
6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_AR="ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157 if test -n "$ac_ct_AR"; then
6158 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6159 echo "${ECHO_T}$ac_ct_AR" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6165 if test "x$ac_ct_AR" = x; then
6168 case $cross_compiling:$ac_tool_warned in
6170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet. If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&5
6173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174 whose name does not start with the host triplet. If you think this
6175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176 ac_tool_warned=yes ;;
6184 # Extract the first word of "rm", so it can be a program name with args.
6185 set dummy rm; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_RM+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6216 if test -n "$RM"; then
6217 { echo "$as_me:$LINENO: result: $RM" >&5
6218 echo "${ECHO_T}$RM" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 # Extract the first word of "sed", so it can be a program name with args.
6226 set dummy sed; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_SED+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6257 if test -n "$SED"; then
6258 { echo "$as_me:$LINENO: result: $SED" >&5
6259 echo "${ECHO_T}$SED" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 # Extract the first word of "tar", so it can be a program name with args.
6267 set dummy tar; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_TAR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6298 if test -n "$TAR"; then
6299 { echo "$as_me:$LINENO: result: $TAR" >&5
6300 echo "${ECHO_T}$TAR" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6307 # Extract the first word of "pwd", so it can be a program name with args.
6308 set dummy pwd; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_BINPWD+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6338 BINPWD=$ac_cv_path_BINPWD
6339 if test -n "$BINPWD"; then
6340 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6341 echo "${ECHO_T}$BINPWD" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6349 # Extract the first word of "Graphviz", so it can be a program name with args.
6350 set dummy Graphviz; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6380 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6381 if test -n "$GRAPHVIZ"; then
6382 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6383 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6392 cat >>confdefs.h <<\_ACEOF
6393 #define HAVE_GRAPHVIZ 1
6396 if test "$llvm_cv_os_type" = "MingW" ; then
6397 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6400 cat >>confdefs.h <<_ACEOF
6401 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6405 # Extract the first word of "dot", so it can be a program name with args.
6406 set dummy dot; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_DOT+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6437 if test -n "$DOT"; then
6438 { echo "$as_me:$LINENO: result: $DOT" >&5
6439 echo "${ECHO_T}$DOT" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 if test "$DOT" != "echo dot" ; then
6448 cat >>confdefs.h <<\_ACEOF
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6461 # Extract the first word of "fdp", so it can be a program name with args.
6462 set dummy fdp; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_FDP+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6493 if test -n "$FDP"; then
6494 { echo "$as_me:$LINENO: result: $FDP" >&5
6495 echo "${ECHO_T}$FDP" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 if test "$FDP" != "echo fdp" ; then
6504 cat >>confdefs.h <<\_ACEOF
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6517 # Extract the first word of "neato", so it can be a program name with args.
6518 set dummy neato; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_NEATO+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6548 NEATO=$ac_cv_path_NEATO
6549 if test -n "$NEATO"; then
6550 { echo "$as_me:$LINENO: result: $NEATO" >&5
6551 echo "${ECHO_T}$NEATO" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 if test "$NEATO" != "echo neato" ; then
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_NEATO 1
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6573 # Extract the first word of "twopi", so it can be a program name with args.
6574 set dummy twopi; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_TWOPI+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6604 TWOPI=$ac_cv_path_TWOPI
6605 if test -n "$TWOPI"; then
6606 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6607 echo "${ECHO_T}$TWOPI" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 if test "$TWOPI" != "echo twopi" ; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_TWOPI 1
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6629 # Extract the first word of "circo", so it can be a program name with args.
6630 set dummy circo; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_CIRCO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6660 CIRCO=$ac_cv_path_CIRCO
6661 if test -n "$CIRCO"; then
6662 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6663 echo "${ECHO_T}$CIRCO" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6670 if test "$CIRCO" != "echo circo" ; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_CIRCO 1
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6685 for ac_prog in gv gsview32
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_GV+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$GV"; then
6719 { echo "$as_me:$LINENO: result: $GV" >&5
6720 echo "${ECHO_T}$GV" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 test -n "$GV" && break
6729 test -n "$GV" || GV="echo gv"
6731 if test "$GV" != "echo gv" ; then
6733 cat >>confdefs.h <<\_ACEOF
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_GV "$GV${EXEEXT}"
6746 # Extract the first word of "dotty", so it can be a program name with args.
6747 set dummy dotty; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_DOTTY+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6777 DOTTY=$ac_cv_path_DOTTY
6778 if test -n "$DOTTY"; then
6779 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6780 echo "${ECHO_T}$DOTTY" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 if test "$DOTTY" != "echo dotty" ; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_DOTTY 1
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6802 # Extract the first word of "xdot.py", so it can be a program name with args.
6803 set dummy xdot.py; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6833 XDOT_PY=$ac_cv_path_XDOT_PY
6834 if test -n "$XDOT_PY"; then
6835 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6836 echo "${ECHO_T}$XDOT_PY" >&6; }
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 if test "$XDOT_PY" != "echo xdot.py" ; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_XDOT_PY 1
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6859 # Find a good install program. We prefer a C program (faster),
6860 # so one script is as good as another. But avoid the broken or
6861 # incompatible versions:
6862 # SysV /etc/install, /usr/sbin/install
6863 # SunOS /usr/etc/install
6864 # IRIX /sbin/install
6866 # AmigaOS /C/install, which installs bootblocks on floppy discs
6867 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6868 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6869 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6870 # OS/2's system install, which has a completely different semantic
6871 # ./install, which can be erroneously created by make from ./install.sh.
6872 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6873 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6874 if test -z "$INSTALL"; then
6875 if test "${ac_cv_path_install+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 # Account for people who put trailing slashes in PATH elements.
6885 ./ | .// | /cC/* | \
6886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6890 # OSF1 and SCO ODT 3.0 have their own names for install.
6891 # Don't use installbsd from OSF since it installs stuff as root
6893 for ac_prog in ginstall scoinst install; do
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6896 if test $ac_prog = install &&
6897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6898 # AIX install. It has an incompatible calling convention.
6900 elif test $ac_prog = install &&
6901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6902 # program-specific install script used by HP pwplus--don't use.
6905 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6918 if test "${ac_cv_path_install+set}" = set; then
6919 INSTALL=$ac_cv_path_install
6921 # As a last resort, use the slow shell script. Don't cache a
6922 # value for INSTALL within a source directory, because that will
6923 # break other packages using the cache if that directory is
6924 # removed, or if the value is a relative name.
6925 INSTALL=$ac_install_sh
6928 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6929 echo "${ECHO_T}$INSTALL" >&6; }
6931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6932 # It thinks the first close brace ends the variable substitution.
6933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6940 [\\/$]* | ?:[\\/]* ) ;;
6941 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6944 # Extract the first word of "bzip2", so it can be a program name with args.
6945 set dummy bzip2; ac_word=$2
6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6948 if test "${ac_cv_path_BZIP2+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 BZIP2=$ac_cv_path_BZIP2
6975 if test -n "$BZIP2"; then
6976 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6977 echo "${ECHO_T}$BZIP2" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "cat", so it can be a program name with args.
6985 set dummy cat; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_CAT+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 if test -n "$CAT"; then
7016 { echo "$as_me:$LINENO: result: $CAT" >&5
7017 echo "${ECHO_T}$CAT" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7024 # Extract the first word of "doxygen", so it can be a program name with args.
7025 set dummy doxygen; ac_word=$2
7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 DOXYGEN=$ac_cv_path_DOXYGEN
7055 if test -n "$DOXYGEN"; then
7056 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7057 echo "${ECHO_T}$DOXYGEN" >&6; }
7059 { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7064 # Extract the first word of "groff", so it can be a program name with args.
7065 set dummy groff; ac_word=$2
7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068 if test "${ac_cv_path_GROFF+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 GROFF=$ac_cv_path_GROFF
7095 if test -n "$GROFF"; then
7096 { echo "$as_me:$LINENO: result: $GROFF" >&5
7097 echo "${ECHO_T}$GROFF" >&6; }
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7104 # Extract the first word of "gzip", so it can be a program name with args.
7105 set dummy gzip; ac_word=$2
7106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 GZIPBIN=$ac_cv_path_GZIPBIN
7135 if test -n "$GZIPBIN"; then
7136 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7137 echo "${ECHO_T}$GZIPBIN" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7144 # Extract the first word of "pod2html", so it can be a program name with args.
7145 set dummy pod2html; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_POD2HTML+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 POD2HTML=$ac_cv_path_POD2HTML
7175 if test -n "$POD2HTML"; then
7176 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7177 echo "${ECHO_T}$POD2HTML" >&6; }
7179 { echo "$as_me:$LINENO: result: no" >&5
7180 echo "${ECHO_T}no" >&6; }
7184 # Extract the first word of "pod2man", so it can be a program name with args.
7185 set dummy pod2man; ac_word=$2
7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188 if test "${ac_cv_path_POD2MAN+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 POD2MAN=$ac_cv_path_POD2MAN
7215 if test -n "$POD2MAN"; then
7216 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7217 echo "${ECHO_T}$POD2MAN" >&6; }
7219 { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7224 # Extract the first word of "pdfroff", so it can be a program name with args.
7225 set dummy pdfroff; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_PDFROFF+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 PDFROFF=$ac_cv_path_PDFROFF
7255 if test -n "$PDFROFF"; then
7256 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7257 echo "${ECHO_T}$PDFROFF" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7264 # Extract the first word of "runtest", so it can be a program name with args.
7265 set dummy runtest; ac_word=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_path_RUNTEST+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 RUNTEST=$ac_cv_path_RUNTEST
7295 if test -n "$RUNTEST"; then
7296 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7297 echo "${ECHO_T}$RUNTEST" >&6; }
7299 { echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6; }
7306 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7307 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7309 # Check whether --with-tclinclude was given.
7310 if test "${with_tclinclude+set}" = set; then
7311 withval=$with_tclinclude; with_tclinclude=${withval}
7316 if test "${ac_cv_path_tclsh+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 if test x"${with_tclinclude}" != x ; then
7321 if test -f ${with_tclinclude}/tclsh ; then
7322 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7323 elif test -f ${with_tclinclude}/src/tclsh ; then
7324 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7326 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7327 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7328 { (exit 1); exit 1; }; }
7334 if test x"${ac_cv_path_tclsh}" = x ; then
7335 { echo "$as_me:$LINENO: result: none" >&5
7336 echo "${ECHO_T}none" >&6; }
7337 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
7339 # Extract the first word of "$ac_prog", so it can be a program name with args.
7340 set dummy $ac_prog; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_TCLSH+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 TCLSH=$ac_cv_path_TCLSH
7370 if test -n "$TCLSH"; then
7371 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7372 echo "${ECHO_T}$TCLSH" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 test -n "$TCLSH" && break
7382 if test x"${TCLSH}" = x ; then
7383 ac_cv_path_tclsh='';
7385 ac_cv_path_tclsh="${TCLSH}";
7388 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7389 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7390 TCLSH="${ac_cv_path_tclsh}"
7394 # Extract the first word of "zip", so it can be a program name with args.
7395 set dummy zip; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_path_ZIP+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 if test -n "$ZIP"; then
7426 { echo "$as_me:$LINENO: result: $ZIP" >&5
7427 echo "${ECHO_T}$ZIP" >&6; }
7429 { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7434 for ac_prog in ocamlc
7436 # Extract the first word of "$ac_prog", so it can be a program name with args.
7437 set dummy $ac_prog; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_path_OCAMLC+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 OCAMLC=$ac_cv_path_OCAMLC
7467 if test -n "$OCAMLC"; then
7468 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7469 echo "${ECHO_T}$OCAMLC" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 test -n "$OCAMLC" && break
7479 for ac_prog in ocamlopt
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7485 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 OCAMLOPT=$ac_cv_path_OCAMLOPT
7512 if test -n "$OCAMLOPT"; then
7513 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7514 echo "${ECHO_T}$OCAMLOPT" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 test -n "$OCAMLOPT" && break
7524 for ac_prog in ocamldep
7526 # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 OCAMLDEP=$ac_cv_path_OCAMLDEP
7557 if test -n "$OCAMLDEP"; then
7558 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7559 echo "${ECHO_T}$OCAMLDEP" >&6; }
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7566 test -n "$OCAMLDEP" && break
7569 for ac_prog in ocamldoc
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 OCAMLDOC=$ac_cv_path_OCAMLDOC
7602 if test -n "$OCAMLDOC"; then
7603 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7604 echo "${ECHO_T}$OCAMLDOC" >&6; }
7606 { echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6; }
7611 test -n "$OCAMLDOC" && break
7614 for ac_prog in gas as
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620 if test "${ac_cv_path_GAS+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 if test -n "$GAS"; then
7648 { echo "$as_me:$LINENO: result: $GAS" >&5
7649 echo "${ECHO_T}$GAS" >&6; }
7651 { echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6; }
7656 test -n "$GAS" && break
7660 { echo "$as_me:$LINENO: checking for linker version" >&5
7661 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7662 if test "${llvm_cv_link_version+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 version_string="$(ld -v 2>&1 | head -1)"
7669 if (echo "$version_string" | grep -q "ld64"); then
7670 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7672 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7676 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7677 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7679 cat >>confdefs.h <<_ACEOF
7680 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7685 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7686 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7687 if test "${llvm_cv_link_use_r+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697 CFLAGS="$CFLAGS -Wl,-R."
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (ac_try="$ac_link"
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_link") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_try") 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 llvm_cv_link_use_r=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 llvm_cv_link_use_r=no
7755 rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7766 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7767 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7768 if test "$llvm_cv_link_use_r" = yes ; then
7770 cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_LINK_R 1
7777 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7778 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7779 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7839 llvm_cv_link_use_export_dynamic=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 llvm_cv_link_use_export_dynamic=no
7847 rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7858 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7859 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7860 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7862 cat >>confdefs.h <<\_ACEOF
7863 #define HAVE_LINK_EXPORT_DYNAMIC 1
7869 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7870 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7871 if test "${llvm_cv_link_use_version_script+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882 # The following code is from the autoconf manual,
7883 # "11.13: Limitations of Usual Tools".
7884 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7885 # Use mktemp if possible; otherwise fall back on mkdir,
7886 # with $RANDOM to make collisions less likely.
7890 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7892 test -n "$tmp" && test -d "$tmp"
7894 tmp=$TMPDIR/foo$$-$RANDOM
7895 (umask 077 && mkdir "$tmp")
7898 echo "{" > "$tmp/export.map"
7899 echo " global: main;" >> "$tmp/export.map"
7900 echo " local: *;" >> "$tmp/export.map"
7901 echo "};" >> "$tmp/export.map"
7903 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7934 { (case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_try") 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7953 llvm_cv_link_use_version_script=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 llvm_cv_link_use_version_script=no
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 rm "$tmp/export.map"
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7975 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7976 if test "$llvm_cv_link_use_version_script" = yes ; then
7977 HAVE_LINK_VERSION_SCRIPT=1
7984 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7985 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7986 if test "${ac_cv_c_const+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 cat >conftest.$ac_ext <<_ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7999 /* FIXME: Include the comments suggested by Paul. */
8001 /* Ultrix mips cc rejects this. */
8002 typedef int charset[2];
8004 /* SunOS 4.1.1 cc rejects this. */
8005 char const *const *ccp;
8007 /* NEC SVR4.0.2 mips cc rejects this. */
8008 struct point {int x, y;};
8009 static struct point const zero = {0,0};
8010 /* AIX XL C 1.02.0.0 rejects this.
8011 It does not let you subtract one const X* pointer from another in
8012 an arm of an if-expression whose if-part is not a constant
8014 const char *g = "string";
8015 ccp = &g + (g ? g-g : 0);
8016 /* HPUX 7.0 cc rejects these. */
8019 ccp = (char const *const *) p;
8020 { /* SCO 3.2v4 cc rejects this. */
8022 char const *s = 0 ? (char *) 0 : (char const *) 0;
8027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8029 const int *foo = &x[0];
8032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8033 typedef const int *iptr;
8037 { /* AIX XL C 1.02.0.0 rejects this saying
8038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8039 struct s { int j; const int *ap[3]; };
8040 struct s *b; b->j = 5;
8042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8046 return !x[0] && !zero.x;
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8099 if test $ac_cv_c_const = no; then
8101 cat >>confdefs.h <<\_ACEOF
8113 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8114 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8115 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8116 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8172 eval "$as_ac_Header=yes"
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 eval "$as_ac_Header=no"
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 ac_res=`eval echo '${'$as_ac_Header'}'`
8183 { echo "$as_me:$LINENO: result: $ac_res" >&5
8184 echo "${ECHO_T}$ac_res" >&6; }
8185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8190 ac_header_dirent=$ac_hdr; break
8194 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8195 if test $ac_header_dirent = dirent.h; then
8196 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8197 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8198 if test "${ac_cv_search_opendir+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 ac_func_search_save_LIBS=$LIBS
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8209 /* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8224 for ac_lib in '' dir; do
8225 if test -z "$ac_lib"; then
8226 ac_res="none required"
8229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (ac_try="$ac_link"
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8265 ac_cv_search_opendir=$ac_res
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8273 rm -f core conftest.err conftest.$ac_objext \
8275 if test "${ac_cv_search_opendir+set}" = set; then
8279 if test "${ac_cv_search_opendir+set}" = set; then
8282 ac_cv_search_opendir=no
8285 LIBS=$ac_func_search_save_LIBS
8287 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8288 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8289 ac_res=$ac_cv_search_opendir
8290 if test "$ac_res" != no; then
8291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8296 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8297 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8298 if test "${ac_cv_search_opendir+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_func_search_save_LIBS=$LIBS
8302 cat >conftest.$ac_ext <<_ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8309 /* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8324 for ac_lib in '' x; do
8325 if test -z "$ac_lib"; then
8326 ac_res="none required"
8329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8331 rm -f conftest.$ac_objext conftest$ac_exeext
8332 if { (ac_try="$ac_link"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_link") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8365 ac_cv_search_opendir=$ac_res
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8373 rm -f core conftest.err conftest.$ac_objext \
8375 if test "${ac_cv_search_opendir+set}" = set; then
8379 if test "${ac_cv_search_opendir+set}" = set; then
8382 ac_cv_search_opendir=no
8385 LIBS=$ac_func_search_save_LIBS
8387 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8388 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8389 ac_res=$ac_cv_search_opendir
8390 if test "$ac_res" != no; then
8391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8398 for ac_header in dlfcn.h
8400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_res=`eval echo '${'$as_ac_Header'}'`
8408 { echo "$as_me:$LINENO: result: $ac_res" >&5
8409 echo "${ECHO_T}$ac_res" >&6; }
8411 # Is the header compilable?
8412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #include <$ac_header>
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8457 ac_header_compiler=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_header_compiler=no
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467 echo "${ECHO_T}$ac_header_compiler" >&6; }
8469 # Is the header present?
8470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <$ac_header>
8480 if { (ac_try="$ac_cpp conftest.$ac_ext"
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null; then
8493 if test -s conftest.err; then
8494 ac_cpp_err=$ac_c_preproc_warn_flag
8495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8502 if test -z "$ac_cpp_err"; then
8503 ac_header_preproc=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_header_preproc=no
8511 rm -f conftest.err conftest.$ac_ext
8512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6; }
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8522 ac_header_preproc=yes
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8538 ## ------------------------------ ##
8539 ## Report this to bugs@yourdomain ##
8540 ## ------------------------------ ##
8542 ) | sed "s/^/$as_me: WARNING: /" >&2
8545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 eval "$as_ac_Header=\$ac_header_preproc"
8552 ac_res=`eval echo '${'$as_ac_Header'}'`
8553 { echo "$as_me:$LINENO: result: $ac_res" >&5
8554 echo "${ECHO_T}$ac_res" >&6; }
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566 # Check whether --enable-ltdl-install was given.
8567 if test "${enable_ltdl_install+set}" = set; then
8568 enableval=$enable_ltdl_install;
8574 if test x"${enable_ltdl_install-no}" != xno; then
8576 INSTALL_LTDL_FALSE='#'
8578 INSTALL_LTDL_TRUE='#'
8584 if test x"${enable_ltdl_convenience-no}" != xno; then
8585 CONVENIENCE_LTDL_TRUE=
8586 CONVENIENCE_LTDL_FALSE='#'
8588 CONVENIENCE_LTDL_TRUE='#'
8589 CONVENIENCE_LTDL_FALSE=
8593 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8596 libname_spec='lib$name'
8604 shlibpath_overrides_runpath=unknown
8606 dynamic_linker="$host_os ld.so"
8607 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8608 if test "$GCC" = yes; then
8609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8611 # if the path contains ";" then we assume it to be the separator
8612 # otherwise default to the standard path separator (i.e. ":") - it is
8613 # assumed that no part of a normal pathname contains ";" but that should
8614 # okay in the real world where ";" in dirpaths is itself problematic.
8615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8622 need_lib_prefix=unknown
8623 hardcode_into_libs=no
8625 # when you set need_version to no, make sure it does not cause -set_version
8626 # flags to be left without arguments
8627 need_version=unknown
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8633 shlibpath_var=LIBPATH
8635 # AIX 3 has no versioning support, so we append a major version to the name.
8636 soname_spec='${libname}${release}${shared_ext}$major'
8643 hardcode_into_libs=yes
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 supports IA64
8646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8647 shlibpath_var=LD_LIBRARY_PATH
8649 # With GCC up to 2.95.x, collect2 would create an import file
8650 # for dependence libraries. The import file would start with
8651 # the line `#! .'. This would cause the generated library to
8652 # depend on `.', always an invalid library. This was fixed in
8653 # development snapshots of GCC prior to 3.0.
8655 aix4 | aix4.[01] | aix4.[01].*)
8656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8666 # soname into executable. Probably we can add versioning support to
8667 # collect2, so additional links can be useful in future.
8668 if test "$aix_use_runtimelinking" = yes; then
8669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8670 # instead of lib<name>.a to let people know that these are not
8671 # typical AIX shared libraries.
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 # We preserve .a as extension for shared libraries through AIX4.2
8675 # and later when we are not doing run time linking.
8676 library_names_spec='${libname}${release}.a $libname.a'
8677 soname_spec='${libname}${release}${shared_ext}$major'
8679 shlibpath_var=LIBPATH
8684 library_names_spec='$libname.ixlibrary $libname.a'
8685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8686 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'
8690 library_names_spec='${libname}${shared_ext}'
8691 dynamic_linker="$host_os ld.so"
8692 shlibpath_var=LIBRARY_PATH
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8704 # the default ld.so.conf also contains /usr/contrib/lib and
8705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8706 # libtool to hard-code these into programs
8709 cygwin* | mingw* | pw32*)
8710 version_type=windows
8715 case $GCC,$host_os in
8716 yes,cygwin* | yes,mingw* | yes,pw32*)
8717 library_names_spec='$libname.dll.a'
8718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8719 postinstall_cmds='base_file=`basename \${file}`~
8720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8721 dldir=$destdir/`dirname \$dlpath`~
8722 test -d \$dldir || mkdir -p \$dldir~
8723 $install_prog $dir/$dlname \$dldir/$dlname~
8724 chmod a+x \$dldir/$dlname'
8725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8726 dlpath=$dir/\$dldll~
8728 shlibpath_overrides_runpath=yes
8732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8734 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8737 # MinGW DLLs use traditional 'lib' prefix
8738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8741 # It is most probably a Windows format PATH printed by
8742 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8743 # path with ; separators, and with drive letters. We can handle the
8744 # drive letters (cygwin fileutils understands them), so leave them,
8745 # especially as we might pass files found there to a mingw objdump,
8746 # which wouldn't understand a cygwinified path. Ahh.
8747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8753 # pw32 DLLs use 'pw' prefix rather than 'lib'
8754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8763 dynamic_linker='Win32 ld.exe'
8764 # FIXME: first we should search . and the directory the executable is in
8768 darwin* | rhapsody*)
8769 dynamic_linker="$host_os dyld"
8773 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8774 soname_spec='${libname}${release}${major}$shared_ext'
8775 shlibpath_overrides_runpath=yes
8776 shlibpath_var=DYLD_LIBRARY_PATH
8777 shrext_cmds='.dylib'
8778 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8779 if test "$GCC" = yes; then
8780 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"`
8782 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 shlibpath_var=LD_LIBRARY_PATH
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 shlibpath_overrides_runpath=no
8808 hardcode_into_libs=yes
8809 dynamic_linker='GNU ld.so'
8812 freebsd* | dragonfly*)
8813 # DragonFly does not have aout. When/if they implement a new
8814 # versioning mechanism, adjust this.
8815 if test -x /usr/bin/objformat; then
8816 objformat=`/usr/bin/objformat`
8819 freebsd[123].*) objformat=aout ;;
8823 version_type=freebsd-$objformat
8824 case $version_type in
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8835 shlibpath_var=LD_LIBRARY_PATH
8838 shlibpath_overrides_runpath=yes
8840 freebsd3.[01]* | freebsdelf3.[01]*)
8841 shlibpath_overrides_runpath=yes
8842 hardcode_into_libs=yes
8844 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8845 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8846 shlibpath_overrides_runpath=no
8847 hardcode_into_libs=yes
8849 freebsd*) # from 4.6 on
8850 shlibpath_overrides_runpath=yes
8851 hardcode_into_libs=yes
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 hardcode_into_libs=yes
8866 hpux9* | hpux10* | hpux11*)
8867 # Give a soname corresponding to the major version so that dld.sl refuses to
8868 # link against other versions.
8875 hardcode_into_libs=yes
8876 dynamic_linker="$host_os dld.so"
8877 shlibpath_var=LD_LIBRARY_PATH
8878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 if test "X$HPUX_IA64_MODE" = X32; then
8882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890 hardcode_into_libs=yes
8891 dynamic_linker="$host_os dld.sl"
8892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901 dynamic_linker="$host_os dld.sl"
8902 shlibpath_var=SHLIB_PATH
8903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8908 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8909 postinstall_cmds='chmod 555 $lib'
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 shlibpath_overrides_runpath=no
8921 hardcode_into_libs=yes
8924 irix5* | irix6* | nonstopux*)
8926 nonstopux*) version_type=nonstopux ;;
8928 if test "$lt_cv_prog_gnu_ld" = yes; then
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939 irix5* | nonstopux*)
8943 case $LD in # libtool.m4 will add one of these switches to LD
8944 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8945 libsuff= shlibsuff= libmagic=32-bit;;
8946 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8947 libsuff=32 shlibsuff=N32 libmagic=N32;;
8948 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8949 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8950 *) libsuff= shlibsuff= libmagic=never-match;;
8954 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8955 shlibpath_overrides_runpath=no
8956 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8957 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8958 hardcode_into_libs=yes
8961 # No shared lib support for Linux oldld, aout, or coff.
8962 linux*oldld* | linux*aout* | linux*coff*)
8966 # This must be Linux ELF.
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8974 shlibpath_var=LD_LIBRARY_PATH
8975 shlibpath_overrides_runpath=no
8976 # This implies no fast_install, which is unacceptable.
8977 # Some rework will be needed to allow for fast_install
8978 # before this can be enabled.
8979 hardcode_into_libs=yes
8981 # Append ld.so.conf contents to the search path
8982 if test -f /etc/ld.so.conf; then
8983 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' ' '`
8984 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8987 # We used to test for /lib/ld.so.1 and disable shared libraries on
8988 # powerpc, because MkLinux only supported shared libraries with the
8989 # GNU dynamic linker. Since this was broken with cross compilers,
8990 # most powerpc-linux boxes support dynamic linking these days and
8991 # people can always --disable-shared, the test was removed, and we
8992 # assume the GNU/Linux dynamic linker is in use.
8993 dynamic_linker='GNU/Linux ld.so'
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 dynamic_linker='GNU ld.so'
9012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9015 dynamic_linker='NetBSD (a.out) ld.so'
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 dynamic_linker='NetBSD ld.elf_so'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9023 hardcode_into_libs=yes
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9045 sys_lib_dlsearch_path_spec="/usr/lib"
9047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9050 *) need_version=no ;;
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057 openbsd2.[89] | openbsd2.[89].*)
9058 shlibpath_overrides_runpath=no
9061 shlibpath_overrides_runpath=yes
9065 shlibpath_overrides_runpath=yes
9070 libname_spec='$name'
9073 library_names_spec='$libname${shared_ext} $libname.a'
9074 dynamic_linker='OS/2 ld.exe'
9075 shlibpath_var=LIBPATH
9078 osf3* | osf4* | osf5*)
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9098 # ldd complains unless libraries are executable
9099 postinstall_cmds='chmod +x $lib'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes
9108 if test "$with_gnu_ld" = yes; then
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 case $host_vendor in
9121 shlibpath_overrides_runpath=no
9123 export_dynamic_flag_spec='${wl}-Blargedynsym'
9124 runpath_var=LD_RUN_PATH
9132 shlibpath_overrides_runpath=no
9133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9139 if test -d /usr/nec ;then
9141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9142 soname_spec='$libname${shared_ext}.$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9148 version_type=freebsd-elf
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 hardcode_into_libs=yes
9155 if test "$with_gnu_ld" = yes; then
9156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9157 shlibpath_overrides_runpath=no
9159 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9160 shlibpath_overrides_runpath=yes
9163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9167 sys_lib_dlsearch_path_spec='/usr/lib'
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9181 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9182 echo "${ECHO_T}$dynamic_linker" >&6; }
9183 test "$dynamic_linker" = no && can_build_shared=no
9185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9186 if test "$GCC" = yes; then
9187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9191 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9192 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9193 if test "${libltdl_cv_shlibext+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 eval libltdl_cv_shlibext=$shrext_cmds
9201 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9202 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9203 if test -n "$libltdl_cv_shlibext"; then
9205 cat >>confdefs.h <<_ACEOF
9206 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9212 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9213 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9214 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 libltdl_cv_shlibpath_var="$shlibpath_var"
9219 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9220 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9221 if test -n "$libltdl_cv_shlibpath_var"; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9230 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9231 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9232 if test "${libltdl_cv_sys_search_path+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9237 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9238 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9239 if test -n "$libltdl_cv_sys_search_path"; then
9241 for dir in $libltdl_cv_sys_search_path; do
9242 if test -z "$sys_search_path"; then
9243 sys_search_path="$dir"
9245 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9249 cat >>confdefs.h <<_ACEOF
9250 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9255 { echo "$as_me:$LINENO: checking for objdir" >&5
9256 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9257 if test "${libltdl_cv_objdir+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 libltdl_cv_objdir="$objdir"
9261 if test -n "$objdir"; then
9264 rm -f .libs 2>/dev/null
9265 mkdir .libs 2>/dev/null
9266 if test -d .libs; then
9267 libltdl_cv_objdir=.libs
9269 # MS-DOS does not allow filenames that begin with a dot.
9270 libltdl_cv_objdir=_libs
9272 rmdir .libs 2>/dev/null
9276 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9277 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9279 cat >>confdefs.h <<_ACEOF
9280 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9288 # Check for command to grab the raw symbol name followed by C symbol from nm.
9289 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9290 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9291 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 # These are sane defaults that work on at least a few old systems.
9296 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9298 # Character class describing NM global symbol codes.
9299 symcode='[BCDEGRST]'
9301 # Regexp to match symbols that can be accessed directly from C.
9302 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9304 # Transform an extracted symbol line into a proper C declaration
9305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9307 # Transform an extracted symbol line into symbol name and symbol address
9308 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'"
9310 # Define system-specific variables.
9315 cygwin* | mingw* | pw32*)
9316 symcode='[ABCDGISTW]'
9318 hpux*) # Its linker distinguishes data from code symbols
9319 if test "$host_cpu" = ia64; then
9320 symcode='[ABCDEGRST]'
9322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9323 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'"
9326 if test "$host_cpu" = ia64; then
9327 symcode='[ABCDGIRSTW]'
9328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9329 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'"
9333 symcode='[BCDEGRST]'
9336 symcode='[BCDEGQRST]'
9347 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9355 # Handle CRLF in mingw tool chain
9359 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9363 # If we're using GNU nm, then use its standard symbol codes.
9364 case `$NM -V 2>&1` in
9365 *GNU* | *'with BFD'*)
9366 symcode='[ABCDGIRSTW]' ;;
9369 # Try without a prefix undercore, then with it.
9370 for ac_symprfx in "" "_"; do
9372 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9373 symxfrm="\\1 $ac_symprfx\\2 \\2"
9375 # Write the raw and C identifiers.
9376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9378 # Check to see that the pipe works correctly.
9382 cat > conftest.$ac_ext <<EOF
9387 void nm_test_func(){}
9391 int main(){nm_test_var='a';nm_test_func();return(0);}
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; then
9399 # Now try to grab the symbols.
9401 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9402 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && test -s "$nlist"; then
9406 # Try sorting and uniquifying the output.
9407 if sort "$nlist" | uniq > "$nlist"T; then
9408 mv -f "$nlist"T "$nlist"
9413 # Make sure that we snagged all the symbols we need.
9414 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9415 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9416 cat <<EOF > conftest.$ac_ext
9422 # Now generate the symbol file.
9423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9425 cat <<EOF >> conftest.$ac_ext
9426 #if defined (__STDC__) && __STDC__
9427 # define lt_ptr_t void *
9429 # define lt_ptr_t char *
9433 /* The mapping between symbol names and symbols. */
9438 lt_preloaded_symbols[] =
9441 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9442 cat <<\EOF >> conftest.$ac_ext
9450 # Now try linking the two files.
9451 mv conftest.$ac_objext conftstm.$ac_objext
9452 lt_save_LIBS="$LIBS"
9453 lt_save_CFLAGS="$CFLAGS"
9454 LIBS="conftstm.$ac_objext"
9455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9463 LIBS="$lt_save_LIBS"
9464 CFLAGS="$lt_save_CFLAGS"
9466 echo "cannot find nm_test_func in $nlist" >&5
9469 echo "cannot find nm_test_var in $nlist" >&5
9472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9475 echo "$progname: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9478 rm -f conftest* conftst*
9480 # Do not use the global_symbol_pipe unless it works.
9481 if test "$pipe_works" = yes; then
9484 lt_cv_sys_global_symbol_pipe=
9490 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9491 lt_cv_sys_global_symbol_to_cdecl=
9493 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9494 { echo "$as_me:$LINENO: result: failed" >&5
9495 echo "${ECHO_T}failed" >&6; }
9497 { echo "$as_me:$LINENO: result: ok" >&5
9498 echo "${ECHO_T}ok" >&6; }
9502 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9503 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9504 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9508 libltdl_cv_preloaded_symbols=yes
9510 libltdl_cv_preloaded_symbols=no
9514 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9515 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9516 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_PRELOADED_SYMBOLS 1
9527 ac_cpp='$CPP $CPPFLAGS'
9528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533 { echo "$as_me:$LINENO: checking for shl_load" >&5
9534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_shl_load+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define shl_load innocuous_shl_load
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char shl_load (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9554 # include <limits.h>
9556 # include <assert.h>
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined __stub_shl_load || defined __stub___shl_load
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; } &&
9607 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9617 ac_cv_func_shl_load=yes
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 ac_cv_func_shl_load=no
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9628 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9629 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9630 if test $ac_cv_func_shl_load = yes; then
9632 cat >>confdefs.h <<\_ACEOF
9633 #define HAVE_SHL_LOAD 1
9637 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9638 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 ac_check_lib_save_LIBS=$LIBS
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9700 ac_cv_lib_dld_shl_load=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_cv_lib_dld_shl_load=no
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9713 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9714 if test $ac_cv_lib_dld_shl_load = yes; then
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_SHL_LOAD 1
9720 LIBADD_DL="$LIBADD_DL -ldld"
9722 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 ac_check_lib_save_LIBS=$LIBS
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_link") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1 >conftest.err
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9766 { (case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_try") 2>&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9785 ac_cv_lib_dl_dlopen=yes
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ac_cv_lib_dl_dlopen=no
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9798 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9799 if test $ac_cv_lib_dl_dlopen = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_LIBDL 1
9805 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_LIBDL 1
9863 libltdl_cv_func_dlopen="yes"
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_check_lib_save_LIBS=$LIBS
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9882 /* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9931 ac_cv_lib_svld_dlopen=yes
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 ac_cv_lib_svld_dlopen=no
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9943 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9944 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9945 if test $ac_cv_lib_svld_dlopen = yes; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_LIBDL 1
9951 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9953 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9954 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9955 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 ac_check_lib_save_LIBS=$LIBS
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (ac_try="$ac_link"
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_link") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10016 ac_cv_lib_dld_dld_link=yes
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_cv_lib_dld_dld_link=no
10024 rm -f core conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_check_lib_save_LIBS
10028 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10029 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10030 if test $ac_cv_lib_dld_dld_link = yes; then
10032 cat >>confdefs.h <<\_ACEOF
10036 LIBADD_DL="$LIBADD_DL -ldld"
10038 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10039 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10040 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10051 #define _dyld_func_lookup innocuous__dyld_func_lookup
10053 /* System header to define __stub macros and hopefully few prototypes,
10054 which can conflict with char _dyld_func_lookup (); below.
10055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10056 <limits.h> exists even on freestanding compilers. */
10059 # include <limits.h>
10061 # include <assert.h>
10064 #undef _dyld_func_lookup
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10072 char _dyld_func_lookup ();
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10083 return _dyld_func_lookup ();
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (ac_try="$ac_link"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_link") 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10122 ac_cv_func__dyld_func_lookup=yes
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_func__dyld_func_lookup=no
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10133 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10134 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10135 if test $ac_cv_func__dyld_func_lookup = yes; then
10137 cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_DYLD 1
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10164 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10166 lt_save_LIBS="$LIBS"
10167 LIBS="$LIBS $LIBADD_DL"
10169 for ac_func in dlerror
10171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10185 #define $ac_func innocuous_$ac_func
10187 /* System header to define __stub macros and hopefully few prototypes,
10188 which can conflict with char $ac_func (); below.
10189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10190 <limits.h> exists even on freestanding compilers. */
10193 # include <limits.h>
10195 # include <assert.h>
10200 /* Override any GCC internal prototype to avoid an error.
10201 Use char because int might match the return type of a GCC
10202 builtin and then its argument prototype would still apply. */
10207 /* The GNU C library defines this for functions which it implements
10208 to always fail with ENOSYS. Some functions are actually named
10209 something starting with __ and the normal name is an alias. */
10210 #if defined __stub_$ac_func || defined __stub___$ac_func
10217 return $ac_func ();
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10237 { (case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_try") 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10256 eval "$as_ac_var=yes"
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 eval "$as_ac_var=no"
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10267 ac_res=`eval echo '${'$as_ac_var'}'`
10268 { echo "$as_me:$LINENO: result: $ac_res" >&5
10269 echo "${ECHO_T}$ac_res" >&6; }
10270 if test `eval echo '${'$as_ac_var'}'` = yes; then
10271 cat >>confdefs.h <<_ACEOF
10272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278 LIBS="$lt_save_LIBS"
10281 ac_cpp='$CPP $CPPFLAGS'
10282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10288 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10289 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10290 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 ac_cv_sys_symbol_underscore=no
10294 cat > conftest.$ac_ext <<EOF
10295 void nm_test_func(){}
10296 int main(){nm_test_func;return 0;}
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; then
10303 # Now try to grab the symbols.
10304 ac_nlist=conftest.nm
10305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && test -s "$ac_nlist"; then
10310 # See whether the symbols have a leading underscore.
10311 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10312 ac_cv_sys_symbol_underscore=yes
10314 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10317 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10321 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10324 echo "configure: failed program was:" >&5
10330 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10331 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10334 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10335 if test x"$libltdl_cv_func_dlopen" = xyes ||
10336 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10337 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10338 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10339 if test "${libltdl_cv_need_uscore+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 libltdl_cv_need_uscore=unknown
10344 LIBS="$LIBS $LIBADD_DL"
10345 if test "$cross_compiling" = yes; then :
10346 libltdl_cv_need_uscore=cross
10348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10349 lt_status=$lt_dlunknown
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10351 "configure"
10352 #include "confdefs.h"
10361 # define LT_DLGLOBAL RTLD_GLOBAL
10364 # define LT_DLGLOBAL DL_GLOBAL
10366 # define LT_DLGLOBAL 0
10370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10371 find out it does not work in some platform. */
10372 #ifndef LT_DLLAZY_OR_NOW
10374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10377 # define LT_DLLAZY_OR_NOW DL_LAZY
10380 # define LT_DLLAZY_OR_NOW RTLD_NOW
10383 # define LT_DLLAZY_OR_NOW DL_NOW
10385 # define LT_DLLAZY_OR_NOW 0
10393 extern "C" void exit (int);
10396 void fnord() { int i=42;}
10399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10400 int status = $lt_dlunknown;
10404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10406 /* dlclose (self); */
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415 (eval $ac_link) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10419 (./conftest; exit; ) >&5 2>/dev/null
10421 case x$lt_status in
10422 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10423 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10424 x$lt_dlunknown|x*) ;;
10427 # compilation failed
10436 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10437 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10441 if test x"$libltdl_cv_need_uscore" = xyes; then
10443 cat >>confdefs.h <<\_ACEOF
10444 #define NEED_USCORE 1
10450 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10451 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10452 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 # PORTME does your system automatically load deplibs for dlopen?
10456 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10457 # For now, we just catch OSes we know something about -- in the
10458 # future, we'll try test this programmatically.
10459 libltdl_cv_sys_dlopen_deplibs=unknown
10461 aix3*|aix4.1.*|aix4.2.*)
10462 # Unknown whether this is true for these versions of AIX, but
10463 # we want this `case' here to explicitly catch those versions.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10467 libltdl_cv_sys_dlopen_deplibs=yes
10470 # Assuming the user has installed a libdl from somewhere, this is true
10471 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10472 libltdl_cv_sys_dlopen_deplibs=yes
10474 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10475 # GNU and its variants, using gnu ld.so (Glibc)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10479 libltdl_cv_sys_dlopen_deplibs=yes
10482 libltdl_cv_sys_dlopen_deplibs=yes
10484 irix[12345]*|irix6.[01]*)
10485 # Catch all versions of IRIX before 6.2, and indicate that we don't
10486 # know how it worked for any of those versions.
10487 libltdl_cv_sys_dlopen_deplibs=unknown
10490 # The case above catches anything before 6.2, and it's known that
10491 # at 6.2 and later dlopen does load deplibs.
10492 libltdl_cv_sys_dlopen_deplibs=yes
10495 libltdl_cv_sys_dlopen_deplibs=yes
10498 libltdl_cv_sys_dlopen_deplibs=yes
10501 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10502 # it did *not* use an RPATH in a shared library to find objects the
10503 # library depends on, so we explicitly say `no'.
10504 libltdl_cv_sys_dlopen_deplibs=no
10506 osf5.0|osf5.0a|osf5.1)
10507 # dlopen *does* load deplibs and with the right loader patch applied
10508 # it even uses RPATH in a shared library to search for shared objects
10509 # that the library depends on, but there's no easy way to know if that
10510 # patch is installed. Since this is the case, all we can really
10511 # say is unknown -- it depends on the patch being installed. If
10512 # it is, this changes to `yes'. Without it, it would be `no'.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10516 # the two cases above should catch all versions of osf <= 5.1. Read
10517 # the comments above for what we know about them.
10518 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10519 # is used to find them so we can finally say `yes'.
10520 libltdl_cv_sys_dlopen_deplibs=yes
10523 libltdl_cv_sys_dlopen_deplibs=yes
10525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10526 libltdl_cv_sys_dlopen_deplibs=yes
10531 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10532 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10533 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10535 cat >>confdefs.h <<\_ACEOF
10536 #define LTDL_DLOPEN_DEPLIBS 1
10542 for ac_header in argz.h
10544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 ac_res=`eval echo '${'$as_ac_Header'}'`
10552 { echo "$as_me:$LINENO: result: $ac_res" >&5
10553 echo "${ECHO_T}$ac_res" >&6; }
10555 # Is the header compilable?
10556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 $ac_includes_default
10565 #include <$ac_header>
10567 rm -f conftest.$ac_objext
10568 if { (ac_try="$ac_compile"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_compile") 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10582 { (case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_try") 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10601 ac_header_compiler=yes
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_header_compiler=no
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10611 echo "${ECHO_T}$ac_header_compiler" >&6; }
10613 # Is the header present?
10614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <$ac_header>
10624 if { (ac_try="$ac_cpp conftest.$ac_ext"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } >/dev/null; then
10637 if test -s conftest.err; then
10638 ac_cpp_err=$ac_c_preproc_warn_flag
10639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10646 if test -z "$ac_cpp_err"; then
10647 ac_header_preproc=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_header_preproc=no
10655 rm -f conftest.err conftest.$ac_ext
10656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657 echo "${ECHO_T}$ac_header_preproc" >&6; }
10659 # So? What about this header?
10660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc=yes
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10682 ## ------------------------------ ##
10683 ## Report this to bugs@yourdomain ##
10684 ## ------------------------------ ##
10686 ) | sed "s/^/$as_me: WARNING: /" >&2
10689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 eval "$as_ac_Header=\$ac_header_preproc"
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10702 cat >>confdefs.h <<_ACEOF
10703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 { echo "$as_me:$LINENO: checking for error_t" >&5
10712 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10713 if test "${ac_cv_type_error_t+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10726 typedef error_t ac__type_new_;
10730 if ((ac__type_new_ *) 0)
10732 if (sizeof (ac__type_new_))
10738 rm -f conftest.$ac_objext
10739 if { (ac_try="$ac_compile"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_compile") 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10772 ac_cv_type_error_t=yes
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 ac_cv_type_error_t=no
10780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10783 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10784 if test $ac_cv_type_error_t = yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define HAVE_ERROR_T 1
10793 cat >>confdefs.h <<\_ACEOF
10794 #define error_t int
10805 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821 #define $ac_func innocuous_$ac_func
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
10829 # include <limits.h>
10831 # include <assert.h>
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10843 /* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846 #if defined __stub_$ac_func || defined __stub___$ac_func
10853 return $ac_func ();
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (ac_try="$ac_link"
10860 case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_link") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1 >conftest.err
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10892 eval "$as_ac_var=yes"
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 eval "$as_ac_var=no"
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10903 ac_res=`eval echo '${'$as_ac_var'}'`
10904 { echo "$as_me:$LINENO: result: $ac_res" >&5
10905 echo "${ECHO_T}$ac_res" >&6; }
10906 if test `eval echo '${'$as_ac_var'}'` = yes; then
10907 cat >>confdefs.h <<_ACEOF
10908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10941 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 ac_res=`eval echo '${'$as_ac_Header'}'`
10952 { echo "$as_me:$LINENO: result: $ac_res" >&5
10953 echo "${ECHO_T}$ac_res" >&6; }
10955 # Is the header compilable?
10956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10965 #include <$ac_header>
10967 rm -f conftest.$ac_objext
10968 if { (ac_try="$ac_compile"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_compile") 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11001 ac_header_compiler=yes
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_header_compiler=no
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11011 echo "${ECHO_T}$ac_header_compiler" >&6; }
11013 # Is the header present?
11014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <$ac_header>
11024 if { (ac_try="$ac_cpp conftest.$ac_ext"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } >/dev/null; then
11037 if test -s conftest.err; then
11038 ac_cpp_err=$ac_c_preproc_warn_flag
11039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11046 if test -z "$ac_cpp_err"; then
11047 ac_header_preproc=yes
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ac_header_preproc=no
11055 rm -f conftest.err conftest.$ac_ext
11056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11057 echo "${ECHO_T}$ac_header_preproc" >&6; }
11059 # So? What about this header?
11060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11066 ac_header_preproc=yes
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11082 ## ------------------------------ ##
11083 ## Report this to bugs@yourdomain ##
11084 ## ------------------------------ ##
11086 ) | sed "s/^/$as_me: WARNING: /" >&2
11089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 eval "$as_ac_Header=\$ac_header_preproc"
11096 ac_res=`eval echo '${'$as_ac_Header'}'`
11097 { echo "$as_me:$LINENO: result: $ac_res" >&5
11098 echo "${ECHO_T}$ac_res" >&6; }
11101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11102 cat >>confdefs.h <<_ACEOF
11103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 ac_res=`eval echo '${'$as_ac_Header'}'`
11124 { echo "$as_me:$LINENO: result: $ac_res" >&5
11125 echo "${ECHO_T}$ac_res" >&6; }
11127 # Is the header compilable?
11128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 $ac_includes_default
11137 #include <$ac_header>
11139 rm -f conftest.$ac_objext
11140 if { (ac_try="$ac_compile"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_compile") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11173 ac_header_compiler=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_header_compiler=no
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 echo "${ECHO_T}$ac_header_compiler" >&6; }
11185 # Is the header present?
11186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <$ac_header>
11196 if { (ac_try="$ac_cpp conftest.$ac_ext"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null; then
11209 if test -s conftest.err; then
11210 ac_cpp_err=$ac_c_preproc_warn_flag
11211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 if test -z "$ac_cpp_err"; then
11219 ac_header_preproc=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_header_preproc=no
11227 rm -f conftest.err conftest.$ac_ext
11228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11229 echo "${ECHO_T}$ac_header_preproc" >&6; }
11231 # So? What about this header?
11232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11238 ac_header_preproc=yes
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11254 ## ------------------------------ ##
11255 ## Report this to bugs@yourdomain ##
11256 ## ------------------------------ ##
11258 ) | sed "s/^/$as_me: WARNING: /" >&2
11261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 eval "$as_ac_Header=\$ac_header_preproc"
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 for ac_header in string.h strings.h
11286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295 echo "${ECHO_T}$ac_res" >&6; }
11297 # Is the header compilable?
11298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 $ac_includes_default
11307 #include <$ac_header>
11309 rm -f conftest.$ac_objext
11310 if { (ac_try="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11343 ac_header_compiler=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_header_compiler=no
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11353 echo "${ECHO_T}$ac_header_compiler" >&6; }
11355 # Is the header present?
11356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11358 cat >conftest.$ac_ext <<_ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364 #include <$ac_header>
11366 if { (ac_try="$ac_cpp conftest.$ac_ext"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev/null; then
11379 if test -s conftest.err; then
11380 ac_cpp_err=$ac_c_preproc_warn_flag
11381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_header_preproc=no
11397 rm -f conftest.err conftest.$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11399 echo "${ECHO_T}$ac_header_preproc" >&6; }
11401 # So? What about this header?
11402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11408 ac_header_preproc=yes
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424 ## ------------------------------ ##
11425 ## Report this to bugs@yourdomain ##
11426 ## ------------------------------ ##
11428 ) | sed "s/^/$as_me: WARNING: /" >&2
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 eval "$as_ac_Header=\$ac_header_preproc"
11438 ac_res=`eval echo '${'$as_ac_Header'}'`
11439 { echo "$as_me:$LINENO: result: $ac_res" >&5
11440 echo "${ECHO_T}$ac_res" >&6; }
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h <<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11455 for ac_func in strchr index
11457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11471 #define $ac_func innocuous_$ac_func
11473 /* System header to define __stub macros and hopefully few prototypes,
11474 which can conflict with char $ac_func (); below.
11475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11476 <limits.h> exists even on freestanding compilers. */
11479 # include <limits.h>
11481 # include <assert.h>
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11493 /* The GNU C library defines this for functions which it implements
11494 to always fail with ENOSYS. Some functions are actually named
11495 something starting with __ and the normal name is an alias. */
11496 #if defined __stub_$ac_func || defined __stub___$ac_func
11503 return $ac_func ();
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (ac_try="$ac_link"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_link") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; } &&
11532 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11542 eval "$as_ac_var=yes"
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 eval "$as_ac_var=no"
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11553 ac_res=`eval echo '${'$as_ac_var'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_var'}'` = yes; then
11557 cat >>confdefs.h <<_ACEOF
11558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11566 for ac_func in strrchr rindex
11568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 cat >conftest.$ac_ext <<_ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11582 #define $ac_func innocuous_$ac_func
11584 /* System header to define __stub macros and hopefully few prototypes,
11585 which can conflict with char $ac_func (); below.
11586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11587 <limits.h> exists even on freestanding compilers. */
11590 # include <limits.h>
11592 # include <assert.h>
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11604 /* The GNU C library defines this for functions which it implements
11605 to always fail with ENOSYS. Some functions are actually named
11606 something starting with __ and the normal name is an alias. */
11607 #if defined __stub_$ac_func || defined __stub___$ac_func
11614 return $ac_func ();
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (ac_try="$ac_link"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_link") 2>conftest.er1
11628 grep -v '^ *+' conftest.er1 >conftest.err
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } &&
11633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11634 { (case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_try") 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11653 eval "$as_ac_var=yes"
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 eval "$as_ac_var=no"
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11664 ac_res=`eval echo '${'$as_ac_var'}'`
11665 { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11667 if test `eval echo '${'$as_ac_var'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677 for ac_func in memcpy bcopy
11679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693 #define $ac_func innocuous_$ac_func
11695 /* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11701 # include <limits.h>
11703 # include <assert.h>
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11715 /* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
11718 #if defined __stub_$ac_func || defined __stub___$ac_func
11725 return $ac_func ();
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11764 eval "$as_ac_var=yes"
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 eval "$as_ac_var=no"
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11775 ac_res=`eval echo '${'$as_ac_var'}'`
11776 { echo "$as_me:$LINENO: result: $ac_res" >&5
11777 echo "${ECHO_T}$ac_res" >&6; }
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788 for ac_func in memmove strcmp
11790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 cat >conftest.$ac_ext <<_ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804 #define $ac_func innocuous_$ac_func
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11812 # include <limits.h>
11814 # include <assert.h>
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11826 /* The GNU C library defines this for functions which it implements
11827 to always fail with ENOSYS. Some functions are actually named
11828 something starting with __ and the normal name is an alias. */
11829 #if defined __stub_$ac_func || defined __stub___$ac_func
11836 return $ac_func ();
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11875 eval "$as_ac_var=yes"
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 eval "$as_ac_var=no"
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11886 ac_res=`eval echo '${'$as_ac_var'}'`
11887 { echo "$as_me:$LINENO: result: $ac_res" >&5
11888 echo "${ECHO_T}$ac_res" >&6; }
11889 if test `eval echo '${'$as_ac_var'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 for ac_func in closedir opendir readdir
11902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11924 # include <limits.h>
11926 # include <assert.h>
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 return $ac_func ();
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } &&
11967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11987 eval "$as_ac_var=yes"
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 eval "$as_ac_var=no"
11995 rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11998 ac_res=`eval echo '${'$as_ac_var'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_var'}'` = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12011 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12012 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12025 if test "$GCC" != "yes" && test "$ICC" != "yes"
12027 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12028 echo "$as_me: error: gcc|icc required but not found" >&2;}
12029 { (exit 1); exit 1; }; }
12032 if test "$GXX" != "yes" && test "$IXX" != "yes"
12034 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12035 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12036 { (exit 1); exit 1; }; }
12039 if test "$GCC" = "yes"
12041 cat >conftest.$ac_ext <<_ACEOF
12042 #if !defined(__GNUC__) || __GNUC__ < 3
12043 #error Unsupported GCC version
12047 rm -f conftest.$ac_objext
12048 if { (ac_try="$ac_compile"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_compile") 2>conftest.er1
12056 grep -v '^ *+' conftest.er1 >conftest.err
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12087 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12088 { (exit 1); exit 1; }; }
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 if test -z "$llvm_cv_gnu_make_command"
12096 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12097 echo "$as_me: error: GNU Make required but not found" >&2;}
12098 { (exit 1); exit 1; }; }
12101 { echo "$as_me:$LINENO: result: ok" >&5
12102 echo "${ECHO_T}ok" >&6; }
12104 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12105 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12106 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12108 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12110 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12112 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12113 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12117 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12118 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12119 if test "${ac_cv_lib_m_sin+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 ac_check_lib_save_LIBS=$LIBS
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_link") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12180 ac_cv_lib_m_sin=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12188 rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12193 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12194 if test $ac_cv_lib_m_sin = yes; then
12195 cat >>confdefs.h <<_ACEOF
12196 #define HAVE_LIBM 1
12203 if test "$llvm_cv_os_type" = "MingW" ; then
12205 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12206 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12207 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-limagehlp $LIBS"
12212 cat >conftest.$ac_ext <<_ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (ac_try="$ac_link"
12230 case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_link") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12243 { (case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_try") 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; } &&
12252 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12262 ac_cv_lib_imagehlp_main=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_lib_imagehlp_main=no
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12275 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12276 if test $ac_cv_lib_imagehlp_main = yes; then
12277 cat >>confdefs.h <<_ACEOF
12278 #define HAVE_LIBIMAGEHLP 1
12281 LIBS="-limagehlp $LIBS"
12286 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12287 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_psapi_main+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lpsapi $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (ac_try="$ac_link"
12311 case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_link") 2>conftest.er1
12318 grep -v '^ *+' conftest.er1 >conftest.err
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12324 { (case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_try") 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12343 ac_cv_lib_psapi_main=yes
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12348 ac_cv_lib_psapi_main=no
12351 rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12356 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12357 if test $ac_cv_lib_psapi_main = yes; then
12358 cat >>confdefs.h <<_ACEOF
12359 #define HAVE_LIBPSAPI 1
12362 LIBS="-lpsapi $LIBS"
12368 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12369 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12370 if test "${ac_cv_search_dlopen+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 ac_func_search_save_LIBS=$LIBS
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12396 for ac_lib in '' dl; do
12397 if test -z "$ac_lib"; then
12398 ac_res="none required"
12401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_link") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12437 ac_cv_search_dlopen=$ac_res
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12445 rm -f core conftest.err conftest.$ac_objext \
12447 if test "${ac_cv_search_dlopen+set}" = set; then
12451 if test "${ac_cv_search_dlopen+set}" = set; then
12454 ac_cv_search_dlopen=no
12456 rm conftest.$ac_ext
12457 LIBS=$ac_func_search_save_LIBS
12459 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12460 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12461 ac_res=$ac_cv_search_dlopen
12462 if test "$ac_res" != no; then
12463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12465 cat >>confdefs.h <<\_ACEOF
12466 #define HAVE_DLOPEN 1
12470 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12471 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12475 if test "$llvm_cv_enable_libffi" = "yes" ; then
12476 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12477 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12478 if test "${ac_cv_search_ffi_call+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 ac_func_search_save_LIBS=$LIBS
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12499 return ffi_call ();
12504 for ac_lib in '' ffi; do
12505 if test -z "$ac_lib"; then
12506 ac_res="none required"
12509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (ac_try="$ac_link"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_link") 2>conftest.er1
12520 grep -v '^ *+' conftest.er1 >conftest.err
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } &&
12525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12545 ac_cv_search_ffi_call=$ac_res
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12553 rm -f core conftest.err conftest.$ac_objext \
12555 if test "${ac_cv_search_ffi_call+set}" = set; then
12559 if test "${ac_cv_search_ffi_call+set}" = set; then
12562 ac_cv_search_ffi_call=no
12564 rm conftest.$ac_ext
12565 LIBS=$ac_func_search_save_LIBS
12567 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12568 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12569 ac_res=$ac_cv_search_ffi_call
12570 if test "$ac_res" != no; then
12571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_FFI_CALL 1
12578 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12579 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12580 { (exit 1); exit 1; }; }
12585 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12586 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12587 if test "${ac_cv_search_mallinfo+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 ac_func_search_save_LIBS=$LIBS
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12608 return mallinfo ();
12613 for ac_lib in '' malloc; do
12614 if test -z "$ac_lib"; then
12615 ac_res="none required"
12618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (ac_try="$ac_link"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_link") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12654 ac_cv_search_mallinfo=$ac_res
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f core conftest.err conftest.$ac_objext \
12664 if test "${ac_cv_search_mallinfo+set}" = set; then
12668 if test "${ac_cv_search_mallinfo+set}" = set; then
12671 ac_cv_search_mallinfo=no
12673 rm conftest.$ac_ext
12674 LIBS=$ac_func_search_save_LIBS
12676 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12677 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12678 ac_res=$ac_cv_search_mallinfo
12679 if test "$ac_res" != no; then
12680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682 cat >>confdefs.h <<\_ACEOF
12683 #define HAVE_MALLINFO 1
12689 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12691 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12692 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12693 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-lpthread $LIBS"
12698 cat >conftest.$ac_ext <<_ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12711 char pthread_mutex_init ();
12715 return pthread_mutex_init ();
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_link") 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12754 ac_cv_lib_pthread_pthread_mutex_init=yes
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 ac_cv_lib_pthread_pthread_mutex_init=no
12762 rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12766 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12767 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12768 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAVE_LIBPTHREAD 1
12773 LIBS="-lpthread $LIBS"
12777 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12778 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12779 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 ac_func_search_save_LIBS=$LIBS
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12796 char pthread_mutex_lock ();
12800 return pthread_mutex_lock ();
12805 for ac_lib in '' pthread; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12846 ac_cv_search_pthread_mutex_lock=$ac_res
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12854 rm -f core conftest.err conftest.$ac_objext \
12856 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12860 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12863 ac_cv_search_pthread_mutex_lock=no
12865 rm conftest.$ac_ext
12866 LIBS=$ac_func_search_save_LIBS
12868 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12869 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12870 ac_res=$ac_cv_search_pthread_mutex_lock
12871 if test "$ac_res" != no; then
12872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12874 cat >>confdefs.h <<\_ACEOF
12875 #define HAVE_PTHREAD_MUTEX_LOCK 1
12880 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12881 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12882 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 ac_func_search_save_LIBS=$LIBS
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12899 char pthread_rwlock_init ();
12903 return pthread_rwlock_init ();
12908 for ac_lib in '' pthread; do
12909 if test -z "$ac_lib"; then
12910 ac_res="none required"
12913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (ac_try="$ac_link"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_link") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12949 ac_cv_search_pthread_rwlock_init=$ac_res
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -f core conftest.err conftest.$ac_objext \
12959 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12963 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12966 ac_cv_search_pthread_rwlock_init=no
12968 rm conftest.$ac_ext
12969 LIBS=$ac_func_search_save_LIBS
12971 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12972 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12973 ac_res=$ac_cv_search_pthread_rwlock_init
12974 if test "$ac_res" != no; then
12975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977 cat >>confdefs.h <<\_ACEOF
12978 #define HAVE_PTHREAD_RWLOCK_INIT 1
12983 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12984 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12985 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 ac_func_search_save_LIBS=$LIBS
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13002 char pthread_getspecific ();
13006 return pthread_getspecific ();
13011 for ac_lib in '' pthread; do
13012 if test -z "$ac_lib"; then
13013 ac_res="none required"
13016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13018 rm -f conftest.$ac_objext conftest$ac_exeext
13019 if { (ac_try="$ac_link"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_link") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13033 { (case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_try") 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13052 ac_cv_search_pthread_getspecific=$ac_res
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13060 rm -f core conftest.err conftest.$ac_objext \
13062 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13066 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13069 ac_cv_search_pthread_getspecific=no
13071 rm conftest.$ac_ext
13072 LIBS=$ac_func_search_save_LIBS
13074 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13075 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13076 ac_res=$ac_cv_search_pthread_getspecific
13077 if test "$ac_res" != no; then
13078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080 cat >>confdefs.h <<\_ACEOF
13081 #define HAVE_PTHREAD_GETSPECIFIC 1
13089 # Check whether --with-udis86 was given.
13090 if test "${with_udis86+set}" = set; then
13091 withval=$with_udis86;
13096 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13099 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13100 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13101 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 ac_check_lib_save_LIBS=$LIBS
13105 LIBS="-ludis86 $LIBS"
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13113 /* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13162 ac_cv_lib_udis86_ud_init=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_lib_udis86_ud_init=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13175 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13176 if test $ac_cv_lib_udis86_ud_init = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178 #define HAVE_LIBUDIS86 1
13181 LIBS="-ludis86 $LIBS"
13185 echo "Error! You need to have libudis86 around."
13197 cat >>confdefs.h <<_ACEOF
13198 #define USE_UDIS86 $USE_UDIS86
13203 # Check whether --with-oprofile was given.
13204 if test "${with_oprofile+set}" = set; then
13205 withval=$with_oprofile;
13209 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13210 no) llvm_cv_oppath=
13213 *) llvm_cv_oppath="${withval}/lib/oprofile"
13214 CPPFLAGS="-I${withval}/include";;
13216 if test -n "$llvm_cv_oppath" ; then
13217 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13218 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13219 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13220 if test "${ac_cv_search_bfd_init+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_func_search_save_LIBS=$LIBS
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13231 /* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13241 return bfd_init ();
13246 for ac_lib in '' bfd; do
13247 if test -z "$ac_lib"; then
13248 ac_res="none required"
13251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (ac_try="$ac_link"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13268 { (case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_try") 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13287 ac_cv_search_bfd_init=$ac_res
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13295 rm -f core conftest.err conftest.$ac_objext \
13297 if test "${ac_cv_search_bfd_init+set}" = set; then
13301 if test "${ac_cv_search_bfd_init+set}" = set; then
13304 ac_cv_search_bfd_init=no
13306 rm conftest.$ac_ext
13307 LIBS=$ac_func_search_save_LIBS
13309 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13310 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13311 ac_res=$ac_cv_search_bfd_init
13312 if test "$ac_res" != no; then
13313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13318 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13319 if test "${ac_cv_search_op_open_agent+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 ac_func_search_save_LIBS=$LIBS
13323 cat >conftest.$ac_ext <<_ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13336 char op_open_agent ();
13340 return op_open_agent ();
13345 for ac_lib in '' opagent; do
13346 if test -z "$ac_lib"; then
13347 ac_res="none required"
13350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_link") 2>conftest.er1
13361 grep -v '^ *+' conftest.er1 >conftest.err
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13386 ac_cv_search_op_open_agent=$ac_res
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13394 rm -f core conftest.err conftest.$ac_objext \
13396 if test "${ac_cv_search_op_open_agent+set}" = set; then
13400 if test "${ac_cv_search_op_open_agent+set}" = set; then
13403 ac_cv_search_op_open_agent=no
13405 rm conftest.$ac_ext
13406 LIBS=$ac_func_search_save_LIBS
13408 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13409 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13410 ac_res=$ac_cv_search_op_open_agent
13411 if test "$ac_res" != no; then
13412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13416 echo "Error! You need to have libopagent around."
13421 if test "${ac_cv_header_opagent_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13423 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_opagent_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13432 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <opagent.h>
13442 rm -f conftest.$ac_objext
13443 if { (ac_try="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13457 { (case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_try") 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; } &&
13466 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13476 ac_header_compiler=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_header_compiler=no
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486 echo "${ECHO_T}$ac_header_compiler" >&6; }
13488 # Is the header present?
13489 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13490 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <opagent.h>
13499 if { (ac_try="$ac_cpp conftest.$ac_ext"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } >/dev/null; then
13512 if test -s conftest.err; then
13513 ac_cpp_err=$ac_c_preproc_warn_flag
13514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13521 if test -z "$ac_cpp_err"; then
13522 ac_header_preproc=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_header_preproc=no
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534 # So? What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc=yes
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13557 ## ------------------------------ ##
13558 ## Report this to bugs@yourdomain ##
13559 ## ------------------------------ ##
13561 ) | sed "s/^/$as_me: WARNING: /" >&2
13564 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13565 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13566 if test "${ac_cv_header_opagent_h+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13569 ac_cv_header_opagent_h=$ac_header_preproc
13571 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13575 if test $ac_cv_header_opagent_h = yes; then
13579 echo "Error! You need to have opagent.h around."
13595 cat >>confdefs.h <<_ACEOF
13596 #define USE_OPROFILE $USE_OPROFILE
13606 ac_header_dirent=no
13607 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13608 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13609 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13610 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <sys/types.h>
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13641 grep -v '^ *+' conftest.er1 >conftest.err
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13666 eval "$as_ac_Header=yes"
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 eval "$as_ac_Header=no"
13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 ac_res=`eval echo '${'$as_ac_Header'}'`
13677 { echo "$as_me:$LINENO: result: $ac_res" >&5
13678 echo "${ECHO_T}$ac_res" >&6; }
13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13684 ac_header_dirent=$ac_hdr; break
13688 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13689 if test $ac_header_dirent = dirent.h; then
13690 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13691 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13692 if test "${ac_cv_search_opendir+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 ac_func_search_save_LIBS=$LIBS
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13718 for ac_lib in '' dir; do
13719 if test -z "$ac_lib"; then
13720 ac_res="none required"
13723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13759 ac_cv_search_opendir=$ac_res
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13767 rm -f core conftest.err conftest.$ac_objext \
13769 if test "${ac_cv_search_opendir+set}" = set; then
13773 if test "${ac_cv_search_opendir+set}" = set; then
13776 ac_cv_search_opendir=no
13778 rm conftest.$ac_ext
13779 LIBS=$ac_func_search_save_LIBS
13781 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13782 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13783 ac_res=$ac_cv_search_opendir
13784 if test "$ac_res" != no; then
13785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13791 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13792 if test "${ac_cv_search_opendir+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 ac_func_search_save_LIBS=$LIBS
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13818 for ac_lib in '' x; do
13819 if test -z "$ac_lib"; then
13820 ac_res="none required"
13823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13825 rm -f conftest.$ac_objext conftest$ac_exeext
13826 if { (ac_try="$ac_link"
13827 case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_link") 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; } &&
13849 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13859 ac_cv_search_opendir=$ac_res
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13867 rm -f core conftest.err conftest.$ac_objext \
13869 if test "${ac_cv_search_opendir+set}" = set; then
13873 if test "${ac_cv_search_opendir+set}" = set; then
13876 ac_cv_search_opendir=no
13878 rm conftest.$ac_ext
13879 LIBS=$ac_func_search_save_LIBS
13881 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13882 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13883 ac_res=$ac_cv_search_opendir
13884 if test "$ac_res" != no; then
13885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13891 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13892 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13893 if test "${ac_cv_header_mmap_anon+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 ac_cpp='$CPP $CPPFLAGS'
13898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <sys/mman.h>
13909 #include <unistd.h>
13914 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13934 { (case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_try") 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13953 ac_cv_header_mmap_anon=yes
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_header_mmap_anon=no
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 ac_cpp='$CPP $CPPFLAGS'
13964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13971 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13972 if test "$ac_cv_header_mmap_anon" = yes; then
13974 cat >>confdefs.h <<\_ACEOF
13975 #define HAVE_MMAP_ANONYMOUS 1
13980 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13981 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13982 if test "${ac_cv_header_stat_broken+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <sys/types.h>
13992 #include <sys/stat.h>
13994 #if defined S_ISBLK && defined S_IFDIR
13995 # if S_ISBLK (S_IFDIR)
14000 #if defined S_ISBLK && defined S_IFCHR
14001 # if S_ISBLK (S_IFCHR)
14006 #if defined S_ISLNK && defined S_IFREG
14007 # if S_ISLNK (S_IFREG)
14012 #if defined S_ISSOCK && defined S_IFREG
14013 # if S_ISSOCK (S_IFREG)
14019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14020 $EGREP "You lose" >/dev/null 2>&1; then
14021 ac_cv_header_stat_broken=yes
14023 ac_cv_header_stat_broken=no
14028 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14029 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14030 if test $ac_cv_header_stat_broken = yes; then
14032 cat >>confdefs.h <<\_ACEOF
14033 #define STAT_MACROS_BROKEN 1
14038 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14039 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14040 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include <sys/types.h>
14050 #include <sys/wait.h>
14051 #ifndef WEXITSTATUS
14052 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14055 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14063 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14068 rm -f conftest.$ac_objext
14069 if { (ac_try="$ac_compile"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_compile") 2>conftest.er1
14077 grep -v '^ *+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14102 ac_cv_header_sys_wait_h=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_cv_header_sys_wait_h=no
14110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14113 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14114 if test $ac_cv_header_sys_wait_h = yes; then
14116 cat >>confdefs.h <<\_ACEOF
14117 #define HAVE_SYS_WAIT_H 1
14122 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14123 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14124 if test "${ac_cv_header_time+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 #include <sys/types.h>
14134 #include <sys/time.h>
14140 if ((struct tm *) 0)
14146 rm -f conftest.$ac_objext
14147 if { (ac_try="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14180 ac_cv_header_time=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_cv_header_time=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14191 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14192 if test $ac_cv_header_time = yes; then
14194 cat >>confdefs.h <<\_ACEOF
14195 #define TIME_WITH_SYS_TIME 1
14207 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 ac_res=`eval echo '${'$as_ac_Header'}'`
14217 { echo "$as_me:$LINENO: result: $ac_res" >&5
14218 echo "${ECHO_T}$ac_res" >&6; }
14220 # Is the header compilable?
14221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 $ac_includes_default
14230 #include <$ac_header>
14232 rm -f conftest.$ac_objext
14233 if { (ac_try="$ac_compile"
14234 case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_compile") 2>conftest.er1
14241 grep -v '^ *+' conftest.er1 >conftest.err
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } &&
14256 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14266 ac_header_compiler=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_header_compiler=no
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276 echo "${ECHO_T}$ac_header_compiler" >&6; }
14278 # Is the header present?
14279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <$ac_header>
14289 if { (ac_try="$ac_cpp conftest.$ac_ext"
14290 case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14297 grep -v '^ *+' conftest.er1 >conftest.err
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } >/dev/null; then
14302 if test -s conftest.err; then
14303 ac_cpp_err=$ac_c_preproc_warn_flag
14304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14311 if test -z "$ac_cpp_err"; then
14312 ac_header_preproc=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_header_preproc=no
14320 rm -f conftest.err conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14322 echo "${ECHO_T}$ac_header_preproc" >&6; }
14324 # So? What about this header?
14325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14331 ac_header_preproc=yes
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14347 ## ------------------------------ ##
14348 ## Report this to bugs@yourdomain ##
14349 ## ------------------------------ ##
14351 ) | sed "s/^/$as_me: WARNING: /" >&2
14354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 eval "$as_ac_Header=\$ac_header_preproc"
14361 ac_res=`eval echo '${'$as_ac_Header'}'`
14362 { echo "$as_me:$LINENO: result: $ac_res" >&5
14363 echo "${ECHO_T}$ac_res" >&6; }
14366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14367 cat >>confdefs.h <<_ACEOF
14368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14381 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 ac_res=`eval echo '${'$as_ac_Header'}'`
14391 { echo "$as_me:$LINENO: result: $ac_res" >&5
14392 echo "${ECHO_T}$ac_res" >&6; }
14394 # Is the header compilable?
14395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 $ac_includes_default
14404 #include <$ac_header>
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_compile") 2>conftest.er1
14415 grep -v '^ *+' conftest.er1 >conftest.err
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_header_compiler=yes
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 ac_header_compiler=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450 echo "${ECHO_T}$ac_header_compiler" >&6; }
14452 # Is the header present?
14453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <$ac_header>
14463 if { (ac_try="$ac_cpp conftest.$ac_ext"
14464 case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } >/dev/null; then
14476 if test -s conftest.err; then
14477 ac_cpp_err=$ac_c_preproc_warn_flag
14478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14485 if test -z "$ac_cpp_err"; then
14486 ac_header_preproc=yes
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_header_preproc=no
14494 rm -f conftest.err conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 echo "${ECHO_T}$ac_header_preproc" >&6; }
14498 # So? What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14521 ## ------------------------------ ##
14522 ## Report this to bugs@yourdomain ##
14523 ## ------------------------------ ##
14525 ) | sed "s/^/$as_me: WARNING: /" >&2
14528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 eval "$as_ac_Header=\$ac_header_preproc"
14535 ac_res=`eval echo '${'$as_ac_Header'}'`
14536 { echo "$as_me:$LINENO: result: $ac_res" >&5
14537 echo "${ECHO_T}$ac_res" >&6; }
14540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14541 cat >>confdefs.h <<_ACEOF
14542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14551 for ac_header in utime.h windows.h
14553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14564 # Is the header compilable?
14565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 $ac_includes_default
14574 #include <$ac_header>
14576 rm -f conftest.$ac_objext
14577 if { (ac_try="$ac_compile"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_compile") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14591 { (case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_try") 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } &&
14600 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14610 ac_header_compiler=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 ac_header_compiler=no
14618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14620 echo "${ECHO_T}$ac_header_compiler" >&6; }
14622 # Is the header present?
14623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <$ac_header>
14633 if { (ac_try="$ac_cpp conftest.$ac_ext"
14634 case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14641 grep -v '^ *+' conftest.er1 >conftest.err
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev/null; then
14646 if test -s conftest.err; then
14647 ac_cpp_err=$ac_c_preproc_warn_flag
14648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14655 if test -z "$ac_cpp_err"; then
14656 ac_header_preproc=yes
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ac_header_preproc=no
14664 rm -f conftest.err conftest.$ac_ext
14665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14666 echo "${ECHO_T}$ac_header_preproc" >&6; }
14668 # So? What about this header?
14669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14675 ac_header_preproc=yes
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14691 ## ------------------------------ ##
14692 ## Report this to bugs@yourdomain ##
14693 ## ------------------------------ ##
14695 ) | sed "s/^/$as_me: WARNING: /" >&2
14698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 eval "$as_ac_Header=\$ac_header_preproc"
14705 ac_res=`eval echo '${'$as_ac_Header'}'`
14706 { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14711 cat >>confdefs.h <<_ACEOF
14712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 ac_res=`eval echo '${'$as_ac_Header'}'`
14734 { echo "$as_me:$LINENO: result: $ac_res" >&5
14735 echo "${ECHO_T}$ac_res" >&6; }
14737 # Is the header compilable?
14738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14740 cat >conftest.$ac_ext <<_ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 $ac_includes_default
14747 #include <$ac_header>
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_compile") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
14763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14783 ac_header_compiler=yes
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_header_compiler=no
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6; }
14795 # Is the header present?
14796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <$ac_header>
14806 if { (ac_try="$ac_cpp conftest.$ac_ext"
14807 case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev/null; then
14819 if test -s conftest.err; then
14820 ac_cpp_err=$ac_c_preproc_warn_flag
14821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14828 if test -z "$ac_cpp_err"; then
14829 ac_header_preproc=yes
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_header_preproc=no
14837 rm -f conftest.err conftest.$ac_ext
14838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14839 echo "${ECHO_T}$ac_header_preproc" >&6; }
14841 # So? What about this header?
14842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14848 ac_header_preproc=yes
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14864 ## ------------------------------ ##
14865 ## Report this to bugs@yourdomain ##
14866 ## ------------------------------ ##
14868 ) | sed "s/^/$as_me: WARNING: /" >&2
14871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 eval "$as_ac_Header=\$ac_header_preproc"
14878 ac_res=`eval echo '${'$as_ac_Header'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14884 cat >>confdefs.h <<_ACEOF
14885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 ac_res=`eval echo '${'$as_ac_Header'}'`
14906 { echo "$as_me:$LINENO: result: $ac_res" >&5
14907 echo "${ECHO_T}$ac_res" >&6; }
14909 # Is the header compilable?
14910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14919 #include <$ac_header>
14921 rm -f conftest.$ac_objext
14922 if { (ac_try="$ac_compile"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14930 grep -v '^ *+' conftest.er1 >conftest.err
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14936 { (case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_try") 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14955 ac_header_compiler=yes
14957 echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14960 ac_header_compiler=no
14963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14965 echo "${ECHO_T}$ac_header_compiler" >&6; }
14967 # Is the header present?
14968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 #include <$ac_header>
14978 if { (ac_try="$ac_cpp conftest.$ac_ext"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } >/dev/null; then
14991 if test -s conftest.err; then
14992 ac_cpp_err=$ac_c_preproc_warn_flag
14993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15000 if test -z "$ac_cpp_err"; then
15001 ac_header_preproc=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 ac_header_preproc=no
15009 rm -f conftest.err conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 echo "${ECHO_T}$ac_header_preproc" >&6; }
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15036 ## ------------------------------ ##
15037 ## Report this to bugs@yourdomain ##
15038 ## ------------------------------ ##
15040 ) | sed "s/^/$as_me: WARNING: /" >&2
15043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 eval "$as_ac_Header=\$ac_header_preproc"
15050 ac_res=`eval echo '${'$as_ac_Header'}'`
15051 { echo "$as_me:$LINENO: result: $ac_res" >&5
15052 echo "${ECHO_T}$ac_res" >&6; }
15055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15056 cat >>confdefs.h <<_ACEOF
15057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15065 for ac_header in valgrind/valgrind.h
15067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 ac_res=`eval echo '${'$as_ac_Header'}'`
15075 { echo "$as_me:$LINENO: result: $ac_res" >&5
15076 echo "${ECHO_T}$ac_res" >&6; }
15078 # Is the header compilable?
15079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 $ac_includes_default
15088 #include <$ac_header>
15090 rm -f conftest.$ac_objext
15091 if { (ac_try="$ac_compile"
15092 case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; } &&
15114 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15124 ac_header_compiler=yes
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15129 ac_header_compiler=no
15132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15134 echo "${ECHO_T}$ac_header_compiler" >&6; }
15136 # Is the header present?
15137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 #include <$ac_header>
15147 if { (ac_try="$ac_cpp conftest.$ac_ext"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } >/dev/null; then
15160 if test -s conftest.err; then
15161 ac_cpp_err=$ac_c_preproc_warn_flag
15162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15169 if test -z "$ac_cpp_err"; then
15170 ac_header_preproc=yes
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_header_preproc=no
15178 rm -f conftest.err conftest.$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15180 echo "${ECHO_T}$ac_header_preproc" >&6; }
15182 # So? What about this header?
15183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15189 ac_header_preproc=yes
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15205 ## ------------------------------ ##
15206 ## Report this to bugs@yourdomain ##
15207 ## ------------------------------ ##
15209 ) | sed "s/^/$as_me: WARNING: /" >&2
15212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 eval "$as_ac_Header=\$ac_header_preproc"
15219 ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15225 cat >>confdefs.h <<_ACEOF
15226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15234 for ac_header in fenv.h
15236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 ac_res=`eval echo '${'$as_ac_Header'}'`
15244 { echo "$as_me:$LINENO: result: $ac_res" >&5
15245 echo "${ECHO_T}$ac_res" >&6; }
15247 # Is the header compilable?
15248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15257 #include <$ac_header>
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_compile") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15293 ac_header_compiler=yes
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 ac_header_compiler=no
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15303 echo "${ECHO_T}$ac_header_compiler" >&6; }
15305 # Is the header present?
15306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <$ac_header>
15316 if { (ac_try="$ac_cpp conftest.$ac_ext"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } >/dev/null; then
15329 if test -s conftest.err; then
15330 ac_cpp_err=$ac_c_preproc_warn_flag
15331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15338 if test -z "$ac_cpp_err"; then
15339 ac_header_preproc=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_header_preproc=no
15347 rm -f conftest.err conftest.$ac_ext
15348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15349 echo "${ECHO_T}$ac_header_preproc" >&6; }
15351 # So? What about this header?
15352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15358 ac_header_preproc=yes
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15374 ## ------------------------------ ##
15375 ## Report this to bugs@yourdomain ##
15376 ## ------------------------------ ##
15378 ) | sed "s/^/$as_me: WARNING: /" >&2
15381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 eval "$as_ac_Header=\$ac_header_preproc"
15388 ac_res=`eval echo '${'$as_ac_Header'}'`
15389 { echo "$as_me:$LINENO: result: $ac_res" >&5
15390 echo "${ECHO_T}$ac_res" >&6; }
15393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15394 cat >>confdefs.h <<_ACEOF
15395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15402 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15404 for ac_header in pthread.h
15406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result: $ac_res" >&5
15415 echo "${ECHO_T}$ac_res" >&6; }
15417 # Is the header compilable?
15418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <$ac_header>
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15463 ac_header_compiler=yes
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_header_compiler=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15473 echo "${ECHO_T}$ac_header_compiler" >&6; }
15475 # Is the header present?
15476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 #include <$ac_header>
15486 if { (ac_try="$ac_cpp conftest.$ac_ext"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } >/dev/null; then
15499 if test -s conftest.err; then
15500 ac_cpp_err=$ac_c_preproc_warn_flag
15501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15508 if test -z "$ac_cpp_err"; then
15509 ac_header_preproc=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_preproc=no
15517 rm -f conftest.err conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15519 echo "${ECHO_T}$ac_header_preproc" >&6; }
15521 # So? What about this header?
15522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15528 ac_header_preproc=yes
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15544 ## ------------------------------ ##
15545 ## Report this to bugs@yourdomain ##
15546 ## ------------------------------ ##
15548 ) | sed "s/^/$as_me: WARNING: /" >&2
15551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 eval "$as_ac_Header=\$ac_header_preproc"
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15581 if test "$llvm_cv_enable_libffi" = "yes" ; then
15584 for ac_header in ffi.h ffi/ffi.h
15586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 ac_res=`eval echo '${'$as_ac_Header'}'`
15594 { echo "$as_me:$LINENO: result: $ac_res" >&5
15595 echo "${ECHO_T}$ac_res" >&6; }
15597 # Is the header compilable?
15598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 $ac_includes_default
15607 #include <$ac_header>
15609 rm -f conftest.$ac_objext
15610 if { (ac_try="$ac_compile"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_compile") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15624 { (case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_try") 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15643 ac_header_compiler=yes
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_header_compiler=no
15651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15653 echo "${ECHO_T}$ac_header_compiler" >&6; }
15655 # Is the header present?
15656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <$ac_header>
15666 if { (ac_try="$ac_cpp conftest.$ac_ext"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15674 grep -v '^ *+' conftest.er1 >conftest.err
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev/null; then
15679 if test -s conftest.err; then
15680 ac_cpp_err=$ac_c_preproc_warn_flag
15681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15688 if test -z "$ac_cpp_err"; then
15689 ac_header_preproc=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_header_preproc=no
15697 rm -f conftest.err conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15699 echo "${ECHO_T}$ac_header_preproc" >&6; }
15701 # So? What about this header?
15702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15708 ac_header_preproc=yes
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15724 ## ------------------------------ ##
15725 ## Report this to bugs@yourdomain ##
15726 ## ------------------------------ ##
15728 ) | sed "s/^/$as_me: WARNING: /" >&2
15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 eval "$as_ac_Header=\$ac_header_preproc"
15738 ac_res=`eval echo '${'$as_ac_Header'}'`
15739 { echo "$as_me:$LINENO: result: $ac_res" >&5
15740 echo "${ECHO_T}$ac_res" >&6; }
15743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15744 cat >>confdefs.h <<_ACEOF
15745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15755 for ac_header in CrashReporterClient.h
15757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15768 # Is the header compilable?
15769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15778 #include <$ac_header>
15780 rm -f conftest.$ac_objext
15781 if { (ac_try="$ac_compile"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; } &&
15804 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15814 ac_header_compiler=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_header_compiler=no
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15824 echo "${ECHO_T}$ac_header_compiler" >&6; }
15826 # Is the header present?
15827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 #include <$ac_header>
15837 if { (ac_try="$ac_cpp conftest.$ac_ext"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null; then
15850 if test -s conftest.err; then
15851 ac_cpp_err=$ac_c_preproc_warn_flag
15852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15859 if test -z "$ac_cpp_err"; then
15860 ac_header_preproc=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_preproc=no
15868 rm -f conftest.err conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15870 echo "${ECHO_T}$ac_header_preproc" >&6; }
15872 # So? What about this header?
15873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15879 ac_header_preproc=yes
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895 ## ------------------------------ ##
15896 ## Report this to bugs@yourdomain ##
15897 ## ------------------------------ ##
15899 ) | sed "s/^/$as_me: WARNING: /" >&2
15902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 eval "$as_ac_Header=\$ac_header_preproc"
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15924 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15925 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 extern const char *__crashreporter_info__;
15934 __crashreporter_info__ = "test";
15939 rm -f conftest.$ac_objext conftest$ac_exeext
15940 if { (ac_try="$ac_link"
15941 case "(($ac_try" in
15942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_link") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15954 { (case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_try") 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15973 { echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6; }
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_CRASHREPORTER_INFO 1
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 { echo "$as_me:$LINENO: result: no" >&5
15985 echo "${ECHO_T}no" >&6; }
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE_CRASHREPORTER_INFO 0
15993 rm -f core conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15999 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16000 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16001 if test "${ac_cv_huge_val_sanity+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 ac_cpp='$CXXCPP $CPPFLAGS'
16007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16011 ac_save_CXXFLAGS=$CXXFLAGS
16012 CXXFLAGS="$CXXFLAGS -pedantic"
16013 if test "$cross_compiling" = yes; then
16014 ac_cv_huge_val_sanity=yes
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16026 double x = HUGE_VAL; return x != x;
16031 rm -f conftest$ac_exeext
16032 if { (ac_try="$ac_link"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_link") 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16042 { (case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_try") 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_huge_val_sanity=yes
16053 echo "$as_me: program exited with status $ac_status" >&5
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ( exit $ac_status )
16058 ac_cv_huge_val_sanity=no
16060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16064 CXXFLAGS=$ac_save_CXXFLAGS
16066 ac_cpp='$CPP $CPPFLAGS'
16067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16073 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16074 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16075 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16078 { echo "$as_me:$LINENO: checking for pid_t" >&5
16079 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16080 if test "${ac_cv_type_pid_t+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 $ac_includes_default
16090 typedef pid_t ac__type_new_;
16094 if ((ac__type_new_ *) 0)
16096 if (sizeof (ac__type_new_))
16102 rm -f conftest.$ac_objext
16103 if { (ac_try="$ac_compile"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_compile") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16136 ac_cv_type_pid_t=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_cv_type_pid_t=no
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16147 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16148 if test $ac_cv_type_pid_t = yes; then
16152 cat >>confdefs.h <<_ACEOF
16158 { echo "$as_me:$LINENO: checking for size_t" >&5
16159 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16160 if test "${ac_cv_type_size_t+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 cat >conftest.$ac_ext <<_ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169 $ac_includes_default
16170 typedef size_t ac__type_new_;
16174 if ((ac__type_new_ *) 0)
16176 if (sizeof (ac__type_new_))
16182 rm -f conftest.$ac_objext
16183 if { (ac_try="$ac_compile"
16184 case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_compile") 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16216 ac_cv_type_size_t=yes
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 ac_cv_type_size_t=no
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16227 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16228 if test $ac_cv_type_size_t = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define size_t unsigned int
16239 cat >>confdefs.h <<_ACEOF
16240 #define RETSIGTYPE void
16243 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16244 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16245 if test "${ac_cv_struct_tm+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 #include <sys/types.h>
16260 struct tm *tp; tp->tm_sec;
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_compile") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16299 ac_cv_struct_tm=time.h
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_cv_struct_tm=sys/time.h
16307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16309 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16310 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16311 if test $ac_cv_struct_tm = sys/time.h; then
16313 cat >>confdefs.h <<\_ACEOF
16314 #define TM_IN_SYS_TIME 1
16319 { echo "$as_me:$LINENO: checking for int64_t" >&5
16320 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16321 if test "${ac_cv_type_int64_t+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 cat >conftest.$ac_ext <<_ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 $ac_includes_default
16331 typedef int64_t ac__type_new_;
16335 if ((ac__type_new_ *) 0)
16337 if (sizeof (ac__type_new_))
16343 rm -f conftest.$ac_objext
16344 if { (ac_try="$ac_compile"
16345 case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_compile") 2>conftest.er1
16352 grep -v '^ *+' conftest.er1 >conftest.err
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16377 ac_cv_type_int64_t=yes
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_cv_type_int64_t=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16388 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16389 if test $ac_cv_type_int64_t = yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_INT64_T 1
16397 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16398 echo "$as_me: error: Type int64_t required but not found" >&2;}
16399 { (exit 1); exit 1; }; }
16402 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16403 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16404 if test "${ac_cv_type_uint64_t+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 $ac_includes_default
16414 typedef uint64_t ac__type_new_;
16418 if ((ac__type_new_ *) 0)
16420 if (sizeof (ac__type_new_))
16426 rm -f conftest.$ac_objext
16427 if { (ac_try="$ac_compile"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_compile") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16460 ac_cv_type_uint64_t=yes
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_cv_type_uint64_t=no
16468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16471 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16472 if test $ac_cv_type_uint64_t = yes; then
16474 cat >>confdefs.h <<_ACEOF
16475 #define HAVE_UINT64_T 1
16480 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16481 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16482 if test "${ac_cv_type_u_int64_t+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 $ac_includes_default
16492 typedef u_int64_t ac__type_new_;
16496 if ((ac__type_new_ *) 0)
16498 if (sizeof (ac__type_new_))
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16538 ac_cv_type_u_int64_t=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_type_u_int64_t=no
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16549 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16550 if test $ac_cv_type_u_int64_t = yes; then
16552 cat >>confdefs.h <<_ACEOF
16553 #define HAVE_U_INT64_T 1
16558 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16559 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16560 { (exit 1); exit 1; }; }
16574 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 cat >conftest.$ac_ext <<_ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16590 #define $ac_func innocuous_$ac_func
16592 /* System header to define __stub macros and hopefully few prototypes,
16593 which can conflict with char $ac_func (); below.
16594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16595 <limits.h> exists even on freestanding compilers. */
16598 # include <limits.h>
16600 # include <assert.h>
16605 /* Override any GCC internal prototype to avoid an error.
16606 Use char because int might match the return type of a GCC
16607 builtin and then its argument prototype would still apply. */
16612 /* The GNU C library defines this for functions which it implements
16613 to always fail with ENOSYS. Some functions are actually named
16614 something starting with __ and the normal name is an alias. */
16615 #if defined __stub_$ac_func || defined __stub___$ac_func
16622 return $ac_func ();
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (ac_try="$ac_link"
16629 case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_link") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16661 eval "$as_ac_var=yes"
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 eval "$as_ac_var=no"
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16672 ac_res=`eval echo '${'$as_ac_var'}'`
16673 { echo "$as_me:$LINENO: result: $ac_res" >&5
16674 echo "${ECHO_T}$ac_res" >&6; }
16675 if test `eval echo '${'$as_ac_var'}'` = yes; then
16676 cat >>confdefs.h <<_ACEOF
16677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16687 for ac_func in powf fmodf strtof round
16689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703 #define $ac_func innocuous_$ac_func
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char $ac_func (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16711 # include <limits.h>
16713 # include <assert.h>
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined __stub_$ac_func || defined __stub___$ac_func
16735 return $ac_func ();
16740 rm -f conftest.$ac_objext conftest$ac_exeext
16741 if { (ac_try="$ac_link"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_link") 2>conftest.er1
16749 grep -v '^ *+' conftest.er1 >conftest.err
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16774 eval "$as_ac_var=yes"
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 eval "$as_ac_var=no"
16782 rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16785 ac_res=`eval echo '${'$as_ac_var'}'`
16786 { echo "$as_me:$LINENO: result: $ac_res" >&5
16787 echo "${ECHO_T}$ac_res" >&6; }
16788 if test `eval echo '${'$as_ac_var'}'` = yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16801 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817 #define $ac_func innocuous_$ac_func
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16825 # include <limits.h>
16827 # include <assert.h>
16832 /* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16839 /* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16849 return $ac_func ();
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16888 eval "$as_ac_var=yes"
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no"
16896 rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16913 for ac_func in isatty mkdtemp mkstemp
16915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16929 #define $ac_func innocuous_$ac_func
16931 /* System header to define __stub macros and hopefully few prototypes,
16932 which can conflict with char $ac_func (); below.
16933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16934 <limits.h> exists even on freestanding compilers. */
16937 # include <limits.h>
16939 # include <assert.h>
16944 /* Override any GCC internal prototype to avoid an error.
16945 Use char because int might match the return type of a GCC
16946 builtin and then its argument prototype would still apply. */
16951 /* The GNU C library defines this for functions which it implements
16952 to always fail with ENOSYS. Some functions are actually named
16953 something starting with __ and the normal name is an alias. */
16954 #if defined __stub_$ac_func || defined __stub___$ac_func
16961 return $ac_func ();
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (ac_try="$ac_link"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_link") 2>conftest.er1
16975 grep -v '^ *+' conftest.er1 >conftest.err
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
16980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17000 eval "$as_ac_var=yes"
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 eval "$as_ac_var=no"
17008 rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
17011 ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17014 if test `eval echo '${'$as_ac_var'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17028 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044 #define $ac_func innocuous_$ac_func
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17052 # include <limits.h>
17054 # include <assert.h>
17059 /* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17066 /* The GNU C library defines this for functions which it implements
17067 to always fail with ENOSYS. Some functions are actually named
17068 something starting with __ and the normal name is an alias. */
17069 #if defined __stub_$ac_func || defined __stub___$ac_func
17076 return $ac_func ();
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17115 eval "$as_ac_var=yes"
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 eval "$as_ac_var=no"
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17126 ac_res=`eval echo '${'$as_ac_var'}'`
17127 { echo "$as_me:$LINENO: result: $ac_res" >&5
17128 echo "${ECHO_T}$ac_res" >&6; }
17129 if test `eval echo '${'$as_ac_var'}'` = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17140 for ac_func in strerror strerror_r setenv
17142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17156 #define $ac_func innocuous_$ac_func
17158 /* System header to define __stub macros and hopefully few prototypes,
17159 which can conflict with char $ac_func (); below.
17160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17161 <limits.h> exists even on freestanding compilers. */
17164 # include <limits.h>
17166 # include <assert.h>
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17178 /* The GNU C library defines this for functions which it implements
17179 to always fail with ENOSYS. Some functions are actually named
17180 something starting with __ and the normal name is an alias. */
17181 #if defined __stub_$ac_func || defined __stub___$ac_func
17188 return $ac_func ();
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17227 eval "$as_ac_var=yes"
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 eval "$as_ac_var=no"
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17238 ac_res=`eval echo '${'$as_ac_var'}'`
17239 { echo "$as_me:$LINENO: result: $ac_res" >&5
17240 echo "${ECHO_T}$ac_res" >&6; }
17241 if test `eval echo '${'$as_ac_var'}'` = yes; then
17242 cat >>confdefs.h <<_ACEOF
17243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17253 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17269 #define $ac_func innocuous_$ac_func
17271 /* System header to define __stub macros and hopefully few prototypes,
17272 which can conflict with char $ac_func (); below.
17273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17274 <limits.h> exists even on freestanding compilers. */
17277 # include <limits.h>
17279 # include <assert.h>
17284 /* Override any GCC internal prototype to avoid an error.
17285 Use char because int might match the return type of a GCC
17286 builtin and then its argument prototype would still apply. */
17291 /* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294 #if defined __stub_$ac_func || defined __stub___$ac_func
17301 return $ac_func ();
17306 rm -f conftest.$ac_objext conftest$ac_exeext
17307 if { (ac_try="$ac_link"
17308 case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_link") 2>conftest.er1
17315 grep -v '^ *+' conftest.er1 >conftest.err
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17340 eval "$as_ac_var=yes"
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 eval "$as_ac_var=no"
17348 rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17351 ac_res=`eval echo '${'$as_ac_var'}'`
17352 { echo "$as_me:$LINENO: result: $ac_res" >&5
17353 echo "${ECHO_T}$ac_res" >&6; }
17354 if test `eval echo '${'$as_ac_var'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383 #define $ac_func innocuous_$ac_func
17385 /* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17391 # include <limits.h>
17393 # include <assert.h>
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17405 /* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17415 return $ac_func ();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17454 eval "$as_ac_var=yes"
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no"
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17476 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17477 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17478 if test "${llvm_cv_c_printf_a+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 ac_cpp='$CPP $CPPFLAGS'
17483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17487 if test "$cross_compiling" = yes; then
17488 llvmac_cv_c_printf_a=no
17490 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17499 #include <stdlib.h>
17505 volatile double A, B;
17509 sprintf(Buffer, "%a", A);
17513 if (A != 0x1.999999999999ap-4)
17520 rm -f conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17531 { (case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_try") 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 llvm_cv_c_printf_a=yes
17542 echo "$as_me: program exited with status $ac_status" >&5
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ( exit $ac_status )
17547 llvmac_cv_c_printf_a=no
17549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17554 ac_cpp='$CPP $CPPFLAGS'
17555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17560 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17561 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17562 if test "$llvm_cv_c_printf_a" = "yes"; then
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_PRINTF_A 1
17571 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17572 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17573 if test "${ac_cv_func_rand48+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 ac_cpp='$CXXCPP $CPPFLAGS'
17578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 #include <stdlib.h>
17592 srand48(0);lrand48();drand48();
17597 rm -f conftest.$ac_objext
17598 if { (ac_try="$ac_compile"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_compile") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17612 { (case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_try") 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17631 ac_cv_func_rand48=yes
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 ac_cv_func_rand48=no
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17648 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17650 if test "$ac_cv_func_rand48" = "yes" ; then
17652 cat >>confdefs.h <<\_ACEOF
17653 #define HAVE_RAND48 1
17659 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17660 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17661 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 $ac_includes_default
17675 char *p = (char *) strerror_s;
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17717 ac_cv_have_decl_strerror_s=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_have_decl_strerror_s=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17728 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17729 if test $ac_cv_have_decl_strerror_s = yes; then
17731 cat >>confdefs.h <<_ACEOF
17732 #define HAVE_DECL_STRERROR_S 1
17737 cat >>confdefs.h <<_ACEOF
17738 #define HAVE_DECL_STRERROR_S 0
17746 if test "$llvm_cv_os_type" = "MingW" ; then
17747 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17748 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17749 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 ac_check_lib_save_LIBS=$LIBS
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17761 /* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17810 ac_cv_lib_gcc__alloca=yes
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_cv_lib_gcc__alloca=no
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17822 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17823 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17824 if test $ac_cv_lib_gcc__alloca = yes; then
17826 cat >>confdefs.h <<\_ACEOF
17827 #define HAVE__ALLOCA 1
17832 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17833 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17834 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 ac_check_lib_save_LIBS=$LIBS
17839 cat >conftest.$ac_ext <<_ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17856 return __alloca ();
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
17875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876 { (case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_try") 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17895 ac_cv_lib_gcc___alloca=yes
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ac_cv_lib_gcc___alloca=no
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 LIBS=$ac_check_lib_save_LIBS
17907 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17908 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17909 if test $ac_cv_lib_gcc___alloca = yes; then
17911 cat >>confdefs.h <<\_ACEOF
17912 #define HAVE___ALLOCA 1
17917 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17918 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17919 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 ac_check_lib_save_LIBS=$LIBS
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17941 return __chkstk ();
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (ac_try="$ac_link"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_link") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17980 ac_cv_lib_gcc___chkstk=yes
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_cv_lib_gcc___chkstk=no
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 LIBS=$ac_check_lib_save_LIBS
17992 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17993 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17994 if test $ac_cv_lib_gcc___chkstk = yes; then
17996 cat >>confdefs.h <<\_ACEOF
17997 #define HAVE___CHKSTK 1
18002 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18003 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18004 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18007 ac_check_lib_save_LIBS=$LIBS
18009 cat >conftest.$ac_ext <<_ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18026 return ___chkstk ();
18031 rm -f conftest.$ac_objext conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18040 grep -v '^ *+' conftest.er1 >conftest.err
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } &&
18045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18065 ac_cv_lib_gcc____chkstk=yes
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_cv_lib_gcc____chkstk=no
18073 rm -f core conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18075 LIBS=$ac_check_lib_save_LIBS
18077 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18078 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18079 if test $ac_cv_lib_gcc____chkstk = yes; then
18081 cat >>confdefs.h <<\_ACEOF
18082 #define HAVE____CHKSTK 1
18088 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18089 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18090 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 ac_check_lib_save_LIBS=$LIBS
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18102 /* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18112 return __ashldi3 ();
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_link") 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18132 { (case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_try") 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18151 ac_cv_lib_gcc___ashldi3=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_lib_gcc___ashldi3=no
18159 rm -f core conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18164 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18165 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18167 cat >>confdefs.h <<\_ACEOF
18168 #define HAVE___ASHLDI3 1
18173 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18174 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18175 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 ac_check_lib_save_LIBS=$LIBS
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18197 return __ashrdi3 ();
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (ac_try="$ac_link"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_link") 2>conftest.er1
18211 grep -v '^ *+' conftest.er1 >conftest.err
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18236 ac_cv_lib_gcc___ashrdi3=yes
18238 echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_cv_lib_gcc___ashrdi3=no
18244 rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246 LIBS=$ac_check_lib_save_LIBS
18248 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18249 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18250 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18252 cat >>confdefs.h <<\_ACEOF
18253 #define HAVE___ASHRDI3 1
18258 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18259 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18260 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 ac_check_lib_save_LIBS=$LIBS
18265 cat >conftest.$ac_ext <<_ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18272 /* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18282 return __divdi3 ();
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18294 (eval "$ac_link") 2>conftest.er1
18296 grep -v '^ *+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18302 { (case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_try") 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; } &&
18311 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18321 ac_cv_lib_gcc___divdi3=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_lib_gcc___divdi3=no
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18333 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18334 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18335 if test $ac_cv_lib_gcc___divdi3 = yes; then
18337 cat >>confdefs.h <<\_ACEOF
18338 #define HAVE___DIVDI3 1
18343 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18344 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18345 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18346 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 ac_check_lib_save_LIBS=$LIBS
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18357 /* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18367 return __fixdfdi ();
18372 rm -f conftest.$ac_objext conftest$ac_exeext
18373 if { (ac_try="$ac_link"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18406 ac_cv_lib_gcc___fixdfdi=yes
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_cv_lib_gcc___fixdfdi=no
18414 rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18418 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18419 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18420 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18422 cat >>confdefs.h <<\_ACEOF
18423 #define HAVE___FIXDFDI 1
18428 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18429 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18430 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 ac_check_lib_save_LIBS=$LIBS
18435 cat >conftest.$ac_ext <<_ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18442 /* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18452 return __fixsfdi ();
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (ac_try="$ac_link"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_link") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18491 ac_cv_lib_gcc___fixsfdi=yes
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ac_cv_lib_gcc___fixsfdi=no
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS=$ac_check_lib_save_LIBS
18503 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18504 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18505 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE___FIXSFDI 1
18513 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18514 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18515 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS=$LIBS
18520 cat >conftest.$ac_ext <<_ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
18533 char __floatdidf ();
18537 return __floatdidf ();
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18551 grep -v '^ *+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18557 { (case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_try") 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18576 ac_cv_lib_gcc___floatdidf=yes
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.$ac_ext >&5
18581 ac_cv_lib_gcc___floatdidf=no
18584 rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18586 LIBS=$ac_check_lib_save_LIBS
18588 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18589 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18590 if test $ac_cv_lib_gcc___floatdidf = yes; then
18592 cat >>confdefs.h <<\_ACEOF
18593 #define HAVE___FLOATDIDF 1
18598 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18599 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18600 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 ac_check_lib_save_LIBS=$LIBS
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18612 /* Override any GCC internal prototype to avoid an error.
18613 Use char because int might match the return type of a GCC
18614 builtin and then its argument prototype would still apply. */
18622 return __lshrdi3 ();
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_link") 2>conftest.er1
18636 grep -v '^ *+' conftest.er1 >conftest.err
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } &&
18641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18661 ac_cv_lib_gcc___lshrdi3=yes
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_cv_lib_gcc___lshrdi3=no
18669 rm -f core conftest.err conftest.$ac_objext \
18670 conftest$ac_exeext conftest.$ac_ext
18671 LIBS=$ac_check_lib_save_LIBS
18673 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18674 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18675 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE___LSHRDI3 1
18683 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18684 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18685 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 ac_check_lib_save_LIBS=$LIBS
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18697 /* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
18707 return __moddi3 ();
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (ac_try="$ac_link"
18714 case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_link") 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18746 ac_cv_lib_gcc___moddi3=yes
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18751 ac_cv_lib_gcc___moddi3=no
18754 rm -f core conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18758 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18759 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18760 if test $ac_cv_lib_gcc___moddi3 = yes; then
18762 cat >>confdefs.h <<\_ACEOF
18763 #define HAVE___MODDI3 1
18768 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18769 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18770 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 ac_check_lib_save_LIBS=$LIBS
18775 cat >conftest.$ac_ext <<_ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18792 return __udivdi3 ();
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (ac_try="$ac_link"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_link") 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18831 ac_cv_lib_gcc___udivdi3=yes
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_cv_lib_gcc___udivdi3=no
18839 rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18843 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18844 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18845 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE___UDIVDI3 1
18853 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18854 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18855 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 ac_check_lib_save_LIBS=$LIBS
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18877 return __umoddi3 ();
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (ac_try="$ac_link"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_link") 2>conftest.er1
18891 grep -v '^ *+' conftest.er1 >conftest.err
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_try") 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18916 ac_cv_lib_gcc___umoddi3=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_cv_lib_gcc___umoddi3=no
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18929 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18930 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE___UMODDI3 1
18939 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18940 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18941 if test "${ac_cv_lib_gcc___main+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 ac_check_lib_save_LIBS=$LIBS
18946 cat >conftest.$ac_ext <<_ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19002 ac_cv_lib_gcc___main=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_cv_lib_gcc___main=no
19010 rm -f core conftest.err conftest.$ac_objext \
19011 conftest$ac_exeext conftest.$ac_ext
19012 LIBS=$ac_check_lib_save_LIBS
19014 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19015 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19016 if test $ac_cv_lib_gcc___main = yes; then
19018 cat >>confdefs.h <<\_ACEOF
19019 #define HAVE___MAIN 1
19024 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19025 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19026 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 ac_check_lib_save_LIBS=$LIBS
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19048 return __cmpdi2 ();
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19087 ac_cv_lib_gcc___cmpdi2=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_lib_gcc___cmpdi2=no
19095 rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19100 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19101 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19103 cat >>confdefs.h <<\_ACEOF
19104 #define HAVE___CMPDI2 1
19111 if test "$llvm_cv_os_type" = "MingW" ; then
19112 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19113 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19115 #include <windows.h>
19116 #include <imagehlp.h>
19117 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19118 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19120 rm -f conftest.$ac_objext
19121 if { (ac_try="$ac_compile"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_compile") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19155 { echo "$as_me:$LINENO: result: yes" >&5
19156 echo "${ECHO_T}yes" >&6; }
19157 llvm_cv_win32_elmcb_pcstr="PCSTR"
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19164 { echo "$as_me:$LINENO: result: no" >&5
19165 echo "${ECHO_T}no" >&6; }
19166 llvm_cv_win32_elmcb_pcstr="PSTR"
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 cat >>confdefs.h <<_ACEOF
19173 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19179 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19180 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19181 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_cpp='$CXXCPP $CPPFLAGS'
19186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } &&
19219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19239 ac_cv_func_isnan_in_math_h=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_cv_func_isnan_in_math_h=no
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 ac_cpp='$CPP $CPPFLAGS'
19250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19256 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19259 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_ISNAN_IN_MATH_H 1
19267 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19268 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19269 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 ac_cpp='$CXXCPP $CPPFLAGS'
19274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19293 rm -f conftest.$ac_objext
19294 if { (ac_try="$ac_compile"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_compile") 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19327 ac_cv_func_isnan_in_cmath=yes
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_func_isnan_in_cmath=no
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19344 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19346 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_ISNAN_IN_CMATH 1
19354 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19355 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19356 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19365 cat >conftest.$ac_ext <<_ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19375 float f; std::isnan(f);
19380 rm -f conftest.$ac_objext
19381 if { (ac_try="$ac_compile"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19395 { (case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_try") 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19414 ac_cv_func_std_isnan_in_cmath=yes
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19419 ac_cv_func_std_isnan_in_cmath=no
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 ac_cpp='$CPP $CPPFLAGS'
19425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19430 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19431 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19433 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_STD_ISNAN_IN_CMATH 1
19442 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19443 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19444 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 ac_cpp='$CXXCPP $CPPFLAGS'
19449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
19477 grep -v '^ *+' conftest.er1 >conftest.err
19479 cat conftest.err >&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19502 ac_cv_func_isinf_in_math_h=yes
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 ac_cv_func_isinf_in_math_h=no
19510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19518 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19519 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19521 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19523 cat >>confdefs.h <<\_ACEOF
19524 #define HAVE_ISINF_IN_MATH_H 1
19529 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19530 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19531 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19535 ac_cpp='$CXXCPP $CPPFLAGS'
19536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19555 rm -f conftest.$ac_objext
19556 if { (ac_try="$ac_compile"
19557 case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_compile") 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19589 ac_cv_func_isinf_in_cmath=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_func_isinf_in_cmath=no
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 ac_cpp='$CPP $CPPFLAGS'
19600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19605 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19606 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19608 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define HAVE_ISINF_IN_CMATH 1
19616 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19617 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19618 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 ac_cpp='$CXXCPP $CPPFLAGS'
19623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19637 float f; std::isinf(f);
19642 rm -f conftest.$ac_objext
19643 if { (ac_try="$ac_compile"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_compile") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19676 ac_cv_func_std_isinf_in_cmath=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_cv_func_std_isinf_in_cmath=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 ac_cpp='$CPP $CPPFLAGS'
19687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19692 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19693 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19695 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_STD_ISINF_IN_CMATH 1
19703 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19704 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19705 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 ac_cpp='$CXXCPP $CPPFLAGS'
19710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <ieeefp.h>
19724 float f; finite(f);
19729 rm -f conftest.$ac_objext
19730 if { (ac_try="$ac_compile"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_compile") 2>conftest.er1
19738 grep -v '^ *+' conftest.er1 >conftest.err
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
19743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19763 ac_cv_func_finite_in_ieeefp_h=yes
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_cv_func_finite_in_ieeefp_h=no
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19780 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19782 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_FINITE_IN_IEEEFP_H 1
19792 if test "$llvm_cv_platform_type" = "Unix" ; then
19795 for ac_header in stdlib.h unistd.h
19797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 ac_res=`eval echo '${'$as_ac_Header'}'`
19805 { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19808 # Is the header compilable?
19809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817 $ac_includes_default
19818 #include <$ac_header>
19820 rm -f conftest.$ac_objext
19821 if { (ac_try="$ac_compile"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19829 grep -v '^ *+' conftest.er1 >conftest.err
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19854 ac_header_compiler=yes
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 ac_header_compiler=no
19862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19864 echo "${ECHO_T}$ac_header_compiler" >&6; }
19866 # Is the header present?
19867 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 #include <$ac_header>
19877 if { (ac_try="$ac_cpp conftest.$ac_ext"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } >/dev/null; then
19890 if test -s conftest.err; then
19891 ac_cpp_err=$ac_c_preproc_warn_flag
19892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19899 if test -z "$ac_cpp_err"; then
19900 ac_header_preproc=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_header_preproc=no
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19912 # So? What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919 ac_header_preproc=yes
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19935 ## ------------------------------ ##
19936 ## Report this to bugs@yourdomain ##
19937 ## ------------------------------ ##
19939 ) | sed "s/^/$as_me: WARNING: /" >&2
19942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 eval "$as_ac_Header=\$ac_header_preproc"
19949 ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19964 for ac_func in getpagesize
19966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19980 #define $ac_func innocuous_$ac_func
19982 /* System header to define __stub macros and hopefully few prototypes,
19983 which can conflict with char $ac_func (); below.
19984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985 <limits.h> exists even on freestanding compilers. */
19988 # include <limits.h>
19990 # include <assert.h>
19995 /* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
20002 /* The GNU C library defines this for functions which it implements
20003 to always fail with ENOSYS. Some functions are actually named
20004 something starting with __ and the normal name is an alias. */
20005 #if defined __stub_$ac_func || defined __stub___$ac_func
20012 return $ac_func ();
20017 rm -f conftest.$ac_objext conftest$ac_exeext
20018 if { (ac_try="$ac_link"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_link") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } &&
20041 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20051 eval "$as_ac_var=yes"
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 eval "$as_ac_var=no"
20059 rm -f core conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
20062 ac_res=`eval echo '${'$as_ac_var'}'`
20063 { echo "$as_me:$LINENO: result: $ac_res" >&5
20064 echo "${ECHO_T}$ac_res" >&6; }
20065 if test `eval echo '${'$as_ac_var'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20073 { echo "$as_me:$LINENO: checking for working mmap" >&5
20074 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20075 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 if test "$cross_compiling" = yes; then
20079 ac_cv_func_mmap_fixed_mapped=no
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 $ac_includes_default
20088 /* malloc might have been renamed as rpl_malloc. */
20091 /* Thanks to Mike Haertel and Jim Avera for this test.
20092 Here is a matrix of mmap possibilities:
20093 mmap private not fixed
20094 mmap private fixed at somewhere currently unmapped
20095 mmap private fixed at somewhere already mapped
20096 mmap shared not fixed
20097 mmap shared fixed at somewhere currently unmapped
20098 mmap shared fixed at somewhere already mapped
20099 For private mappings, we should verify that changes cannot be read()
20100 back from the file, nor mmap's back from the file at a different
20101 address. (There have been systems where private was not correctly
20102 implemented like the infamous i386 svr4.0, and systems where the
20103 VM page cache was not coherent with the file system buffer cache
20104 like early versions of FreeBSD and possibly contemporary NetBSD.)
20105 For shared mappings, we should conversely verify that changes get
20106 propagated back to all the places they're supposed to be.
20108 Grep wants private fixed already mapped.
20109 The main things grep needs to know about mmap are:
20110 * does it exist and is it safe to write into the mmap'd area
20111 * how to use it (BSD variants) */
20114 #include <sys/mman.h>
20116 #if !STDC_HEADERS && !HAVE_STDLIB_H
20120 /* This mess was copied from the GNU getpagesize.h. */
20121 #if !HAVE_GETPAGESIZE
20122 /* Assume that all systems that can run configure have sys/param.h. */
20123 # if !HAVE_SYS_PARAM_H
20124 # define HAVE_SYS_PARAM_H 1
20127 # ifdef _SC_PAGESIZE
20128 # define getpagesize() sysconf(_SC_PAGESIZE)
20129 # else /* no _SC_PAGESIZE */
20130 # if HAVE_SYS_PARAM_H
20131 # include <sys/param.h>
20132 # ifdef EXEC_PAGESIZE
20133 # define getpagesize() EXEC_PAGESIZE
20134 # else /* no EXEC_PAGESIZE */
20136 # define getpagesize() NBPG * CLSIZE
20139 # endif /* no CLSIZE */
20140 # else /* no NBPG */
20142 # define getpagesize() NBPC
20143 # else /* no NBPC */
20145 # define getpagesize() PAGESIZE
20146 # endif /* PAGESIZE */
20147 # endif /* no NBPC */
20148 # endif /* no NBPG */
20149 # endif /* no EXEC_PAGESIZE */
20150 # else /* no HAVE_SYS_PARAM_H */
20151 # define getpagesize() 8192 /* punt totally */
20152 # endif /* no HAVE_SYS_PARAM_H */
20153 # endif /* no _SC_PAGESIZE */
20155 #endif /* no HAVE_GETPAGESIZE */
20160 char *data, *data2, *data3;
20164 pagesize = getpagesize ();
20166 /* First, make a file with some known garbage in it. */
20167 data = (char *) malloc (pagesize);
20170 for (i = 0; i < pagesize; ++i)
20171 *(data + i) = rand ();
20173 fd = creat ("conftest.mmap", 0600);
20176 if (write (fd, data, pagesize) != pagesize)
20180 /* Next, try to mmap the file at a fixed address which already has
20181 something else allocated at it. If we can, also make sure that
20182 we see the same garbage. */
20183 fd = open ("conftest.mmap", O_RDWR);
20186 data2 = (char *) malloc (2 * pagesize);
20189 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20190 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20191 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20193 for (i = 0; i < pagesize; ++i)
20194 if (*(data + i) != *(data2 + i))
20197 /* Finally, make sure that changes to the mapped area do not
20198 percolate back to the file as seen by read(). (This is a bug on
20199 some variants of i386 svr4.0.) */
20200 for (i = 0; i < pagesize; ++i)
20201 *(data2 + i) = *(data2 + i) + 1;
20202 data3 = (char *) malloc (pagesize);
20205 if (read (fd, data3, pagesize) != pagesize)
20207 for (i = 0; i < pagesize; ++i)
20208 if (*(data + i) != *(data3 + i))
20214 rm -f conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20225 { (case "(($ac_try" in
20226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227 *) ac_try_echo=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_try") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_func_mmap_fixed_mapped=yes
20236 echo "$as_me: program exited with status $ac_status" >&5
20237 echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20240 ( exit $ac_status )
20241 ac_cv_func_mmap_fixed_mapped=no
20243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20249 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20252 cat >>confdefs.h <<\_ACEOF
20253 #define HAVE_MMAP 1
20257 rm -f conftest.mmap
20259 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20260 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20261 if test "${ac_cv_func_mmap_file+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_cpp='$CPP $CPPFLAGS'
20266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20270 if test "$cross_compiling" = yes; then
20271 ac_cv_func_mmap_file=no
20273 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 #include <sys/types.h>
20282 #include <sys/mman.h>
20290 fd = creat ("foo",0777);
20291 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20293 return (fd != (int) MAP_FAILED);
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_try") 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); }; }; then
20318 ac_cv_func_mmap_file=yes
20320 echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ( exit $ac_status )
20325 ac_cv_func_mmap_file=no
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20340 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20341 if test "$ac_cv_func_mmap_file" = yes; then
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_MMAP_FILE
20351 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20352 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20353 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 if test "$llvm_cv_os_type" = "Interix" ; then
20357 ac_cv_need_dev_zero_for_mmap=yes
20359 ac_cv_need_dev_zero_for_mmap=no
20363 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20364 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20365 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define NEED_DEV_ZERO_FOR_MMAP 1
20373 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20375 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20376 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20378 if test "$ac_cv_func_mmap_file" = "no"
20380 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20381 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20385 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20386 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20388 ac_cpp='$CXXCPP $CPPFLAGS'
20389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20393 cat >conftest.$ac_ext <<_ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20400 volatile unsigned long val = 1;
20401 __sync_synchronize();
20402 __sync_val_compare_and_swap(&val, 1, 0);
20403 __sync_add_and_fetch(&val, 1);
20404 __sync_sub_and_fetch(&val, 1);
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } &&
20423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20444 ac_cpp='$CPP $CPPFLAGS'
20445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449 { echo "$as_me:$LINENO: result: yes" >&5
20450 echo "${ECHO_T}yes" >&6; }
20452 cat >>confdefs.h <<\_ACEOF
20453 #define LLVM_HAS_ATOMICS 1
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 { echo "$as_me:$LINENO: result: no" >&5
20461 echo "${ECHO_T}no" >&6; }
20463 cat >>confdefs.h <<\_ACEOF
20464 #define LLVM_HAS_ATOMICS 0
20467 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20468 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20471 rm -f core conftest.err conftest.$ac_objext \
20472 conftest$ac_exeext conftest.$ac_ext
20475 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20477 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20478 if test "${llvm_cv_linux_mixed+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 ac_cpp='$CPP $CPPFLAGS'
20483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20494 error: Not x86-64 even if uname says so!
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20539 llvm_cv_linux_mixed=no
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 llvm_cv_linux_mixed=yes
20547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 ac_cpp='$CPP $CPPFLAGS'
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20557 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20559 if test "$llvm_cv_linux_mixed" = "yes"; then
20560 llvm_cv_target_arch="x86"
20566 for ac_func in __dso_handle
20568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20582 #define $ac_func innocuous_$ac_func
20584 /* System header to define __stub macros and hopefully few prototypes,
20585 which can conflict with char $ac_func (); below.
20586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20587 <limits.h> exists even on freestanding compilers. */
20590 # include <limits.h>
20592 # include <assert.h>
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20604 /* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607 #if defined __stub_$ac_func || defined __stub___$ac_func
20614 return $ac_func ();
20619 rm -f conftest.$ac_objext conftest$ac_exeext
20620 if { (ac_try="$ac_link"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_link") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20653 eval "$as_ac_var=yes"
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 eval "$as_ac_var=no"
20661 rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext conftest.$ac_ext
20664 ac_res=`eval echo '${'$as_ac_var'}'`
20665 { echo "$as_me:$LINENO: result: $ac_res" >&5
20666 echo "${ECHO_T}$ac_res" >&6; }
20667 if test `eval echo '${'$as_ac_var'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20676 SHLIBEXT=$libltdl_cv_shlibext
20679 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20682 # Translate the various configuration directories and other basic
20683 # information into substitutions that will end up in Makefile.config.in
20684 # that these configured values can be used by the makefiles
20685 if test "${prefix}" = "NONE" ; then
20686 prefix="/usr/local"
20688 eval LLVM_PREFIX="${prefix}";
20689 eval LLVM_BINDIR="${prefix}/bin";
20690 eval LLVM_LIBDIR="${prefix}/lib";
20691 eval LLVM_DATADIR="${prefix}/share/llvm";
20692 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20693 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20694 eval LLVM_INCLUDEDIR="${prefix}/include";
20695 eval LLVM_INFODIR="${prefix}/info";
20696 eval LLVM_MANDIR="${prefix}/man";
20697 LLVM_CONFIGTIME=`date`
20709 # Place the various directores into the config.h file as #defines so that we
20710 # can know about the installation paths within LLVM.
20712 cat >>confdefs.h <<_ACEOF
20713 #define LLVM_PREFIX "$LLVM_PREFIX"
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_BINDIR "$LLVM_BINDIR"
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_DATADIR "$LLVM_DATADIR"
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_INFODIR "$LLVM_INFODIR"
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_MANDIR "$LLVM_MANDIR"
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20767 # Determine which bindings to build.
20768 if test "$BINDINGS_TO_BUILD" = auto ; then
20769 BINDINGS_TO_BUILD=""
20770 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20771 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20774 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20777 # This isn't really configurey, but it avoids having to repeat the list in
20782 # Do any work necessary to ensure that bindings have what they need.
20783 binding_prereqs_failed=0
20784 for a_binding in $BINDINGS_TO_BUILD ; do
20785 case "$a_binding" in
20787 if test "x$OCAMLC" = x ; then
20788 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20789 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20790 binding_prereqs_failed=1
20792 if test "x$OCAMLDEP" = x ; then
20793 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20794 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20795 binding_prereqs_failed=1
20797 if test "x$OCAMLOPT" = x ; then
20798 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20799 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20801 if test "x$with_ocaml_libdir" != xauto ; then
20802 OCAML_LIBDIR=$with_ocaml_libdir
20805 ocaml_stdlib="`"$OCAMLC" -where`"
20806 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20808 # ocaml stdlib is beneath our prefix; use stdlib
20809 OCAML_LIBDIR=$ocaml_stdlib
20812 # ocaml stdlib is outside our prefix; use libdir/ocaml
20813 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20820 if test "$binding_prereqs_failed" = 1 ; then
20821 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20822 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20823 { (exit 1); exit 1; }; }
20826 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20827 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20828 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20832 ac_cpp='$CXXCPP $CPPFLAGS'
20833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837 oldcxxflags="$CXXFLAGS"
20838 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20845 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_compile") 2>conftest.er1
20863 grep -v '^ *+' conftest.er1 >conftest.err
20865 cat conftest.err >&5
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
20868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20869 { (case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_try") 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20888 llvm_cv_cxx_visibility_inlines_hidden=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 llvm_cv_cxx_visibility_inlines_hidden=no
20896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 CXXFLAGS="$oldcxxflags"
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20906 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20907 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20908 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20909 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20912 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20917 if test "$llvm_cv_link_use_r" = "yes" ; then
20924 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20925 RDYNAMIC="-Wl,-export-dynamic"
20933 ac_config_files="$ac_config_files Makefile.common"
20935 ac_config_files="$ac_config_files Makefile.llvm.config"
20938 ac_config_commands="$ac_config_commands Makefile"
20941 ac_config_commands="$ac_config_commands lib/Makefile"
20944 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20947 ac_config_commands="$ac_config_commands tools/Makefile"
20950 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20954 cat >confcache <<\_ACEOF
20955 # This file is a shell script that caches the results of configure
20956 # tests run on this system so they can be shared between configure
20957 # scripts and configure runs, see configure's option --config-cache.
20958 # It is not useful on other systems. If it contains results you don't
20959 # want to keep, you may remove or edit it.
20961 # config.status only pays attention to the cache file if you give it
20962 # the --recheck option to rerun configure.
20964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20966 # following values.
20970 # The following way of writing the cache mishandles newlines in values,
20971 # but we know of no workaround that is simple, portable, and efficient.
20972 # So, we kill variables containing newlines.
20973 # Ultrix sh set writes to stderr and can't be redirected directly,
20974 # and sets the high bit in the cache file unless we assign to the vars.
20976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20977 eval ac_val=\$$ac_var
20981 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20982 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20985 _ | IFS | as_nl) ;; #(
20986 *) $as_unset $ac_var ;;
20992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20993 *${as_nl}ac_space=\ *)
20994 # `set' does not quote correctly, so add quotes (double-quote
20995 # substitution turns \\\\ into \\, and sed turns \\ into \).
20998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21001 # `set' quotes correctly as required by POSIX, so do not add quotes.
21002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21016 if test -w "$cache_file"; then
21017 test "x$cache_file" != "x/dev/null" &&
21018 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21019 echo "$as_me: updating cache $cache_file" >&6;}
21020 cat confcache >$cache_file
21022 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21023 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21029 # Let make expand exec_prefix.
21030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21032 # Transform confdefs.h into DEFS.
21033 # Protect against shell expansion while executing Makefile rules.
21034 # Protect against Makefile macro expansion.
21036 # If the first sed substitution is executed (which looks for macros that
21037 # take arguments), then branch to the quote section. Otherwise,
21038 # look for a macro that doesn't take arguments.
21042 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21044 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21048 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21061 DEFS=`sed -n "$ac_script" confdefs.h`
21066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21067 # 1. Remove the extension, and $U if already installed.
21068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21069 ac_i=`echo "$ac_i" | sed "$ac_script"`
21070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21071 # will be set to the directory where LIBOBJS objects are built.
21072 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21073 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21075 LIBOBJS=$ac_libobjs
21077 LTLIBOBJS=$ac_ltlibobjs
21080 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21081 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21082 Usually this means the macro was only invoked conditionally." >&5
21083 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21084 Usually this means the macro was only invoked conditionally." >&2;}
21085 { (exit 1); exit 1; }; }
21087 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21088 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&5
21090 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21091 Usually this means the macro was only invoked conditionally." >&2;}
21092 { (exit 1); exit 1; }; }
21095 : ${CONFIG_STATUS=./config.status}
21096 ac_clean_files_save=$ac_clean_files
21097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21098 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21099 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21100 cat >$CONFIG_STATUS <<_ACEOF
21102 # Generated by $as_me.
21103 # Run this file to recreate the current configuration.
21104 # Compiler output produced by configure, useful for debugging
21105 # configure, is in config.log if it exists.
21108 ac_cs_recheck=false
21110 SHELL=\${CONFIG_SHELL-$SHELL}
21113 cat >>$CONFIG_STATUS <<\_ACEOF
21114 ## --------------------- ##
21115 ## M4sh Initialization. ##
21116 ## --------------------- ##
21118 # Be Bourne compatible
21119 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21122 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21123 # is contrary to our usage. Disable this feature.
21124 alias -g '${1+"$@"}'='"$@"'
21125 setopt NO_GLOB_SUBST
21127 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21129 BIN_SH=xpg4; export BIN_SH # for Tru64
21130 DUALCASE=1; export DUALCASE # for MKS sh
21134 # Avoid depending upon Character Ranges.
21135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21138 as_cr_digits='0123456789'
21139 as_cr_alnum=$as_cr_Letters$as_cr_digits
21141 # The user is always right.
21142 if test "${PATH_SEPARATOR+set}" != set; then
21143 echo "#! /bin/sh" >conf$$.sh
21144 echo "exit 0" >>conf$$.sh
21146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21154 # Support unset when possible.
21155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21163 # We need space, tab and new line, in precisely that order. Quoting is
21164 # there to prevent editors from complaining about space-tab.
21165 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21166 # splitting by setting IFS to empty value.)
21171 # Find who we are. Look in the path if we contain no directory separator.
21173 *[\\/]* ) as_myself=$0 ;;
21174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21175 for as_dir in $PATH
21178 test -z "$as_dir" && as_dir=.
21179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21185 # We did not find ourselves, most probably we were run as `sh COMMAND'
21186 # in which case we are not to be found in the path.
21187 if test "x$as_myself" = x; then
21190 if test ! -f "$as_myself"; then
21191 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21192 { (exit 1); exit 1; }
21195 # Work around bugs in pre-3.0 UWIN ksh.
21196 for as_var in ENV MAIL MAILPATH
21197 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21205 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21206 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21207 LC_TELEPHONE LC_TIME
21209 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21210 eval $as_var=C; export $as_var
21212 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21216 # Required to use basename.
21217 if expr a : '\(a\)' >/dev/null 2>&1 &&
21218 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21225 as_basename=basename
21231 # Name of the executable.
21232 as_me=`$as_basename -- "$0" ||
21233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21234 X"$0" : 'X\(//\)$' \| \
21235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21237 sed '/^.*\/\([^/][^/]*\)\/*$/{
21256 as_lineno_1=$LINENO
21257 as_lineno_2=$LINENO
21258 test "x$as_lineno_1" != "x$as_lineno_2" &&
21259 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21261 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21262 # uniformly replaced by the line number. The first 'sed' inserts a
21263 # line-number line after each line using $LINENO; the second 'sed'
21264 # does the real work. The second script uses 'N' to pair each
21265 # line-number line with the line containing $LINENO, and appends
21266 # trailing '-' during substitution so that $LINENO is not a special
21267 # case at line end.
21268 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21269 # scripts with optimization help from Paolo Bonzini. Blame Lee
21270 # E. McMahon (1931-1989) for sed's syntax. :-)
21282 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21285 ' >$as_me.lineno &&
21286 chmod +x "$as_me.lineno" ||
21287 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21288 { (exit 1); exit 1; }; }
21290 # Don't try to exec as it changes $[0], causing all sort of problems
21291 # (the dirname of $[0] is not the place where we might find the
21292 # original and so on. Autoconf is especially sensitive to this).
21293 . "./$as_me.lineno"
21294 # Exit status is that of the last command.
21299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21305 ECHO_C= ECHO_N= ECHO_T=
21306 case `echo -n x` in
21308 case `echo 'x\c'` in
21309 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21316 if expr a : '\(a\)' >/dev/null 2>&1 &&
21317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21323 rm -f conf$$ conf$$.exe conf$$.file
21324 if test -d conf$$.dir; then
21325 rm -f conf$$.dir/conf$$.file
21331 if ln -s conf$$.file conf$$ 2>/dev/null; then
21333 # ... but there are two gotchas:
21334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21336 # In both cases, we have to default to `cp -p'.
21337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21339 elif ln conf$$.file conf$$ 2>/dev/null; then
21344 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21345 rmdir conf$$.dir 2>/dev/null
21347 if mkdir -p . 2>/dev/null; then
21350 test -d ./-p && rmdir ./-p
21354 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21355 # systems may use methods other than mode bits to determine executability.
21356 cat >conf$$.file <<_ASEOF
21360 chmod +x conf$$.file
21361 if test -x conf$$.file >/dev/null 2>&1; then
21362 as_executable_p="test -x"
21368 # Sed expression to map a string onto a valid CPP name.
21369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21371 # Sed expression to map a string onto a valid variable name.
21372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21377 # Save the log message, to keep $[0] and so on meaningful, and to
21378 # report actual input values of CONFIG_FILES etc. instead of their
21379 # values after options handling.
21381 This file was extended by [SAMPLE] $as_me [x.xx], which was
21382 generated by GNU Autoconf 2.60. Invocation command line was
21384 CONFIG_FILES = $CONFIG_FILES
21385 CONFIG_HEADERS = $CONFIG_HEADERS
21386 CONFIG_LINKS = $CONFIG_LINKS
21387 CONFIG_COMMANDS = $CONFIG_COMMANDS
21390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21395 cat >>$CONFIG_STATUS <<_ACEOF
21396 # Files that config.status was made for.
21397 config_files="$ac_config_files"
21398 config_commands="$ac_config_commands"
21402 cat >>$CONFIG_STATUS <<\_ACEOF
21404 \`$as_me' instantiates files from templates according to the
21405 current configuration.
21407 Usage: $0 [OPTIONS] [FILE]...
21409 -h, --help print this help, then exit
21410 -V, --version print version number, then exit
21411 -q, --quiet do not print progress messages
21412 -d, --debug don't remove temporary files
21413 --recheck update $as_me by reconfiguring in the same conditions
21414 --file=FILE[:TEMPLATE]
21415 instantiate the configuration file FILE
21417 Configuration files:
21420 Configuration commands:
21423 Report bugs to <bug-autoconf@gnu.org>."
21426 cat >>$CONFIG_STATUS <<_ACEOF
21428 [SAMPLE] config.status [x.xx]
21429 configured by $0, generated by GNU Autoconf 2.60,
21430 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21432 Copyright (C) 2006 Free Software Foundation, Inc.
21433 This config.status script is free software; the Free Software Foundation
21434 gives unlimited permission to copy, distribute and modify it."
21441 cat >>$CONFIG_STATUS <<\_ACEOF
21442 # If no file are specified by the user, then we need to provide default
21443 # value. By we need to know if files were specified by the user.
21449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21461 # Handling of the options.
21462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21464 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21465 echo "$ac_cs_version"; exit ;;
21466 --debug | --debu | --deb | --de | --d | -d )
21468 --file | --fil | --fi | --f )
21470 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21471 ac_need_defaults=false;;
21472 --he | --h | --help | --hel | -h )
21473 echo "$ac_cs_usage"; exit ;;
21474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21478 # This is an error.
21479 -*) { echo "$as_me: error: unrecognized option: $1
21480 Try \`$0 --help' for more information." >&2
21481 { (exit 1); exit 1; }; } ;;
21483 *) ac_config_targets="$ac_config_targets $1"
21484 ac_need_defaults=false ;;
21490 ac_configure_extra_args=
21492 if $ac_cs_silent; then
21494 ac_configure_extra_args="$ac_configure_extra_args --silent"
21498 cat >>$CONFIG_STATUS <<_ACEOF
21499 if \$ac_cs_recheck; then
21500 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21501 CONFIG_SHELL=$SHELL
21502 export CONFIG_SHELL
21503 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21507 cat >>$CONFIG_STATUS <<\_ACEOF
21511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21512 ## Running $as_me. ##
21518 cat >>$CONFIG_STATUS <<_ACEOF
21522 llvm_src="${LLVM_SRC}"
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21528 # Handling of arguments.
21529 for ac_config_target in $ac_config_targets
21531 case $ac_config_target in
21532 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21533 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21534 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21535 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21536 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21537 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21538 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21539 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21541 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21542 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21543 { (exit 1); exit 1; }; };;
21548 # If the user did not use the arguments to specify the items to instantiate,
21549 # then the envvar interface is used. Set only those that are not.
21550 # We use the long form for the default assignment because of an extremely
21551 # bizarre bug on SunOS 4.1.3.
21552 if $ac_need_defaults; then
21553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21557 # Have a temporary directory for convenience. Make it in the build tree
21558 # simply because there is no reason against having it here, and in addition,
21559 # creating and moving files from /tmp can sometimes cause problems.
21560 # Hook for its removal unless debugging.
21561 # Note that there is a small window in which the directory will not be cleaned:
21562 # after its creation but before its name has been assigned to `$tmp'.
21566 trap 'exit_status=$?
21567 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21569 trap '{ (exit 1); exit 1; }' 1 2 13 15
21571 # Create a (secure) tmp directory for tmp files.
21574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21575 test -n "$tmp" && test -d "$tmp"
21578 tmp=./conf$$-$RANDOM
21579 (umask 077 && mkdir "$tmp")
21582 echo "$me: cannot create a temporary directory in ." >&2
21583 { (exit 1); exit 1; }
21587 # Set up the sed scripts for CONFIG_FILES section.
21590 # No need to generate the scripts if there are no CONFIG_FILES.
21591 # This happens for instance when ./config.status config.h
21592 if test -n "$CONFIG_FILES"; then
21599 for ac_last_try in false false false false false :; do
21600 cat >conf$$subs.sed <<_ACEOF
21601 SHELL!$SHELL$ac_delim
21602 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21603 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21604 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21605 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21606 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21607 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21608 exec_prefix!$exec_prefix$ac_delim
21609 prefix!$prefix$ac_delim
21610 program_transform_name!$program_transform_name$ac_delim
21611 bindir!$bindir$ac_delim
21612 sbindir!$sbindir$ac_delim
21613 libexecdir!$libexecdir$ac_delim
21614 datarootdir!$datarootdir$ac_delim
21615 datadir!$datadir$ac_delim
21616 sysconfdir!$sysconfdir$ac_delim
21617 sharedstatedir!$sharedstatedir$ac_delim
21618 localstatedir!$localstatedir$ac_delim
21619 includedir!$includedir$ac_delim
21620 oldincludedir!$oldincludedir$ac_delim
21621 docdir!$docdir$ac_delim
21622 infodir!$infodir$ac_delim
21623 htmldir!$htmldir$ac_delim
21624 dvidir!$dvidir$ac_delim
21625 pdfdir!$pdfdir$ac_delim
21626 psdir!$psdir$ac_delim
21627 libdir!$libdir$ac_delim
21628 localedir!$localedir$ac_delim
21629 mandir!$mandir$ac_delim
21630 DEFS!$DEFS$ac_delim
21631 ECHO_C!$ECHO_C$ac_delim
21632 ECHO_N!$ECHO_N$ac_delim
21633 ECHO_T!$ECHO_T$ac_delim
21634 LIBS!$LIBS$ac_delim
21635 build_alias!$build_alias$ac_delim
21636 host_alias!$host_alias$ac_delim
21637 target_alias!$target_alias$ac_delim
21638 LLVM_SRC!$LLVM_SRC$ac_delim
21639 LLVM_OBJ!$LLVM_OBJ$ac_delim
21640 LLVM_VERSION!$LLVM_VERSION$ac_delim
21642 CFLAGS!$CFLAGS$ac_delim
21643 LDFLAGS!$LDFLAGS$ac_delim
21644 CPPFLAGS!$CPPFLAGS$ac_delim
21645 ac_ct_CC!$ac_ct_CC$ac_delim
21646 EXEEXT!$EXEEXT$ac_delim
21647 OBJEXT!$OBJEXT$ac_delim
21649 CXXFLAGS!$CXXFLAGS$ac_delim
21650 ac_ct_CXX!$ac_ct_CXX$ac_delim
21652 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21653 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21654 subdirs!$subdirs$ac_delim
21655 build!$build$ac_delim
21656 build_cpu!$build_cpu$ac_delim
21657 build_vendor!$build_vendor$ac_delim
21658 build_os!$build_os$ac_delim
21659 host!$host$ac_delim
21660 host_cpu!$host_cpu$ac_delim
21661 host_vendor!$host_vendor$ac_delim
21662 host_os!$host_os$ac_delim
21663 target!$target$ac_delim
21664 target_cpu!$target_cpu$ac_delim
21665 target_vendor!$target_vendor$ac_delim
21666 target_os!$target_os$ac_delim
21668 HOST_OS!$HOST_OS$ac_delim
21669 TARGET_OS!$TARGET_OS$ac_delim
21670 LINKALL!$LINKALL$ac_delim
21671 NOLINKALL!$NOLINKALL$ac_delim
21672 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674 ARCH!$ARCH$ac_delim
21675 ENDIAN!$ENDIAN$ac_delim
21676 GREP!$GREP$ac_delim
21677 EGREP!$EGREP$ac_delim
21678 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21679 BUILD_CC!$BUILD_CC$ac_delim
21680 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21681 BUILD_CXX!$BUILD_CXX$ac_delim
21682 CVSBUILD!$CVSBUILD$ac_delim
21683 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21684 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21685 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21686 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21687 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21688 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21689 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21690 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21691 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21692 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21694 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21695 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21696 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21697 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21700 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21702 elif $ac_last_try; then
21703 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21704 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21705 { (exit 1); exit 1; }; }
21707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21711 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21712 if test -n "$ac_eof"; then
21713 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21714 ac_eof=`expr $ac_eof + 1`
21717 cat >>$CONFIG_STATUS <<_ACEOF
21718 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21722 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21723 s/^/s,@/; s/!/@,|#_!!_#|/
21726 s/'"$ac_delim"'$/,g/; t
21728 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21729 ' >>$CONFIG_STATUS <conf$$subs.sed
21730 rm -f conf$$subs.sed
21731 cat >>$CONFIG_STATUS <<_ACEOF
21737 for ac_last_try in false false false false false :; do
21738 cat >conf$$subs.sed <<_ACEOF
21739 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21740 ENABLE_PIC!$ENABLE_PIC$ac_delim
21741 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21742 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21743 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21744 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21745 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21746 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21747 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21748 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21749 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21750 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21751 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21752 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21754 ifGNUmake!$ifGNUmake$ac_delim
21755 LN_S!$LN_S$ac_delim
21758 DATE!$DATE$ac_delim
21759 FIND!$FIND$ac_delim
21760 MKDIR!$MKDIR$ac_delim
21762 RANLIB!$RANLIB$ac_delim
21767 BINPWD!$BINPWD$ac_delim
21768 GRAPHVIZ!$GRAPHVIZ$ac_delim
21771 NEATO!$NEATO$ac_delim
21772 TWOPI!$TWOPI$ac_delim
21773 CIRCO!$CIRCO$ac_delim
21775 DOTTY!$DOTTY$ac_delim
21776 XDOT_PY!$XDOT_PY$ac_delim
21777 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21778 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21779 INSTALL_DATA!$INSTALL_DATA$ac_delim
21780 BZIP2!$BZIP2$ac_delim
21782 DOXYGEN!$DOXYGEN$ac_delim
21783 GROFF!$GROFF$ac_delim
21784 GZIPBIN!$GZIPBIN$ac_delim
21785 POD2HTML!$POD2HTML$ac_delim
21786 POD2MAN!$POD2MAN$ac_delim
21787 PDFROFF!$PDFROFF$ac_delim
21788 RUNTEST!$RUNTEST$ac_delim
21789 TCLSH!$TCLSH$ac_delim
21791 OCAMLC!$OCAMLC$ac_delim
21792 OCAMLOPT!$OCAMLOPT$ac_delim
21793 OCAMLDEP!$OCAMLDEP$ac_delim
21794 OCAMLDOC!$OCAMLDOC$ac_delim
21796 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21797 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21798 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21799 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21800 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21801 LIBADD_DL!$LIBADD_DL$ac_delim
21802 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21803 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21804 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21805 USE_UDIS86!$USE_UDIS86$ac_delim
21806 USE_OPROFILE!$USE_OPROFILE$ac_delim
21807 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21808 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21809 MMAP_FILE!$MMAP_FILE$ac_delim
21810 SHLIBEXT!$SHLIBEXT$ac_delim
21811 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21812 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21813 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21814 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21815 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21816 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21817 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21818 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21819 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21820 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21821 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21822 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21823 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21824 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21825 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21826 RPATH!$RPATH$ac_delim
21827 RDYNAMIC!$RDYNAMIC$ac_delim
21828 LIBOBJS!$LIBOBJS$ac_delim
21829 LTLIBOBJS!$LTLIBOBJS$ac_delim
21832 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21834 elif $ac_last_try; then
21835 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21836 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21837 { (exit 1); exit 1; }; }
21839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21843 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21844 if test -n "$ac_eof"; then
21845 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21846 ac_eof=`expr $ac_eof + 1`
21849 cat >>$CONFIG_STATUS <<_ACEOF
21850 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21854 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21855 s/^/s,@/; s/!/@,|#_!!_#|/
21858 s/'"$ac_delim"'$/,g/; t
21860 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21861 ' >>$CONFIG_STATUS <conf$$subs.sed
21862 rm -f conf$$subs.sed
21863 cat >>$CONFIG_STATUS <<_ACEOF
21870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21872 # trailing colons and then remove the whole line if VPATH becomes empty
21873 # (actually we leave an empty line to preserve line numbers).
21874 if test "x$srcdir" = x.; then
21875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21876 s/:*\$(srcdir):*/:/
21877 s/:*\${srcdir}:*/:/
21879 s/^\([^=]*=[ ]*\):*/\1/
21885 cat >>$CONFIG_STATUS <<\_ACEOF
21886 fi # test -n "$CONFIG_FILES"
21889 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21892 :[FHLC]) ac_mode=$ac_tag; continue;;
21894 case $ac_mode$ac_tag in
21896 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21897 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21898 { (exit 1); exit 1; }; };;
21899 :[FH]-) ac_tag=-:-;;
21900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21917 -) ac_f="$tmp/stdin";;
21918 *) # Look for the file first in the build tree, then in the source tree
21919 # (if the path is not absolute). The absolute path cannot be DOS-style,
21920 # because $ac_f cannot contain `:'.
21924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21926 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21927 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21928 { (exit 1); exit 1; }; };;
21930 ac_file_inputs="$ac_file_inputs $ac_f"
21933 # Let's still pretend it is `configure' which instantiates (i.e., don't
21934 # use $as_me), people would be surprised to read:
21935 # /* config.h. Generated by config.status. */
21936 configure_input="Generated from "`IFS=:
21937 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21938 if test x"$ac_file" != x-; then
21939 configure_input="$ac_file. $configure_input"
21940 { echo "$as_me:$LINENO: creating $ac_file" >&5
21941 echo "$as_me: creating $ac_file" >&6;}
21945 *:-:* | *:-) cat >"$tmp/stdin";;
21950 ac_dir=`$as_dirname -- "$ac_file" ||
21951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21952 X"$ac_file" : 'X\(//\)[^/]' \| \
21953 X"$ac_file" : 'X\(//\)$' \| \
21954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21960 /^X\(\/\/\)[^/].*/{
21975 -*) as_dir=./$as_dir;;
21977 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21981 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21982 *) as_qdir=$as_dir;;
21984 as_dirs="'$as_qdir' $as_dirs"
21985 as_dir=`$as_dirname -- "$as_dir" ||
21986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21987 X"$as_dir" : 'X\(//\)[^/]' \| \
21988 X"$as_dir" : 'X\(//\)$' \| \
21989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21995 /^X\(\/\/\)[^/].*/{
22008 test -d "$as_dir" && break
22010 test -z "$as_dirs" || eval "mkdir $as_dirs"
22011 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22012 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22013 { (exit 1); exit 1; }; }; }
22017 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22019 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22020 # A ".." for each directory in $ac_dir_suffix.
22021 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22022 case $ac_top_builddir_sub in
22023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22027 ac_abs_top_builddir=$ac_pwd
22028 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22029 # for backward compatibility:
22030 ac_top_builddir=$ac_top_build_prefix
22033 .) # We are building in place.
22035 ac_top_srcdir=$ac_top_builddir_sub
22036 ac_abs_top_srcdir=$ac_pwd ;;
22037 [\\/]* | ?:[\\/]* ) # Absolute name.
22038 ac_srcdir=$srcdir$ac_dir_suffix;
22039 ac_top_srcdir=$srcdir
22040 ac_abs_top_srcdir=$srcdir ;;
22041 *) # Relative name.
22042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22043 ac_top_srcdir=$ac_top_build_prefix$srcdir
22044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22046 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22057 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22061 cat >>$CONFIG_STATUS <<\_ACEOF
22062 # If the template does not know about datarootdir, expand it.
22063 # FIXME: This hack should be removed a few years after 2.60.
22064 ac_datarootdir_hack=; ac_datarootdir_seen=
22066 case `sed -n '/datarootdir/ {
22075 ' $ac_file_inputs` in
22076 *datarootdir*) ac_datarootdir_seen=yes;;
22077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22078 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22079 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22081 cat >>$CONFIG_STATUS <<_ACEOF
22082 ac_datarootdir_hack='
22083 s&@datadir@&$datadir&g
22084 s&@docdir@&$docdir&g
22085 s&@infodir@&$infodir&g
22086 s&@localedir@&$localedir&g
22087 s&@mandir@&$mandir&g
22088 s&\\\${datarootdir}&$datarootdir&g' ;;
22092 # Neutralize VPATH when `$srcdir' = `.'.
22093 # Shell code in configure.ac might set extrasub.
22094 # FIXME: do we really want to maintain this feature?
22095 cat >>$CONFIG_STATUS <<_ACEOF
22099 cat >>$CONFIG_STATUS <<\_ACEOF
22101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22102 s&@configure_input@&$configure_input&;t t
22103 s&@top_builddir@&$ac_top_builddir_sub&;t t
22104 s&@srcdir@&$ac_srcdir&;t t
22105 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22106 s&@top_srcdir@&$ac_top_srcdir&;t t
22107 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22108 s&@builddir@&$ac_builddir&;t t
22109 s&@abs_builddir@&$ac_abs_builddir&;t t
22110 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22111 s&@INSTALL@&$ac_INSTALL&;t t
22112 $ac_datarootdir_hack
22113 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22116 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22118 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22119 which seems to be undefined. Please make sure it is defined." >&5
22120 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22121 which seems to be undefined. Please make sure it is defined." >&2;}
22125 -) cat "$tmp/out"; rm -f "$tmp/out";;
22126 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22131 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22132 echo "$as_me: executing $ac_file commands" >&6;}
22137 case $ac_file$ac_mode in
22138 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22139 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22140 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22141 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22142 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22143 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22144 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22145 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22146 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22147 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22153 { (exit 0); exit 0; }
22155 chmod +x $CONFIG_STATUS
22156 ac_clean_files=$ac_clean_files_save
22159 # configure is writing to config.log, and then calls config.status.
22160 # config.status does its own redirection, appending to config.log.
22161 # Unfortunately, on DOS this fails, as config.log is still kept open
22162 # by configure, so config.status won't be able to write to it; its
22163 # output is simply discarded. So we exec the FD to /dev/null,
22164 # effectively closing config.log, so it can be properly (re)opened and
22165 # appended to by config.status. When coming back to configure, we
22166 # need to make the FD available again.
22167 if test "$no_create" != yes; then
22169 ac_config_status_args=
22170 test "$silent" = yes &&
22171 ac_config_status_args="$ac_config_status_args --quiet"
22173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22176 # would make configure fail if this is the last instruction.
22177 $ac_cs_success || { (exit 1); exit 1; }
22181 # CONFIG_SUBDIRS section.
22183 if test "$no_recursion" != yes; then
22185 # Remove --cache-file and --srcdir arguments so they do not pile up.
22186 ac_sub_configure_args=
22188 eval "set x $ac_configure_args"
22192 if test -n "$ac_prev"; then
22197 -cache-file | --cache-file | --cache-fil | --cache-fi \
22198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22199 ac_prev=cache_file ;;
22200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22204 --config-cache | -C)
22206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22216 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22218 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22222 # Always prepend --prefix to ensure using the same prefix
22223 # in subdir configurations.
22224 ac_arg="--prefix=$prefix"
22226 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22228 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22231 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22233 # Do not complain, so a configure script can configure whichever
22234 # parts of a large source tree are present.
22235 test -d "$srcdir/$ac_dir" || continue
22237 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22238 echo "$as_me:$LINENO: $ac_msg" >&5
22242 -*) as_dir=./$as_dir;;
22244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22248 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22249 *) as_qdir=$as_dir;;
22251 as_dirs="'$as_qdir' $as_dirs"
22252 as_dir=`$as_dirname -- "$as_dir" ||
22253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22254 X"$as_dir" : 'X\(//\)[^/]' \| \
22255 X"$as_dir" : 'X\(//\)$' \| \
22256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22262 /^X\(\/\/\)[^/].*/{
22275 test -d "$as_dir" && break
22277 test -z "$as_dirs" || eval "mkdir $as_dirs"
22278 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22280 { (exit 1); exit 1; }; }; }
22284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22287 # A ".." for each directory in $ac_dir_suffix.
22288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22289 case $ac_top_builddir_sub in
22290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22294 ac_abs_top_builddir=$ac_pwd
22295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22296 # for backward compatibility:
22297 ac_top_builddir=$ac_top_build_prefix
22300 .) # We are building in place.
22302 ac_top_srcdir=$ac_top_builddir_sub
22303 ac_abs_top_srcdir=$ac_pwd ;;
22304 [\\/]* | ?:[\\/]* ) # Absolute name.
22305 ac_srcdir=$srcdir$ac_dir_suffix;
22306 ac_top_srcdir=$srcdir
22307 ac_abs_top_srcdir=$srcdir ;;
22308 *) # Relative name.
22309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22310 ac_top_srcdir=$ac_top_build_prefix$srcdir
22311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22318 # Check for guested configure; otherwise get Cygnus style configure.
22319 if test -f "$ac_srcdir/configure.gnu"; then
22320 ac_sub_configure=$ac_srcdir/configure.gnu
22321 elif test -f "$ac_srcdir/configure"; then
22322 ac_sub_configure=$ac_srcdir/configure
22323 elif test -f "$ac_srcdir/configure.in"; then
22324 # This should be Cygnus configure.
22325 ac_sub_configure=$ac_aux_dir/configure
22327 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22328 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22332 # The recursion is here.
22333 if test -n "$ac_sub_configure"; then
22334 # Make the cache file name correct relative to the subdirectory.
22335 case $cache_file in
22336 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22337 *) # Relative name.
22338 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22341 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22342 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22343 # The eval makes quoting arguments work.
22344 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22345 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22346 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22347 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22348 { (exit 1); exit 1; }; }