2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
755 HAVE_LINK_VERSION_SCRIPT
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
784 ENABLE_VISIBILITY_INLINES_HIDDEN
790 ac_precious_vars='build_alias
801 ac_subdirs_all='tools/polly'
803 # Initialize some variables set by options.
805 ac_init_version=false
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name=s,x,x,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
910 eval enable_$ac_feature=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 -enable-* | --enable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
944 -help | --help | --hel | --he | -h)
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1093 -site=* | --site=* | --sit=*)
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_package=`echo $ac_package| sed 's/-/_/g'`
1126 eval with_$ac_package=\$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_package=`echo $ac_package | sed 's/-/_/g'`
1135 eval with_$ac_package=no ;;
1138 # Obsolete; use --with-x.
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) { echo "$as_me: error: unrecognized option: $ac_option
1156 Try \`$0 --help' for more information." >&2
1157 { (exit 1); exit 1; }; }
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165 { (exit 1); exit 1; }; }
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 { echo "$as_me: error: missing argument to $ac_option" >&2
1183 { (exit 1); exit 1; }; }
1186 # Be sure to have absolute directory names.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1192 eval ac_val=\$$ac_var
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198 { (exit 1); exit 1; }; }
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 { echo "$as_me: error: Working directory cannot be determined" >&2
1229 { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 { echo "$as_me: error: pwd does not report name of working directory" >&2
1232 { (exit 1); exit 1; }; }
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$0" ||
1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$0" : 'X\(//\)[^/]' \| \
1242 X"$0" : 'X\(//\)$' \| \
1243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272 { (exit 1); exit 1; }; }
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1277 { (exit 1); exit 1; }; }
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 for ac_var in $ac_precious_vars; do
1290 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_env_${ac_var}_value=\$${ac_var}
1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 # Report the --help message.
1299 if test "$ac_init_help" = "long"; then
1300 # Omit some internal or obsolete options to make the list less imposing.
1301 # This message is too long to be a string in the A/UX 3.1 sh.
1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE. See below for descriptions of some of the useful variables.
1310 Defaults for the options are specified in brackets.
1313 -h, --help display this help and exit
1314 --help=short display options specific to this package
1315 --help=recursive display the short help of all the included packages
1316 -V, --version display version information and exit
1317 -q, --quiet, --silent do not print \`checking...' messages
1318 --cache-file=FILE cache test results in FILE [disabled]
1319 -C, --config-cache alias for \`--cache-file=config.cache'
1320 -n, --no-create do not create output files
1321 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323 Installation directories:
1324 --prefix=PREFIX install architecture-independent files in PREFIX
1325 [$ac_default_prefix]
1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1334 For better control, use the options below.
1336 Fine tuning of the installation directories:
1337 --bindir=DIR user executables [EPREFIX/bin]
1338 --sbindir=DIR system admin executables [EPREFIX/sbin]
1339 --libexecdir=DIR program executables [EPREFIX/libexec]
1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1343 --libdir=DIR object code libraries [EPREFIX/lib]
1344 --includedir=DIR C header files [PREFIX/include]
1345 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1348 --infodir=DIR info documentation [DATAROOTDIR/info]
1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1350 --mandir=DIR man documentation [DATAROOTDIR/man]
1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1352 --htmldir=DIR html documentation [DOCDIR]
1353 --dvidir=DIR dvi documentation [DOCDIR]
1354 --pdfdir=DIR pdf documentation [DOCDIR]
1355 --psdir=DIR ps documentation [DOCDIR]
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-polly Use polly if available (default is YES)
1377 --enable-optimized Compile with optimizations enabled (default is NO)
1378 --enable-profiling Compile with profiling enabled (default is NO)
1379 --enable-assertions Compile with assertion checks enabled (default is
1381 --enable-expensive-checks
1382 Compile with expensive debug checks enabled (default
1384 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1387 optimization is on and YES if it's off)
1388 --enable-jit Enable Just In Time Compiling (default is YES)
1389 --enable-docs Build documents (default is YES)
1390 --enable-doxygen Build doxygen documentation (default is NO)
1391 --enable-threads Use threads if available (default is YES)
1392 --enable-pthreads Use pthreads if available (default is YES)
1393 --enable-pic Build LLVM with Position Independent Code (default
1395 --enable-shared Build a shared library and link tools against it
1397 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1398 Win32 DLL (default is YES)
1399 --enable-timestamps Enable embedding timestamp information in build
1401 --enable-targets Build specific host targets: all or
1402 target1,target2,... Valid targets are: host, x86,
1403 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1404 xcore, msp430, ptx, cbe, and cpp (default=all)
1405 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1407 --enable-bindings Build specific language bindings:
1408 all,auto,none,{binding-name} (default=auto)
1409 --enable-libffi Check for the presence of libffi (default is NO)
1410 --enable-ltdl-install install libltdl
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-llvmsrc Location of LLVM Source Code
1416 --with-llvmobj Location of LLVM Object Code
1417 --with-optimize-option Select the compiler options to use for optimized
1419 --with-extra-options Specify additional options to compile LLVM with
1420 --with-extra-ld-options Specify additional options to link LLVM with
1421 --with-ocaml-libdir Specify install location for ocaml bindings (default
1423 --with-clang-resource-dir
1424 Relative directory from the Clang binary for
1426 --with-c-include-dirs Colon separated list of directories clang will
1428 --with-gcc-toolchain Directory where gcc is installed.
1429 --with-binutils-include Specify path to binutils/include/ containing
1430 plugin-api.h file for gold plugin.
1431 --with-bug-report-url Specify the URL where bug reports should be
1432 submitted (default=http://llvm.org/bugs/)
1433 --with-tclinclude directory where tcl headers are
1434 --with-udis86=<path> Use udis86 external x86 disassembler library
1435 --with-oprofile=<prefix>
1436 Tell OProfile >= 0.9.4 how to symbolize JIT output
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CXX C++ compiler command
1446 CXXFLAGS C++ compiler flags
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to <bugs@yourdomain>.
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" || continue
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1480 .) # We are building in place.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1504 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1513 [SAMPLE] configure [x.xx]
1514 generated by GNU Autoconf 2.60
1516 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1517 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1523 cat >config.log <<_ACEOF
1524 This file contains any messages produced by compilers while
1525 running configure, to aid debugging if configure makes a mistake.
1527 It was created by [SAMPLE] $as_me [x.xx], which was
1528 generated by GNU Autoconf 2.60. Invocation command line was
1540 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1546 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1549 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1550 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1551 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1552 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1553 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1554 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1555 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir=.
1564 echo "PATH: $as_dir"
1580 # Keep a trace of the command line.
1581 # Strip out --no-create and --no-recursion so they do not pile up.
1582 # Strip out --silent because we don't want to record it for future runs.
1583 # Also quote any args containing shell meta-characters.
1584 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_must_keep_next=false
1594 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596 | -silent | --silent | --silen | --sile | --sil)
1599 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1604 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605 if test $ac_must_keep_next = true; then
1606 ac_must_keep_next=false # Got value, back to normal.
1609 *=* | --config-cache | -C | -disable-* | --disable-* \
1610 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612 | -with-* | --with-* | -without-* | --without-* | --x)
1613 case "$ac_configure_args0 " in
1614 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617 -* ) ac_must_keep_next=true ;;
1620 ac_configure_args="$ac_configure_args '$ac_arg'"
1625 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1628 # When interrupted or exit'd, cleanup temporary files, and complete
1629 # config.log. We remove comments because anyway the quotes in there
1630 # would cause problems or look ugly.
1631 # WARNING: Use '\'' to represent an apostrophe within the trap.
1632 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1633 trap 'exit_status=$?
1634 # Save into config.log some information that might help in debugging.
1639 ## ---------------- ##
1640 ## Cache variables. ##
1641 ## ---------------- ##
1644 # The following way of writing the cache mishandles newlines in values,
1646 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647 eval ac_val=\$$ac_var
1651 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655 _ | IFS | as_nl) ;; #(
1656 *) $as_unset $ac_var ;;
1661 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662 *${as_nl}ac_space=\ *)
1664 "s/'\''/'\''\\\\'\'''\''/g;
1665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676 ## ----------------- ##
1677 ## Output variables. ##
1678 ## ----------------- ##
1681 for ac_var in $ac_subst_vars
1683 eval ac_val=\$$ac_var
1685 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687 echo "$ac_var='\''$ac_val'\''"
1691 if test -n "$ac_subst_files"; then
1693 ## ------------------- ##
1694 ## File substitutions. ##
1695 ## ------------------- ##
1698 for ac_var in $ac_subst_files
1700 eval ac_val=\$$ac_var
1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704 echo "$ac_var='\''$ac_val'\''"
1709 if test -s confdefs.h; then
1719 test "$ac_signal" != 0 &&
1720 echo "$as_me: caught signal $ac_signal"
1721 echo "$as_me: exit $exit_status"
1723 rm -f core *.core core.conftest.* &&
1724 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727 for ac_signal in 1 2 13 15; do
1728 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1733 rm -f -r conftest* confdefs.h
1735 # Predefined preprocessor variables.
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 # Let the site file select an alternate cache file if it wants to.
1763 # Prefer explicitly selected file to automatically selected ones.
1764 if test -n "$CONFIG_SITE"; then
1765 set x "$CONFIG_SITE"
1766 elif test "x$prefix" != xNONE; then
1767 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1769 set x "$ac_default_prefix/share/config.site" \
1770 "$ac_default_prefix/etc/config.site"
1775 if test -r "$ac_site_file"; then
1776 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777 echo "$as_me: loading site script $ac_site_file" >&6;}
1778 sed 's/^/| /' "$ac_site_file" >&5
1783 if test -r "$cache_file"; then
1784 # Some versions of bash will fail to source /dev/null (special
1785 # files actually), so we avoid doing that.
1786 if test -f "$cache_file"; then
1787 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788 echo "$as_me: loading cache $cache_file" >&6;}
1790 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791 *) . "./$cache_file";;
1795 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796 echo "$as_me: creating cache $cache_file" >&6;}
1800 # Check that the precious variables saved in the cache have kept the same
1802 ac_cache_corrupted=false
1803 for ac_var in $ac_precious_vars; do
1804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805 eval ac_new_set=\$ac_env_${ac_var}_set
1806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807 eval ac_new_val=\$ac_env_${ac_var}_value
1808 case $ac_old_set,$ac_new_set in
1810 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812 ac_cache_corrupted=: ;;
1814 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1819 if test "x$ac_old_val" != "x$ac_new_val"; then
1820 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1821 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1822 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1823 echo "$as_me: former value: $ac_old_val" >&2;}
1824 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1825 echo "$as_me: current value: $ac_new_val" >&2;}
1826 ac_cache_corrupted=:
1829 # Pass precious variables to config.status.
1830 if test "$ac_new_set" = set; then
1832 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1833 *) ac_arg=$ac_var=$ac_new_val ;;
1835 case " $ac_configure_args " in
1836 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1837 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 if $ac_cache_corrupted; then
1842 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846 { (exit 1); exit 1; }; }
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 LLVM_SRC_ROOT="../.."
1882 LLVM_OBJ_ROOT="../.."
1884 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1885 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1888 # Check whether --with-llvmsrc was given.
1889 if test "${with_llvmsrc+set}" = set; then
1890 withval=$with_llvmsrc; llvm_src="$withval"
1892 llvm_src="$LLVM_ABS_SRC_ROOT"
1898 # Check whether --with-llvmobj was given.
1899 if test "${with_llvmobj+set}" = set; then
1900 withval=$with_llvmobj; llvm_obj="$withval"
1902 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1907 ac_config_commands="$ac_config_commands setup"
1911 { echo "$as_me:$LINENO: checking llvm-config" >&5
1912 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1913 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1914 if ! test -f "$llvm_config_path" ; then
1915 llvm_config_path="no"
1917 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1918 echo "${ECHO_T}$llvm_config_path" >&6; }
1920 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1921 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1922 if test "$llvm_config_path" != no ; then
1923 llvm_package_version=`$llvm_config_path --version`
1925 llvm_package_version="unknown";
1927 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1928 echo "${ECHO_T}$llvm_package_version" >&6; }
1929 LLVM_VERSION=$llvm_package_version
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936 if test -f "$ac_dir/install-sh"; then
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 elif test -f "$ac_dir/install.sh"; then
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 elif test -f "$ac_dir/shtool"; then
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953 { (exit 1); exit 1; }; }
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973 for ac_prog in clang llvm-gcc gcc
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test -n "$CC"; then
2004 { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2007 { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2012 test -n "$CC" && break
2015 if test -z "$CC"; then
2017 for ac_prog in clang llvm-gcc gcc
2019 # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 if test -n "$ac_ct_CC"; then
2027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036 ac_cv_prog_ac_ct_CC="$ac_prog"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6; }
2051 { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2056 test -n "$ac_ct_CC" && break
2059 if test "x$ac_ct_CC" = x; then
2062 case $cross_compiling:$ac_tool_warned in
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: 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." >&2;}
2070 ac_tool_warned=yes ;;
2077 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&2;}
2081 { (exit 1); exit 1; }; }
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO: checking for C compiler version" >&5
2085 ac_compiler=`set X $ac_compile; echo $2`
2086 { (ac_try="$ac_compiler --version >&5"
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler --version >&5") 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (ac_try="$ac_compiler -v >&5"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -v >&5") 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106 { (ac_try="$ac_compiler -V >&5"
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler -V >&5") 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2117 cat >conftest.$ac_ext <<_ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2132 ac_clean_files_save=$ac_clean_files
2133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134 # Try to create an executable without -o first, disregard a.out.
2135 # It will help us diagnose broken compilers, and finding out an intuition
2137 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2139 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141 # List of possible output files, starting from the most likely.
2142 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2143 # only as a last resort. b.out is created by i960 compilers.
2144 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2146 # The IRIX 6 linker writes into existing files which may not be
2147 # executable, retaining their permissions. Remove them first so a
2148 # subsequent execution test works.
2150 for ac_file in $ac_files
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2159 if { (ac_try="$ac_link_default"
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165 (eval "$ac_link_default") 2>&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2171 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2172 # so that the user can short-circuit this test for compilers unknown to
2174 for ac_file in $ac_files
2176 test -f "$ac_file" || continue
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181 # We found the default executable, but exeext='' is most
2185 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2189 # We set ac_cv_exeext here because the later test for it is not
2190 # safe: cross compilers may not add the suffix if given an `-o'
2191 # argument, so we may need to know it at that point already.
2192 # Even if this section looks crufty: it has the advantage of
2199 test "$ac_cv_exeext" = no && ac_cv_exeext=
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209 { (exit 77); exit 77; }; }
2212 ac_exeext=$ac_cv_exeext
2213 { echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6; }
2216 # Check that the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223 if { ac_try='./$ac_file'
2224 { (case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_try") 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2235 if test "$cross_compiling" = maybe; then
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2248 { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check that the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2257 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6; }
2260 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2262 if { (ac_try="$ac_link"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_link") 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2273 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2274 # work properly (i.e., refer to `conftest.exe'), while it won't with
2276 for ac_file in conftest.exe conftest conftest.*; do
2277 test -f "$ac_file" || continue
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest$ac_cv_exeext
2294 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2300 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.$ac_ext <<_ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (ac_try="$ac_compile"
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_compile") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; then
2331 for ac_file in conftest.o conftest.obj conftest.*; do
2332 test -f "$ac_file" || continue;
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347 { (exit 1); exit 1; }; }
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6; }
2354 OBJEXT=$ac_cv_objext
2356 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (ac_try="$ac_compile"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_compile") 2>conftest.er1
2388 grep -v '^ *+' conftest.er1 >conftest.err
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394 { (case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_try") 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_try") 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427 GCC=`test $ac_compiler_gnu = yes && echo yes`
2428 ac_test_CFLAGS=${CFLAGS+set}
2429 ac_save_CFLAGS=$CFLAGS
2430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_cc_g+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 ac_save_c_werror_flag=$ac_c_werror_flag
2436 ac_c_werror_flag=yes
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.$ac_objext
2455 if { (ac_try="$ac_compile"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compile") 2>conftest.er1
2463 grep -v '^ *+' conftest.er1 >conftest.err
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469 { (case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474 (eval "$ac_try") 2>&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_try") 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2494 cat >conftest.$ac_ext <<_ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.$ac_objext
2510 if { (ac_try="$ac_compile"
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_compile") 2>conftest.er1
2518 grep -v '^ *+' conftest.er1 >conftest.err
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2524 { (case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_try") 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_try") 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2550 cat >conftest.$ac_ext <<_ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2565 rm -f conftest.$ac_objext
2566 if { (ac_try="$ac_compile"
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2574 grep -v '^ *+' conftest.er1 >conftest.err
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580 { (case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_try") 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_try") 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 ac_c_werror_flag=$ac_save_c_werror_flag
2616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619 CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621 if test "$GCC" = yes; then
2627 if test "$GCC" = yes; then
2633 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_cc_c89+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 ac_cv_prog_cc_c89=no
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2648 #include <sys/types.h>
2649 #include <sys/stat.h>
2650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2651 struct buf { int x; };
2652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (p, i)
2659 static char *f (char * (*g) (char **, int), char **p, ...)
2664 s = g (p, va_arg (v,int));
2669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2670 function prototypes and stuff, but not '\xHH' hex character constants.
2671 These don't provoke an error unfortunately, instead are silently treated
2672 as 'x'. The following induces an error, until -std is added to get
2673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2674 array size at least. It's necessary to write '\x00'==0 to get something
2675 that's true only with -std. */
2676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2679 inside strings and character constants. */
2681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2683 int test (int i, double x);
2684 struct s1 {int (*f) (int a);};
2685 struct s2 {int (*f) (double a);};
2686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2700 CC="$ac_save_CC $ac_arg"
2701 rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compile") 2>conftest.er1
2710 grep -v '^ *+' conftest.er1 >conftest.err
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716 { (case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_try") 2>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_try") 2>&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; }; then
2735 ac_cv_prog_cc_c89=$ac_arg
2737 echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f core conftest.err conftest.$ac_objext
2744 test "x$ac_cv_prog_cc_c89" != "xno" && break
2746 rm -f conftest.$ac_ext
2751 case "x$ac_cv_prog_cc_c89" in
2753 { echo "$as_me:$LINENO: result: none needed" >&5
2754 echo "${ECHO_T}none needed" >&6; } ;;
2756 { echo "$as_me:$LINENO: result: unsupported" >&5
2757 echo "${ECHO_T}unsupported" >&6; } ;;
2759 CC="$CC $ac_cv_prog_cc_c89"
2760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2761 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 ac_cpp='$CXXCPP $CPPFLAGS'
2773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2776 if test -z "$CXX"; then
2777 if test -n "$CCC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 for ac_prog in clang++ llvm-g++ g++
2783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 if test -n "$CXX"; then
2791 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CXX"; then
2812 { echo "$as_me:$LINENO: result: $CXX" >&5
2813 echo "${ECHO_T}$CXX" >&6; }
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2820 test -n "$CXX" && break
2823 if test -z "$CXX"; then
2825 for ac_prog in clang++ llvm-g++ g++
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$ac_ct_CXX"; then
2835 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CXX="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2855 if test -n "$ac_ct_CXX"; then
2856 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2857 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2859 { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2864 test -n "$ac_ct_CXX" && break
2867 if test "x$ac_ct_CXX" = x; then
2870 case $cross_compiling:$ac_tool_warned in
2872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet. If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&5
2875 echo "$as_me: 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." >&2;}
2878 ac_tool_warned=yes ;;
2886 # Provide some information about the compiler.
2887 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2888 ac_compiler=`set X $ac_compile; echo $2`
2889 { (ac_try="$ac_compiler --version >&5"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler --version >&5") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -v >&5"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -v >&5") 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909 { (ac_try="$ac_compiler -V >&5"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler -V >&5") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2958 { (case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_try") 2>&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2991 GXX=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CXXFLAGS=${CXXFLAGS+set}
2993 ac_save_CXXFLAGS=$CXXFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cxx_g+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000 ac_cxx_werror_flag=yes
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cxx_g=yes
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3073 rm -f conftest.$ac_objext
3074 if { (ac_try="$ac_compile"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_try") 2>&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 ac_cv_prog_cxx_g=yes
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3182 if test "$ac_test_CXXFLAGS" = set; then
3183 CXXFLAGS=$ac_save_CXXFLAGS
3184 elif test $ac_cv_prog_cxx_g = yes; then
3185 if test "$GXX" = yes; then
3191 if test "$GXX" = yes; then
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3210 # On Suns, sometimes $CPP names a directory.
3211 if test -n "$CPP" && test -d "$CPP"; then
3214 if test -z "$CPP"; then
3215 if test "${ac_cv_prog_CPP+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 # Double quotes because CPP needs to be expanded
3219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222 for ac_c_preproc_warn_flag in '' yes
3224 # Use a header file that comes with gcc, so configuring glibc
3225 # with a fresh cross-compiler works.
3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 # <limits.h> exists even on freestanding compilers.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3237 # include <limits.h>
3239 # include <assert.h>
3243 if { (ac_try="$ac_cpp conftest.$ac_ext"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3251 grep -v '^ *+' conftest.er1 >conftest.err
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 if test -z "$ac_cpp_err"; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 # Broken: fails on valid input.
3275 rm -f conftest.err conftest.$ac_ext
3277 # OK, works on sane cases. Now check whether nonexistent headers
3278 # can be detected and how.
3279 cat >conftest.$ac_ext <<_ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <ac_nonexistent.h>
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_c_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309 if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 # Passes both tests.
3321 rm -f conftest.err conftest.$ac_ext
3324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3325 rm -f conftest.err conftest.$ac_ext
3326 if $ac_preproc_ok; then
3338 { echo "$as_me:$LINENO: result: $CPP" >&5
3339 echo "${ECHO_T}$CPP" >&6; }
3341 for ac_c_preproc_warn_flag in '' yes
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3356 # include <limits.h>
3358 # include <assert.h>
3362 if { (ac_try="$ac_cpp conftest.$ac_ext"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_c_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 if test -z "$ac_cpp_err"; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3390 # Broken: fails on valid input.
3394 rm -f conftest.err conftest.$ac_ext
3396 # OK, works on sane cases. Now check whether nonexistent headers
3397 # can be detected and how.
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #include <ac_nonexistent.h>
3406 if { (ac_try="$ac_cpp conftest.$ac_ext"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3429 # Broken: success on invalid input.
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Passes both tests.
3440 rm -f conftest.err conftest.$ac_ext
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 # Check whether --enable-polly was given.
3465 if test "${enable_polly+set}" = set; then
3466 enableval=$enable_polly;
3471 case "$enableval" in
3476 default) ENABLE_POLLY=1
3478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3479 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3480 { (exit 1); exit 1; }; } ;;
3484 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3487 subdirs="$subdirs tools/polly"
3492 # Make sure we can run config.sub.
3493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3494 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3495 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3496 { (exit 1); exit 1; }; }
3498 { echo "$as_me:$LINENO: checking build system type" >&5
3499 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3500 if test "${ac_cv_build+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_build_alias=$build_alias
3504 test "x$ac_build_alias" = x &&
3505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3506 test "x$ac_build_alias" = x &&
3507 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3508 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3509 { (exit 1); exit 1; }; }
3510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3511 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3512 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3513 { (exit 1); exit 1; }; }
3516 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3517 echo "${ECHO_T}$ac_cv_build" >&6; }
3518 case $ac_cv_build in
3520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3521 echo "$as_me: error: invalid value of canonical build" >&2;}
3522 { (exit 1); exit 1; }; };;
3525 ac_save_IFS=$IFS; IFS='-'
3531 # Remember, the first character of IFS is used to create $*,
3532 # except with old shells:
3535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3538 { echo "$as_me:$LINENO: checking host system type" >&5
3539 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3540 if test "${ac_cv_host+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if test "x$host_alias" = x; then
3544 ac_cv_host=$ac_cv_build
3546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3548 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3549 { (exit 1); exit 1; }; }
3553 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3554 echo "${ECHO_T}$ac_cv_host" >&6; }
3557 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3558 echo "$as_me: error: invalid value of canonical host" >&2;}
3559 { (exit 1); exit 1; }; };;
3562 ac_save_IFS=$IFS; IFS='-'
3568 # Remember, the first character of IFS is used to create $*,
3569 # except with old shells:
3572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3575 { echo "$as_me:$LINENO: checking target system type" >&5
3576 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3577 if test "${ac_cv_target+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test "x$target_alias" = x; then
3581 ac_cv_target=$ac_cv_host
3583 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3584 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3585 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3586 { (exit 1); exit 1; }; }
3590 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3591 echo "${ECHO_T}$ac_cv_target" >&6; }
3592 case $ac_cv_target in
3594 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3595 echo "$as_me: error: invalid value of canonical target" >&2;}
3596 { (exit 1); exit 1; }; };;
3598 target=$ac_cv_target
3599 ac_save_IFS=$IFS; IFS='-'
3605 # Remember, the first character of IFS is used to create $*,
3606 # except with old shells:
3609 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3612 # The aliases save the names the user supplied, while $host etc.
3613 # will get canonicalized.
3614 test -n "$target_alias" &&
3615 test "$program_prefix$program_suffix$program_transform_name" = \
3617 program_prefix=${target_alias}-
3619 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3620 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3621 if test "${llvm_cv_os_type+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 llvm_cv_link_all_option="-Wl,--whole-archive"
3627 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3628 llvm_cv_os_type="AIX"
3629 llvm_cv_platform_type="Unix" ;;
3631 llvm_cv_link_all_option="-Wl,--whole-archive"
3632 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633 llvm_cv_os_type="IRIX"
3634 llvm_cv_platform_type="Unix" ;;
3636 llvm_cv_link_all_option="-Wl,--whole-archive"
3637 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638 llvm_cv_os_type="Cygwin"
3639 llvm_cv_platform_type="Unix" ;;
3641 llvm_cv_link_all_option="-Wl,-all_load"
3642 llvm_cv_no_link_all_option="-Wl,-noall_load"
3643 llvm_cv_os_type="Darwin"
3644 llvm_cv_platform_type="Unix" ;;
3646 llvm_cv_link_all_option="-Wl,-all_load"
3647 llvm_cv_no_link_all_option="-Wl,-noall_load"
3648 llvm_cv_os_type="Minix"
3649 llvm_cv_platform_type="Unix" ;;
3651 llvm_cv_link_all_option="-Wl,--whole-archive"
3652 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3653 llvm_cv_os_type="FreeBSD"
3654 llvm_cv_platform_type="Unix" ;;
3656 llvm_cv_link_all_option="-Wl,--whole-archive"
3657 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658 llvm_cv_os_type="OpenBSD"
3659 llvm_cv_platform_type="Unix" ;;
3661 llvm_cv_link_all_option="-Wl,--whole-archive"
3662 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663 llvm_cv_os_type="NetBSD"
3664 llvm_cv_platform_type="Unix" ;;
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="DragonFly"
3669 llvm_cv_platform_type="Unix" ;;
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="HP-UX"
3674 llvm_cv_platform_type="Unix" ;;
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="Interix"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Linux"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,-z,allextract"
3687 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3688 llvm_cv_os_type="SunOS"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,-z,allextract"
3692 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3693 llvm_cv_os_type="AuroraUX"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="Win32"
3699 llvm_cv_platform_type="Win32" ;;
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="MingW"
3704 llvm_cv_platform_type="Win32" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="Haiku"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="Freestanding"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Freestanding"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option=""
3722 llvm_cv_no_link_all_option=""
3723 llvm_cv_os_type="Unknown"
3724 llvm_cv_platform_type="Unknown" ;;
3727 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3728 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3730 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3731 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3732 if test "${llvm_cv_target_os_type+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 llvm_cv_target_os_type="AIX" ;;
3739 llvm_cv_target_os_type="IRIX" ;;
3741 llvm_cv_target_os_type="Cygwin" ;;
3743 llvm_cv_target_os_type="Darwin" ;;
3745 llvm_cv_target_os_type="Minix" ;;
3747 llvm_cv_target_os_type="FreeBSD" ;;
3749 llvm_cv_target_os_type="OpenBSD" ;;
3751 llvm_cv_target_os_type="NetBSD" ;;
3753 llvm_cv_target_os_type="DragonFly" ;;
3755 llvm_cv_target_os_type="HP-UX" ;;
3757 llvm_cv_target_os_type="Interix" ;;
3759 llvm_cv_target_os_type="Linux" ;;
3761 llvm_cv_target_os_type="SunOS" ;;
3763 llvm_cv_target_os_type="AuroraUX" ;;
3765 llvm_cv_target_os_type="Win32" ;;
3767 llvm_cv_target_os_type="MingW" ;;
3769 llvm_cv_target_os_type="Haiku" ;;
3771 llvm_cv_target_os_type="RTEMS" ;;
3773 llvm_cv_target_os_type="NativeClient" ;;
3775 llvm_cv_target_os_type="Freestanding" ;;
3777 llvm_cv_target_os_type="Unknown" ;;
3780 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3781 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3783 if test "$llvm_cv_os_type" = "Unknown" ; then
3784 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3785 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3786 { (exit 1); exit 1; }; }
3791 HOST_OS=$llvm_cv_os_type
3793 TARGET_OS=$llvm_cv_target_os_type
3796 LINKALL=$llvm_cv_link_all_option
3798 NOLINKALL=$llvm_cv_no_link_all_option
3801 case $llvm_cv_platform_type in
3804 cat >>confdefs.h <<\_ACEOF
3805 #define LLVM_ON_UNIX 1
3815 cat >>confdefs.h <<\_ACEOF
3816 #define LLVM_ON_WIN32 1
3826 { echo "$as_me:$LINENO: checking target architecture" >&5
3827 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3828 if test "${llvm_cv_target_arch+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 i?86-*) llvm_cv_target_arch="x86" ;;
3833 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3834 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3835 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3836 arm*-*) llvm_cv_target_arch="ARM" ;;
3837 mips-*) llvm_cv_target_arch="Mips" ;;
3838 xcore-*) llvm_cv_target_arch="XCore" ;;
3839 msp430-*) llvm_cv_target_arch="MSP430" ;;
3840 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3841 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3842 ptx-*) llvm_cv_target_arch="PTX" ;;
3843 *) llvm_cv_target_arch="Unknown" ;;
3846 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3847 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3849 if test "$llvm_cv_target_arch" = "Unknown" ; then
3850 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3851 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3854 # Determine the LLVM native architecture for the target
3855 case "$llvm_cv_target_arch" in
3856 x86) LLVM_NATIVE_ARCH="X86" ;;
3857 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3858 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3861 ARCH=$llvm_cv_target_arch
3866 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3867 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3868 if test "${ac_cv_path_GREP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 # Extract the first word of "grep ggrep" to use in msg output
3872 if test -z "$GREP"; then
3873 set dummy grep ggrep; ac_prog_name=$2
3874 if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 ac_path_GREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in grep ggrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3888 # Check for GNU ac_path_GREP and select it if it is found.
3889 # Check for GNU $ac_path_GREP
3890 case `"$ac_path_GREP" --version 2>&1` in
3892 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'GREP' >> "conftest.nl"
3902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_GREP="$ac_path_GREP"
3908 ac_path_GREP_max=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917 $ac_path_GREP_found && break 3
3927 GREP="$ac_cv_path_GREP"
3928 if test -z "$GREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3935 ac_cv_path_GREP=$GREP
3940 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3941 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3942 GREP="$ac_cv_path_GREP"
3945 { echo "$as_me:$LINENO: checking for egrep" >&5
3946 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3947 if test "${ac_cv_path_EGREP+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3951 then ac_cv_path_EGREP="$GREP -E"
3953 # Extract the first word of "egrep" to use in msg output
3954 if test -z "$EGREP"; then
3955 set dummy egrep; ac_prog_name=$2
3956 if test "${ac_cv_path_EGREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_path_EGREP_found=false
3960 # Loop through the user's path and test for each of PROGNAME-LIST
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 test -z "$as_dir" && as_dir=.
3966 for ac_prog in egrep; do
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3969 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3970 # Check for GNU ac_path_EGREP and select it if it is found.
3971 # Check for GNU $ac_path_EGREP
3972 case `"$ac_path_EGREP" --version 2>&1` in
3974 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980 cat "conftest.in" "conftest.in" >"conftest.tmp"
3981 mv "conftest.tmp" "conftest.in"
3982 cp "conftest.in" "conftest.nl"
3983 echo 'EGREP' >> "conftest.nl"
3984 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986 ac_count=`expr $ac_count + 1`
3987 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3988 # Best one so far, save it but keep looking for a better one
3989 ac_cv_path_EGREP="$ac_path_EGREP"
3990 ac_path_EGREP_max=$ac_count
3992 # 10*(2^10) chars as input seems more than enough
3993 test $ac_count -gt 10 && break
3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3999 $ac_path_EGREP_found && break 3
4009 EGREP="$ac_cv_path_EGREP"
4010 if test -z "$EGREP"; then
4011 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013 { (exit 1); exit 1; }; }
4017 ac_cv_path_EGREP=$EGREP
4023 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4024 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4025 EGREP="$ac_cv_path_EGREP"
4028 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4029 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4030 if test "${ac_cv_header_stdc+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_header_stdc=yes
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_header_stdc=no
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev/null 2>&1; then
4111 ac_cv_header_stdc=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "free" >/dev/null 2>&1; then
4132 ac_cv_header_stdc=no
4138 if test $ac_cv_header_stdc = yes; then
4139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140 if test "$cross_compiling" = yes; then
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4174 rm -f conftest$ac_exeext
4175 if { (ac_try="$ac_link"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_link") 2>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4185 { (case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_try") 2>&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4196 echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4201 ac_cv_header_stdc=no
4203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4211 if test $ac_cv_header_stdc = yes; then
4213 cat >>confdefs.h <<\_ACEOF
4214 #define STDC_HEADERS 1
4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230 inttypes.h stdint.h unistd.h
4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4244 $ac_includes_default
4246 #include <$ac_header>
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 eval "$as_ac_Header=no"
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_res=`eval echo '${'$as_ac_Header'}'`
4293 { echo "$as_me:$LINENO: result: $ac_res" >&5
4294 echo "${ECHO_T}$ac_res" >&6; }
4295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4296 cat >>confdefs.h <<_ACEOF
4297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4305 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4306 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4307 if test "${ac_cv_c_bigendian+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 # See if sys/param.h defines the BYTE_ORDER macro.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <sys/types.h>
4318 #include <sys/param.h>
4323 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_compile") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346 { (case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_try") 2>&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 # It does; now see whether it defined to BIG_ENDIAN or not.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <sys/types.h>
4373 #include <sys/param.h>
4378 #if BYTE_ORDER != BIG_ENDIAN
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401 { (case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_try") 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; } &&
4410 { ac_try='test -s conftest.$ac_objext'
4411 { (case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_try") 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_c_bigendian=yes
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 ac_cv_c_bigendian=no
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 # It does not; compile a test program.
4434 if test "$cross_compiling" = yes; then
4435 # try to guess the endianness by grepping values into an object file
4436 ac_cv_c_bigendian=unknown
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4444 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4445 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4446 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4447 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4448 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4452 _ascii (); _ebcdic ();
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4492 ac_cv_c_bigendian=yes
4494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4495 if test "$ac_cv_c_bigendian" = unknown; then
4496 ac_cv_c_bigendian=no
4498 # finding both strings is unlikely to happen, but who knows?
4499 ac_cv_c_bigendian=unknown
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4522 /* Are we little or big endian? From Harbison&Steele. */
4526 char c[sizeof (long int)];
4529 return u.c[sizeof (long int) - 1] == 1;
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_link") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_c_bigendian=no
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4562 ac_cv_c_bigendian=yes
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4574 case $ac_cv_c_bigendian in
4582 { { echo "$as_me:$LINENO: error: unknown endianness
4583 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4584 echo "$as_me: error: unknown endianness
4585 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4586 { (exit 1); exit 1; }; } ;;
4590 if test "$cross_compiling" = yes; then
4591 LLVM_CROSS_COMPILING=1
4594 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4595 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4596 if test "${ac_cv_build_exeext+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4600 ac_cv_build_exeext=.exe
4602 ac_build_prefix=${build_alias}-
4604 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4605 set dummy ${ac_build_prefix}gcc; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$BUILD_CC"; then
4612 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 BUILD_CC=$ac_cv_prog_BUILD_CC
4632 if test -n "$BUILD_CC"; then
4633 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4634 echo "${ECHO_T}$BUILD_CC" >&6; }
4636 { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4641 if test -z "$BUILD_CC"; then
4642 # Extract the first word of "gcc", so it can be a program name with args.
4643 set dummy gcc; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test -n "$BUILD_CC"; then
4650 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_BUILD_CC="gcc"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 BUILD_CC=$ac_cv_prog_BUILD_CC
4670 if test -n "$BUILD_CC"; then
4671 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4672 echo "${ECHO_T}$BUILD_CC" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 if test -z "$BUILD_CC"; then
4680 # Extract the first word of "cc", so it can be a program name with args.
4681 set dummy cc; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$BUILD_CC"; then
4688 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4699 ac_prog_rejected=yes
4702 ac_cv_prog_BUILD_CC="cc"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 if test $ac_prog_rejected = yes; then
4711 # We found a bogon in the path, so make sure we never use it.
4712 set dummy $ac_cv_prog_BUILD_CC
4714 if test $# != 0; then
4715 # We chose a different compiler from the bogus one.
4716 # However, it has the same basename, so the bogon will be chosen
4717 # first if we set BUILD_CC to just the basename; use the full file name.
4719 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4736 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4737 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4738 { (exit 1); exit 1; }; }
4739 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4741 echo 'int main () { return 0; }' > conftest.$ac_ext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4744 (eval $ac_build_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; then
4748 for file in conftest.*; do
4750 *.c | *.o | *.obj | *.dSYM) ;;
4751 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4755 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4756 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4757 { (exit 1); exit 1; }; }
4760 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4765 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4766 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4767 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4768 ac_build_exeext=$BUILD_EXEEXT
4770 ac_build_prefix=${build_alias}-
4771 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4772 set dummy ${ac_build_prefix}g++; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$BUILD_CXX"; then
4779 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4799 if test -n "$BUILD_CXX"; then
4800 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4801 echo "${ECHO_T}$BUILD_CXX" >&6; }
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4808 if test -z "$BUILD_CXX"; then
4809 # Extract the first word of "g++", so it can be a program name with args.
4810 set dummy g++; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$BUILD_CXX"; then
4817 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_BUILD_CXX="g++"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4837 if test -n "$BUILD_CXX"; then
4838 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4839 echo "${ECHO_T}$BUILD_CXX" >&6; }
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4846 if test -z "$BUILD_CXX"; then
4847 # Extract the first word of "c++", so it can be a program name with args.
4848 set dummy c++; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4854 if test -n "$BUILD_CXX"; then
4855 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4866 ac_prog_rejected=yes
4869 ac_cv_prog_BUILD_CXX="c++"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 if test $ac_prog_rejected = yes; then
4878 # We found a bogon in the path, so make sure we never use it.
4879 set dummy $ac_cv_prog_BUILD_CXX
4881 if test $# != 0; then
4882 # We chose a different compiler from the bogus one.
4883 # However, it has the same basename, so the bogon will be chosen
4884 # first if we set BUILD_CXX to just the basename; use the full file name.
4886 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4904 LLVM_CROSS_COMPILING=0
4908 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4919 # Check whether --enable-optimized was given.
4920 if test "${enable_optimized+set}" = set; then
4921 enableval=$enable_optimized;
4926 if test ${enableval} = "no" ; then
4930 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4934 # Check whether --enable-profiling was given.
4935 if test "${enable_profiling+set}" = set; then
4936 enableval=$enable_profiling;
4941 if test ${enableval} = "no" ; then
4945 ENABLE_PROFILING=ENABLE_PROFILING=1
4949 # Check whether --enable-assertions was given.
4950 if test "${enable_assertions+set}" = set; then
4951 enableval=$enable_assertions;
4956 if test ${enableval} = "yes" ; then
4960 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4964 # Check whether --enable-expensive-checks was given.
4965 if test "${enable_expensive_checks+set}" = set; then
4966 enableval=$enable_expensive_checks;
4971 if test ${enableval} = "yes" ; then
4972 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4974 EXPENSIVE_CHECKS=yes
4977 ENABLE_EXPENSIVE_CHECKS=
4983 # Check whether --enable-debug-runtime was given.
4984 if test "${enable_debug_runtime+set}" = set; then
4985 enableval=$enable_debug_runtime;
4990 if test ${enableval} = "no" ; then
4994 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4998 # Check whether --enable-debug-symbols was given.
4999 if test "${enable_debug_symbols+set}" = set; then
5000 enableval=$enable_debug_symbols;
5005 if test ${enableval} = "no" ; then
5009 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5013 # Check whether --enable-jit was given.
5014 if test "${enable_jit+set}" = set; then
5015 enableval=$enable_jit;
5020 if test ${enableval} = "no"
5025 case "$llvm_cv_target_arch" in
5026 x86) TARGET_HAS_JIT=1
5028 Sparc) TARGET_HAS_JIT=0
5030 PowerPC) TARGET_HAS_JIT=1
5032 x86_64) TARGET_HAS_JIT=1
5034 ARM) TARGET_HAS_JIT=1
5036 Mips) TARGET_HAS_JIT=1
5038 XCore) TARGET_HAS_JIT=0
5040 MSP430) TARGET_HAS_JIT=0
5042 Hexagon) TARGET_HAS_JIT=0
5044 MBlaze) TARGET_HAS_JIT=0
5046 PTX) TARGET_HAS_JIT=0
5053 # Check whether --enable-docs was given.
5054 if test "${enable_docs+set}" = set; then
5055 enableval=$enable_docs;
5060 case "$enableval" in
5065 default) ENABLE_DOCS=1
5067 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5068 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5072 # Check whether --enable-doxygen was given.
5073 if test "${enable_doxygen+set}" = set; then
5074 enableval=$enable_doxygen;
5079 case "$enableval" in
5080 yes) ENABLE_DOXYGEN=1
5082 no) ENABLE_DOXYGEN=0
5084 default) ENABLE_DOXYGEN=0
5086 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5087 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5088 { (exit 1); exit 1; }; } ;;
5091 # Check whether --enable-threads was given.
5092 if test "${enable_threads+set}" = set; then
5093 enableval=$enable_threads;
5098 case "$enableval" in
5099 yes) ENABLE_THREADS=1
5101 no) ENABLE_THREADS=0
5103 default) ENABLE_THREADS=1
5105 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5106 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5107 { (exit 1); exit 1; }; } ;;
5110 cat >>confdefs.h <<_ACEOF
5111 #define ENABLE_THREADS $ENABLE_THREADS
5115 # Check whether --enable-pthreads was given.
5116 if test "${enable_pthreads+set}" = set; then
5117 enableval=$enable_pthreads;
5122 case "$enableval" in
5123 yes) ENABLE_PTHREADS=1
5125 no) ENABLE_PTHREADS=0
5127 default) ENABLE_PTHREADS=1
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5134 # Check whether --enable-pic was given.
5135 if test "${enable_pic+set}" = set; then
5136 enableval=$enable_pic;
5141 case "$enableval" in
5146 default) ENABLE_PIC=1
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5153 cat >>confdefs.h <<_ACEOF
5154 #define ENABLE_PIC $ENABLE_PIC
5158 # Check whether --enable-shared was given.
5159 if test "${enable_shared+set}" = set; then
5160 enableval=$enable_shared;
5165 case "$enableval" in
5166 yes) ENABLE_SHARED=1
5170 default) ENABLE_SHARED=0
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 # Check whether --enable-embed-stdcxx was given.
5178 if test "${enable_embed_stdcxx+set}" = set; then
5179 enableval=$enable_embed_stdcxx;
5184 case "$enableval" in
5185 yes) ENABLE_EMBED_STDCXX=1
5187 no) ENABLE_EMBED_STDCXX=0
5189 default) ENABLE_EMBED_STDCXX=1
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5196 # Check whether --enable-timestamps was given.
5197 if test "${enable_timestamps+set}" = set; then
5198 enableval=$enable_timestamps;
5203 case "$enableval" in
5204 yes) ENABLE_TIMESTAMPS=1
5206 no) ENABLE_TIMESTAMPS=0
5208 default) ENABLE_TIMESTAMPS=1
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 cat >>confdefs.h <<_ACEOF
5216 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5221 # Check whether --enable-targets was given.
5222 if test "${enable_targets+set}" = set; then
5223 enableval=$enable_targets;
5228 if test "$enableval" = host-only ; then
5231 case "$enableval" in
5232 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5233 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5235 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5236 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5238 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5239 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5240 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5241 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5242 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5243 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5244 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5245 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5246 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5247 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5248 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5249 host) case "$llvm_cv_target_arch" in
5250 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5251 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5253 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5254 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5255 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5256 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5257 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5258 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5259 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5260 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5261 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5262 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5263 echo "$as_me: error: Can not set target to build" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5266 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5267 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5273 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5276 # Determine whether we are building LLVM support for the native architecture.
5277 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5278 for a_target in $TARGETS_TO_BUILD; do
5279 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5281 cat >>confdefs.h <<_ACEOF
5282 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5285 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5286 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5287 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5288 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5289 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5290 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5293 cat >>confdefs.h <<_ACEOF
5294 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5298 cat >>confdefs.h <<_ACEOF
5299 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5303 cat >>confdefs.h <<_ACEOF
5304 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5308 cat >>confdefs.h <<_ACEOF
5309 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5312 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5314 cat >>confdefs.h <<_ACEOF
5315 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5322 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5323 # target feature def files.
5324 LLVM_ENUM_TARGETS=""
5325 LLVM_ENUM_ASM_PRINTERS=""
5326 LLVM_ENUM_ASM_PARSERS=""
5327 LLVM_ENUM_DISASSEMBLERS=""
5328 for target_to_build in $TARGETS_TO_BUILD; do
5329 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5330 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5331 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5333 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5334 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5336 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5337 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5345 # Check whether --enable-cbe-printf-a was given.
5346 if test "${enable_cbe_printf_a+set}" = set; then
5347 enableval=$enable_cbe_printf_a;
5352 case "$enableval" in
5353 yes) ENABLE_CBE_PRINTF_A=1
5355 no) ENABLE_CBE_PRINTF_A=0
5357 default) ENABLE_CBE_PRINTF_A=1
5359 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5360 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5361 { (exit 1); exit 1; }; } ;;
5364 cat >>confdefs.h <<_ACEOF
5365 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5370 # Check whether --with-optimize-option was given.
5371 if test "${with_optimize_option+set}" = set; then
5372 withval=$with_optimize_option;
5377 { echo "$as_me:$LINENO: checking optimization flags" >&5
5378 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5381 case "$llvm_cv_os_type" in
5382 FreeBSD) optimize_option=-O2 ;;
5383 MingW) optimize_option=-O2 ;;
5384 *) optimize_option=-O3 ;;
5386 *) optimize_option="$withval" ;;
5388 OPTIMIZE_OPTION=$optimize_option
5390 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5391 echo "${ECHO_T}$optimize_option" >&6; }
5394 # Check whether --with-extra-options was given.
5395 if test "${with_extra_options+set}" = set; then
5396 withval=$with_extra_options;
5402 default) EXTRA_OPTIONS= ;;
5403 *) EXTRA_OPTIONS=$withval ;;
5405 EXTRA_OPTIONS=$EXTRA_OPTIONS
5409 # Check whether --with-extra-ld-options was given.
5410 if test "${with_extra_ld_options+set}" = set; then
5411 withval=$with_extra_ld_options;
5417 default) EXTRA_LD_OPTIONS= ;;
5418 *) EXTRA_LD_OPTIONS=$withval ;;
5420 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5423 # Check whether --enable-bindings was given.
5424 if test "${enable_bindings+set}" = set; then
5425 enableval=$enable_bindings;
5430 BINDINGS_TO_BUILD=""
5431 case "$enableval" in
5432 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5433 all ) BINDINGS_TO_BUILD="ocaml" ;;
5434 none | no) BINDINGS_TO_BUILD="" ;;
5435 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5436 case "$a_binding" in
5437 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5438 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5439 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5440 { (exit 1); exit 1; }; } ;;
5447 # Check whether --with-ocaml-libdir was given.
5448 if test "${with_ocaml_libdir+set}" = set; then
5449 withval=$with_ocaml_libdir;
5455 auto) with_ocaml_libdir="$withval" ;;
5456 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5457 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5459 { (exit 1); exit 1; }; } ;;
5463 # Check whether --with-clang-resource-dir was given.
5464 if test "${with_clang_resource_dir+set}" = set; then
5465 withval=$with_clang_resource_dir;
5471 cat >>confdefs.h <<_ACEOF
5472 #define CLANG_RESOURCE_DIR "$withval"
5477 # Check whether --with-c-include-dirs was given.
5478 if test "${with_c_include_dirs+set}" = set; then
5479 withval=$with_c_include_dirs;
5485 cat >>confdefs.h <<_ACEOF
5486 #define C_INCLUDE_DIRS "$withval"
5490 # Clang normally uses the system c++ headers and libraries. With this option,
5491 # clang will use the ones provided by a gcc installation instead. This option should
5492 # be passed the same value that was used with --prefix when configuring gcc.
5494 # Check whether --with-gcc-toolchain was given.
5495 if test "${with_gcc_toolchain+set}" = set; then
5496 withval=$with_gcc_toolchain;
5502 cat >>confdefs.h <<_ACEOF
5503 #define GCC_INSTALL_PREFIX "$withval"
5508 # Check whether --with-binutils-include was given.
5509 if test "${with_binutils_include+set}" = set; then
5510 withval=$with_binutils_include;
5516 default) WITH_BINUTILS_INCDIR=default ;;
5517 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5518 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5519 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5520 { (exit 1); exit 1; }; } ;;
5522 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5523 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5525 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5526 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5527 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5528 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5529 { (exit 1); exit 1; }; };
5534 # Check whether --with-bug-report-url was given.
5535 if test "${with_bug_report_url+set}" = set; then
5536 withval=$with_bug_report_url;
5538 withval="http://llvm.org/bugs/"
5542 cat >>confdefs.h <<_ACEOF
5543 #define BUG_REPORT_URL "$withval"
5547 # Check whether --enable-libffi was given.
5548 if test "${enable_libffi+set}" = set; then
5549 enableval=$enable_libffi; case "$enableval" in
5550 yes) llvm_cv_enable_libffi="yes" ;;
5551 no) llvm_cv_enable_libffi="no" ;;
5552 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5553 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5554 { (exit 1); exit 1; }; } ;;
5557 llvm_cv_enable_libffi=no
5562 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5564 if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5594 lt_cv_path_NM="$tmp_nm -p"
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5611 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5617 { echo "$as_me:$LINENO: checking for GNU make" >&5
5618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5619 if test "${llvm_cv_gnu_make_command+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 llvm_cv_gnu_make_command=''
5623 for a in "$MAKE" make gmake gnumake ; do
5624 if test -z "$a" ; then continue ; fi ;
5625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5627 llvm_cv_gnu_make_command=$a ;
5632 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5639 echo "${ECHO_T}\"Not found\"" >&6; };
5643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5646 if test "$LN_S" = "ln -s"; then
5647 { echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6; }
5650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651 echo "${ECHO_T}no, using $LN_S" >&6; }
5654 # Extract the first word of "cmp", so it can be a program name with args.
5655 set dummy cmp; ac_word=$2
5656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5658 if test "${ac_cv_path_CMP+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5686 if test -n "$CMP"; then
5687 { echo "$as_me:$LINENO: result: $CMP" >&5
5688 echo "${ECHO_T}$CMP" >&6; }
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5695 # Extract the first word of "cp", so it can be a program name with args.
5696 set dummy cp; ac_word=$2
5697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699 if test "${ac_cv_path_CP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5727 if test -n "$CP"; then
5728 { echo "$as_me:$LINENO: result: $CP" >&5
5729 echo "${ECHO_T}$CP" >&6; }
5731 { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5736 # Extract the first word of "date", so it can be a program name with args.
5737 set dummy date; ac_word=$2
5738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740 if test "${ac_cv_path_DATE+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5767 DATE=$ac_cv_path_DATE
5768 if test -n "$DATE"; then
5769 { echo "$as_me:$LINENO: result: $DATE" >&5
5770 echo "${ECHO_T}$DATE" >&6; }
5772 { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5777 # Extract the first word of "find", so it can be a program name with args.
5778 set dummy find; ac_word=$2
5779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781 if test "${ac_cv_path_FIND+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5808 FIND=$ac_cv_path_FIND
5809 if test -n "$FIND"; then
5810 { echo "$as_me:$LINENO: result: $FIND" >&5
5811 echo "${ECHO_T}$FIND" >&6; }
5813 { echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6; }
5818 # Extract the first word of "grep", so it can be a program name with args.
5819 set dummy grep; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_GREP+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5849 GREP=$ac_cv_path_GREP
5850 if test -n "$GREP"; then
5851 { echo "$as_me:$LINENO: result: $GREP" >&5
5852 echo "${ECHO_T}$GREP" >&6; }
5854 { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5859 # Extract the first word of "mkdir", so it can be a program name with args.
5860 set dummy mkdir; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_MKDIR+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5890 MKDIR=$ac_cv_path_MKDIR
5891 if test -n "$MKDIR"; then
5892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5893 echo "${ECHO_T}$MKDIR" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 # Extract the first word of "mv", so it can be a program name with args.
5901 set dummy mv; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_MV+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5932 if test -n "$MV"; then
5933 { echo "$as_me:$LINENO: result: $MV" >&5
5934 echo "${ECHO_T}$MV" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5941 if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_RANLIB+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test -n "$RANLIB"; then
5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5972 echo "${ECHO_T}$RANLIB" >&6; }
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981 ac_ct_RANLIB=$RANLIB
5982 # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 if test -n "$ac_ct_RANLIB"; then
5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_ac_ct_RANLIB="ranlib"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6014 { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6018 if test "x$ac_ct_RANLIB" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6024 whose name does not start with the host triplet. If you think this
6025 configuration is useful to you, please write to autoconf@gnu.org." >&5
6026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6027 whose name does not start with the host triplet. If you think this
6028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6029 ac_tool_warned=yes ;;
6031 RANLIB=$ac_ct_RANLIB
6034 RANLIB="$ac_cv_prog_RANLIB"
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ar; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_AR+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$AR"; then
6046 ac_cv_prog_AR="$AR" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_AR="${ac_tool_prefix}ar"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 if test -n "$AR"; then
6067 { echo "$as_me:$LINENO: result: $AR" >&5
6068 echo "${ECHO_T}$AR" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_AR"; then
6078 # Extract the first word of "ar", so it can be a program name with args.
6079 set dummy ar; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 if test -n "$ac_ct_AR"; then
6086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_AR="ar"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6106 if test -n "$ac_ct_AR"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6108 echo "${ECHO_T}$ac_ct_AR" >&6; }
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_AR" = x; then
6117 case $cross_compiling:$ac_tool_warned in
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6133 # Extract the first word of "rm", so it can be a program name with args.
6134 set dummy rm; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_path_RM+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6165 if test -n "$RM"; then
6166 { echo "$as_me:$LINENO: result: $RM" >&5
6167 echo "${ECHO_T}$RM" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6174 # Extract the first word of "sed", so it can be a program name with args.
6175 set dummy sed; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_SED+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6206 if test -n "$SED"; then
6207 { echo "$as_me:$LINENO: result: $SED" >&5
6208 echo "${ECHO_T}$SED" >&6; }
6210 { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6215 # Extract the first word of "tar", so it can be a program name with args.
6216 set dummy tar; ac_word=$2
6217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219 if test "${ac_cv_path_TAR+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6247 if test -n "$TAR"; then
6248 { echo "$as_me:$LINENO: result: $TAR" >&5
6249 echo "${ECHO_T}$TAR" >&6; }
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6256 # Extract the first word of "pwd", so it can be a program name with args.
6257 set dummy pwd; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_path_BINPWD+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6287 BINPWD=$ac_cv_path_BINPWD
6288 if test -n "$BINPWD"; then
6289 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6290 echo "${ECHO_T}$BINPWD" >&6; }
6292 { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6298 # Extract the first word of "Graphviz", so it can be a program name with args.
6299 set dummy Graphviz; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6329 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6330 if test -n "$GRAPHVIZ"; then
6331 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6332 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6339 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_GRAPHVIZ 1
6345 if test "$llvm_cv_os_type" = "MingW" ; then
6346 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6349 cat >>confdefs.h <<_ACEOF
6350 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6354 # Extract the first word of "dot", so it can be a program name with args.
6355 set dummy dot; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_DOT+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6386 if test -n "$DOT"; then
6387 { echo "$as_me:$LINENO: result: $DOT" >&5
6388 echo "${ECHO_T}$DOT" >&6; }
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6395 if test "$DOT" != "echo dot" ; then
6397 cat >>confdefs.h <<\_ACEOF
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6405 cat >>confdefs.h <<_ACEOF
6406 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6410 # Extract the first word of "fdp", so it can be a program name with args.
6411 set dummy fdp; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_FDP+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6442 if test -n "$FDP"; then
6443 { echo "$as_me:$LINENO: result: $FDP" >&5
6444 echo "${ECHO_T}$FDP" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6451 if test "$FDP" != "echo fdp" ; then
6453 cat >>confdefs.h <<\_ACEOF
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6466 # Extract the first word of "neato", so it can be a program name with args.
6467 set dummy neato; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_NEATO+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6497 NEATO=$ac_cv_path_NEATO
6498 if test -n "$NEATO"; then
6499 { echo "$as_me:$LINENO: result: $NEATO" >&5
6500 echo "${ECHO_T}$NEATO" >&6; }
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6507 if test "$NEATO" != "echo neato" ; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_NEATO 1
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6522 # Extract the first word of "twopi", so it can be a program name with args.
6523 set dummy twopi; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_TWOPI+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6553 TWOPI=$ac_cv_path_TWOPI
6554 if test -n "$TWOPI"; then
6555 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6556 echo "${ECHO_T}$TWOPI" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 if test "$TWOPI" != "echo twopi" ; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_TWOPI 1
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6578 # Extract the first word of "circo", so it can be a program name with args.
6579 set dummy circo; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_CIRCO+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6609 CIRCO=$ac_cv_path_CIRCO
6610 if test -n "$CIRCO"; then
6611 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6612 echo "${ECHO_T}$CIRCO" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6619 if test "$CIRCO" != "echo circo" ; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_CIRCO 1
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6634 for ac_prog in gv gsview32
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_GV+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 if test -n "$GV"; then
6668 { echo "$as_me:$LINENO: result: $GV" >&5
6669 echo "${ECHO_T}$GV" >&6; }
6671 { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6676 test -n "$GV" && break
6678 test -n "$GV" || GV="echo gv"
6680 if test "$GV" != "echo gv" ; then
6682 cat >>confdefs.h <<\_ACEOF
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_GV "$GV${EXEEXT}"
6695 # Extract the first word of "dotty", so it can be a program name with args.
6696 set dummy dotty; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_DOTTY+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6726 DOTTY=$ac_cv_path_DOTTY
6727 if test -n "$DOTTY"; then
6728 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6729 echo "${ECHO_T}$DOTTY" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 if test "$DOTTY" != "echo dotty" ; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_DOTTY 1
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6751 # Extract the first word of "xdot.py", so it can be a program name with args.
6752 set dummy xdot.py; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6782 XDOT_PY=$ac_cv_path_XDOT_PY
6783 if test -n "$XDOT_PY"; then
6784 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6785 echo "${ECHO_T}$XDOT_PY" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 if test "$XDOT_PY" != "echo xdot.py" ; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_XDOT_PY 1
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6808 # Find a good install program. We prefer a C program (faster),
6809 # so one script is as good as another. But avoid the broken or
6810 # incompatible versions:
6811 # SysV /etc/install, /usr/sbin/install
6812 # SunOS /usr/etc/install
6813 # IRIX /sbin/install
6815 # AmigaOS /C/install, which installs bootblocks on floppy discs
6816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819 # OS/2's system install, which has a completely different semantic
6820 # ./install, which can be erroneously created by make from ./install.sh.
6821 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6823 if test -z "$INSTALL"; then
6824 if test "${ac_cv_path_install+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 # Account for people who put trailing slashes in PATH elements.
6834 ./ | .// | /cC/* | \
6835 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6836 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6839 # OSF1 and SCO ODT 3.0 have their own names for install.
6840 # Don't use installbsd from OSF since it installs stuff as root
6842 for ac_prog in ginstall scoinst install; do
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6845 if test $ac_prog = install &&
6846 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847 # AIX install. It has an incompatible calling convention.
6849 elif test $ac_prog = install &&
6850 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851 # program-specific install script used by HP pwplus--don't use.
6854 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6867 if test "${ac_cv_path_install+set}" = set; then
6868 INSTALL=$ac_cv_path_install
6870 # As a last resort, use the slow shell script. Don't cache a
6871 # value for INSTALL within a source directory, because that will
6872 # break other packages using the cache if that directory is
6873 # removed, or if the value is a relative name.
6874 INSTALL=$ac_install_sh
6877 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6878 echo "${ECHO_T}$INSTALL" >&6; }
6880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881 # It thinks the first close brace ends the variable substitution.
6882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6889 [\\/$]* | ?:[\\/]* ) ;;
6890 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6893 # Extract the first word of "bzip2", so it can be a program name with args.
6894 set dummy bzip2; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_path_BZIP2+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 BZIP2=$ac_cv_path_BZIP2
6924 if test -n "$BZIP2"; then
6925 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926 echo "${ECHO_T}$BZIP2" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "cat", so it can be a program name with args.
6934 set dummy cat; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_CAT+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 if test -n "$CAT"; then
6965 { echo "$as_me:$LINENO: result: $CAT" >&5
6966 echo "${ECHO_T}$CAT" >&6; }
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6973 # Extract the first word of "doxygen", so it can be a program name with args.
6974 set dummy doxygen; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 DOXYGEN=$ac_cv_path_DOXYGEN
7004 if test -n "$DOXYGEN"; then
7005 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006 echo "${ECHO_T}$DOXYGEN" >&6; }
7008 { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7013 # Extract the first word of "groff", so it can be a program name with args.
7014 set dummy groff; ac_word=$2
7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017 if test "${ac_cv_path_GROFF+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 GROFF=$ac_cv_path_GROFF
7044 if test -n "$GROFF"; then
7045 { echo "$as_me:$LINENO: result: $GROFF" >&5
7046 echo "${ECHO_T}$GROFF" >&6; }
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7053 # Extract the first word of "gzip", so it can be a program name with args.
7054 set dummy gzip; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 GZIPBIN=$ac_cv_path_GZIPBIN
7084 if test -n "$GZIPBIN"; then
7085 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086 echo "${ECHO_T}$GZIPBIN" >&6; }
7088 { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7093 # Extract the first word of "pod2html", so it can be a program name with args.
7094 set dummy pod2html; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_POD2HTML+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 POD2HTML=$ac_cv_path_POD2HTML
7124 if test -n "$POD2HTML"; then
7125 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7126 echo "${ECHO_T}$POD2HTML" >&6; }
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7133 # Extract the first word of "pod2man", so it can be a program name with args.
7134 set dummy pod2man; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_POD2MAN+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 POD2MAN=$ac_cv_path_POD2MAN
7164 if test -n "$POD2MAN"; then
7165 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7166 echo "${ECHO_T}$POD2MAN" >&6; }
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7173 # Extract the first word of "pdfroff", so it can be a program name with args.
7174 set dummy pdfroff; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_PDFROFF+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 PDFROFF=$ac_cv_path_PDFROFF
7204 if test -n "$PDFROFF"; then
7205 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7206 echo "${ECHO_T}$PDFROFF" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 # Extract the first word of "runtest", so it can be a program name with args.
7214 set dummy runtest; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_RUNTEST+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 RUNTEST=$ac_cv_path_RUNTEST
7244 if test -n "$RUNTEST"; then
7245 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7246 echo "${ECHO_T}$RUNTEST" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7255 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7256 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7258 # Check whether --with-tclinclude was given.
7259 if test "${with_tclinclude+set}" = set; then
7260 withval=$with_tclinclude; with_tclinclude=${withval}
7265 if test "${ac_cv_path_tclsh+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 if test x"${with_tclinclude}" != x ; then
7270 if test -f ${with_tclinclude}/tclsh ; then
7271 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7272 elif test -f ${with_tclinclude}/src/tclsh ; then
7273 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7275 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7276 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7277 { (exit 1); exit 1; }; }
7283 if test x"${ac_cv_path_tclsh}" = x ; then
7284 { echo "$as_me:$LINENO: result: none" >&5
7285 echo "${ECHO_T}none" >&6; }
7286 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
7288 # Extract the first word of "$ac_prog", so it can be a program name with args.
7289 set dummy $ac_prog; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_TCLSH+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 TCLSH=$ac_cv_path_TCLSH
7319 if test -n "$TCLSH"; then
7320 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7321 echo "${ECHO_T}$TCLSH" >&6; }
7323 { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7328 test -n "$TCLSH" && break
7331 if test x"${TCLSH}" = x ; then
7332 ac_cv_path_tclsh='';
7334 ac_cv_path_tclsh="${TCLSH}";
7337 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7338 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7339 TCLSH="${ac_cv_path_tclsh}"
7343 # Extract the first word of "zip", so it can be a program name with args.
7344 set dummy zip; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_ZIP+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 if test -n "$ZIP"; then
7375 { echo "$as_me:$LINENO: result: $ZIP" >&5
7376 echo "${ECHO_T}$ZIP" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 for ac_prog in ocamlc
7385 # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_OCAMLC+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 OCAMLC=$ac_cv_path_OCAMLC
7416 if test -n "$OCAMLC"; then
7417 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418 echo "${ECHO_T}$OCAMLC" >&6; }
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 test -n "$OCAMLC" && break
7428 for ac_prog in ocamlopt
7430 # Extract the first word of "$ac_prog", so it can be a program name with args.
7431 set dummy $ac_prog; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 OCAMLOPT=$ac_cv_path_OCAMLOPT
7461 if test -n "$OCAMLOPT"; then
7462 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463 echo "${ECHO_T}$OCAMLOPT" >&6; }
7465 { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7470 test -n "$OCAMLOPT" && break
7473 for ac_prog in ocamldep
7475 # Extract the first word of "$ac_prog", so it can be a program name with args.
7476 set dummy $ac_prog; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 OCAMLDEP=$ac_cv_path_OCAMLDEP
7506 if test -n "$OCAMLDEP"; then
7507 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508 echo "${ECHO_T}$OCAMLDEP" >&6; }
7510 { echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6; }
7515 test -n "$OCAMLDEP" && break
7518 for ac_prog in ocamldoc
7520 # Extract the first word of "$ac_prog", so it can be a program name with args.
7521 set dummy $ac_prog; ac_word=$2
7522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 OCAMLDOC=$ac_cv_path_OCAMLDOC
7551 if test -n "$OCAMLDOC"; then
7552 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553 echo "${ECHO_T}$OCAMLDOC" >&6; }
7555 { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7560 test -n "$OCAMLDOC" && break
7563 for ac_prog in gas as
7565 # Extract the first word of "$ac_prog", so it can be a program name with args.
7566 set dummy $ac_prog; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GAS+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 if test -n "$GAS"; then
7597 { echo "$as_me:$LINENO: result: $GAS" >&5
7598 echo "${ECHO_T}$GAS" >&6; }
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 test -n "$GAS" && break
7609 { echo "$as_me:$LINENO: checking for linker version" >&5
7610 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_version+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 version_string="$(ld -v 2>&1 | head -1)"
7618 if (echo "$version_string" | grep -q "ld64"); then
7619 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7625 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7628 cat >>confdefs.h <<_ACEOF
7629 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7634 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636 if test "${llvm_cv_link_use_r+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646 CFLAGS="$CFLAGS -Wl,-R."
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_link") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677 { (case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_try") 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 llvm_cv_link_use_r=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 llvm_cv_link_use_r=no
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7717 if test "$llvm_cv_link_use_r" = yes ; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LINK_R 1
7726 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7727 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7728 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769 { (case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_try") 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_try") 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 llvm_cv_link_use_export_dynamic=yes
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 llvm_cv_link_use_export_dynamic=no
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7809 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_LINK_EXPORT_DYNAMIC 1
7818 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820 if test "${llvm_cv_link_use_version_script+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831 # The following code is from the autoconf manual,
7832 # "11.13: Limitations of Usual Tools".
7833 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834 # Use mktemp if possible; otherwise fall back on mkdir,
7835 # with $RANDOM to make collisions less likely.
7839 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7841 test -n "$tmp" && test -d "$tmp"
7843 tmp=$TMPDIR/foo$$-$RANDOM
7844 (umask 077 && mkdir "$tmp")
7847 echo "{" > "$tmp/export.map"
7848 echo " global: main;" >> "$tmp/export.map"
7849 echo " local: *;" >> "$tmp/export.map"
7850 echo "};" >> "$tmp/export.map"
7852 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_version_script=yes
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 llvm_cv_link_use_version_script=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 rm "$tmp/export.map"
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925 if test "$llvm_cv_link_use_version_script" = yes ; then
7926 HAVE_LINK_VERSION_SCRIPT=1
7933 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7934 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7935 if test "${ac_cv_c_const+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7948 /* FIXME: Include the comments suggested by Paul. */
7950 /* Ultrix mips cc rejects this. */
7951 typedef int charset[2];
7953 /* SunOS 4.1.1 cc rejects this. */
7954 char const *const *ccp;
7956 /* NEC SVR4.0.2 mips cc rejects this. */
7957 struct point {int x, y;};
7958 static struct point const zero = {0,0};
7959 /* AIX XL C 1.02.0.0 rejects this.
7960 It does not let you subtract one const X* pointer from another in
7961 an arm of an if-expression whose if-part is not a constant
7963 const char *g = "string";
7964 ccp = &g + (g ? g-g : 0);
7965 /* HPUX 7.0 cc rejects these. */
7968 ccp = (char const *const *) p;
7969 { /* SCO 3.2v4 cc rejects this. */
7971 char const *s = 0 ? (char *) 0 : (char const *) 0;
7976 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7978 const int *foo = &x[0];
7981 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7982 typedef const int *iptr;
7986 { /* AIX XL C 1.02.0.0 rejects this saying
7987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7988 struct s { int j; const int *ap[3]; };
7989 struct s *b; b->j = 5;
7991 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7995 return !x[0] && !zero.x;
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_try") 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8047 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8048 if test $ac_cv_c_const = no; then
8050 cat >>confdefs.h <<\_ACEOF
8062 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8063 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8064 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8065 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <sys/types.h>
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest.$ac_objext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 eval "$as_ac_Header=yes"
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 eval "$as_ac_Header=no"
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 ac_res=`eval echo '${'$as_ac_Header'}'`
8132 { echo "$as_me:$LINENO: result: $ac_res" >&5
8133 echo "${ECHO_T}$ac_res" >&6; }
8134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8135 cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8139 ac_header_dirent=$ac_hdr; break
8143 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8144 if test $ac_header_dirent = dirent.h; then
8145 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8146 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8147 if test "${ac_cv_search_opendir+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 ac_func_search_save_LIBS=$LIBS
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8158 /* Override any GCC internal prototype to avoid an error.
8159 Use char because int might match the return type of a GCC
8160 builtin and then its argument prototype would still apply. */
8173 for ac_lib in '' dir; do
8174 if test -z "$ac_lib"; then
8175 ac_res="none required"
8178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8180 rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195 { (case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_try") 2>&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest$ac_exeext'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_search_opendir=$ac_res
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8222 rm -f core conftest.err conftest.$ac_objext \
8224 if test "${ac_cv_search_opendir+set}" = set; then
8228 if test "${ac_cv_search_opendir+set}" = set; then
8231 ac_cv_search_opendir=no
8234 LIBS=$ac_func_search_save_LIBS
8236 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8237 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8238 ac_res=$ac_cv_search_opendir
8239 if test "$ac_res" != no; then
8240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8245 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8247 if test "${ac_cv_search_opendir+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 ac_func_search_save_LIBS=$LIBS
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8273 for ac_lib in '' x; do
8274 if test -z "$ac_lib"; then
8275 ac_res="none required"
8278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (ac_try="$ac_link"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_link") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_search_opendir=$ac_res
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -f core conftest.err conftest.$ac_objext \
8324 if test "${ac_cv_search_opendir+set}" = set; then
8328 if test "${ac_cv_search_opendir+set}" = set; then
8331 ac_cv_search_opendir=no
8334 LIBS=$ac_func_search_save_LIBS
8336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8338 ac_res=$ac_cv_search_opendir
8339 if test "$ac_res" != no; then
8340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8347 for ac_header in dlfcn.h
8349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358 echo "${ECHO_T}$ac_res" >&6; }
8360 # Is the header compilable?
8361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 #include <$ac_header>
8372 rm -f conftest.$ac_objext
8373 if { (ac_try="$ac_compile"
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_compile") 2>conftest.er1
8381 grep -v '^ *+' conftest.er1 >conftest.err
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387 { (case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_try") 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_header_compiler=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_header_compiler=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416 echo "${ECHO_T}$ac_header_compiler" >&6; }
8418 # Is the header present?
8419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8429 if { (ac_try="$ac_cpp conftest.$ac_ext"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } >/dev/null; then
8442 if test -s conftest.err; then
8443 ac_cpp_err=$ac_c_preproc_warn_flag
8444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8451 if test -z "$ac_cpp_err"; then
8452 ac_header_preproc=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_header_preproc=no
8460 rm -f conftest.err conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6; }
8464 # So? What about this header?
8465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471 ac_header_preproc=yes
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8487 ## ------------------------------ ##
8488 ## Report this to bugs@yourdomain ##
8489 ## ------------------------------ ##
8491 ) | sed "s/^/$as_me: WARNING: /" >&2
8494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 eval "$as_ac_Header=\$ac_header_preproc"
8501 ac_res=`eval echo '${'$as_ac_Header'}'`
8502 { echo "$as_me:$LINENO: result: $ac_res" >&5
8503 echo "${ECHO_T}$ac_res" >&6; }
8506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8515 # Check whether --enable-ltdl-install was given.
8516 if test "${enable_ltdl_install+set}" = set; then
8517 enableval=$enable_ltdl_install;
8523 if test x"${enable_ltdl_install-no}" != xno; then
8525 INSTALL_LTDL_FALSE='#'
8527 INSTALL_LTDL_TRUE='#'
8533 if test x"${enable_ltdl_convenience-no}" != xno; then
8534 CONVENIENCE_LTDL_TRUE=
8535 CONVENIENCE_LTDL_FALSE='#'
8537 CONVENIENCE_LTDL_TRUE='#'
8538 CONVENIENCE_LTDL_FALSE=
8542 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8545 libname_spec='lib$name'
8553 shlibpath_overrides_runpath=unknown
8555 dynamic_linker="$host_os ld.so"
8556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8557 if test "$GCC" = yes; then
8558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8559 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8560 # if the path contains ";" then we assume it to be the separator
8561 # otherwise default to the standard path separator (i.e. ":") - it is
8562 # assumed that no part of a normal pathname contains ";" but that should
8563 # okay in the real world where ";" in dirpaths is itself problematic.
8564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8571 need_lib_prefix=unknown
8572 hardcode_into_libs=no
8574 # when you set need_version to no, make sure it does not cause -set_version
8575 # flags to be left without arguments
8576 need_version=unknown
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8582 shlibpath_var=LIBPATH
8584 # AIX 3 has no versioning support, so we append a major version to the name.
8585 soname_spec='${libname}${release}${shared_ext}$major'
8592 hardcode_into_libs=yes
8593 if test "$host_cpu" = ia64; then
8594 # AIX 5 supports IA64
8595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8596 shlibpath_var=LD_LIBRARY_PATH
8598 # With GCC up to 2.95.x, collect2 would create an import file
8599 # for dependence libraries. The import file would start with
8600 # the line `#! .'. This would cause the generated library to
8601 # depend on `.', always an invalid library. This was fixed in
8602 # development snapshots of GCC prior to 3.0.
8604 aix4 | aix4.[01] | aix4.[01].*)
8605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8615 # soname into executable. Probably we can add versioning support to
8616 # collect2, so additional links can be useful in future.
8617 if test "$aix_use_runtimelinking" = yes; then
8618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8619 # instead of lib<name>.a to let people know that these are not
8620 # typical AIX shared libraries.
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 # We preserve .a as extension for shared libraries through AIX4.2
8624 # and later when we are not doing run time linking.
8625 library_names_spec='${libname}${release}.a $libname.a'
8626 soname_spec='${libname}${release}${shared_ext}$major'
8628 shlibpath_var=LIBPATH
8633 library_names_spec='$libname.ixlibrary $libname.a'
8634 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8635 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'
8639 library_names_spec='${libname}${shared_ext}'
8640 dynamic_linker="$host_os ld.so"
8641 shlibpath_var=LIBRARY_PATH
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8650 shlibpath_var=LD_LIBRARY_PATH
8651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8653 # the default ld.so.conf also contains /usr/contrib/lib and
8654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8655 # libtool to hard-code these into programs
8658 cygwin* | mingw* | pw32*)
8659 version_type=windows
8664 case $GCC,$host_os in
8665 yes,cygwin* | yes,mingw* | yes,pw32*)
8666 library_names_spec='$libname.dll.a'
8667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8668 postinstall_cmds='base_file=`basename \${file}`~
8669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8670 dldir=$destdir/`dirname \$dlpath`~
8671 test -d \$dldir || mkdir -p \$dldir~
8672 $install_prog $dir/$dlname \$dldir/$dlname~
8673 chmod a+x \$dldir/$dlname'
8674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8675 dlpath=$dir/\$dldll~
8677 shlibpath_overrides_runpath=yes
8681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686 # MinGW DLLs use traditional 'lib' prefix
8687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8690 # It is most probably a Windows format PATH printed by
8691 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8692 # path with ; separators, and with drive letters. We can handle the
8693 # drive letters (cygwin fileutils understands them), so leave them,
8694 # especially as we might pass files found there to a mingw objdump,
8695 # which wouldn't understand a cygwinified path. Ahh.
8696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8702 # pw32 DLLs use 'pw' prefix rather than 'lib'
8703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8712 dynamic_linker='Win32 ld.exe'
8713 # FIXME: first we should search . and the directory the executable is in
8717 darwin* | rhapsody*)
8718 dynamic_linker="$host_os dyld"
8722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8723 soname_spec='${libname}${release}${major}$shared_ext'
8724 shlibpath_overrides_runpath=yes
8725 shlibpath_var=DYLD_LIBRARY_PATH
8726 shrext_cmds='.dylib'
8727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8728 if test "$GCC" = yes; then
8729 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"`
8731 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 shlibpath_var=LD_LIBRARY_PATH
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 shlibpath_overrides_runpath=no
8757 hardcode_into_libs=yes
8758 dynamic_linker='GNU ld.so'
8761 freebsd* | dragonfly*)
8762 # DragonFly does not have aout. When/if they implement a new
8763 # versioning mechanism, adjust this.
8764 if test -x /usr/bin/objformat; then
8765 objformat=`/usr/bin/objformat`
8768 freebsd[123].*) objformat=aout ;;
8772 version_type=freebsd-$objformat
8773 case $version_type in
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8784 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes
8789 freebsd3.[01]* | freebsdelf3.[01]*)
8790 shlibpath_overrides_runpath=yes
8791 hardcode_into_libs=yes
8793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8795 shlibpath_overrides_runpath=no
8796 hardcode_into_libs=yes
8798 freebsd*) # from 4.6 on
8799 shlibpath_overrides_runpath=yes
8800 hardcode_into_libs=yes
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 hardcode_into_libs=yes
8815 hpux9* | hpux10* | hpux11*)
8816 # Give a soname corresponding to the major version so that dld.sl refuses to
8817 # link against other versions.
8824 hardcode_into_libs=yes
8825 dynamic_linker="$host_os dld.so"
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 if test "X$HPUX_IA64_MODE" = X32; then
8831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8839 hardcode_into_libs=yes
8840 dynamic_linker="$host_os dld.sl"
8841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850 dynamic_linker="$host_os dld.sl"
8851 shlibpath_var=SHLIB_PATH
8852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8857 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8858 postinstall_cmds='chmod 555 $lib'
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=no
8870 hardcode_into_libs=yes
8873 irix5* | irix6* | nonstopux*)
8875 nonstopux*) version_type=nonstopux ;;
8877 if test "$lt_cv_prog_gnu_ld" = yes; then
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 irix5* | nonstopux*)
8892 case $LD in # libtool.m4 will add one of these switches to LD
8893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8894 libsuff= shlibsuff= libmagic=32-bit;;
8895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8896 libsuff=32 shlibsuff=N32 libmagic=N32;;
8897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8899 *) libsuff= shlibsuff= libmagic=never-match;;
8903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8904 shlibpath_overrides_runpath=no
8905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8907 hardcode_into_libs=yes
8910 # No shared lib support for Linux oldld, aout, or coff.
8911 linux*oldld* | linux*aout* | linux*coff*)
8915 # This must be Linux ELF.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 # This implies no fast_install, which is unacceptable.
8926 # Some rework will be needed to allow for fast_install
8927 # before this can be enabled.
8928 hardcode_into_libs=yes
8930 # Append ld.so.conf contents to the search path
8931 if test -f /etc/ld.so.conf; then
8932 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' ' '`
8933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8936 # We used to test for /lib/ld.so.1 and disable shared libraries on
8937 # powerpc, because MkLinux only supported shared libraries with the
8938 # GNU dynamic linker. Since this was broken with cross compilers,
8939 # most powerpc-linux boxes support dynamic linking these days and
8940 # people can always --disable-shared, the test was removed, and we
8941 # assume the GNU/Linux dynamic linker is in use.
8942 dynamic_linker='GNU/Linux ld.so'
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 hardcode_into_libs=yes
8954 dynamic_linker='GNU ld.so'
8961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8964 dynamic_linker='NetBSD (a.out) ld.so'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 dynamic_linker='NetBSD ld.elf_so'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8972 hardcode_into_libs=yes
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8994 sys_lib_dlsearch_path_spec="/usr/lib"
8996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8999 *) need_version=no ;;
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006 openbsd2.[89] | openbsd2.[89].*)
9007 shlibpath_overrides_runpath=no
9010 shlibpath_overrides_runpath=yes
9014 shlibpath_overrides_runpath=yes
9019 libname_spec='$name'
9022 library_names_spec='$libname${shared_ext} $libname.a'
9023 dynamic_linker='OS/2 ld.exe'
9024 shlibpath_var=LIBPATH
9027 osf3* | osf4* | osf5*)
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 # ldd complains unless libraries are executable
9048 postinstall_cmds='chmod +x $lib'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes
9057 if test "$with_gnu_ld" = yes; then
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 case $host_vendor in
9070 shlibpath_overrides_runpath=no
9072 export_dynamic_flag_spec='${wl}-Blargedynsym'
9073 runpath_var=LD_RUN_PATH
9081 shlibpath_overrides_runpath=no
9082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9088 if test -d /usr/nec ;then
9090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9091 soname_spec='$libname${shared_ext}.$major'
9092 shlibpath_var=LD_LIBRARY_PATH
9096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9097 version_type=freebsd-elf
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 hardcode_into_libs=yes
9104 if test "$with_gnu_ld" = yes; then
9105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9106 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9109 shlibpath_overrides_runpath=yes
9112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9116 sys_lib_dlsearch_path_spec='/usr/lib'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9130 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9131 echo "${ECHO_T}$dynamic_linker" >&6; }
9132 test "$dynamic_linker" = no && can_build_shared=no
9134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9135 if test "$GCC" = yes; then
9136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9140 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9141 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9142 if test "${libltdl_cv_shlibext+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 eval libltdl_cv_shlibext=$shrext_cmds
9150 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9151 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9152 if test -n "$libltdl_cv_shlibext"; then
9154 cat >>confdefs.h <<_ACEOF
9155 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9161 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9162 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9163 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 libltdl_cv_shlibpath_var="$shlibpath_var"
9168 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9169 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9170 if test -n "$libltdl_cv_shlibpath_var"; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9179 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9180 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_sys_search_path+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9186 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9187 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9188 if test -n "$libltdl_cv_sys_search_path"; then
9190 for dir in $libltdl_cv_sys_search_path; do
9191 if test -z "$sys_search_path"; then
9192 sys_search_path="$dir"
9194 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9198 cat >>confdefs.h <<_ACEOF
9199 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9204 { echo "$as_me:$LINENO: checking for objdir" >&5
9205 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9206 if test "${libltdl_cv_objdir+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 libltdl_cv_objdir="$objdir"
9210 if test -n "$objdir"; then
9213 rm -f .libs 2>/dev/null
9214 mkdir .libs 2>/dev/null
9215 if test -d .libs; then
9216 libltdl_cv_objdir=.libs
9218 # MS-DOS does not allow filenames that begin with a dot.
9219 libltdl_cv_objdir=_libs
9221 rmdir .libs 2>/dev/null
9225 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9226 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9237 # Check for command to grab the raw symbol name followed by C symbol from nm.
9238 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9239 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9240 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 # These are sane defaults that work on at least a few old systems.
9245 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9247 # Character class describing NM global symbol codes.
9248 symcode='[BCDEGRST]'
9250 # Regexp to match symbols that can be accessed directly from C.
9251 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9253 # Transform an extracted symbol line into a proper C declaration
9254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9256 # Transform an extracted symbol line into symbol name and symbol address
9257 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'"
9259 # Define system-specific variables.
9264 cygwin* | mingw* | pw32*)
9265 symcode='[ABCDGISTW]'
9267 hpux*) # Its linker distinguishes data from code symbols
9268 if test "$host_cpu" = ia64; then
9269 symcode='[ABCDEGRST]'
9271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9272 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'"
9275 if test "$host_cpu" = ia64; then
9276 symcode='[ABCDGIRSTW]'
9277 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9278 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'"
9282 symcode='[BCDEGRST]'
9285 symcode='[BCDEGQRST]'
9296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9304 # Handle CRLF in mingw tool chain
9308 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9312 # If we're using GNU nm, then use its standard symbol codes.
9313 case `$NM -V 2>&1` in
9314 *GNU* | *'with BFD'*)
9315 symcode='[ABCDGIRSTW]' ;;
9318 # Try without a prefix undercore, then with it.
9319 for ac_symprfx in "" "_"; do
9321 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9322 symxfrm="\\1 $ac_symprfx\\2 \\2"
9324 # Write the raw and C identifiers.
9325 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9327 # Check to see that the pipe works correctly.
9331 cat > conftest.$ac_ext <<EOF
9336 void nm_test_func(){}
9340 int main(){nm_test_var='a';nm_test_func();return(0);}
9343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344 (eval $ac_compile) 2>&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; then
9348 # Now try to grab the symbols.
9350 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9351 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && test -s "$nlist"; then
9355 # Try sorting and uniquifying the output.
9356 if sort "$nlist" | uniq > "$nlist"T; then
9357 mv -f "$nlist"T "$nlist"
9362 # Make sure that we snagged all the symbols we need.
9363 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9364 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9365 cat <<EOF > conftest.$ac_ext
9371 # Now generate the symbol file.
9372 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9374 cat <<EOF >> conftest.$ac_ext
9375 #if defined (__STDC__) && __STDC__
9376 # define lt_ptr_t void *
9378 # define lt_ptr_t char *
9382 /* The mapping between symbol names and symbols. */
9387 lt_preloaded_symbols[] =
9390 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9391 cat <<\EOF >> conftest.$ac_ext
9399 # Now try linking the two files.
9400 mv conftest.$ac_objext conftstm.$ac_objext
9401 lt_save_LIBS="$LIBS"
9402 lt_save_CFLAGS="$CFLAGS"
9403 LIBS="conftstm.$ac_objext"
9404 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406 (eval $ac_link) 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9412 LIBS="$lt_save_LIBS"
9413 CFLAGS="$lt_save_CFLAGS"
9415 echo "cannot find nm_test_func in $nlist" >&5
9418 echo "cannot find nm_test_var in $nlist" >&5
9421 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9424 echo "$progname: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9427 rm -f conftest* conftst*
9429 # Do not use the global_symbol_pipe unless it works.
9430 if test "$pipe_works" = yes; then
9433 lt_cv_sys_global_symbol_pipe=
9439 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9440 lt_cv_sys_global_symbol_to_cdecl=
9442 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9443 { echo "$as_me:$LINENO: result: failed" >&5
9444 echo "${ECHO_T}failed" >&6; }
9446 { echo "$as_me:$LINENO: result: ok" >&5
9447 echo "${ECHO_T}ok" >&6; }
9451 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9452 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9453 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9457 libltdl_cv_preloaded_symbols=yes
9459 libltdl_cv_preloaded_symbols=no
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9464 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9465 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PRELOADED_SYMBOLS 1
9476 ac_cpp='$CPP $CPPFLAGS'
9477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482 { echo "$as_me:$LINENO: checking for shl_load" >&5
9483 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9484 if test "${ac_cv_func_shl_load+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9495 #define shl_load innocuous_shl_load
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char shl_load (); below.
9499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500 <limits.h> exists even on freestanding compilers. */
9503 # include <limits.h>
9505 # include <assert.h>
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9517 /* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520 #if defined __stub_shl_load || defined __stub___shl_load
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9541 grep -v '^ *+' conftest.er1 >conftest.err
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547 { (case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_try") 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_func_shl_load=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_func_shl_load=no
9574 rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
9577 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9579 if test $ac_cv_func_shl_load = yes; then
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_SHL_LOAD 1
9586 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 ac_check_lib_save_LIBS=$LIBS
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (ac_try="$ac_link"
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622 (eval "$ac_link") 2>conftest.er1
9624 grep -v '^ *+' conftest.er1 >conftest.err
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630 { (case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_try") 2>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_try") 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_lib_dld_shl_load=yes
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_cv_lib_dld_shl_load=no
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9663 if test $ac_cv_lib_dld_shl_load = yes; then
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_SHL_LOAD 1
9669 LIBADD_DL="$LIBADD_DL -ldld"
9671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 ac_check_lib_save_LIBS=$LIBS
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_link") 2>conftest.er1
9709 grep -v '^ *+' conftest.er1 >conftest.err
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_try") 2>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_dl_dlopen=yes
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_cv_lib_dl_dlopen=no
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9748 if test $ac_cv_lib_dl_dlopen = yes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_LIBDL 1
9754 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_try") 2>&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_LIBDL 1
9812 libltdl_cv_func_dlopen="yes"
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9818 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9819 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 ac_check_lib_save_LIBS=$LIBS
9824 cat >conftest.$ac_ext <<_ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_try") 2>&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest$ac_exeext'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_try") 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_lib_svld_dlopen=yes
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_lib_svld_dlopen=no
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LIBS=$ac_check_lib_save_LIBS
9892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894 if test $ac_cv_lib_svld_dlopen = yes; then
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_LIBDL 1
9900 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9902 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9903 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 ac_check_lib_save_LIBS=$LIBS
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_lib_dld_dld_link=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_lib_dld_dld_link=no
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9979 if test $ac_cv_lib_dld_dld_link = yes; then
9981 cat >>confdefs.h <<\_ACEOF
9985 LIBADD_DL="$LIBADD_DL -ldld"
9987 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9988 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9989 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10000 #define _dyld_func_lookup innocuous__dyld_func_lookup
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char _dyld_func_lookup (); below.
10004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005 <limits.h> exists even on freestanding compilers. */
10008 # include <limits.h>
10010 # include <assert.h>
10013 #undef _dyld_func_lookup
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10021 char _dyld_func_lookup ();
10022 /* The GNU C library defines this for functions which it implements
10023 to always fail with ENOSYS. Some functions are actually named
10024 something starting with __ and the normal name is an alias. */
10025 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10032 return _dyld_func_lookup ();
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_func__dyld_func_lookup=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_func__dyld_func_lookup=no
10079 rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10082 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10083 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10084 if test $ac_cv_func__dyld_func_lookup = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_DYLD 1
10101 rm -f core conftest.err conftest.$ac_objext \
10102 conftest$ac_exeext conftest.$ac_ext
10113 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10115 lt_save_LIBS="$LIBS"
10116 LIBS="$LIBS $LIBADD_DL"
10118 for ac_func in dlerror
10120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134 #define $ac_func innocuous_$ac_func
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char $ac_func (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10142 # include <limits.h>
10144 # include <assert.h>
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined __stub_$ac_func || defined __stub___$ac_func
10166 return $ac_func ();
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 eval "$as_ac_var=yes"
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 eval "$as_ac_var=no"
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10216 ac_res=`eval echo '${'$as_ac_var'}'`
10217 { echo "$as_me:$LINENO: result: $ac_res" >&5
10218 echo "${ECHO_T}$ac_res" >&6; }
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227 LIBS="$lt_save_LIBS"
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10237 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10238 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10239 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 ac_cv_sys_symbol_underscore=no
10243 cat > conftest.$ac_ext <<EOF
10244 void nm_test_func(){}
10245 int main(){nm_test_func;return 0;}
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248 (eval $ac_compile) 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; then
10252 # Now try to grab the symbols.
10253 ac_nlist=conftest.nm
10254 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10255 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && test -s "$ac_nlist"; then
10259 # See whether the symbols have a leading underscore.
10260 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10261 ac_cv_sys_symbol_underscore=yes
10263 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10266 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10270 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10273 echo "configure: failed program was:" >&5
10279 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10280 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10283 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10284 if test x"$libltdl_cv_func_dlopen" = xyes ||
10285 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10286 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10287 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10288 if test "${libltdl_cv_need_uscore+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 libltdl_cv_need_uscore=unknown
10293 LIBS="$LIBS $LIBADD_DL"
10294 if test "$cross_compiling" = yes; then :
10295 libltdl_cv_need_uscore=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10300 "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10342 extern "C" void exit (int);
10345 void fnord() { int i=42;}
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368 (./conftest; exit; ) >&5 2>/dev/null
10370 case x$lt_status in
10371 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10372 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10373 x$lt_dlunknown|x*) ;;
10376 # compilation failed
10385 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10386 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10390 if test x"$libltdl_cv_need_uscore" = xyes; then
10392 cat >>confdefs.h <<\_ACEOF
10393 #define NEED_USCORE 1
10399 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10400 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10401 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 # PORTME does your system automatically load deplibs for dlopen?
10405 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10406 # For now, we just catch OSes we know something about -- in the
10407 # future, we'll try test this programmatically.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10410 aix3*|aix4.1.*|aix4.2.*)
10411 # Unknown whether this is true for these versions of AIX, but
10412 # we want this `case' here to explicitly catch those versions.
10413 libltdl_cv_sys_dlopen_deplibs=unknown
10416 libltdl_cv_sys_dlopen_deplibs=yes
10419 # Assuming the user has installed a libdl from somewhere, this is true
10420 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10421 libltdl_cv_sys_dlopen_deplibs=yes
10423 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10424 # GNU and its variants, using gnu ld.so (Glibc)
10425 libltdl_cv_sys_dlopen_deplibs=yes
10428 libltdl_cv_sys_dlopen_deplibs=yes
10431 libltdl_cv_sys_dlopen_deplibs=yes
10433 irix[12345]*|irix6.[01]*)
10434 # Catch all versions of IRIX before 6.2, and indicate that we don't
10435 # know how it worked for any of those versions.
10436 libltdl_cv_sys_dlopen_deplibs=unknown
10439 # The case above catches anything before 6.2, and it's known that
10440 # at 6.2 and later dlopen does load deplibs.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10450 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10451 # it did *not* use an RPATH in a shared library to find objects the
10452 # library depends on, so we explicitly say `no'.
10453 libltdl_cv_sys_dlopen_deplibs=no
10455 osf5.0|osf5.0a|osf5.1)
10456 # dlopen *does* load deplibs and with the right loader patch applied
10457 # it even uses RPATH in a shared library to search for shared objects
10458 # that the library depends on, but there's no easy way to know if that
10459 # patch is installed. Since this is the case, all we can really
10460 # say is unknown -- it depends on the patch being installed. If
10461 # it is, this changes to `yes'. Without it, it would be `no'.
10462 libltdl_cv_sys_dlopen_deplibs=unknown
10465 # the two cases above should catch all versions of osf <= 5.1. Read
10466 # the comments above for what we know about them.
10467 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10468 # is used to find them so we can finally say `yes'.
10469 libltdl_cv_sys_dlopen_deplibs=yes
10472 libltdl_cv_sys_dlopen_deplibs=yes
10474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10475 libltdl_cv_sys_dlopen_deplibs=yes
10480 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10481 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10482 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define LTDL_DLOPEN_DEPLIBS 1
10491 for ac_header in argz.h
10493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 ac_res=`eval echo '${'$as_ac_Header'}'`
10501 { echo "$as_me:$LINENO: result: $ac_res" >&5
10502 echo "${ECHO_T}$ac_res" >&6; }
10504 # Is the header compilable?
10505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 $ac_includes_default
10514 #include <$ac_header>
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_compile") 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_try") 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try='test -s conftest.$ac_objext'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_header_compiler=yes
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_header_compiler=no
10558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 echo "${ECHO_T}$ac_header_compiler" >&6; }
10562 # Is the header present?
10563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 #include <$ac_header>
10573 if { (ac_try="$ac_cpp conftest.$ac_ext"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } >/dev/null; then
10586 if test -s conftest.err; then
10587 ac_cpp_err=$ac_c_preproc_warn_flag
10588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10595 if test -z "$ac_cpp_err"; then
10596 ac_header_preproc=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10604 rm -f conftest.err conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 echo "${ECHO_T}$ac_header_preproc" >&6; }
10608 # So? What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10615 ac_header_preproc=yes
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10631 ## ------------------------------ ##
10632 ## Report this to bugs@yourdomain ##
10633 ## ------------------------------ ##
10635 ) | sed "s/^/$as_me: WARNING: /" >&2
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 eval "$as_ac_Header=\$ac_header_preproc"
10645 ac_res=`eval echo '${'$as_ac_Header'}'`
10646 { echo "$as_me:$LINENO: result: $ac_res" >&5
10647 echo "${ECHO_T}$ac_res" >&6; }
10650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10651 cat >>confdefs.h <<_ACEOF
10652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 { echo "$as_me:$LINENO: checking for error_t" >&5
10661 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10662 if test "${ac_cv_type_error_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10675 typedef error_t ac__type_new_;
10679 if ((ac__type_new_ *) 0)
10681 if (sizeof (ac__type_new_))
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_compile") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_try") 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_try") 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_type_error_t=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_type_error_t=no
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10732 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10733 if test $ac_cv_type_error_t = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_ERROR_T 1
10742 cat >>confdefs.h <<\_ACEOF
10743 #define error_t int
10754 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10770 #define $ac_func innocuous_$ac_func
10772 /* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char $ac_func (); below.
10774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10775 <limits.h> exists even on freestanding compilers. */
10778 # include <limits.h>
10780 # include <assert.h>
10785 /* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10792 /* The GNU C library defines this for functions which it implements
10793 to always fail with ENOSYS. Some functions are actually named
10794 something starting with __ and the normal name is an alias. */
10795 #if defined __stub_$ac_func || defined __stub___$ac_func
10802 return $ac_func ();
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_try") 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 eval "$as_ac_var=yes"
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 eval "$as_ac_var=no"
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10852 ac_res=`eval echo '${'$as_ac_var'}'`
10853 { echo "$as_me:$LINENO: result: $ac_res" >&5
10854 echo "${ECHO_T}$ac_res" >&6; }
10855 if test `eval echo '${'$as_ac_var'}'` = yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10890 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 ac_res=`eval echo '${'$as_ac_Header'}'`
10901 { echo "$as_me:$LINENO: result: $ac_res" >&5
10902 echo "${ECHO_T}$ac_res" >&6; }
10904 # Is the header compilable?
10905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10914 #include <$ac_header>
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_header_compiler=yes
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 ac_header_compiler=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6; }
10962 # Is the header present?
10963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 #include <$ac_header>
10973 if { (ac_try="$ac_cpp conftest.$ac_ext"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null; then
10986 if test -s conftest.err; then
10987 ac_cpp_err=$ac_c_preproc_warn_flag
10988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10995 if test -z "$ac_cpp_err"; then
10996 ac_header_preproc=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ac_header_preproc=no
11004 rm -f conftest.err conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006 echo "${ECHO_T}$ac_header_preproc" >&6; }
11008 # So? What about this header?
11009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11031 ## ------------------------------ ##
11032 ## Report this to bugs@yourdomain ##
11033 ## ------------------------------ ##
11035 ) | sed "s/^/$as_me: WARNING: /" >&2
11038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 eval "$as_ac_Header=\$ac_header_preproc"
11045 ac_res=`eval echo '${'$as_ac_Header'}'`
11046 { echo "$as_me:$LINENO: result: $ac_res" >&5
11047 echo "${ECHO_T}$ac_res" >&6; }
11050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11063 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 ac_res=`eval echo '${'$as_ac_Header'}'`
11073 { echo "$as_me:$LINENO: result: $ac_res" >&5
11074 echo "${ECHO_T}$ac_res" >&6; }
11076 # Is the header compilable?
11077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 $ac_includes_default
11086 #include <$ac_header>
11088 rm -f conftest.$ac_objext
11089 if { (ac_try="$ac_compile"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_compile") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; } &&
11112 { ac_try='test -s conftest.$ac_objext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_header_compiler=yes
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_header_compiler=no
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11132 echo "${ECHO_T}$ac_header_compiler" >&6; }
11134 # Is the header present?
11135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11137 cat >conftest.$ac_ext <<_ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 #include <$ac_header>
11145 if { (ac_try="$ac_cpp conftest.$ac_ext"
11146 case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11167 if test -z "$ac_cpp_err"; then
11168 ac_header_preproc=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_header_preproc=no
11176 rm -f conftest.err conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11178 echo "${ECHO_T}$ac_header_preproc" >&6; }
11180 # So? What about this header?
11181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11187 ac_header_preproc=yes
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11203 ## ------------------------------ ##
11204 ## Report this to bugs@yourdomain ##
11205 ## ------------------------------ ##
11207 ) | sed "s/^/$as_me: WARNING: /" >&2
11210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 eval "$as_ac_Header=\$ac_header_preproc"
11217 ac_res=`eval echo '${'$as_ac_Header'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11223 cat >>confdefs.h <<_ACEOF
11224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11233 for ac_header in string.h strings.h
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11246 # Is the header compilable?
11247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 $ac_includes_default
11256 #include <$ac_header>
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_header_compiler=yes
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_header_compiler=no
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6; }
11304 # Is the header present?
11305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11307 cat >conftest.$ac_ext <<_ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include <$ac_header>
11315 if { (ac_try="$ac_cpp conftest.$ac_ext"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11337 if test -z "$ac_cpp_err"; then
11338 ac_header_preproc=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_preproc=no
11346 rm -f conftest.err conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6; }
11350 # So? What about this header?
11351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373 ## ------------------------------ ##
11374 ## Report this to bugs@yourdomain ##
11375 ## ------------------------------ ##
11377 ) | sed "s/^/$as_me: WARNING: /" >&2
11380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 eval "$as_ac_Header=\$ac_header_preproc"
11387 ac_res=`eval echo '${'$as_ac_Header'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11404 for ac_func in strchr index
11406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 cat >conftest.$ac_ext <<_ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11420 #define $ac_func innocuous_$ac_func
11422 /* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char $ac_func (); below.
11424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425 <limits.h> exists even on freestanding compilers. */
11428 # include <limits.h>
11430 # include <assert.h>
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11442 /* The GNU C library defines this for functions which it implements
11443 to always fail with ENOSYS. Some functions are actually named
11444 something starting with __ and the normal name is an alias. */
11445 #if defined __stub_$ac_func || defined __stub___$ac_func
11452 return $ac_func ();
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (ac_try="$ac_link"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_link") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11472 { (case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_try") 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_try") 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 eval "$as_ac_var=yes"
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 eval "$as_ac_var=no"
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11502 ac_res=`eval echo '${'$as_ac_var'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 if test `eval echo '${'$as_ac_var'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11515 for ac_func in strrchr rindex
11517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11531 #define $ac_func innocuous_$ac_func
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below.
11535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536 <limits.h> exists even on freestanding compilers. */
11539 # include <limits.h>
11541 # include <assert.h>
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11553 /* The GNU C library defines this for functions which it implements
11554 to always fail with ENOSYS. Some functions are actually named
11555 something starting with __ and the normal name is an alias. */
11556 #if defined __stub_$ac_func || defined __stub___$ac_func
11563 return $ac_func ();
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_link") 2>conftest.er1
11577 grep -v '^ *+' conftest.er1 >conftest.err
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 eval "$as_ac_var=yes"
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 eval "$as_ac_var=no"
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11613 ac_res=`eval echo '${'$as_ac_var'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_var'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 for ac_func in memcpy bcopy
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642 #define $ac_func innocuous_$ac_func
11644 /* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char $ac_func (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11650 # include <limits.h>
11652 # include <assert.h>
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined __stub_$ac_func || defined __stub___$ac_func
11674 return $ac_func ();
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 eval "$as_ac_var=yes"
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 eval "$as_ac_var=no"
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11724 ac_res=`eval echo '${'$as_ac_var'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_var'}'` = yes; then
11728 cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 for ac_func in memmove strcmp
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11761 # include <limits.h>
11763 # include <assert.h>
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11785 return $ac_func ();
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 eval "$as_ac_var=yes"
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 eval "$as_ac_var=no"
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11835 ac_res=`eval echo '${'$as_ac_var'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_var'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11849 for ac_func in closedir opendir readdir
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define $ac_func innocuous_$ac_func
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11873 # include <limits.h>
11875 # include <assert.h>
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 return $ac_func ();
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11960 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11961 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11974 if test "$GCC" != "yes" && test "$ICC" != "yes"
11976 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11977 echo "$as_me: error: gcc|icc required but not found" >&2;}
11978 { (exit 1); exit 1; }; }
11981 if test "$GXX" != "yes" && test "$IXX" != "yes"
11983 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11984 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11985 { (exit 1); exit 1; }; }
11988 if test "$GCC" = "yes"
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #if !defined(__GNUC__) || __GNUC__ < 3
11992 #error Unsupported GCC version
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12005 grep -v '^ *+' conftest.er1 >conftest.err
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12036 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12037 { (exit 1); exit 1; }; }
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 if test -z "$llvm_cv_gnu_make_command"
12045 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12046 echo "$as_me: error: GNU Make required but not found" >&2;}
12047 { (exit 1); exit 1; }; }
12050 { echo "$as_me:$LINENO: result: ok" >&5
12051 echo "${ECHO_T}ok" >&6; }
12053 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12054 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12055 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12057 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12059 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12061 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12062 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12066 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12067 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12068 if test "${ac_cv_lib_m_sin+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS=$LIBS
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1 >conftest.err
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110 { (case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_try") 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_lib_m_sin=yes
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12141 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12142 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12143 if test $ac_cv_lib_m_sin = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_LIBM 1
12152 if test "$llvm_cv_os_type" = "MingW" ; then
12154 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12155 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12156 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-limagehlp $LIBS"
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (ac_try="$ac_link"
12179 case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_link") 2>conftest.er1
12186 grep -v '^ *+' conftest.er1 >conftest.err
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12192 { (case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_try") 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest$ac_exeext'
12202 { (case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_try") 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_lib_imagehlp_main=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_cv_lib_imagehlp_main=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12224 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12225 if test $ac_cv_lib_imagehlp_main = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_LIBIMAGEHLP 1
12230 LIBS="-limagehlp $LIBS"
12235 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12236 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12237 if test "${ac_cv_lib_psapi_main+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-lpsapi $LIBS"
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1 >conftest.err
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273 { (case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_try") 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest$ac_exeext'
12283 { (case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_lib_psapi_main=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_lib_psapi_main=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12305 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12306 if test $ac_cv_lib_psapi_main = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_LIBPSAPI 1
12311 LIBS="-lpsapi $LIBS"
12317 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12318 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12319 if test "${ac_cv_search_dlopen+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_func_search_save_LIBS=$LIBS
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12345 for ac_lib in '' dl; do
12346 if test -z "$ac_lib"; then
12347 ac_res="none required"
12350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_link") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest$ac_exeext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_search_dlopen=$ac_res
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12394 rm -f core conftest.err conftest.$ac_objext \
12396 if test "${ac_cv_search_dlopen+set}" = set; then
12400 if test "${ac_cv_search_dlopen+set}" = set; then
12403 ac_cv_search_dlopen=no
12405 rm conftest.$ac_ext
12406 LIBS=$ac_func_search_save_LIBS
12408 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12409 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12410 ac_res=$ac_cv_search_dlopen
12411 if test "$ac_res" != no; then
12412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_DLOPEN 1
12419 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12420 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12424 if test "$llvm_cv_enable_libffi" = "yes" ; then
12425 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12426 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12427 if test "${ac_cv_search_ffi_call+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 ac_func_search_save_LIBS=$LIBS
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12448 return ffi_call ();
12453 for ac_lib in '' ffi; do
12454 if test -z "$ac_lib"; then
12455 ac_res="none required"
12458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (ac_try="$ac_link"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_link") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_try") 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_search_ffi_call=$ac_res
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12502 rm -f core conftest.err conftest.$ac_objext \
12504 if test "${ac_cv_search_ffi_call+set}" = set; then
12508 if test "${ac_cv_search_ffi_call+set}" = set; then
12511 ac_cv_search_ffi_call=no
12513 rm conftest.$ac_ext
12514 LIBS=$ac_func_search_save_LIBS
12516 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12517 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12518 ac_res=$ac_cv_search_ffi_call
12519 if test "$ac_res" != no; then
12520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_FFI_CALL 1
12527 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12528 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12529 { (exit 1); exit 1; }; }
12534 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12535 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12536 if test "${ac_cv_search_mallinfo+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 ac_func_search_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12557 return mallinfo ();
12562 for ac_lib in '' malloc; do
12563 if test -z "$ac_lib"; then
12564 ac_res="none required"
12567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_try") 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_search_mallinfo=$ac_res
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12611 rm -f core conftest.err conftest.$ac_objext \
12613 if test "${ac_cv_search_mallinfo+set}" = set; then
12617 if test "${ac_cv_search_mallinfo+set}" = set; then
12620 ac_cv_search_mallinfo=no
12622 rm conftest.$ac_ext
12623 LIBS=$ac_func_search_save_LIBS
12625 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12626 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12627 ac_res=$ac_cv_search_mallinfo
12628 if test "$ac_res" != no; then
12629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12631 cat >>confdefs.h <<\_ACEOF
12632 #define HAVE_MALLINFO 1
12638 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12640 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12641 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12642 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-lpthread $LIBS"
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12660 char pthread_mutex_init ();
12664 return pthread_mutex_init ();
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_link") 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12684 { (case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_try") 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_try") 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_cv_lib_pthread_pthread_mutex_init=yes
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_cv_lib_pthread_pthread_mutex_init=no
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12715 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12716 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12717 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define HAVE_LIBPTHREAD 1
12722 LIBS="-lpthread $LIBS"
12726 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12727 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12728 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_func_search_save_LIBS=$LIBS
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12745 char pthread_mutex_lock ();
12749 return pthread_mutex_lock ();
12754 for ac_lib in '' pthread; do
12755 if test -z "$ac_lib"; then
12756 ac_res="none required"
12759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_link") 2>conftest.er1
12770 grep -v '^ *+' conftest.er1 >conftest.err
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_try") 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_search_pthread_mutex_lock=$ac_res
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12803 rm -f core conftest.err conftest.$ac_objext \
12805 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12812 ac_cv_search_pthread_mutex_lock=no
12814 rm conftest.$ac_ext
12815 LIBS=$ac_func_search_save_LIBS
12817 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12818 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12819 ac_res=$ac_cv_search_pthread_mutex_lock
12820 if test "$ac_res" != no; then
12821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_PTHREAD_MUTEX_LOCK 1
12829 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12830 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12831 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 ac_func_search_save_LIBS=$LIBS
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12842 /* Override any GCC internal prototype to avoid an error.
12843 Use char because int might match the return type of a GCC
12844 builtin and then its argument prototype would still apply. */
12848 char pthread_rwlock_init ();
12852 return pthread_rwlock_init ();
12857 for ac_lib in '' pthread; do
12858 if test -z "$ac_lib"; then
12859 ac_res="none required"
12862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (ac_try="$ac_link"
12866 case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_link") 2>conftest.er1
12873 grep -v '^ *+' conftest.er1 >conftest.err
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } &&
12878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12879 { (case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_try") 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_try") 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_search_pthread_rwlock_init=$ac_res
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12906 rm -f core conftest.err conftest.$ac_objext \
12908 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12915 ac_cv_search_pthread_rwlock_init=no
12917 rm conftest.$ac_ext
12918 LIBS=$ac_func_search_save_LIBS
12920 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12921 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12922 ac_res=$ac_cv_search_pthread_rwlock_init
12923 if test "$ac_res" != no; then
12924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_PTHREAD_RWLOCK_INIT 1
12932 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12933 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12934 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 ac_func_search_save_LIBS=$LIBS
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12951 char pthread_getspecific ();
12955 return pthread_getspecific ();
12960 for ac_lib in '' pthread; do
12961 if test -z "$ac_lib"; then
12962 ac_res="none required"
12965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>conftest.er1
12976 grep -v '^ *+' conftest.er1 >conftest.err
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_search_pthread_getspecific=$ac_res
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13009 rm -f core conftest.err conftest.$ac_objext \
13011 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13018 ac_cv_search_pthread_getspecific=no
13020 rm conftest.$ac_ext
13021 LIBS=$ac_func_search_save_LIBS
13023 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13024 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13025 ac_res=$ac_cv_search_pthread_getspecific
13026 if test "$ac_res" != no; then
13027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_PTHREAD_GETSPECIFIC 1
13038 # Check whether --with-udis86 was given.
13039 if test "${with_udis86+set}" = set; then
13040 withval=$with_udis86;
13045 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13048 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13049 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13050 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-ludis86 $LIBS"
13055 cat >conftest.$ac_ext <<_ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13062 /* Override any GCC internal prototype to avoid an error.
13063 Use char because int might match the return type of a GCC
13064 builtin and then its argument prototype would still apply. */
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_link") 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest$ac_exeext'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_lib_udis86_ud_init=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_cv_lib_udis86_ud_init=no
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13123 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13124 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13125 if test $ac_cv_lib_udis86_ud_init = yes; then
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_LIBUDIS86 1
13130 LIBS="-ludis86 $LIBS"
13134 echo "Error! You need to have libudis86 around."
13146 cat >>confdefs.h <<_ACEOF
13147 #define USE_UDIS86 $USE_UDIS86
13152 # Check whether --with-oprofile was given.
13153 if test "${with_oprofile+set}" = set; then
13154 withval=$with_oprofile;
13158 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13159 no) llvm_cv_oppath=
13162 *) llvm_cv_oppath="${withval}/lib/oprofile"
13163 CPPFLAGS="-I${withval}/include";;
13165 if test -n "$llvm_cv_oppath" ; then
13166 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13167 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13168 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13169 if test "${ac_cv_search_bfd_init+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 ac_func_search_save_LIBS=$LIBS
13173 cat >conftest.$ac_ext <<_ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13190 return bfd_init ();
13195 for ac_lib in '' bfd; do
13196 if test -z "$ac_lib"; then
13197 ac_res="none required"
13200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (ac_try="$ac_link"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_link") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_search_bfd_init=$ac_res
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13244 rm -f core conftest.err conftest.$ac_objext \
13246 if test "${ac_cv_search_bfd_init+set}" = set; then
13250 if test "${ac_cv_search_bfd_init+set}" = set; then
13253 ac_cv_search_bfd_init=no
13255 rm conftest.$ac_ext
13256 LIBS=$ac_func_search_save_LIBS
13258 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13259 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13260 ac_res=$ac_cv_search_bfd_init
13261 if test "$ac_res" != no; then
13262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13266 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13267 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13268 if test "${ac_cv_search_op_open_agent+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 ac_func_search_save_LIBS=$LIBS
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char op_open_agent ();
13289 return op_open_agent ();
13294 for ac_lib in '' opagent; do
13295 if test -z "$ac_lib"; then
13296 ac_res="none required"
13299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_link") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_search_op_open_agent=$ac_res
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13343 rm -f core conftest.err conftest.$ac_objext \
13345 if test "${ac_cv_search_op_open_agent+set}" = set; then
13349 if test "${ac_cv_search_op_open_agent+set}" = set; then
13352 ac_cv_search_op_open_agent=no
13354 rm conftest.$ac_ext
13355 LIBS=$ac_func_search_save_LIBS
13357 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13358 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13359 ac_res=$ac_cv_search_op_open_agent
13360 if test "$ac_res" != no; then
13361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365 echo "Error! You need to have libopagent around."
13370 if test "${ac_cv_header_opagent_h+set}" = set; then
13371 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13372 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13373 if test "${ac_cv_header_opagent_h+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13377 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13379 # Is the header compilable?
13380 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13381 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13389 #include <opagent.h>
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_compile") 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406 { (case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_try") 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_header_compiler=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_header_compiler=no
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13435 echo "${ECHO_T}$ac_header_compiler" >&6; }
13437 # Is the header present?
13438 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13439 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 #include <opagent.h>
13448 if { (ac_try="$ac_cpp conftest.$ac_ext"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } >/dev/null; then
13461 if test -s conftest.err; then
13462 ac_cpp_err=$ac_c_preproc_warn_flag
13463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13470 if test -z "$ac_cpp_err"; then
13471 ac_header_preproc=yes
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 ac_header_preproc=no
13479 rm -f conftest.err conftest.$ac_ext
13480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481 echo "${ECHO_T}$ac_header_preproc" >&6; }
13483 # So? What about this header?
13484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13486 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13487 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13489 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13490 ac_header_preproc=yes
13493 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13494 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13496 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13498 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13500 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13502 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13504 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13506 ## ------------------------------ ##
13507 ## Report this to bugs@yourdomain ##
13508 ## ------------------------------ ##
13510 ) | sed "s/^/$as_me: WARNING: /" >&2
13513 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13514 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13515 if test "${ac_cv_header_opagent_h+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 ac_cv_header_opagent_h=$ac_header_preproc
13520 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13521 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13524 if test $ac_cv_header_opagent_h = yes; then
13528 echo "Error! You need to have opagent.h around."
13544 cat >>confdefs.h <<_ACEOF
13545 #define USE_OPROFILE $USE_OPROFILE
13555 ac_header_dirent=no
13556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13557 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13558 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 #include <sys/types.h>
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 eval "$as_ac_Header=yes"
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 eval "$as_ac_Header=no"
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 ac_res=`eval echo '${'$as_ac_Header'}'`
13626 { echo "$as_me:$LINENO: result: $ac_res" >&5
13627 echo "${ECHO_T}$ac_res" >&6; }
13628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13629 cat >>confdefs.h <<_ACEOF
13630 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13633 ac_header_dirent=$ac_hdr; break
13637 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13638 if test $ac_header_dirent = dirent.h; then
13639 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13640 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13641 if test "${ac_cv_search_opendir+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 ac_func_search_save_LIBS=$LIBS
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13667 for ac_lib in '' dir; do
13668 if test -z "$ac_lib"; then
13669 ac_res="none required"
13672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_link") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13689 { (case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_try") 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_try") 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13708 ac_cv_search_opendir=$ac_res
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13716 rm -f core conftest.err conftest.$ac_objext \
13718 if test "${ac_cv_search_opendir+set}" = set; then
13722 if test "${ac_cv_search_opendir+set}" = set; then
13725 ac_cv_search_opendir=no
13727 rm conftest.$ac_ext
13728 LIBS=$ac_func_search_save_LIBS
13730 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13731 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13732 ac_res=$ac_cv_search_opendir
13733 if test "$ac_res" != no; then
13734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13739 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13740 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13741 if test "${ac_cv_search_opendir+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 ac_func_search_save_LIBS=$LIBS
13745 cat >conftest.$ac_ext <<_ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13767 for ac_lib in '' x; do
13768 if test -z "$ac_lib"; then
13769 ac_res="none required"
13772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (ac_try="$ac_link"
13776 case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_link") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_search_opendir=$ac_res
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13816 rm -f core conftest.err conftest.$ac_objext \
13818 if test "${ac_cv_search_opendir+set}" = set; then
13822 if test "${ac_cv_search_opendir+set}" = set; then
13825 ac_cv_search_opendir=no
13827 rm conftest.$ac_ext
13828 LIBS=$ac_func_search_save_LIBS
13830 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13831 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13832 ac_res=$ac_cv_search_opendir
13833 if test "$ac_res" != no; then
13834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13840 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13841 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13842 if test "${ac_cv_header_mmap_anon+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13851 cat >conftest.$ac_ext <<_ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 #include <sys/mman.h>
13858 #include <unistd.h>
13863 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13868 rm -f conftest.$ac_objext
13869 if { (ac_try="$ac_compile"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_header_mmap_anon=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_header_mmap_anon=no
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912 ac_cpp='$CPP $CPPFLAGS'
13913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13920 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13921 if test "$ac_cv_header_mmap_anon" = yes; then
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_MMAP_ANONYMOUS 1
13929 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13930 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_stat_broken+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 #include <sys/types.h>
13941 #include <sys/stat.h>
13943 #if defined S_ISBLK && defined S_IFDIR
13944 # if S_ISBLK (S_IFDIR)
13949 #if defined S_ISBLK && defined S_IFCHR
13950 # if S_ISBLK (S_IFCHR)
13955 #if defined S_ISLNK && defined S_IFREG
13956 # if S_ISLNK (S_IFREG)
13961 #if defined S_ISSOCK && defined S_IFREG
13962 # if S_ISSOCK (S_IFREG)
13968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13969 $EGREP "You lose" >/dev/null 2>&1; then
13970 ac_cv_header_stat_broken=yes
13972 ac_cv_header_stat_broken=no
13977 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13978 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13979 if test $ac_cv_header_stat_broken = yes; then
13981 cat >>confdefs.h <<\_ACEOF
13982 #define STAT_MACROS_BROKEN 1
13987 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13988 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13989 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 #include <sys/types.h>
13999 #include <sys/wait.h>
14000 #ifndef WEXITSTATUS
14001 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14004 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_header_sys_wait_h=yes
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ac_cv_header_sys_wait_h=no
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14063 if test $ac_cv_header_sys_wait_h = yes; then
14065 cat >>confdefs.h <<\_ACEOF
14066 #define HAVE_SYS_WAIT_H 1
14071 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14073 if test "${ac_cv_header_time+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 #include <sys/types.h>
14083 #include <sys/time.h>
14089 if ((struct tm *) 0)
14095 rm -f conftest.$ac_objext
14096 if { (ac_try="$ac_compile"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14110 { (case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_try") 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest.$ac_objext'
14120 { (case "(($ac_try" in
14121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122 *) ac_try_echo=$ac_try;;
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_try") 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_header_time=yes
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_cv_header_time=no
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14139 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14140 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14141 if test $ac_cv_header_time = yes; then
14143 cat >>confdefs.h <<\_ACEOF
14144 #define TIME_WITH_SYS_TIME 1
14156 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 ac_res=`eval echo '${'$as_ac_Header'}'`
14166 { echo "$as_me:$LINENO: result: $ac_res" >&5
14167 echo "${ECHO_T}$ac_res" >&6; }
14169 # Is the header compilable?
14170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 $ac_includes_default
14179 #include <$ac_header>
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_header_compiler=yes
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_header_compiler=no
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225 echo "${ECHO_T}$ac_header_compiler" >&6; }
14227 # Is the header present?
14228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 #include <$ac_header>
14238 if { (ac_try="$ac_cpp conftest.$ac_ext"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } >/dev/null; then
14251 if test -s conftest.err; then
14252 ac_cpp_err=$ac_c_preproc_warn_flag
14253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14260 if test -z "$ac_cpp_err"; then
14261 ac_header_preproc=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_preproc=no
14269 rm -f conftest.err conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271 echo "${ECHO_T}$ac_header_preproc" >&6; }
14273 # So? What about this header?
14274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280 ac_header_preproc=yes
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14296 ## ------------------------------ ##
14297 ## Report this to bugs@yourdomain ##
14298 ## ------------------------------ ##
14300 ) | sed "s/^/$as_me: WARNING: /" >&2
14303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 eval "$as_ac_Header=\$ac_header_preproc"
14310 ac_res=`eval echo '${'$as_ac_Header'}'`
14311 { echo "$as_me:$LINENO: result: $ac_res" >&5
14312 echo "${ECHO_T}$ac_res" >&6; }
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316 cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14330 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 ac_res=`eval echo '${'$as_ac_Header'}'`
14340 { echo "$as_me:$LINENO: result: $ac_res" >&5
14341 echo "${ECHO_T}$ac_res" >&6; }
14343 # Is the header compilable?
14344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352 $ac_includes_default
14353 #include <$ac_header>
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_header_compiler=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_header_compiler=no
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14399 echo "${ECHO_T}$ac_header_compiler" >&6; }
14401 # Is the header present?
14402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 #include <$ac_header>
14412 if { (ac_try="$ac_cpp conftest.$ac_ext"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14420 grep -v '^ *+' conftest.er1 >conftest.err
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } >/dev/null; then
14425 if test -s conftest.err; then
14426 ac_cpp_err=$ac_c_preproc_warn_flag
14427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14434 if test -z "$ac_cpp_err"; then
14435 ac_header_preproc=yes
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ac_header_preproc=no
14443 rm -f conftest.err conftest.$ac_ext
14444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 echo "${ECHO_T}$ac_header_preproc" >&6; }
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14470 ## ------------------------------ ##
14471 ## Report this to bugs@yourdomain ##
14472 ## ------------------------------ ##
14474 ) | sed "s/^/$as_me: WARNING: /" >&2
14477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 eval "$as_ac_Header=\$ac_header_preproc"
14484 ac_res=`eval echo '${'$as_ac_Header'}'`
14485 { echo "$as_me:$LINENO: result: $ac_res" >&5
14486 echo "${ECHO_T}$ac_res" >&6; }
14489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14500 for ac_header in utime.h windows.h
14502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_res=`eval echo '${'$as_ac_Header'}'`
14510 { echo "$as_me:$LINENO: result: $ac_res" >&5
14511 echo "${ECHO_T}$ac_res" >&6; }
14513 # Is the header compilable?
14514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522 $ac_includes_default
14523 #include <$ac_header>
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532 (eval "$ac_compile") 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540 { (case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_try") 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_header_compiler=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_header_compiler=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14569 echo "${ECHO_T}$ac_header_compiler" >&6; }
14571 # Is the header present?
14572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 #include <$ac_header>
14582 if { (ac_try="$ac_cpp conftest.$ac_ext"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } >/dev/null; then
14595 if test -s conftest.err; then
14596 ac_cpp_err=$ac_c_preproc_warn_flag
14597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14604 if test -z "$ac_cpp_err"; then
14605 ac_header_preproc=yes
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ac_header_preproc=no
14613 rm -f conftest.err conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14615 echo "${ECHO_T}$ac_header_preproc" >&6; }
14617 # So? What about this header?
14618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14624 ac_header_preproc=yes
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14640 ## ------------------------------ ##
14641 ## Report this to bugs@yourdomain ##
14642 ## ------------------------------ ##
14644 ) | sed "s/^/$as_me: WARNING: /" >&2
14647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 eval "$as_ac_Header=\$ac_header_preproc"
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14673 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683 { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14686 # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 $ac_includes_default
14696 #include <$ac_header>
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14713 { (case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_try") 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; } &&
14722 { ac_try='test -s conftest.$ac_objext'
14723 { (case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_try") 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 ac_header_compiler=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_header_compiler=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <$ac_header>
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev/null; then
14768 if test -s conftest.err; then
14769 ac_cpp_err=$ac_c_preproc_warn_flag
14770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14777 if test -z "$ac_cpp_err"; then
14778 ac_header_preproc=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_header_preproc=no
14786 rm -f conftest.err conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788 echo "${ECHO_T}$ac_header_preproc" >&6; }
14790 # So? What about this header?
14791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797 ac_header_preproc=yes
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14813 ## ------------------------------ ##
14814 ## Report this to bugs@yourdomain ##
14815 ## ------------------------------ ##
14817 ) | sed "s/^/$as_me: WARNING: /" >&2
14820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 eval "$as_ac_Header=\$ac_header_preproc"
14827 ac_res=`eval echo '${'$as_ac_Header'}'`
14828 { echo "$as_me:$LINENO: result: $ac_res" >&5
14829 echo "${ECHO_T}$ac_res" >&6; }
14832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14833 cat >>confdefs.h <<_ACEOF
14834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 ac_res=`eval echo '${'$as_ac_Header'}'`
14855 { echo "$as_me:$LINENO: result: $ac_res" >&5
14856 echo "${ECHO_T}$ac_res" >&6; }
14858 # Is the header compilable?
14859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 #include <$ac_header>
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14879 grep -v '^ *+' conftest.er1 >conftest.err
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_try") 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_header_compiler=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_header_compiler=no
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914 echo "${ECHO_T}$ac_header_compiler" >&6; }
14916 # Is the header present?
14917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <$ac_header>
14927 if { (ac_try="$ac_cpp conftest.$ac_ext"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14935 grep -v '^ *+' conftest.er1 >conftest.err
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } >/dev/null; then
14940 if test -s conftest.err; then
14941 ac_cpp_err=$ac_c_preproc_warn_flag
14942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14949 if test -z "$ac_cpp_err"; then
14950 ac_header_preproc=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14955 ac_header_preproc=no
14958 rm -f conftest.err conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960 echo "${ECHO_T}$ac_header_preproc" >&6; }
14962 # So? What about this header?
14963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969 ac_header_preproc=yes
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14985 ## ------------------------------ ##
14986 ## Report this to bugs@yourdomain ##
14987 ## ------------------------------ ##
14989 ) | sed "s/^/$as_me: WARNING: /" >&2
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 eval "$as_ac_Header=\$ac_header_preproc"
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15014 for ac_header in valgrind/valgrind.h
15016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 ac_res=`eval echo '${'$as_ac_Header'}'`
15024 { echo "$as_me:$LINENO: result: $ac_res" >&5
15025 echo "${ECHO_T}$ac_res" >&6; }
15027 # Is the header compilable?
15028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15030 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 $ac_includes_default
15037 #include <$ac_header>
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_compile") 2>conftest.er1
15048 grep -v '^ *+' conftest.er1 >conftest.err
15050 cat conftest.err >&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } &&
15053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15054 { (case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_try") 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069 (eval "$ac_try") 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_header_compiler=yes
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_header_compiler=no
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15083 echo "${ECHO_T}$ac_header_compiler" >&6; }
15085 # Is the header present?
15086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 #include <$ac_header>
15096 if { (ac_try="$ac_cpp conftest.$ac_ext"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15118 if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_header_preproc=no
15127 rm -f conftest.err conftest.$ac_ext
15128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15129 echo "${ECHO_T}$ac_header_preproc" >&6; }
15131 # So? What about this header?
15132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15138 ac_header_preproc=yes
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15154 ## ------------------------------ ##
15155 ## Report this to bugs@yourdomain ##
15156 ## ------------------------------ ##
15158 ) | sed "s/^/$as_me: WARNING: /" >&2
15161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 eval "$as_ac_Header=\$ac_header_preproc"
15168 ac_res=`eval echo '${'$as_ac_Header'}'`
15169 { echo "$as_me:$LINENO: result: $ac_res" >&5
15170 echo "${ECHO_T}$ac_res" >&6; }
15173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15183 for ac_header in fenv.h
15185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 ac_res=`eval echo '${'$as_ac_Header'}'`
15193 { echo "$as_me:$LINENO: result: $ac_res" >&5
15194 echo "${ECHO_T}$ac_res" >&6; }
15196 # Is the header compilable?
15197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 $ac_includes_default
15206 #include <$ac_header>
15208 rm -f conftest.$ac_objext
15209 if { (ac_try="$ac_compile"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_compile") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } &&
15222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15223 { (case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_try") 2>&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; } &&
15232 { ac_try='test -s conftest.$ac_objext'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15247 ac_header_compiler=no
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15252 echo "${ECHO_T}$ac_header_compiler" >&6; }
15254 # Is the header present?
15255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15257 cat >conftest.$ac_ext <<_ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 #include <$ac_header>
15265 if { (ac_try="$ac_cpp conftest.$ac_ext"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } >/dev/null; then
15278 if test -s conftest.err; then
15279 ac_cpp_err=$ac_c_preproc_warn_flag
15280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15287 if test -z "$ac_cpp_err"; then
15288 ac_header_preproc=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_header_preproc=no
15296 rm -f conftest.err conftest.$ac_ext
15297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15298 echo "${ECHO_T}$ac_header_preproc" >&6; }
15300 # So? What about this header?
15301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15307 ac_header_preproc=yes
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15323 ## ------------------------------ ##
15324 ## Report this to bugs@yourdomain ##
15325 ## ------------------------------ ##
15327 ) | sed "s/^/$as_me: WARNING: /" >&2
15330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 eval "$as_ac_Header=\$ac_header_preproc"
15337 ac_res=`eval echo '${'$as_ac_Header'}'`
15338 { echo "$as_me:$LINENO: result: $ac_res" >&5
15339 echo "${ECHO_T}$ac_res" >&6; }
15342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15351 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15353 for ac_header in pthread.h
15355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_res=`eval echo '${'$as_ac_Header'}'`
15363 { echo "$as_me:$LINENO: result: $ac_res" >&5
15364 echo "${ECHO_T}$ac_res" >&6; }
15366 # Is the header compilable?
15367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <$ac_header>
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_header_compiler=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_header_compiler=no
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 echo "${ECHO_T}$ac_header_compiler" >&6; }
15424 # Is the header present?
15425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 #include <$ac_header>
15435 if { (ac_try="$ac_cpp conftest.$ac_ext"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } >/dev/null; then
15448 if test -s conftest.err; then
15449 ac_cpp_err=$ac_c_preproc_warn_flag
15450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15457 if test -z "$ac_cpp_err"; then
15458 ac_header_preproc=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 ac_header_preproc=no
15466 rm -f conftest.err conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468 echo "${ECHO_T}$ac_header_preproc" >&6; }
15470 # So? What about this header?
15471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15477 ac_header_preproc=yes
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15493 ## ------------------------------ ##
15494 ## Report this to bugs@yourdomain ##
15495 ## ------------------------------ ##
15497 ) | sed "s/^/$as_me: WARNING: /" >&2
15500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 eval "$as_ac_Header=\$ac_header_preproc"
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15513 cat >>confdefs.h <<_ACEOF
15514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15530 if test "$llvm_cv_enable_libffi" = "yes" ; then
15533 for ac_header in ffi.h ffi/ffi.h
15535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543 { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15546 # Is the header compilable?
15547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 $ac_includes_default
15556 #include <$ac_header>
15558 rm -f conftest.$ac_objext
15559 if { (ac_try="$ac_compile"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_compile") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } &&
15572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15573 { (case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_try") 2>&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; } &&
15582 { ac_try='test -s conftest.$ac_objext'
15583 { (case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_try") 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_header_compiler=yes
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_header_compiler=no
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15602 echo "${ECHO_T}$ac_header_compiler" >&6; }
15604 # Is the header present?
15605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <$ac_header>
15615 if { (ac_try="$ac_cpp conftest.$ac_ext"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15637 if test -z "$ac_cpp_err"; then
15638 ac_header_preproc=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_preproc=no
15646 rm -f conftest.err conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648 echo "${ECHO_T}$ac_header_preproc" >&6; }
15650 # So? What about this header?
15651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15657 ac_header_preproc=yes
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15673 ## ------------------------------ ##
15674 ## Report this to bugs@yourdomain ##
15675 ## ------------------------------ ##
15677 ) | sed "s/^/$as_me: WARNING: /" >&2
15680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 eval "$as_ac_Header=\$ac_header_preproc"
15687 ac_res=`eval echo '${'$as_ac_Header'}'`
15688 { echo "$as_me:$LINENO: result: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15704 for ac_header in CrashReporterClient.h
15706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714 { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15717 # Is the header compilable?
15718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15720 cat >conftest.$ac_ext <<_ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 $ac_includes_default
15727 #include <$ac_header>
15729 rm -f conftest.$ac_objext
15730 if { (ac_try="$ac_compile"
15731 case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736 (eval "$ac_compile") 2>conftest.er1
15738 grep -v '^ *+' conftest.er1 >conftest.err
15740 cat conftest.err >&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } &&
15743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_header_compiler=yes
15765 echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_header_compiler=no
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773 echo "${ECHO_T}$ac_header_compiler" >&6; }
15775 # Is the header present?
15776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <$ac_header>
15786 if { (ac_try="$ac_cpp conftest.$ac_ext"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } >/dev/null; then
15799 if test -s conftest.err; then
15800 ac_cpp_err=$ac_c_preproc_warn_flag
15801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15808 if test -z "$ac_cpp_err"; then
15809 ac_header_preproc=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_preproc=no
15817 rm -f conftest.err conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819 echo "${ECHO_T}$ac_header_preproc" >&6; }
15821 # So? What about this header?
15822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828 ac_header_preproc=yes
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15844 ## ------------------------------ ##
15845 ## Report this to bugs@yourdomain ##
15846 ## ------------------------------ ##
15848 ) | sed "s/^/$as_me: WARNING: /" >&2
15851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 eval "$as_ac_Header=\$ac_header_preproc"
15858 ac_res=`eval echo '${'$as_ac_Header'}'`
15859 { echo "$as_me:$LINENO: result: $ac_res" >&5
15860 echo "${ECHO_T}$ac_res" >&6; }
15863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15864 cat >>confdefs.h <<_ACEOF
15865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15873 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15874 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 extern const char *__crashreporter_info__;
15883 __crashreporter_info__ = "test";
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_link") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903 { (case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_try") 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest$ac_exeext'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 { echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6; }
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_CRASHREPORTER_INFO 1
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15936 cat >>confdefs.h <<\_ACEOF
15937 #define HAVE_CRASHREPORTER_INFO 0
15942 rm -f core conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15948 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15949 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15950 if test "${ac_cv_huge_val_sanity+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_cpp='$CXXCPP $CPPFLAGS'
15956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15960 ac_save_CXXFLAGS=$CXXFLAGS
15962 if test "$cross_compiling" = yes; then
15963 ac_cv_huge_val_sanity=yes
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15975 double x = HUGE_VAL; return x != x;
15980 rm -f conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15991 { (case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_try") 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_huge_val_sanity=yes
16002 echo "$as_me: program exited with status $ac_status" >&5
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ( exit $ac_status )
16007 ac_cv_huge_val_sanity=no
16009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16013 CXXFLAGS=$ac_save_CXXFLAGS
16015 ac_cpp='$CPP $CPPFLAGS'
16016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16022 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16023 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16024 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16027 { echo "$as_me:$LINENO: checking for pid_t" >&5
16028 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16029 if test "${ac_cv_type_pid_t+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 $ac_includes_default
16039 typedef pid_t ac__type_new_;
16043 if ((ac__type_new_ *) 0)
16045 if (sizeof (ac__type_new_))
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_compile") 2>conftest.er1
16060 grep -v '^ *+' conftest.er1 >conftest.err
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16066 { (case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_try") 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_try") 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_cv_type_pid_t=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_cv_type_pid_t=no
16093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16096 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16097 if test $ac_cv_type_pid_t = yes; then
16101 cat >>confdefs.h <<_ACEOF
16107 { echo "$as_me:$LINENO: checking for size_t" >&5
16108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16109 if test "${ac_cv_type_size_t+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16118 $ac_includes_default
16119 typedef size_t ac__type_new_;
16123 if ((ac__type_new_ *) 0)
16125 if (sizeof (ac__type_new_))
16131 rm -f conftest.$ac_objext
16132 if { (ac_try="$ac_compile"
16133 case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_compile") 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16146 { (case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_try") 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; } &&
16155 { ac_try='test -s conftest.$ac_objext'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_cv_type_size_t=yes
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 ac_cv_type_size_t=no
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16176 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16177 if test $ac_cv_type_size_t = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define size_t unsigned int
16188 cat >>confdefs.h <<_ACEOF
16189 #define RETSIGTYPE void
16192 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16193 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16194 if test "${ac_cv_struct_tm+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 #include <sys/types.h>
16209 struct tm *tp; tp->tm_sec;
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_struct_tm=time.h
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_struct_tm=sys/time.h
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16259 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16260 if test $ac_cv_struct_tm = sys/time.h; then
16262 cat >>confdefs.h <<\_ACEOF
16263 #define TM_IN_SYS_TIME 1
16268 { echo "$as_me:$LINENO: checking for int64_t" >&5
16269 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16270 if test "${ac_cv_type_int64_t+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16279 $ac_includes_default
16280 typedef int64_t ac__type_new_;
16284 if ((ac__type_new_ *) 0)
16286 if (sizeof (ac__type_new_))
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_cv_type_int64_t=yes
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ac_cv_type_int64_t=no
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16337 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16338 if test $ac_cv_type_int64_t = yes; then
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE_INT64_T 1
16346 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16347 echo "$as_me: error: Type int64_t required but not found" >&2;}
16348 { (exit 1); exit 1; }; }
16351 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16352 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16353 if test "${ac_cv_type_uint64_t+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16363 typedef uint64_t ac__type_new_;
16367 if ((ac__type_new_ *) 0)
16369 if (sizeof (ac__type_new_))
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_type_uint64_t=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_cv_type_uint64_t=no
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16420 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16421 if test $ac_cv_type_uint64_t = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define HAVE_UINT64_T 1
16429 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16430 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16431 if test "${ac_cv_type_u_int64_t+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 $ac_includes_default
16441 typedef u_int64_t ac__type_new_;
16445 if ((ac__type_new_ *) 0)
16447 if (sizeof (ac__type_new_))
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_compile") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
16467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_type_u_int64_t=yes
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_type_u_int64_t=no
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16498 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16499 if test $ac_cv_type_u_int64_t = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_U_INT64_T 1
16507 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16508 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16509 { (exit 1); exit 1; }; }
16523 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16539 #define $ac_func innocuous_$ac_func
16541 /* System header to define __stub macros and hopefully few prototypes,
16542 which can conflict with char $ac_func (); below.
16543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16544 <limits.h> exists even on freestanding compilers. */
16547 # include <limits.h>
16549 # include <assert.h>
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16561 /* The GNU C library defines this for functions which it implements
16562 to always fail with ENOSYS. Some functions are actually named
16563 something starting with __ and the normal name is an alias. */
16564 #if defined __stub_$ac_func || defined __stub___$ac_func
16571 return $ac_func ();
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (ac_try="$ac_link"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_link") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 eval "$as_ac_var=yes"
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 eval "$as_ac_var=no"
16618 rm -f core conftest.err conftest.$ac_objext \
16619 conftest$ac_exeext conftest.$ac_ext
16621 ac_res=`eval echo '${'$as_ac_var'}'`
16622 { echo "$as_me:$LINENO: result: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16636 for ac_func in powf fmodf strtof round
16638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16660 # include <limits.h>
16662 # include <assert.h>
16667 /* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16674 /* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677 #if defined __stub_$ac_func || defined __stub___$ac_func
16684 return $ac_func ();
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (ac_try="$ac_link"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
16698 grep -v '^ *+' conftest.er1 >conftest.err
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest$ac_exeext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 eval "$as_ac_var=yes"
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 eval "$as_ac_var=no"
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16734 ac_res=`eval echo '${'$as_ac_var'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16737 if test `eval echo '${'$as_ac_var'}'` = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16750 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766 #define $ac_func innocuous_$ac_func
16768 /* System header to define __stub macros and hopefully few prototypes,
16769 which can conflict with char $ac_func (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
16774 # include <limits.h>
16776 # include <assert.h>
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined __stub_$ac_func || defined __stub___$ac_func
16798 return $ac_func ();
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 eval "$as_ac_var=yes"
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 eval "$as_ac_var=no"
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 ac_res=`eval echo '${'$as_ac_var'}'`
16849 { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16851 if test `eval echo '${'$as_ac_var'}'` = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16862 for ac_func in isatty mkdtemp mkstemp
16864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16878 #define $ac_func innocuous_$ac_func
16880 /* System header to define __stub macros and hopefully few prototypes,
16881 which can conflict with char $ac_func (); below.
16882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16883 <limits.h> exists even on freestanding compilers. */
16886 # include <limits.h>
16888 # include <assert.h>
16893 /* Override any GCC internal prototype to avoid an error.
16894 Use char because int might match the return type of a GCC
16895 builtin and then its argument prototype would still apply. */
16900 /* The GNU C library defines this for functions which it implements
16901 to always fail with ENOSYS. Some functions are actually named
16902 something starting with __ and the normal name is an alias. */
16903 #if defined __stub_$ac_func || defined __stub___$ac_func
16910 return $ac_func ();
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_link") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } &&
16929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest$ac_exeext'
16940 { (case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_try") 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 eval "$as_ac_var=yes"
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 eval "$as_ac_var=no"
16957 rm -f core conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16960 ac_res=`eval echo '${'$as_ac_var'}'`
16961 { echo "$as_me:$LINENO: result: $ac_res" >&5
16962 echo "${ECHO_T}$ac_res" >&6; }
16963 if test `eval echo '${'$as_ac_var'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16977 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16993 #define $ac_func innocuous_$ac_func
16995 /* System header to define __stub macros and hopefully few prototypes,
16996 which can conflict with char $ac_func (); below.
16997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998 <limits.h> exists even on freestanding compilers. */
17001 # include <limits.h>
17003 # include <assert.h>
17008 /* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17015 /* The GNU C library defines this for functions which it implements
17016 to always fail with ENOSYS. Some functions are actually named
17017 something starting with __ and the normal name is an alias. */
17018 #if defined __stub_$ac_func || defined __stub___$ac_func
17025 return $ac_func ();
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1 >conftest.err
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_try") 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 eval "$as_ac_var=yes"
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 eval "$as_ac_var=no"
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17075 ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result: $ac_res" >&5
17077 echo "${ECHO_T}$ac_res" >&6; }
17078 if test `eval echo '${'$as_ac_var'}'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17089 for ac_func in strerror strerror_r setenv
17091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105 #define $ac_func innocuous_$ac_func
17107 /* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17113 # include <limits.h>
17115 # include <assert.h>
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17127 /* The GNU C library defines this for functions which it implements
17128 to always fail with ENOSYS. Some functions are actually named
17129 something starting with __ and the normal name is an alias. */
17130 #if defined __stub_$ac_func || defined __stub___$ac_func
17137 return $ac_func ();
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 eval "$as_ac_var=yes"
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 eval "$as_ac_var=no"
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17187 ac_res=`eval echo '${'$as_ac_var'}'`
17188 { echo "$as_me:$LINENO: result: $ac_res" >&5
17189 echo "${ECHO_T}$ac_res" >&6; }
17190 if test `eval echo '${'$as_ac_var'}'` = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17202 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218 #define $ac_func innocuous_$ac_func
17220 /* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char $ac_func (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17226 # include <limits.h>
17228 # include <assert.h>
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17240 /* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243 #if defined __stub_$ac_func || defined __stub___$ac_func
17250 return $ac_func ();
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 eval "$as_ac_var=yes"
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no"
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17316 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 cat >conftest.$ac_ext <<_ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332 #define $ac_func innocuous_$ac_func
17334 /* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func (); below.
17336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337 <limits.h> exists even on freestanding compilers. */
17340 # include <limits.h>
17342 # include <assert.h>
17347 /* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17354 /* The GNU C library defines this for functions which it implements
17355 to always fail with ENOSYS. Some functions are actually named
17356 something starting with __ and the normal name is an alias. */
17357 #if defined __stub_$ac_func || defined __stub___$ac_func
17364 return $ac_func ();
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 eval "$as_ac_var=yes"
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 eval "$as_ac_var=no"
17411 rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17414 ac_res=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417 if test `eval echo '${'$as_ac_var'}'` = yes; then
17418 cat >>confdefs.h <<_ACEOF
17419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17425 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17426 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17427 if test "${llvm_cv_c_printf_a+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17436 if test "$cross_compiling" = yes; then
17437 llvmac_cv_c_printf_a=no
17439 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17448 #include <stdlib.h>
17454 volatile double A, B;
17458 sprintf(Buffer, "%a", A);
17462 if (A != 0x1.999999999999ap-4)
17469 rm -f conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 llvm_cv_c_printf_a=yes
17491 echo "$as_me: program exited with status $ac_status" >&5
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ( exit $ac_status )
17496 llvmac_cv_c_printf_a=no
17498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17503 ac_cpp='$CPP $CPPFLAGS'
17504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17509 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17510 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17511 if test "$llvm_cv_c_printf_a" = "yes"; then
17513 cat >>confdefs.h <<\_ACEOF
17514 #define HAVE_PRINTF_A 1
17520 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17521 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17522 if test "${ac_cv_func_rand48+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 ac_cpp='$CXXCPP $CPPFLAGS'
17527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 #include <stdlib.h>
17541 srand48(0);lrand48();drand48();
17546 rm -f conftest.$ac_objext
17547 if { (ac_try="$ac_compile"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_func_rand48=yes
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 ac_cv_func_rand48=no
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17597 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17599 if test "$ac_cv_func_rand48" = "yes" ; then
17601 cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_RAND48 1
17608 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17609 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17610 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17624 char *p = (char *) strerror_s;
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_have_decl_strerror_s=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_cv_have_decl_strerror_s=no
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17677 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17678 if test $ac_cv_have_decl_strerror_s = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define HAVE_DECL_STRERROR_S 1
17686 cat >>confdefs.h <<_ACEOF
17687 #define HAVE_DECL_STRERROR_S 0
17695 if test "$llvm_cv_os_type" = "MingW" ; then
17696 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17697 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17698 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 ac_check_lib_save_LIBS=$LIBS
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740 { (case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_try") 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_try") 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_gcc__alloca=yes
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_cv_lib_gcc__alloca=no
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 LIBS=$ac_check_lib_save_LIBS
17771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17772 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17773 if test $ac_cv_lib_gcc__alloca = yes; then
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE__ALLOCA 1
17781 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17782 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17783 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 ac_check_lib_save_LIBS=$LIBS
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17805 return __alloca ();
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_link") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_gcc___alloca=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 ac_cv_lib_gcc___alloca=no
17852 rm -f core conftest.err conftest.$ac_objext \
17853 conftest$ac_exeext conftest.$ac_ext
17854 LIBS=$ac_check_lib_save_LIBS
17856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17857 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17858 if test $ac_cv_lib_gcc___alloca = yes; then
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE___ALLOCA 1
17866 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17867 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17868 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 ac_check_lib_save_LIBS=$LIBS
17873 cat >conftest.$ac_ext <<_ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17890 return __chkstk ();
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_link") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_lib_gcc___chkstk=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_lib_gcc___chkstk=no
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17942 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17943 if test $ac_cv_lib_gcc___chkstk = yes; then
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE___CHKSTK 1
17951 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17952 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17953 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 ac_check_lib_save_LIBS=$LIBS
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17975 return ___chkstk ();
17980 rm -f conftest.$ac_objext conftest$ac_exeext
17981 if { (ac_try="$ac_link"
17982 case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_link") 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17995 { (case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_try") 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_try") 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_lib_gcc____chkstk=yes
18016 echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_lib_gcc____chkstk=no
18022 rm -f core conftest.err conftest.$ac_objext \
18023 conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18027 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18028 if test $ac_cv_lib_gcc____chkstk = yes; then
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE____CHKSTK 1
18037 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18038 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18039 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18042 ac_check_lib_save_LIBS=$LIBS
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18051 /* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18061 return __ashldi3 ();
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_link") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_lib_gcc___ashldi3=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_lib_gcc___ashldi3=no
18108 rm -f core conftest.err conftest.$ac_objext \
18109 conftest$ac_exeext conftest.$ac_ext
18110 LIBS=$ac_check_lib_save_LIBS
18112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18113 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18114 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE___ASHLDI3 1
18122 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18123 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_check_lib_save_LIBS=$LIBS
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18146 return __ashrdi3 ();
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_gcc___ashrdi3=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_lib_gcc___ashrdi3=no
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18198 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18199 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18201 cat >>confdefs.h <<\_ACEOF
18202 #define HAVE___ASHRDI3 1
18207 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18208 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18209 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 ac_check_lib_save_LIBS=$LIBS
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18221 /* Override any GCC internal prototype to avoid an error.
18222 Use char because int might match the return type of a GCC
18223 builtin and then its argument prototype would still apply. */
18231 return __divdi3 ();
18236 rm -f conftest.$ac_objext conftest$ac_exeext
18237 if { (ac_try="$ac_link"
18238 case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_link") 2>conftest.er1
18245 grep -v '^ *+' conftest.er1 >conftest.err
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_try") 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest$ac_exeext'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_cv_lib_gcc___divdi3=yes
18272 echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ac_cv_lib_gcc___divdi3=no
18278 rm -f core conftest.err conftest.$ac_objext \
18279 conftest$ac_exeext conftest.$ac_ext
18280 LIBS=$ac_check_lib_save_LIBS
18282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18283 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18284 if test $ac_cv_lib_gcc___divdi3 = yes; then
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE___DIVDI3 1
18292 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18293 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18294 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 ac_check_lib_save_LIBS=$LIBS
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18306 /* Override any GCC internal prototype to avoid an error.
18307 Use char because int might match the return type of a GCC
18308 builtin and then its argument prototype would still apply. */
18316 return __fixdfdi ();
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_link") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest$ac_exeext'
18346 { (case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_try") 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_lib_gcc___fixdfdi=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_lib_gcc___fixdfdi=no
18363 rm -f core conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18365 LIBS=$ac_check_lib_save_LIBS
18367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18368 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18369 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE___FIXDFDI 1
18377 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18378 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18379 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 ac_check_lib_save_LIBS=$LIBS
18384 cat >conftest.$ac_ext <<_ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18391 /* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18401 return __fixsfdi ();
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_cv_lib_gcc___fixsfdi=yes
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_cv_lib_gcc___fixsfdi=no
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18453 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18454 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE___FIXSFDI 1
18462 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18463 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18464 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 ac_check_lib_save_LIBS=$LIBS
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18482 char __floatdidf ();
18486 return __floatdidf ();
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18506 { (case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_try") 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest$ac_exeext'
18516 { (case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_try") 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_cv_lib_gcc___floatdidf=yes
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 ac_cv_lib_gcc___floatdidf=no
18533 rm -f core conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18538 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18539 if test $ac_cv_lib_gcc___floatdidf = yes; then
18541 cat >>confdefs.h <<\_ACEOF
18542 #define HAVE___FLOATDIDF 1
18547 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18548 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18549 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 ac_check_lib_save_LIBS=$LIBS
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18561 /* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18571 return __lshrdi3 ();
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (ac_try="$ac_link"
18578 case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_link") 2>conftest.er1
18585 grep -v '^ *+' conftest.er1 >conftest.err
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18591 { (case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_try") 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; } &&
18600 { ac_try='test -s conftest$ac_exeext'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_cv_lib_gcc___lshrdi3=yes
18612 echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 ac_cv_lib_gcc___lshrdi3=no
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18623 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18624 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE___LSHRDI3 1
18632 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18633 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18634 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 ac_check_lib_save_LIBS=$LIBS
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18646 /* Override any GCC internal prototype to avoid an error.
18647 Use char because int might match the return type of a GCC
18648 builtin and then its argument prototype would still apply. */
18656 return __moddi3 ();
18661 rm -f conftest.$ac_objext conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665 *) ac_try_echo=$ac_try;;
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668 (eval "$ac_link") 2>conftest.er1
18670 grep -v '^ *+' conftest.er1 >conftest.err
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676 { (case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_try") 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_cv_lib_gcc___moddi3=yes
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ac_cv_lib_gcc___moddi3=no
18703 rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18707 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18708 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18709 if test $ac_cv_lib_gcc___moddi3 = yes; then
18711 cat >>confdefs.h <<\_ACEOF
18712 #define HAVE___MODDI3 1
18717 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18718 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18719 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 ac_check_lib_save_LIBS=$LIBS
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18731 /* Override any GCC internal prototype to avoid an error.
18732 Use char because int might match the return type of a GCC
18733 builtin and then its argument prototype would still apply. */
18741 return __udivdi3 ();
18746 rm -f conftest.$ac_objext conftest$ac_exeext
18747 if { (ac_try="$ac_link"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_link") 2>conftest.er1
18755 grep -v '^ *+' conftest.er1 >conftest.err
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest$ac_exeext'
18771 { (case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_try") 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 ac_cv_lib_gcc___udivdi3=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_cv_lib_gcc___udivdi3=no
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18793 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18794 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18796 cat >>confdefs.h <<\_ACEOF
18797 #define HAVE___UDIVDI3 1
18802 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18803 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18804 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 ac_check_lib_save_LIBS=$LIBS
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18826 return __umoddi3 ();
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846 { (case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_try") 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest$ac_exeext'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_lib_gcc___umoddi3=yes
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ac_cv_lib_gcc___umoddi3=no
18873 rm -f core conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18877 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18878 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18879 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE___UMODDI3 1
18888 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18889 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18890 if test "${ac_cv_lib_gcc___main+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 ac_check_lib_save_LIBS=$LIBS
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18902 /* Override any GCC internal prototype to avoid an error.
18903 Use char because int might match the return type of a GCC
18904 builtin and then its argument prototype would still apply. */
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest$ac_exeext'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 ac_cv_lib_gcc___main=yes
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18956 ac_cv_lib_gcc___main=no
18959 rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18963 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18964 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18965 if test $ac_cv_lib_gcc___main = yes; then
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE___MAIN 1
18973 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18974 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18975 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18978 ac_check_lib_save_LIBS=$LIBS
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18987 /* Override any GCC internal prototype to avoid an error.
18988 Use char because int might match the return type of a GCC
18989 builtin and then its argument prototype would still apply. */
18997 return __cmpdi2 ();
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19011 grep -v '^ *+' conftest.er1 >conftest.err
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
19016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19017 { (case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_try") 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest$ac_exeext'
19027 { (case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_try") 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_cv_lib_gcc___cmpdi2=yes
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 ac_cv_lib_gcc___cmpdi2=no
19044 rm -f core conftest.err conftest.$ac_objext \
19045 conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19048 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19049 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19050 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19052 cat >>confdefs.h <<\_ACEOF
19053 #define HAVE___CMPDI2 1
19060 if test "$llvm_cv_os_type" = "MingW" ; then
19061 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19062 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19063 cat >conftest.$ac_ext <<_ACEOF
19064 #include <windows.h>
19065 #include <imagehlp.h>
19066 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19067 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19069 rm -f conftest.$ac_objext
19070 if { (ac_try="$ac_compile"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_compile") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_try") 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19104 { echo "$as_me:$LINENO: result: yes" >&5
19105 echo "${ECHO_T}yes" >&6; }
19106 llvm_cv_win32_elmcb_pcstr="PCSTR"
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19113 { echo "$as_me:$LINENO: result: no" >&5
19114 echo "${ECHO_T}no" >&6; }
19115 llvm_cv_win32_elmcb_pcstr="PSTR"
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121 cat >>confdefs.h <<_ACEOF
19122 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19128 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19129 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19130 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_cpp='$CXXCPP $CPPFLAGS'
19135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19169 { (case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_try") 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; } &&
19178 { ac_try='test -s conftest.$ac_objext'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_func_isnan_in_math_h=yes
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19193 ac_cv_func_isnan_in_math_h=no
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19204 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19205 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19208 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_ISNAN_IN_MATH_H 1
19216 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19217 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19218 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 ac_cpp='$CXXCPP $CPPFLAGS'
19223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19227 cat >conftest.$ac_ext <<_ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_compile") 2>conftest.er1
19251 grep -v '^ *+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest.$ac_objext'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_func_isnan_in_cmath=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_cv_func_isnan_in_cmath=no
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 ac_cpp='$CPP $CPPFLAGS'
19287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19292 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19293 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19295 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE_ISNAN_IN_CMATH 1
19303 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19304 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19305 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 ac_cpp='$CXXCPP $CPPFLAGS'
19310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19314 cat >conftest.$ac_ext <<_ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19324 float f; std::isnan(f);
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_compile") 2>conftest.er1
19338 grep -v '^ *+' conftest.er1 >conftest.err
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; } &&
19353 { ac_try='test -s conftest.$ac_objext'
19354 { (case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_try") 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363 ac_cv_func_std_isnan_in_cmath=yes
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_func_std_isnan_in_cmath=no
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373 ac_cpp='$CPP $CPPFLAGS'
19374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19380 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19382 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_STD_ISNAN_IN_CMATH 1
19391 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19392 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19393 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 ac_cpp='$CXXCPP $CPPFLAGS'
19398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_compile") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_func_isinf_in_math_h=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_cv_func_isinf_in_math_h=no
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 ac_cpp='$CPP $CPPFLAGS'
19462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19468 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19470 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ISINF_IN_MATH_H 1
19478 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19479 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19480 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 ac_cpp='$CXXCPP $CPPFLAGS'
19485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest.$ac_objext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_func_isinf_in_cmath=yes
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ac_cv_func_isinf_in_cmath=no
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19555 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19557 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ISINF_IN_CMATH 1
19565 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19566 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19586 float f; std::isinf(f)}
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_func_std_isinf_in_cmath=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_func_std_isinf_in_cmath=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19642 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19644 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_STD_ISINF_IN_CMATH 1
19652 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19653 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19654 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <ieeefp.h>
19673 float f; finite(f);
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19687 grep -v '^ *+' conftest.er1 >conftest.err
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_try") 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_func_finite_in_ieeefp_h=yes
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_cv_func_finite_in_ieeefp_h=no
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722 ac_cpp='$CPP $CPPFLAGS'
19723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19728 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19729 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19731 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE_FINITE_IN_IEEEFP_H 1
19741 if test "$llvm_cv_platform_type" = "Unix" ; then
19744 for ac_header in stdlib.h unistd.h
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754 { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19757 # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h. */
19766 $ac_includes_default
19767 #include <$ac_header>
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19784 { (case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_try") 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_header_compiler=yes
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_compiler=no
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <$ac_header>
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev/null; then
19839 if test -s conftest.err; then
19840 ac_cpp_err=$ac_c_preproc_warn_flag
19841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19848 if test -z "$ac_cpp_err"; then
19849 ac_header_preproc=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_header_preproc=no
19857 rm -f conftest.err conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6; }
19861 # So? What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19868 ac_header_preproc=yes
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19884 ## ------------------------------ ##
19885 ## Report this to bugs@yourdomain ##
19886 ## ------------------------------ ##
19888 ) | sed "s/^/$as_me: WARNING: /" >&2
19891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 eval "$as_ac_Header=\$ac_header_preproc"
19898 ac_res=`eval echo '${'$as_ac_Header'}'`
19899 { echo "$as_me:$LINENO: result: $ac_res" >&5
19900 echo "${ECHO_T}$ac_res" >&6; }
19903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19913 for ac_func in getpagesize
19915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19929 #define $ac_func innocuous_$ac_func
19931 /* System header to define __stub macros and hopefully few prototypes,
19932 which can conflict with char $ac_func (); below.
19933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19934 <limits.h> exists even on freestanding compilers. */
19937 # include <limits.h>
19939 # include <assert.h>
19944 /* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19951 /* The GNU C library defines this for functions which it implements
19952 to always fail with ENOSYS. Some functions are actually named
19953 something starting with __ and the normal name is an alias. */
19954 #if defined __stub_$ac_func || defined __stub___$ac_func
19961 return $ac_func ();
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_link") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest$ac_exeext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 eval "$as_ac_var=yes"
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 eval "$as_ac_var=no"
20008 rm -f core conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
20011 ac_res=`eval echo '${'$as_ac_var'}'`
20012 { echo "$as_me:$LINENO: result: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20014 if test `eval echo '${'$as_ac_var'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20022 { echo "$as_me:$LINENO: checking for working mmap" >&5
20023 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20024 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 if test "$cross_compiling" = yes; then
20028 ac_cv_func_mmap_fixed_mapped=no
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 $ac_includes_default
20037 /* malloc might have been renamed as rpl_malloc. */
20040 /* Thanks to Mike Haertel and Jim Avera for this test.
20041 Here is a matrix of mmap possibilities:
20042 mmap private not fixed
20043 mmap private fixed at somewhere currently unmapped
20044 mmap private fixed at somewhere already mapped
20045 mmap shared not fixed
20046 mmap shared fixed at somewhere currently unmapped
20047 mmap shared fixed at somewhere already mapped
20048 For private mappings, we should verify that changes cannot be read()
20049 back from the file, nor mmap's back from the file at a different
20050 address. (There have been systems where private was not correctly
20051 implemented like the infamous i386 svr4.0, and systems where the
20052 VM page cache was not coherent with the file system buffer cache
20053 like early versions of FreeBSD and possibly contemporary NetBSD.)
20054 For shared mappings, we should conversely verify that changes get
20055 propagated back to all the places they're supposed to be.
20057 Grep wants private fixed already mapped.
20058 The main things grep needs to know about mmap are:
20059 * does it exist and is it safe to write into the mmap'd area
20060 * how to use it (BSD variants) */
20063 #include <sys/mman.h>
20065 #if !STDC_HEADERS && !HAVE_STDLIB_H
20069 /* This mess was copied from the GNU getpagesize.h. */
20070 #if !HAVE_GETPAGESIZE
20071 /* Assume that all systems that can run configure have sys/param.h. */
20072 # if !HAVE_SYS_PARAM_H
20073 # define HAVE_SYS_PARAM_H 1
20076 # ifdef _SC_PAGESIZE
20077 # define getpagesize() sysconf(_SC_PAGESIZE)
20078 # else /* no _SC_PAGESIZE */
20079 # if HAVE_SYS_PARAM_H
20080 # include <sys/param.h>
20081 # ifdef EXEC_PAGESIZE
20082 # define getpagesize() EXEC_PAGESIZE
20083 # else /* no EXEC_PAGESIZE */
20085 # define getpagesize() NBPG * CLSIZE
20088 # endif /* no CLSIZE */
20089 # else /* no NBPG */
20091 # define getpagesize() NBPC
20092 # else /* no NBPC */
20094 # define getpagesize() PAGESIZE
20095 # endif /* PAGESIZE */
20096 # endif /* no NBPC */
20097 # endif /* no NBPG */
20098 # endif /* no EXEC_PAGESIZE */
20099 # else /* no HAVE_SYS_PARAM_H */
20100 # define getpagesize() 8192 /* punt totally */
20101 # endif /* no HAVE_SYS_PARAM_H */
20102 # endif /* no _SC_PAGESIZE */
20104 #endif /* no HAVE_GETPAGESIZE */
20109 char *data, *data2, *data3;
20113 pagesize = getpagesize ();
20115 /* First, make a file with some known garbage in it. */
20116 data = (char *) malloc (pagesize);
20119 for (i = 0; i < pagesize; ++i)
20120 *(data + i) = rand ();
20122 fd = creat ("conftest.mmap", 0600);
20125 if (write (fd, data, pagesize) != pagesize)
20129 /* Next, try to mmap the file at a fixed address which already has
20130 something else allocated at it. If we can, also make sure that
20131 we see the same garbage. */
20132 fd = open ("conftest.mmap", O_RDWR);
20135 data2 = (char *) malloc (2 * pagesize);
20138 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20139 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20140 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20142 for (i = 0; i < pagesize; ++i)
20143 if (*(data + i) != *(data2 + i))
20146 /* Finally, make sure that changes to the mapped area do not
20147 percolate back to the file as seen by read(). (This is a bug on
20148 some variants of i386 svr4.0.) */
20149 for (i = 0; i < pagesize; ++i)
20150 *(data2 + i) = *(data2 + i) + 1;
20151 data3 = (char *) malloc (pagesize);
20154 if (read (fd, data3, pagesize) != pagesize)
20156 for (i = 0; i < pagesize; ++i)
20157 if (*(data + i) != *(data3 + i))
20163 rm -f conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_func_mmap_fixed_mapped=yes
20185 echo "$as_me: program exited with status $ac_status" >&5
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ( exit $ac_status )
20190 ac_cv_func_mmap_fixed_mapped=no
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20198 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_MMAP 1
20206 rm -f conftest.mmap
20208 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20209 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_mmap_file+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 ac_cpp='$CPP $CPPFLAGS'
20215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219 if test "$cross_compiling" = yes; then
20220 ac_cv_func_mmap_file=no
20222 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20230 #include <sys/types.h>
20231 #include <sys/mman.h>
20239 fd = creat ("foo",0777);
20240 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20242 return (fd != (int) MAP_FAILED);
20247 rm -f conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20258 { (case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_try") 2>&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 ac_cv_func_mmap_file=yes
20269 echo "$as_me: program exited with status $ac_status" >&5
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ( exit $ac_status )
20274 ac_cv_func_mmap_file=no
20276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20289 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20290 if test "$ac_cv_func_mmap_file" = yes; then
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_MMAP_FILE
20300 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20301 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20302 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 if test "$llvm_cv_os_type" = "Interix" ; then
20306 ac_cv_need_dev_zero_for_mmap=yes
20308 ac_cv_need_dev_zero_for_mmap=no
20312 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20313 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20314 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define NEED_DEV_ZERO_FOR_MMAP 1
20322 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20324 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20325 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20327 if test "$ac_cv_func_mmap_file" = "no"
20329 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20330 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20334 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20335 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20337 ac_cpp='$CXXCPP $CPPFLAGS'
20338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20342 cat >conftest.$ac_ext <<_ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20349 volatile unsigned long val = 1;
20350 __sync_synchronize();
20351 __sync_val_compare_and_swap(&val, 1, 0);
20352 __sync_add_and_fetch(&val, 1);
20353 __sync_sub_and_fetch(&val, 1);
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 { (case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_try") 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398 { echo "$as_me:$LINENO: result: yes" >&5
20399 echo "${ECHO_T}yes" >&6; }
20401 cat >>confdefs.h <<\_ACEOF
20402 #define LLVM_HAS_ATOMICS 1
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 { echo "$as_me:$LINENO: result: no" >&5
20410 echo "${ECHO_T}no" >&6; }
20412 cat >>confdefs.h <<\_ACEOF
20413 #define LLVM_HAS_ATOMICS 0
20416 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20417 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20424 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20425 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20426 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20427 if test "${llvm_cv_linux_mixed+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 ac_cpp='$CPP $CPPFLAGS'
20432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20443 error: Not x86-64 even if uname says so!
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_compile") 2>conftest.er1
20463 grep -v '^ *+' conftest.er1 >conftest.err
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
20468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20469 { (case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_try") 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest.$ac_objext'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 llvm_cv_linux_mixed=no
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 llvm_cv_linux_mixed=yes
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20498 ac_cpp='$CPP $CPPFLAGS'
20499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20505 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20506 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20508 if test "$llvm_cv_linux_mixed" = "yes"; then
20509 llvm_cv_target_arch="x86"
20515 for ac_func in __dso_handle
20517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define $ac_func innocuous_$ac_func
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char $ac_func (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20539 # include <limits.h>
20541 # include <assert.h>
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined __stub_$ac_func || defined __stub___$ac_func
20563 return $ac_func ();
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_try") 2>&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest$ac_exeext'
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); }; }; then
20602 eval "$as_ac_var=yes"
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 eval "$as_ac_var=no"
20610 rm -f core conftest.err conftest.$ac_objext \
20611 conftest$ac_exeext conftest.$ac_ext
20613 ac_res=`eval echo '${'$as_ac_var'}'`
20614 { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616 if test `eval echo '${'$as_ac_var'}'` = yes; then
20617 cat >>confdefs.h <<_ACEOF
20618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20625 SHLIBEXT=$libltdl_cv_shlibext
20628 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20631 # Translate the various configuration directories and other basic
20632 # information into substitutions that will end up in Makefile.config.in
20633 # that these configured values can be used by the makefiles
20634 if test "${prefix}" = "NONE" ; then
20635 prefix="/usr/local"
20637 eval LLVM_PREFIX="${prefix}";
20638 eval LLVM_BINDIR="${prefix}/bin";
20639 eval LLVM_LIBDIR="${prefix}/lib";
20640 eval LLVM_DATADIR="${prefix}/share/llvm";
20641 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20642 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20643 eval LLVM_INCLUDEDIR="${prefix}/include";
20644 eval LLVM_INFODIR="${prefix}/info";
20645 eval LLVM_MANDIR="${prefix}/man";
20646 LLVM_CONFIGTIME=`date`
20658 # Place the various directores into the config.h file as #defines so that we
20659 # can know about the installation paths within LLVM.
20661 cat >>confdefs.h <<_ACEOF
20662 #define LLVM_PREFIX "$LLVM_PREFIX"
20666 cat >>confdefs.h <<_ACEOF
20667 #define LLVM_BINDIR "$LLVM_BINDIR"
20671 cat >>confdefs.h <<_ACEOF
20672 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20676 cat >>confdefs.h <<_ACEOF
20677 #define LLVM_DATADIR "$LLVM_DATADIR"
20681 cat >>confdefs.h <<_ACEOF
20682 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20686 cat >>confdefs.h <<_ACEOF
20687 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20691 cat >>confdefs.h <<_ACEOF
20692 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20696 cat >>confdefs.h <<_ACEOF
20697 #define LLVM_INFODIR "$LLVM_INFODIR"
20701 cat >>confdefs.h <<_ACEOF
20702 #define LLVM_MANDIR "$LLVM_MANDIR"
20706 cat >>confdefs.h <<_ACEOF
20707 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20711 cat >>confdefs.h <<_ACEOF
20712 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20716 # Determine which bindings to build.
20717 if test "$BINDINGS_TO_BUILD" = auto ; then
20718 BINDINGS_TO_BUILD=""
20719 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20720 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20723 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20726 # This isn't really configurey, but it avoids having to repeat the list in
20731 # Do any work necessary to ensure that bindings have what they need.
20732 binding_prereqs_failed=0
20733 for a_binding in $BINDINGS_TO_BUILD ; do
20734 case "$a_binding" in
20736 if test "x$OCAMLC" = x ; then
20737 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20738 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20739 binding_prereqs_failed=1
20741 if test "x$OCAMLDEP" = x ; then
20742 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20743 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20744 binding_prereqs_failed=1
20746 if test "x$OCAMLOPT" = x ; then
20747 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20748 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20750 if test "x$with_ocaml_libdir" != xauto ; then
20751 OCAML_LIBDIR=$with_ocaml_libdir
20754 ocaml_stdlib="`"$OCAMLC" -where`"
20755 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20757 # ocaml stdlib is beneath our prefix; use stdlib
20758 OCAML_LIBDIR=$ocaml_stdlib
20761 # ocaml stdlib is outside our prefix; use libdir/ocaml
20762 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20769 if test "$binding_prereqs_failed" = 1 ; then
20770 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20771 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20772 { (exit 1); exit 1; }; }
20775 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20776 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20777 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786 oldcxxflags="$CXXFLAGS"
20787 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20788 cat >conftest.$ac_ext <<_ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20803 rm -f conftest.$ac_objext
20804 if { (ac_try="$ac_compile"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_compile") 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20818 { (case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_try") 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); }; } &&
20827 { ac_try='test -s conftest.$ac_objext'
20828 { (case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 llvm_cv_cxx_visibility_inlines_hidden=yes
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 llvm_cv_cxx_visibility_inlines_hidden=no
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 CXXFLAGS="$oldcxxflags"
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20855 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20856 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20857 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20858 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20861 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20866 if test "$llvm_cv_link_use_r" = "yes" ; then
20873 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20874 RDYNAMIC="-Wl,-export-dynamic"
20882 ac_config_files="$ac_config_files Makefile.common"
20884 ac_config_files="$ac_config_files Makefile.llvm.config"
20887 ac_config_commands="$ac_config_commands Makefile"
20890 ac_config_commands="$ac_config_commands lib/Makefile"
20893 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20896 ac_config_commands="$ac_config_commands tools/Makefile"
20899 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20903 cat >confcache <<\_ACEOF
20904 # This file is a shell script that caches the results of configure
20905 # tests run on this system so they can be shared between configure
20906 # scripts and configure runs, see configure's option --config-cache.
20907 # It is not useful on other systems. If it contains results you don't
20908 # want to keep, you may remove or edit it.
20910 # config.status only pays attention to the cache file if you give it
20911 # the --recheck option to rerun configure.
20913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20915 # following values.
20919 # The following way of writing the cache mishandles newlines in values,
20920 # but we know of no workaround that is simple, portable, and efficient.
20921 # So, we kill variables containing newlines.
20922 # Ultrix sh set writes to stderr and can't be redirected directly,
20923 # and sets the high bit in the cache file unless we assign to the vars.
20925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20926 eval ac_val=\$$ac_var
20930 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20931 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20934 _ | IFS | as_nl) ;; #(
20935 *) $as_unset $ac_var ;;
20941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20942 *${as_nl}ac_space=\ *)
20943 # `set' does not quote correctly, so add quotes (double-quote
20944 # substitution turns \\\\ into \\, and sed turns \\ into \).
20947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20950 # `set' quotes correctly as required by POSIX, so do not add quotes.
20951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20965 if test -w "$cache_file"; then
20966 test "x$cache_file" != "x/dev/null" &&
20967 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20968 echo "$as_me: updating cache $cache_file" >&6;}
20969 cat confcache >$cache_file
20971 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20972 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20978 # Let make expand exec_prefix.
20979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20981 # Transform confdefs.h into DEFS.
20982 # Protect against shell expansion while executing Makefile rules.
20983 # Protect against Makefile macro expansion.
20985 # If the first sed substitution is executed (which looks for macros that
20986 # take arguments), then branch to the quote section. Otherwise,
20987 # look for a macro that doesn't take arguments.
20991 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20993 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20997 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21010 DEFS=`sed -n "$ac_script" confdefs.h`
21015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21016 # 1. Remove the extension, and $U if already installed.
21017 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21018 ac_i=`echo "$ac_i" | sed "$ac_script"`
21019 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21020 # will be set to the directory where LIBOBJS objects are built.
21021 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21022 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21024 LIBOBJS=$ac_libobjs
21026 LTLIBOBJS=$ac_ltlibobjs
21029 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21030 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21031 Usually this means the macro was only invoked conditionally." >&5
21032 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21033 Usually this means the macro was only invoked conditionally." >&2;}
21034 { (exit 1); exit 1; }; }
21036 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21037 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&5
21039 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21040 Usually this means the macro was only invoked conditionally." >&2;}
21041 { (exit 1); exit 1; }; }
21044 : ${CONFIG_STATUS=./config.status}
21045 ac_clean_files_save=$ac_clean_files
21046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21049 cat >$CONFIG_STATUS <<_ACEOF
21051 # Generated by $as_me.
21052 # Run this file to recreate the current configuration.
21053 # Compiler output produced by configure, useful for debugging
21054 # configure, is in config.log if it exists.
21057 ac_cs_recheck=false
21059 SHELL=\${CONFIG_SHELL-$SHELL}
21062 cat >>$CONFIG_STATUS <<\_ACEOF
21063 ## --------------------- ##
21064 ## M4sh Initialization. ##
21065 ## --------------------- ##
21067 # Be Bourne compatible
21068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21071 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21072 # is contrary to our usage. Disable this feature.
21073 alias -g '${1+"$@"}'='"$@"'
21074 setopt NO_GLOB_SUBST
21076 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21078 BIN_SH=xpg4; export BIN_SH # for Tru64
21079 DUALCASE=1; export DUALCASE # for MKS sh
21083 # Avoid depending upon Character Ranges.
21084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087 as_cr_digits='0123456789'
21088 as_cr_alnum=$as_cr_Letters$as_cr_digits
21090 # The user is always right.
21091 if test "${PATH_SEPARATOR+set}" != set; then
21092 echo "#! /bin/sh" >conf$$.sh
21093 echo "exit 0" >>conf$$.sh
21095 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21103 # Support unset when possible.
21104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21112 # We need space, tab and new line, in precisely that order. Quoting is
21113 # there to prevent editors from complaining about space-tab.
21114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21115 # splitting by setting IFS to empty value.)
21120 # Find who we are. Look in the path if we contain no directory separator.
21122 *[\\/]* ) as_myself=$0 ;;
21123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $PATH
21127 test -z "$as_dir" && as_dir=.
21128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21134 # We did not find ourselves, most probably we were run as `sh COMMAND'
21135 # in which case we are not to be found in the path.
21136 if test "x$as_myself" = x; then
21139 if test ! -f "$as_myself"; then
21140 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21141 { (exit 1); exit 1; }
21144 # Work around bugs in pre-3.0 UWIN ksh.
21145 for as_var in ENV MAIL MAILPATH
21146 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21154 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21155 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21156 LC_TELEPHONE LC_TIME
21158 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21159 eval $as_var=C; export $as_var
21161 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21165 # Required to use basename.
21166 if expr a : '\(a\)' >/dev/null 2>&1 &&
21167 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21174 as_basename=basename
21180 # Name of the executable.
21181 as_me=`$as_basename -- "$0" ||
21182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21183 X"$0" : 'X\(//\)$' \| \
21184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21186 sed '/^.*\/\([^/][^/]*\)\/*$/{
21205 as_lineno_1=$LINENO
21206 as_lineno_2=$LINENO
21207 test "x$as_lineno_1" != "x$as_lineno_2" &&
21208 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21210 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21211 # uniformly replaced by the line number. The first 'sed' inserts a
21212 # line-number line after each line using $LINENO; the second 'sed'
21213 # does the real work. The second script uses 'N' to pair each
21214 # line-number line with the line containing $LINENO, and appends
21215 # trailing '-' during substitution so that $LINENO is not a special
21216 # case at line end.
21217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218 # scripts with optimization help from Paolo Bonzini. Blame Lee
21219 # E. McMahon (1931-1989) for sed's syntax. :-)
21231 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21234 ' >$as_me.lineno &&
21235 chmod +x "$as_me.lineno" ||
21236 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21237 { (exit 1); exit 1; }; }
21239 # Don't try to exec as it changes $[0], causing all sort of problems
21240 # (the dirname of $[0] is not the place where we might find the
21241 # original and so on. Autoconf is especially sensitive to this).
21242 . "./$as_me.lineno"
21243 # Exit status is that of the last command.
21248 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21254 ECHO_C= ECHO_N= ECHO_T=
21255 case `echo -n x` in
21257 case `echo 'x\c'` in
21258 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21265 if expr a : '\(a\)' >/dev/null 2>&1 &&
21266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21272 rm -f conf$$ conf$$.exe conf$$.file
21273 if test -d conf$$.dir; then
21274 rm -f conf$$.dir/conf$$.file
21280 if ln -s conf$$.file conf$$ 2>/dev/null; then
21282 # ... but there are two gotchas:
21283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21285 # In both cases, we have to default to `cp -p'.
21286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21288 elif ln conf$$.file conf$$ 2>/dev/null; then
21293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21294 rmdir conf$$.dir 2>/dev/null
21296 if mkdir -p . 2>/dev/null; then
21299 test -d ./-p && rmdir ./-p
21303 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21304 # systems may use methods other than mode bits to determine executability.
21305 cat >conf$$.file <<_ASEOF
21309 chmod +x conf$$.file
21310 if test -x conf$$.file >/dev/null 2>&1; then
21311 as_executable_p="test -x"
21317 # Sed expression to map a string onto a valid CPP name.
21318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21320 # Sed expression to map a string onto a valid variable name.
21321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21326 # Save the log message, to keep $[0] and so on meaningful, and to
21327 # report actual input values of CONFIG_FILES etc. instead of their
21328 # values after options handling.
21330 This file was extended by [SAMPLE] $as_me [x.xx], which was
21331 generated by GNU Autoconf 2.60. Invocation command line was
21333 CONFIG_FILES = $CONFIG_FILES
21334 CONFIG_HEADERS = $CONFIG_HEADERS
21335 CONFIG_LINKS = $CONFIG_LINKS
21336 CONFIG_COMMANDS = $CONFIG_COMMANDS
21339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21344 cat >>$CONFIG_STATUS <<_ACEOF
21345 # Files that config.status was made for.
21346 config_files="$ac_config_files"
21347 config_commands="$ac_config_commands"
21351 cat >>$CONFIG_STATUS <<\_ACEOF
21353 \`$as_me' instantiates files from templates according to the
21354 current configuration.
21356 Usage: $0 [OPTIONS] [FILE]...
21358 -h, --help print this help, then exit
21359 -V, --version print version number, then exit
21360 -q, --quiet do not print progress messages
21361 -d, --debug don't remove temporary files
21362 --recheck update $as_me by reconfiguring in the same conditions
21363 --file=FILE[:TEMPLATE]
21364 instantiate the configuration file FILE
21366 Configuration files:
21369 Configuration commands:
21372 Report bugs to <bug-autoconf@gnu.org>."
21375 cat >>$CONFIG_STATUS <<_ACEOF
21377 [SAMPLE] config.status [x.xx]
21378 configured by $0, generated by GNU Autoconf 2.60,
21379 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21381 Copyright (C) 2006 Free Software Foundation, Inc.
21382 This config.status script is free software; the Free Software Foundation
21383 gives unlimited permission to copy, distribute and modify it."
21390 cat >>$CONFIG_STATUS <<\_ACEOF
21391 # If no file are specified by the user, then we need to provide default
21392 # value. By we need to know if files were specified by the user.
21398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21410 # Handling of the options.
21411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21414 echo "$ac_cs_version"; exit ;;
21415 --debug | --debu | --deb | --de | --d | -d )
21417 --file | --fil | --fi | --f )
21419 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21420 ac_need_defaults=false;;
21421 --he | --h | --help | --hel | -h )
21422 echo "$ac_cs_usage"; exit ;;
21423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21427 # This is an error.
21428 -*) { echo "$as_me: error: unrecognized option: $1
21429 Try \`$0 --help' for more information." >&2
21430 { (exit 1); exit 1; }; } ;;
21432 *) ac_config_targets="$ac_config_targets $1"
21433 ac_need_defaults=false ;;
21439 ac_configure_extra_args=
21441 if $ac_cs_silent; then
21443 ac_configure_extra_args="$ac_configure_extra_args --silent"
21447 cat >>$CONFIG_STATUS <<_ACEOF
21448 if \$ac_cs_recheck; then
21449 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21450 CONFIG_SHELL=$SHELL
21451 export CONFIG_SHELL
21452 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21461 ## Running $as_me. ##
21467 cat >>$CONFIG_STATUS <<_ACEOF
21471 llvm_src="${LLVM_SRC}"
21475 cat >>$CONFIG_STATUS <<\_ACEOF
21477 # Handling of arguments.
21478 for ac_config_target in $ac_config_targets
21480 case $ac_config_target in
21481 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21482 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21483 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21484 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21485 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21486 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21487 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21488 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21492 { (exit 1); exit 1; }; };;
21497 # If the user did not use the arguments to specify the items to instantiate,
21498 # then the envvar interface is used. Set only those that are not.
21499 # We use the long form for the default assignment because of an extremely
21500 # bizarre bug on SunOS 4.1.3.
21501 if $ac_need_defaults; then
21502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21506 # Have a temporary directory for convenience. Make it in the build tree
21507 # simply because there is no reason against having it here, and in addition,
21508 # creating and moving files from /tmp can sometimes cause problems.
21509 # Hook for its removal unless debugging.
21510 # Note that there is a small window in which the directory will not be cleaned:
21511 # after its creation but before its name has been assigned to `$tmp'.
21515 trap 'exit_status=$?
21516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21518 trap '{ (exit 1); exit 1; }' 1 2 13 15
21520 # Create a (secure) tmp directory for tmp files.
21523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21524 test -n "$tmp" && test -d "$tmp"
21527 tmp=./conf$$-$RANDOM
21528 (umask 077 && mkdir "$tmp")
21531 echo "$me: cannot create a temporary directory in ." >&2
21532 { (exit 1); exit 1; }
21536 # Set up the sed scripts for CONFIG_FILES section.
21539 # No need to generate the scripts if there are no CONFIG_FILES.
21540 # This happens for instance when ./config.status config.h
21541 if test -n "$CONFIG_FILES"; then
21548 for ac_last_try in false false false false false :; do
21549 cat >conf$$subs.sed <<_ACEOF
21550 SHELL!$SHELL$ac_delim
21551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21557 exec_prefix!$exec_prefix$ac_delim
21558 prefix!$prefix$ac_delim
21559 program_transform_name!$program_transform_name$ac_delim
21560 bindir!$bindir$ac_delim
21561 sbindir!$sbindir$ac_delim
21562 libexecdir!$libexecdir$ac_delim
21563 datarootdir!$datarootdir$ac_delim
21564 datadir!$datadir$ac_delim
21565 sysconfdir!$sysconfdir$ac_delim
21566 sharedstatedir!$sharedstatedir$ac_delim
21567 localstatedir!$localstatedir$ac_delim
21568 includedir!$includedir$ac_delim
21569 oldincludedir!$oldincludedir$ac_delim
21570 docdir!$docdir$ac_delim
21571 infodir!$infodir$ac_delim
21572 htmldir!$htmldir$ac_delim
21573 dvidir!$dvidir$ac_delim
21574 pdfdir!$pdfdir$ac_delim
21575 psdir!$psdir$ac_delim
21576 libdir!$libdir$ac_delim
21577 localedir!$localedir$ac_delim
21578 mandir!$mandir$ac_delim
21579 DEFS!$DEFS$ac_delim
21580 ECHO_C!$ECHO_C$ac_delim
21581 ECHO_N!$ECHO_N$ac_delim
21582 ECHO_T!$ECHO_T$ac_delim
21583 LIBS!$LIBS$ac_delim
21584 build_alias!$build_alias$ac_delim
21585 host_alias!$host_alias$ac_delim
21586 target_alias!$target_alias$ac_delim
21587 LLVM_SRC!$LLVM_SRC$ac_delim
21588 LLVM_OBJ!$LLVM_OBJ$ac_delim
21589 LLVM_VERSION!$LLVM_VERSION$ac_delim
21591 CFLAGS!$CFLAGS$ac_delim
21592 LDFLAGS!$LDFLAGS$ac_delim
21593 CPPFLAGS!$CPPFLAGS$ac_delim
21594 ac_ct_CC!$ac_ct_CC$ac_delim
21595 EXEEXT!$EXEEXT$ac_delim
21596 OBJEXT!$OBJEXT$ac_delim
21598 CXXFLAGS!$CXXFLAGS$ac_delim
21599 ac_ct_CXX!$ac_ct_CXX$ac_delim
21601 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21602 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21603 subdirs!$subdirs$ac_delim
21604 build!$build$ac_delim
21605 build_cpu!$build_cpu$ac_delim
21606 build_vendor!$build_vendor$ac_delim
21607 build_os!$build_os$ac_delim
21608 host!$host$ac_delim
21609 host_cpu!$host_cpu$ac_delim
21610 host_vendor!$host_vendor$ac_delim
21611 host_os!$host_os$ac_delim
21612 target!$target$ac_delim
21613 target_cpu!$target_cpu$ac_delim
21614 target_vendor!$target_vendor$ac_delim
21615 target_os!$target_os$ac_delim
21617 HOST_OS!$HOST_OS$ac_delim
21618 TARGET_OS!$TARGET_OS$ac_delim
21619 LINKALL!$LINKALL$ac_delim
21620 NOLINKALL!$NOLINKALL$ac_delim
21621 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21622 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21623 ARCH!$ARCH$ac_delim
21624 ENDIAN!$ENDIAN$ac_delim
21625 GREP!$GREP$ac_delim
21626 EGREP!$EGREP$ac_delim
21627 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21628 BUILD_CC!$BUILD_CC$ac_delim
21629 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21630 BUILD_CXX!$BUILD_CXX$ac_delim
21631 CVSBUILD!$CVSBUILD$ac_delim
21632 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21633 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21634 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21635 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21636 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21637 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21638 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21640 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21641 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21642 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21643 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21644 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21645 ENABLE_PIC!$ENABLE_PIC$ac_delim
21646 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21649 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21651 elif $ac_last_try; then
21652 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21654 { (exit 1); exit 1; }; }
21656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21660 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21661 if test -n "$ac_eof"; then
21662 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21663 ac_eof=`expr $ac_eof + 1`
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21672 s/^/s,@/; s/!/@,|#_!!_#|/
21675 s/'"$ac_delim"'$/,g/; t
21677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21678 ' >>$CONFIG_STATUS <conf$$subs.sed
21679 rm -f conf$$subs.sed
21680 cat >>$CONFIG_STATUS <<_ACEOF
21686 for ac_last_try in false false false false false :; do
21687 cat >conf$$subs.sed <<_ACEOF
21688 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21689 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21690 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21691 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21692 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21693 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21694 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21695 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21696 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21697 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21698 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21699 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21701 ifGNUmake!$ifGNUmake$ac_delim
21702 LN_S!$LN_S$ac_delim
21705 DATE!$DATE$ac_delim
21706 FIND!$FIND$ac_delim
21707 MKDIR!$MKDIR$ac_delim
21709 RANLIB!$RANLIB$ac_delim
21714 BINPWD!$BINPWD$ac_delim
21715 GRAPHVIZ!$GRAPHVIZ$ac_delim
21718 NEATO!$NEATO$ac_delim
21719 TWOPI!$TWOPI$ac_delim
21720 CIRCO!$CIRCO$ac_delim
21722 DOTTY!$DOTTY$ac_delim
21723 XDOT_PY!$XDOT_PY$ac_delim
21724 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21725 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21726 INSTALL_DATA!$INSTALL_DATA$ac_delim
21727 BZIP2!$BZIP2$ac_delim
21729 DOXYGEN!$DOXYGEN$ac_delim
21730 GROFF!$GROFF$ac_delim
21731 GZIPBIN!$GZIPBIN$ac_delim
21732 POD2HTML!$POD2HTML$ac_delim
21733 POD2MAN!$POD2MAN$ac_delim
21734 PDFROFF!$PDFROFF$ac_delim
21735 RUNTEST!$RUNTEST$ac_delim
21736 TCLSH!$TCLSH$ac_delim
21738 OCAMLC!$OCAMLC$ac_delim
21739 OCAMLOPT!$OCAMLOPT$ac_delim
21740 OCAMLDEP!$OCAMLDEP$ac_delim
21741 OCAMLDOC!$OCAMLDOC$ac_delim
21743 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21744 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21745 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21746 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21747 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21748 LIBADD_DL!$LIBADD_DL$ac_delim
21749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21751 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21752 USE_UDIS86!$USE_UDIS86$ac_delim
21753 USE_OPROFILE!$USE_OPROFILE$ac_delim
21754 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21755 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21756 MMAP_FILE!$MMAP_FILE$ac_delim
21757 SHLIBEXT!$SHLIBEXT$ac_delim
21758 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21759 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21760 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21761 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21762 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21763 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21764 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21765 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21766 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21767 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21768 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21769 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21770 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21771 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21772 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21773 RPATH!$RPATH$ac_delim
21774 RDYNAMIC!$RDYNAMIC$ac_delim
21775 LIBOBJS!$LIBOBJS$ac_delim
21776 LTLIBOBJS!$LTLIBOBJS$ac_delim
21779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21781 elif $ac_last_try; then
21782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21784 { (exit 1); exit 1; }; }
21786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21791 if test -n "$ac_eof"; then
21792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21793 ac_eof=`expr $ac_eof + 1`
21796 cat >>$CONFIG_STATUS <<_ACEOF
21797 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21802 s/^/s,@/; s/!/@,|#_!!_#|/
21805 s/'"$ac_delim"'$/,g/; t
21807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21808 ' >>$CONFIG_STATUS <conf$$subs.sed
21809 rm -f conf$$subs.sed
21810 cat >>$CONFIG_STATUS <<_ACEOF
21817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21819 # trailing colons and then remove the whole line if VPATH becomes empty
21820 # (actually we leave an empty line to preserve line numbers).
21821 if test "x$srcdir" = x.; then
21822 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21823 s/:*\$(srcdir):*/:/
21824 s/:*\${srcdir}:*/:/
21826 s/^\([^=]*=[ ]*\):*/\1/
21832 cat >>$CONFIG_STATUS <<\_ACEOF
21833 fi # test -n "$CONFIG_FILES"
21836 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21839 :[FHLC]) ac_mode=$ac_tag; continue;;
21841 case $ac_mode$ac_tag in
21843 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21844 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21845 { (exit 1); exit 1; }; };;
21846 :[FH]-) ac_tag=-:-;;
21847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21864 -) ac_f="$tmp/stdin";;
21865 *) # Look for the file first in the build tree, then in the source tree
21866 # (if the path is not absolute). The absolute path cannot be DOS-style,
21867 # because $ac_f cannot contain `:'.
21871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21873 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21874 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21875 { (exit 1); exit 1; }; };;
21877 ac_file_inputs="$ac_file_inputs $ac_f"
21880 # Let's still pretend it is `configure' which instantiates (i.e., don't
21881 # use $as_me), people would be surprised to read:
21882 # /* config.h. Generated by config.status. */
21883 configure_input="Generated from "`IFS=:
21884 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21885 if test x"$ac_file" != x-; then
21886 configure_input="$ac_file. $configure_input"
21887 { echo "$as_me:$LINENO: creating $ac_file" >&5
21888 echo "$as_me: creating $ac_file" >&6;}
21892 *:-:* | *:-) cat >"$tmp/stdin";;
21897 ac_dir=`$as_dirname -- "$ac_file" ||
21898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$ac_file" : 'X\(//\)[^/]' \| \
21900 X"$ac_file" : 'X\(//\)$' \| \
21901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21907 /^X\(\/\/\)[^/].*/{
21922 -*) as_dir=./$as_dir;;
21924 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21928 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21929 *) as_qdir=$as_dir;;
21931 as_dirs="'$as_qdir' $as_dirs"
21932 as_dir=`$as_dirname -- "$as_dir" ||
21933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934 X"$as_dir" : 'X\(//\)[^/]' \| \
21935 X"$as_dir" : 'X\(//\)$' \| \
21936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942 /^X\(\/\/\)[^/].*/{
21955 test -d "$as_dir" && break
21957 test -z "$as_dirs" || eval "mkdir $as_dirs"
21958 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21960 { (exit 1); exit 1; }; }; }
21964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21967 # A ".." for each directory in $ac_dir_suffix.
21968 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21969 case $ac_top_builddir_sub in
21970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21974 ac_abs_top_builddir=$ac_pwd
21975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21976 # for backward compatibility:
21977 ac_top_builddir=$ac_top_build_prefix
21980 .) # We are building in place.
21982 ac_top_srcdir=$ac_top_builddir_sub
21983 ac_abs_top_srcdir=$ac_pwd ;;
21984 [\\/]* | ?:[\\/]* ) # Absolute name.
21985 ac_srcdir=$srcdir$ac_dir_suffix;
21986 ac_top_srcdir=$srcdir
21987 ac_abs_top_srcdir=$srcdir ;;
21988 *) # Relative name.
21989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21990 ac_top_srcdir=$ac_top_build_prefix$srcdir
21991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22008 cat >>$CONFIG_STATUS <<\_ACEOF
22009 # If the template does not know about datarootdir, expand it.
22010 # FIXME: This hack should be removed a few years after 2.60.
22011 ac_datarootdir_hack=; ac_datarootdir_seen=
22013 case `sed -n '/datarootdir/ {
22022 ' $ac_file_inputs` in
22023 *datarootdir*) ac_datarootdir_seen=yes;;
22024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22025 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22026 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029 ac_datarootdir_hack='
22030 s&@datadir@&$datadir&g
22031 s&@docdir@&$docdir&g
22032 s&@infodir@&$infodir&g
22033 s&@localedir@&$localedir&g
22034 s&@mandir@&$mandir&g
22035 s&\\\${datarootdir}&$datarootdir&g' ;;
22039 # Neutralize VPATH when `$srcdir' = `.'.
22040 # Shell code in configure.ac might set extrasub.
22041 # FIXME: do we really want to maintain this feature?
22042 cat >>$CONFIG_STATUS <<_ACEOF
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22049 s&@configure_input@&$configure_input&;t t
22050 s&@top_builddir@&$ac_top_builddir_sub&;t t
22051 s&@srcdir@&$ac_srcdir&;t t
22052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22053 s&@top_srcdir@&$ac_top_srcdir&;t t
22054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22055 s&@builddir@&$ac_builddir&;t t
22056 s&@abs_builddir@&$ac_abs_builddir&;t t
22057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22058 s&@INSTALL@&$ac_INSTALL&;t t
22059 $ac_datarootdir_hack
22060 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22062 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22065 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22066 which seems to be undefined. Please make sure it is defined." >&5
22067 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22068 which seems to be undefined. Please make sure it is defined." >&2;}
22072 -) cat "$tmp/out"; rm -f "$tmp/out";;
22073 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22078 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22079 echo "$as_me: executing $ac_file commands" >&6;}
22084 case $ac_file$ac_mode in
22085 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22086 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22087 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22088 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22089 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22090 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22091 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22092 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22093 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22094 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22100 { (exit 0); exit 0; }
22102 chmod +x $CONFIG_STATUS
22103 ac_clean_files=$ac_clean_files_save
22106 # configure is writing to config.log, and then calls config.status.
22107 # config.status does its own redirection, appending to config.log.
22108 # Unfortunately, on DOS this fails, as config.log is still kept open
22109 # by configure, so config.status won't be able to write to it; its
22110 # output is simply discarded. So we exec the FD to /dev/null,
22111 # effectively closing config.log, so it can be properly (re)opened and
22112 # appended to by config.status. When coming back to configure, we
22113 # need to make the FD available again.
22114 if test "$no_create" != yes; then
22116 ac_config_status_args=
22117 test "$silent" = yes &&
22118 ac_config_status_args="$ac_config_status_args --quiet"
22120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22123 # would make configure fail if this is the last instruction.
22124 $ac_cs_success || { (exit 1); exit 1; }
22128 # CONFIG_SUBDIRS section.
22130 if test "$no_recursion" != yes; then
22132 # Remove --cache-file and --srcdir arguments so they do not pile up.
22133 ac_sub_configure_args=
22135 eval "set x $ac_configure_args"
22139 if test -n "$ac_prev"; then
22144 -cache-file | --cache-file | --cache-fil | --cache-fi \
22145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22146 ac_prev=cache_file ;;
22147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22151 --config-cache | -C)
22153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22163 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22165 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22169 # Always prepend --prefix to ensure using the same prefix
22170 # in subdir configurations.
22171 ac_arg="--prefix=$prefix"
22173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22175 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22178 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22180 # Do not complain, so a configure script can configure whichever
22181 # parts of a large source tree are present.
22182 test -d "$srcdir/$ac_dir" || continue
22184 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22185 echo "$as_me:$LINENO: $ac_msg" >&5
22189 -*) as_dir=./$as_dir;;
22191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22195 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22196 *) as_qdir=$as_dir;;
22198 as_dirs="'$as_qdir' $as_dirs"
22199 as_dir=`$as_dirname -- "$as_dir" ||
22200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$as_dir" : 'X\(//\)[^/]' \| \
22202 X"$as_dir" : 'X\(//\)$' \| \
22203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22209 /^X\(\/\/\)[^/].*/{
22222 test -d "$as_dir" && break
22224 test -z "$as_dirs" || eval "mkdir $as_dirs"
22225 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22227 { (exit 1); exit 1; }; }; }
22231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22234 # A ".." for each directory in $ac_dir_suffix.
22235 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22236 case $ac_top_builddir_sub in
22237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22241 ac_abs_top_builddir=$ac_pwd
22242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22243 # for backward compatibility:
22244 ac_top_builddir=$ac_top_build_prefix
22247 .) # We are building in place.
22249 ac_top_srcdir=$ac_top_builddir_sub
22250 ac_abs_top_srcdir=$ac_pwd ;;
22251 [\\/]* | ?:[\\/]* ) # Absolute name.
22252 ac_srcdir=$srcdir$ac_dir_suffix;
22253 ac_top_srcdir=$srcdir
22254 ac_abs_top_srcdir=$srcdir ;;
22255 *) # Relative name.
22256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22257 ac_top_srcdir=$ac_top_build_prefix$srcdir
22258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22265 # Check for guested configure; otherwise get Cygnus style configure.
22266 if test -f "$ac_srcdir/configure.gnu"; then
22267 ac_sub_configure=$ac_srcdir/configure.gnu
22268 elif test -f "$ac_srcdir/configure"; then
22269 ac_sub_configure=$ac_srcdir/configure
22270 elif test -f "$ac_srcdir/configure.in"; then
22271 # This should be Cygnus configure.
22272 ac_sub_configure=$ac_aux_dir/configure
22274 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22275 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22279 # The recursion is here.
22280 if test -n "$ac_sub_configure"; then
22281 # Make the cache file name correct relative to the subdirectory.
22282 case $cache_file in
22283 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22284 *) # Relative name.
22285 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22288 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22289 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22290 # The eval makes quoting arguments work.
22291 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22292 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22293 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22294 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22295 { (exit 1); exit 1; }; }