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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 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-libcpp Use libc++ if available (default is NO)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1396 --enable-shared Build a shared library and link tools against it
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, nvptx, cbe, and cpp
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" ;;
3650 *-*-freebsd* | *-*-kfreebsd-gnu)
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,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="GNU"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,-z,allextract"
3692 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3693 llvm_cv_os_type="SunOS"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-z,allextract"
3697 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3698 llvm_cv_os_type="AuroraUX"
3699 llvm_cv_platform_type="Unix" ;;
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="Win32"
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="MingW"
3709 llvm_cv_platform_type="Win32" ;;
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="Haiku"
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="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Freestanding"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option=""
3727 llvm_cv_no_link_all_option=""
3728 llvm_cv_os_type="Unknown"
3729 llvm_cv_platform_type="Unknown" ;;
3732 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3733 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3735 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3736 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3737 if test "${llvm_cv_target_os_type+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 llvm_cv_target_os_type="AIX" ;;
3744 llvm_cv_target_os_type="IRIX" ;;
3746 llvm_cv_target_os_type="Cygwin" ;;
3748 llvm_cv_target_os_type="Darwin" ;;
3750 llvm_cv_target_os_type="Minix" ;;
3751 *-*-freebsd* | *-*-kfreebsd-gnu)
3752 llvm_cv_target_os_type="FreeBSD" ;;
3754 llvm_cv_target_os_type="OpenBSD" ;;
3756 llvm_cv_target_os_type="NetBSD" ;;
3758 llvm_cv_target_os_type="DragonFly" ;;
3760 llvm_cv_target_os_type="HP-UX" ;;
3762 llvm_cv_target_os_type="Interix" ;;
3764 llvm_cv_target_os_type="Linux" ;;
3766 llvm_cv_target_os_type="GNU" ;;
3768 llvm_cv_target_os_type="SunOS" ;;
3770 llvm_cv_target_os_type="AuroraUX" ;;
3772 llvm_cv_target_os_type="Win32" ;;
3774 llvm_cv_target_os_type="MingW" ;;
3776 llvm_cv_target_os_type="Haiku" ;;
3778 llvm_cv_target_os_type="RTEMS" ;;
3780 llvm_cv_target_os_type="NativeClient" ;;
3782 llvm_cv_target_os_type="Freestanding" ;;
3784 llvm_cv_target_os_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3798 HOST_OS=$llvm_cv_os_type
3800 TARGET_OS=$llvm_cv_target_os_type
3803 LINKALL=$llvm_cv_link_all_option
3805 NOLINKALL=$llvm_cv_no_link_all_option
3808 case $llvm_cv_platform_type in
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 arm*-*) llvm_cv_target_arch="ARM" ;;
3844 mips-*) llvm_cv_target_arch="Mips" ;;
3845 xcore-*) llvm_cv_target_arch="XCore" ;;
3846 msp430-*) llvm_cv_target_arch="MSP430" ;;
3847 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3848 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3849 ptx-*) llvm_cv_target_arch="PTX" ;;
3850 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3851 *) llvm_cv_target_arch="Unknown" ;;
3854 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3857 if test "$llvm_cv_target_arch" = "Unknown" ; then
3858 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3862 # Determine the LLVM native architecture for the target
3863 case "$llvm_cv_target_arch" in
3864 x86) LLVM_NATIVE_ARCH="X86" ;;
3865 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3866 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3869 ARCH=$llvm_cv_target_arch
3874 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 # Extract the first word of "grep ggrep" to use in msg output
3880 if test -z "$GREP"; then
3881 set dummy grep ggrep; ac_prog_name=$2
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 ac_count=`expr $ac_count + 1`
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 $ac_path_GREP_found && break 3
3935 GREP="$ac_cv_path_GREP"
3936 if test -z "$GREP"; then
3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939 { (exit 1); exit 1; }; }
3943 ac_cv_path_GREP=$GREP
3948 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950 GREP="$ac_cv_path_GREP"
3953 { echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959 then ac_cv_path_EGREP="$GREP -E"
3961 # Extract the first word of "egrep" to use in msg output
3962 if test -z "$EGREP"; then
3963 set dummy egrep; ac_prog_name=$2
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 $ac_path_EGREP_found && break 3
4017 EGREP="$ac_cv_path_EGREP"
4018 if test -z "$EGREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4025 ac_cv_path_EGREP=$EGREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038 if test "${ac_cv_header_stdc+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_try") 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_header_stdc=yes
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 ac_cv_header_stdc=no
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 if test $ac_cv_header_stdc = yes; then
4105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then
4119 ac_cv_header_stdc=no
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "free" >/dev/null 2>&1; then
4140 ac_cv_header_stdc=no
4146 if test $ac_cv_header_stdc = yes; then
4147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148 if test "$cross_compiling" = yes; then
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163 # define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4182 rm -f conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4254 #include <$ac_header>
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4265 grep -v '^ *+' conftest.er1 >conftest.err
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 eval "$as_ac_Header=no"
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_res=`eval echo '${'$as_ac_Header'}'`
4301 { echo "$as_me:$LINENO: result: $ac_res" >&5
4302 echo "${ECHO_T}$ac_res" >&6; }
4303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304 cat >>confdefs.h <<_ACEOF
4305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4313 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315 if test "${ac_cv_c_bigendian+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 # See if sys/param.h defines the BYTE_ORDER macro.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4386 #if BYTE_ORDER != BIG_ENDIAN
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4403 grep -v '^ *+' conftest.er1 >conftest.err
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_c_bigendian=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_cv_c_bigendian=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460 _ascii (); _ebcdic ();
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4474 grep -v '^ *+' conftest.er1 >conftest.err
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_try") 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500 ac_cv_c_bigendian=yes
4502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503 if test "$ac_cv_c_bigendian" = unknown; then
4504 ac_cv_c_bigendian=no
4506 # finding both strings is unlikely to happen, but who knows?
4507 ac_cv_c_bigendian=unknown
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 $ac_includes_default
4530 /* Are we little or big endian? From Harbison&Steele. */
4534 char c[sizeof (long int)];
4537 return u.c[sizeof (long int) - 1] == 1;
4543 rm -f conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_c_bigendian=no
4565 echo "$as_me: program exited with status $ac_status" >&5
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4570 ac_cv_c_bigendian=yes
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582 case $ac_cv_c_bigendian in
4590 { { echo "$as_me:$LINENO: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592 echo "$as_me: error: unknown endianness
4593 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4598 if test "$cross_compiling" = yes; then
4599 LLVM_CROSS_COMPILING=1
4602 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604 if test "${ac_cv_build_exeext+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608 ac_cv_build_exeext=.exe
4610 ac_build_prefix=${build_alias}-
4612 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_build_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$BUILD_CC"; then
4620 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 BUILD_CC=$ac_cv_prog_BUILD_CC
4640 if test -n "$BUILD_CC"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642 echo "${ECHO_T}$BUILD_CC" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 if test -z "$BUILD_CC"; then
4650 # Extract the first word of "gcc", so it can be a program name with args.
4651 set dummy gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4710 ac_cv_prog_BUILD_CC="cc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_BUILD_CC
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set BUILD_CC to just the basename; use the full file name.
4727 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4744 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4749 echo 'int main () { return 0; }' > conftest.$ac_ext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752 (eval $ac_build_link) 2>&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 for file in conftest.*; do
4758 *.c | *.o | *.obj | *.dSYM) ;;
4759 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4763 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765 { (exit 1); exit 1; }; }
4768 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4773 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776 ac_build_exeext=$BUILD_EXEEXT
4778 ac_build_prefix=${build_alias}-
4779 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780 set dummy ${ac_build_prefix}g++; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test -n "$BUILD_CXX"; then
4787 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807 if test -n "$BUILD_CXX"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809 echo "${ECHO_T}$BUILD_CXX" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 if test -z "$BUILD_CXX"; then
4817 # Extract the first word of "g++", so it can be a program name with args.
4818 set dummy g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "c++", so it can be a program name with args.
4856 set dummy c++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874 ac_prog_rejected=yes
4877 ac_cv_prog_BUILD_CXX="c++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 if test $ac_prog_rejected = yes; then
4886 # We found a bogon in the path, so make sure we never use it.
4887 set dummy $ac_cv_prog_BUILD_CXX
4889 if test $# != 0; then
4890 # We chose a different compiler from the bogus one.
4891 # However, it has the same basename, so the bogon will be chosen
4892 # first if we set BUILD_CXX to just the basename; use the full file name.
4894 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4904 { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4912 LLVM_CROSS_COMPILING=0
4916 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4927 # Check whether --enable-libcpp was given.
4928 if test "${enable_libcpp+set}" = set; then
4929 enableval=$enable_libcpp;
4934 case "$enableval" in
4935 yes) ENABLE_LIBCPP=1
4939 default) ENABLE_LIBCPP=0
4941 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4943 { (exit 1); exit 1; }; } ;;
4946 # Check whether --enable-optimized was given.
4947 if test "${enable_optimized+set}" = set; then
4948 enableval=$enable_optimized;
4953 if test ${enableval} = "no" ; then
4957 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4961 # Check whether --enable-profiling was given.
4962 if test "${enable_profiling+set}" = set; then
4963 enableval=$enable_profiling;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_PROFILING=ENABLE_PROFILING=1
4976 # Check whether --enable-assertions was given.
4977 if test "${enable_assertions+set}" = set; then
4978 enableval=$enable_assertions;
4983 if test ${enableval} = "yes" ; then
4987 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4991 # Check whether --enable-expensive-checks was given.
4992 if test "${enable_expensive_checks+set}" = set; then
4993 enableval=$enable_expensive_checks;
4998 if test ${enableval} = "yes" ; then
4999 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5001 EXPENSIVE_CHECKS=yes
5004 ENABLE_EXPENSIVE_CHECKS=
5010 # Check whether --enable-debug-runtime was given.
5011 if test "${enable_debug_runtime+set}" = set; then
5012 enableval=$enable_debug_runtime;
5017 if test ${enableval} = "no" ; then
5021 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5025 # Check whether --enable-debug-symbols was given.
5026 if test "${enable_debug_symbols+set}" = set; then
5027 enableval=$enable_debug_symbols;
5032 if test ${enableval} = "no" ; then
5036 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042 enableval=$enable_jit;
5047 if test ${enableval} = "no"
5052 case "$llvm_cv_target_arch" in
5053 x86) TARGET_HAS_JIT=1
5055 Sparc) TARGET_HAS_JIT=0
5057 PowerPC) TARGET_HAS_JIT=1
5059 x86_64) TARGET_HAS_JIT=1
5061 ARM) TARGET_HAS_JIT=1
5063 Mips) TARGET_HAS_JIT=1
5065 XCore) TARGET_HAS_JIT=0
5067 MSP430) TARGET_HAS_JIT=0
5069 Hexagon) TARGET_HAS_JIT=0
5071 MBlaze) TARGET_HAS_JIT=0
5073 PTX) TARGET_HAS_JIT=0
5075 NVPTX) TARGET_HAS_JIT=0
5082 # Check whether --enable-docs was given.
5083 if test "${enable_docs+set}" = set; then
5084 enableval=$enable_docs;
5089 case "$enableval" in
5094 default) ENABLE_DOCS=1
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5101 # Check whether --enable-doxygen was given.
5102 if test "${enable_doxygen+set}" = set; then
5103 enableval=$enable_doxygen;
5108 case "$enableval" in
5109 yes) ENABLE_DOXYGEN=1
5111 no) ENABLE_DOXYGEN=0
5113 default) ENABLE_DOXYGEN=0
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5120 # Check whether --enable-threads was given.
5121 if test "${enable_threads+set}" = set; then
5122 enableval=$enable_threads;
5127 case "$enableval" in
5128 yes) ENABLE_THREADS=1
5130 no) ENABLE_THREADS=0
5132 default) ENABLE_THREADS=1
5134 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136 { (exit 1); exit 1; }; } ;;
5139 cat >>confdefs.h <<_ACEOF
5140 #define ENABLE_THREADS $ENABLE_THREADS
5144 # Check whether --enable-pthreads was given.
5145 if test "${enable_pthreads+set}" = set; then
5146 enableval=$enable_pthreads;
5151 case "$enableval" in
5152 yes) ENABLE_PTHREADS=1
5154 no) ENABLE_PTHREADS=0
5156 default) ENABLE_PTHREADS=1
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5163 # Check whether --enable-pic was given.
5164 if test "${enable_pic+set}" = set; then
5165 enableval=$enable_pic;
5170 case "$enableval" in
5175 default) ENABLE_PIC=1
5177 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5179 { (exit 1); exit 1; }; } ;;
5182 cat >>confdefs.h <<_ACEOF
5183 #define ENABLE_PIC $ENABLE_PIC
5187 # Check whether --enable-shared was given.
5188 if test "${enable_shared+set}" = set; then
5189 enableval=$enable_shared;
5194 case "$enableval" in
5195 yes) ENABLE_SHARED=1
5199 default) ENABLE_SHARED=0
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5206 # Check whether --enable-embed-stdcxx was given.
5207 if test "${enable_embed_stdcxx+set}" = set; then
5208 enableval=$enable_embed_stdcxx;
5213 case "$enableval" in
5214 yes) ENABLE_EMBED_STDCXX=1
5216 no) ENABLE_EMBED_STDCXX=0
5218 default) ENABLE_EMBED_STDCXX=1
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 # Check whether --enable-timestamps was given.
5226 if test "${enable_timestamps+set}" = set; then
5227 enableval=$enable_timestamps;
5232 case "$enableval" in
5233 yes) ENABLE_TIMESTAMPS=1
5235 no) ENABLE_TIMESTAMPS=0
5237 default) ENABLE_TIMESTAMPS=1
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5244 cat >>confdefs.h <<_ACEOF
5245 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5250 # Check whether --enable-targets was given.
5251 if test "${enable_targets+set}" = set; then
5252 enableval=$enable_targets;
5257 if test "$enableval" = host-only ; then
5260 case "$enableval" in
5261 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX NVPTX" ;;
5262 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5264 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5265 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5266 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5267 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5268 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5269 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5270 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5271 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5272 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5273 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5274 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5275 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5276 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5277 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5278 host) case "$llvm_cv_target_arch" in
5279 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5283 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5284 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5285 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5286 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5287 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5289 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5290 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5292 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5293 echo "$as_me: error: Can not set target to build" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5296 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5297 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5303 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5306 # Determine whether we are building LLVM support for the native architecture.
5307 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5308 for a_target in $TARGETS_TO_BUILD; do
5309 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5311 cat >>confdefs.h <<_ACEOF
5312 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5315 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5316 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5317 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5318 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5322 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5323 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5331 cat >>confdefs.h <<_ACEOF
5332 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5336 cat >>confdefs.h <<_ACEOF
5337 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5341 cat >>confdefs.h <<_ACEOF
5342 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5345 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5347 cat >>confdefs.h <<_ACEOF
5348 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5352 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5354 cat >>confdefs.h <<_ACEOF
5355 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5362 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5363 # target feature def files.
5364 LLVM_ENUM_TARGETS=""
5365 LLVM_ENUM_ASM_PRINTERS=""
5366 LLVM_ENUM_ASM_PARSERS=""
5367 LLVM_ENUM_DISASSEMBLERS=""
5368 for target_to_build in $TARGETS_TO_BUILD; do
5369 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5370 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5371 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5373 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5374 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5376 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5377 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5386 # Check whether --with-optimize-option was given.
5387 if test "${with_optimize_option+set}" = set; then
5388 withval=$with_optimize_option;
5393 { echo "$as_me:$LINENO: checking optimization flags" >&5
5394 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5397 case "$llvm_cv_os_type" in
5398 FreeBSD) optimize_option=-O2 ;;
5399 MingW) optimize_option=-O2 ;;
5400 *) optimize_option=-O3 ;;
5402 *) optimize_option="$withval" ;;
5404 OPTIMIZE_OPTION=$optimize_option
5406 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5407 echo "${ECHO_T}$optimize_option" >&6; }
5410 # Check whether --with-extra-options was given.
5411 if test "${with_extra_options+set}" = set; then
5412 withval=$with_extra_options;
5418 default) EXTRA_OPTIONS= ;;
5419 *) EXTRA_OPTIONS=$withval ;;
5421 EXTRA_OPTIONS=$EXTRA_OPTIONS
5425 # Check whether --with-extra-ld-options was given.
5426 if test "${with_extra_ld_options+set}" = set; then
5427 withval=$with_extra_ld_options;
5433 default) EXTRA_LD_OPTIONS= ;;
5434 *) EXTRA_LD_OPTIONS=$withval ;;
5436 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5439 # Check whether --enable-bindings was given.
5440 if test "${enable_bindings+set}" = set; then
5441 enableval=$enable_bindings;
5446 BINDINGS_TO_BUILD=""
5447 case "$enableval" in
5448 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5449 all ) BINDINGS_TO_BUILD="ocaml" ;;
5450 none | no) BINDINGS_TO_BUILD="" ;;
5451 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5452 case "$a_binding" in
5453 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5454 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5455 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5463 # Check whether --with-ocaml-libdir was given.
5464 if test "${with_ocaml_libdir+set}" = set; then
5465 withval=$with_ocaml_libdir;
5471 auto) with_ocaml_libdir="$withval" ;;
5472 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5474 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5479 # Check whether --with-clang-resource-dir was given.
5480 if test "${with_clang_resource_dir+set}" = set; then
5481 withval=$with_clang_resource_dir;
5487 cat >>confdefs.h <<_ACEOF
5488 #define CLANG_RESOURCE_DIR "$withval"
5493 # Check whether --with-c-include-dirs was given.
5494 if test "${with_c_include_dirs+set}" = set; then
5495 withval=$with_c_include_dirs;
5501 cat >>confdefs.h <<_ACEOF
5502 #define C_INCLUDE_DIRS "$withval"
5506 # Clang normally uses the system c++ headers and libraries. With this option,
5507 # clang will use the ones provided by a gcc installation instead. This option should
5508 # be passed the same value that was used with --prefix when configuring gcc.
5510 # Check whether --with-gcc-toolchain was given.
5511 if test "${with_gcc_toolchain+set}" = set; then
5512 withval=$with_gcc_toolchain;
5518 cat >>confdefs.h <<_ACEOF
5519 #define GCC_INSTALL_PREFIX "$withval"
5524 # Check whether --with-binutils-include was given.
5525 if test "${with_binutils_include+set}" = set; then
5526 withval=$with_binutils_include;
5532 default) WITH_BINUTILS_INCDIR=default ;;
5533 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5534 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5535 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5538 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5539 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5541 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5542 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5543 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5544 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5545 { (exit 1); exit 1; }; };
5550 # Check whether --with-bug-report-url was given.
5551 if test "${with_bug_report_url+set}" = set; then
5552 withval=$with_bug_report_url;
5554 withval="http://llvm.org/bugs/"
5558 cat >>confdefs.h <<_ACEOF
5559 #define BUG_REPORT_URL "$withval"
5563 # Check whether --enable-libffi was given.
5564 if test "${enable_libffi+set}" = set; then
5565 enableval=$enable_libffi; case "$enableval" in
5566 yes) llvm_cv_enable_libffi="yes" ;;
5567 no) llvm_cv_enable_libffi="no" ;;
5568 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5570 { (exit 1); exit 1; }; } ;;
5573 llvm_cv_enable_libffi=no
5578 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5579 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5580 if test "${lt_cv_path_NM+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 if test -n "$NM"; then
5584 # Let the user override the test.
5587 lt_nm_to_check="${ac_tool_prefix}nm"
5588 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5589 lt_nm_to_check="$lt_nm_to_check nm"
5591 for lt_tmp_nm in $lt_nm_to_check; do
5592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5595 test -z "$ac_dir" && ac_dir=.
5596 tmp_nm="$ac_dir/$lt_tmp_nm"
5597 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5598 # Check to see if the nm accepts a BSD-compat flag.
5599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5600 # nm: unknown option "B" ignored
5601 # Tru64's nm complains that /dev/null is an invalid object file
5602 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5603 */dev/null* | *'Invalid file or object type'*)
5604 lt_cv_path_NM="$tmp_nm -B"
5608 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5610 lt_cv_path_NM="$tmp_nm -p"
5614 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5615 continue # so that we can try to find one that supports BSD flags
5624 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5627 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5628 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5633 { echo "$as_me:$LINENO: checking for GNU make" >&5
5634 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5635 if test "${llvm_cv_gnu_make_command+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 llvm_cv_gnu_make_command=''
5639 for a in "$MAKE" make gmake gnumake ; do
5640 if test -z "$a" ; then continue ; fi ;
5641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5643 llvm_cv_gnu_make_command=$a ;
5648 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5649 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5650 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5654 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5655 echo "${ECHO_T}\"Not found\"" >&6; };
5659 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5662 if test "$LN_S" = "ln -s"; then
5663 { echo "$as_me:$LINENO: result: yes" >&5
5664 echo "${ECHO_T}yes" >&6; }
5666 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5667 echo "${ECHO_T}no, using $LN_S" >&6; }
5670 # Extract the first word of "cmp", so it can be a program name with args.
5671 set dummy cmp; ac_word=$2
5672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674 if test "${ac_cv_path_CMP+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5702 if test -n "$CMP"; then
5703 { echo "$as_me:$LINENO: result: $CMP" >&5
5704 echo "${ECHO_T}$CMP" >&6; }
5706 { echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6; }
5711 # Extract the first word of "cp", so it can be a program name with args.
5712 set dummy cp; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_path_CP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5743 if test -n "$CP"; then
5744 { echo "$as_me:$LINENO: result: $CP" >&5
5745 echo "${ECHO_T}$CP" >&6; }
5747 { echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6; }
5752 # Extract the first word of "date", so it can be a program name with args.
5753 set dummy date; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_path_DATE+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5783 DATE=$ac_cv_path_DATE
5784 if test -n "$DATE"; then
5785 { echo "$as_me:$LINENO: result: $DATE" >&5
5786 echo "${ECHO_T}$DATE" >&6; }
5788 { echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6; }
5793 # Extract the first word of "find", so it can be a program name with args.
5794 set dummy find; ac_word=$2
5795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797 if test "${ac_cv_path_FIND+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5824 FIND=$ac_cv_path_FIND
5825 if test -n "$FIND"; then
5826 { echo "$as_me:$LINENO: result: $FIND" >&5
5827 echo "${ECHO_T}$FIND" >&6; }
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5834 # Extract the first word of "grep", so it can be a program name with args.
5835 set dummy grep; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_path_GREP+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5865 GREP=$ac_cv_path_GREP
5866 if test -n "$GREP"; then
5867 { echo "$as_me:$LINENO: result: $GREP" >&5
5868 echo "${ECHO_T}$GREP" >&6; }
5870 { echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6; }
5875 # Extract the first word of "mkdir", so it can be a program name with args.
5876 set dummy mkdir; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_path_MKDIR+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5906 MKDIR=$ac_cv_path_MKDIR
5907 if test -n "$MKDIR"; then
5908 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5909 echo "${ECHO_T}$MKDIR" >&6; }
5911 { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5916 # Extract the first word of "mv", so it can be a program name with args.
5917 set dummy mv; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_path_MV+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5948 if test -n "$MV"; then
5949 { echo "$as_me:$LINENO: result: $MV" >&5
5950 echo "${ECHO_T}$MV" >&6; }
5952 { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_RANLIB+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$RANLIB"; then
5966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 RANLIB=$ac_cv_prog_RANLIB
5986 if test -n "$RANLIB"; then
5987 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5988 echo "${ECHO_T}$RANLIB" >&6; }
5990 { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5996 if test -z "$ac_cv_prog_RANLIB"; then
5997 ac_ct_RANLIB=$RANLIB
5998 # Extract the first word of "ranlib", so it can be a program name with args.
5999 set dummy ranlib; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$ac_ct_RANLIB"; then
6006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_ac_ct_RANLIB="ranlib"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6026 if test -n "$ac_ct_RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6028 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6034 if test "x$ac_ct_RANLIB" = x; then
6037 case $cross_compiling:$ac_tool_warned in
6039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet. If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&5
6042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043 whose name does not start with the host triplet. If you think this
6044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045 ac_tool_warned=yes ;;
6047 RANLIB=$ac_ct_RANLIB
6050 RANLIB="$ac_cv_prog_RANLIB"
6053 if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ar; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_AR+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if test -n "$AR"; then
6062 ac_cv_prog_AR="$AR" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_AR="${ac_tool_prefix}ar"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 if test -n "$AR"; then
6083 { echo "$as_me:$LINENO: result: $AR" >&5
6084 echo "${ECHO_T}$AR" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test -z "$ac_cv_prog_AR"; then
6094 # Extract the first word of "ar", so it can be a program name with args.
6095 set dummy ar; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$ac_ct_AR"; then
6102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_ac_ct_AR="ar"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6122 if test -n "$ac_ct_AR"; then
6123 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6124 echo "${ECHO_T}$ac_ct_AR" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6130 if test "x$ac_ct_AR" = x; then
6133 case $cross_compiling:$ac_tool_warned in
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet. If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6149 # Extract the first word of "rm", so it can be a program name with args.
6150 set dummy rm; ac_word=$2
6151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 if test "${ac_cv_path_RM+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6181 if test -n "$RM"; then
6182 { echo "$as_me:$LINENO: result: $RM" >&5
6183 echo "${ECHO_T}$RM" >&6; }
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6190 # Extract the first word of "sed", so it can be a program name with args.
6191 set dummy sed; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_SED+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6222 if test -n "$SED"; then
6223 { echo "$as_me:$LINENO: result: $SED" >&5
6224 echo "${ECHO_T}$SED" >&6; }
6226 { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6231 # Extract the first word of "tar", so it can be a program name with args.
6232 set dummy tar; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_path_TAR+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6263 if test -n "$TAR"; then
6264 { echo "$as_me:$LINENO: result: $TAR" >&5
6265 echo "${ECHO_T}$TAR" >&6; }
6267 { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6272 # Extract the first word of "pwd", so it can be a program name with args.
6273 set dummy pwd; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_path_BINPWD+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6303 BINPWD=$ac_cv_path_BINPWD
6304 if test -n "$BINPWD"; then
6305 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6306 echo "${ECHO_T}$BINPWD" >&6; }
6308 { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6314 # Extract the first word of "Graphviz", so it can be a program name with args.
6315 set dummy Graphviz; ac_word=$2
6316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6345 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6346 if test -n "$GRAPHVIZ"; then
6347 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6348 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6355 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6357 cat >>confdefs.h <<\_ACEOF
6358 #define HAVE_GRAPHVIZ 1
6361 if test "$llvm_cv_os_type" = "MingW" ; then
6362 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6365 cat >>confdefs.h <<_ACEOF
6366 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6370 # Extract the first word of "dot", so it can be a program name with args.
6371 set dummy dot; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_DOT+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6402 if test -n "$DOT"; then
6403 { echo "$as_me:$LINENO: result: $DOT" >&5
6404 echo "${ECHO_T}$DOT" >&6; }
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6411 if test "$DOT" != "echo dot" ; then
6413 cat >>confdefs.h <<\_ACEOF
6417 if test "$llvm_cv_os_type" = "MingW" ; then
6418 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6421 cat >>confdefs.h <<_ACEOF
6422 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6426 # Extract the first word of "fdp", so it can be a program name with args.
6427 set dummy fdp; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_path_FDP+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6458 if test -n "$FDP"; then
6459 { echo "$as_me:$LINENO: result: $FDP" >&5
6460 echo "${ECHO_T}$FDP" >&6; }
6462 { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6467 if test "$FDP" != "echo fdp" ; then
6469 cat >>confdefs.h <<\_ACEOF
6473 if test "$llvm_cv_os_type" = "MingW" ; then
6474 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6477 cat >>confdefs.h <<_ACEOF
6478 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6482 # Extract the first word of "neato", so it can be a program name with args.
6483 set dummy neato; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_NEATO+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6513 NEATO=$ac_cv_path_NEATO
6514 if test -n "$NEATO"; then
6515 { echo "$as_me:$LINENO: result: $NEATO" >&5
6516 echo "${ECHO_T}$NEATO" >&6; }
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6523 if test "$NEATO" != "echo neato" ; then
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_NEATO 1
6529 if test "$llvm_cv_os_type" = "MingW" ; then
6530 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6533 cat >>confdefs.h <<_ACEOF
6534 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6538 # Extract the first word of "twopi", so it can be a program name with args.
6539 set dummy twopi; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_TWOPI+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6569 TWOPI=$ac_cv_path_TWOPI
6570 if test -n "$TWOPI"; then
6571 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6572 echo "${ECHO_T}$TWOPI" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6579 if test "$TWOPI" != "echo twopi" ; then
6581 cat >>confdefs.h <<\_ACEOF
6582 #define HAVE_TWOPI 1
6585 if test "$llvm_cv_os_type" = "MingW" ; then
6586 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6589 cat >>confdefs.h <<_ACEOF
6590 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6594 # Extract the first word of "circo", so it can be a program name with args.
6595 set dummy circo; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_CIRCO+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6625 CIRCO=$ac_cv_path_CIRCO
6626 if test -n "$CIRCO"; then
6627 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6628 echo "${ECHO_T}$CIRCO" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 if test "$CIRCO" != "echo circo" ; then
6637 cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_CIRCO 1
6641 if test "$llvm_cv_os_type" = "MingW" ; then
6642 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6645 cat >>confdefs.h <<_ACEOF
6646 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6650 for ac_prog in gv gsview32
6652 # Extract the first word of "$ac_prog", so it can be a program name with args.
6653 set dummy $ac_prog; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_GV+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 if test -n "$GV"; then
6684 { echo "$as_me:$LINENO: result: $GV" >&5
6685 echo "${ECHO_T}$GV" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 test -n "$GV" && break
6694 test -n "$GV" || GV="echo gv"
6696 if test "$GV" != "echo gv" ; then
6698 cat >>confdefs.h <<\_ACEOF
6702 if test "$llvm_cv_os_type" = "MingW" ; then
6703 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6706 cat >>confdefs.h <<_ACEOF
6707 #define LLVM_PATH_GV "$GV${EXEEXT}"
6711 # Extract the first word of "dotty", so it can be a program name with args.
6712 set dummy dotty; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_DOTTY+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6742 DOTTY=$ac_cv_path_DOTTY
6743 if test -n "$DOTTY"; then
6744 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6745 echo "${ECHO_T}$DOTTY" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 if test "$DOTTY" != "echo dotty" ; then
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_DOTTY 1
6758 if test "$llvm_cv_os_type" = "MingW" ; then
6759 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6762 cat >>confdefs.h <<_ACEOF
6763 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6767 # Extract the first word of "xdot.py", so it can be a program name with args.
6768 set dummy xdot.py; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6798 XDOT_PY=$ac_cv_path_XDOT_PY
6799 if test -n "$XDOT_PY"; then
6800 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6801 echo "${ECHO_T}$XDOT_PY" >&6; }
6803 { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6808 if test "$XDOT_PY" != "echo xdot.py" ; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_XDOT_PY 1
6814 if test "$llvm_cv_os_type" = "MingW" ; then
6815 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6818 cat >>confdefs.h <<_ACEOF
6819 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6824 # Find a good install program. We prefer a C program (faster),
6825 # so one script is as good as another. But avoid the broken or
6826 # incompatible versions:
6827 # SysV /etc/install, /usr/sbin/install
6828 # SunOS /usr/etc/install
6829 # IRIX /sbin/install
6831 # AmigaOS /C/install, which installs bootblocks on floppy discs
6832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6835 # OS/2's system install, which has a completely different semantic
6836 # ./install, which can be erroneously created by make from ./install.sh.
6837 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6838 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6839 if test -z "$INSTALL"; then
6840 if test "${ac_cv_path_install+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 # Account for people who put trailing slashes in PATH elements.
6850 ./ | .// | /cC/* | \
6851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6852 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6855 # OSF1 and SCO ODT 3.0 have their own names for install.
6856 # Don't use installbsd from OSF since it installs stuff as root
6858 for ac_prog in ginstall scoinst install; do
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6861 if test $ac_prog = install &&
6862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6863 # AIX install. It has an incompatible calling convention.
6865 elif test $ac_prog = install &&
6866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6867 # program-specific install script used by HP pwplus--don't use.
6870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6883 if test "${ac_cv_path_install+set}" = set; then
6884 INSTALL=$ac_cv_path_install
6886 # As a last resort, use the slow shell script. Don't cache a
6887 # value for INSTALL within a source directory, because that will
6888 # break other packages using the cache if that directory is
6889 # removed, or if the value is a relative name.
6890 INSTALL=$ac_install_sh
6893 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6894 echo "${ECHO_T}$INSTALL" >&6; }
6896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6897 # It thinks the first close brace ends the variable substitution.
6898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6905 [\\/$]* | ?:[\\/]* ) ;;
6906 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6909 # Extract the first word of "bzip2", so it can be a program name with args.
6910 set dummy bzip2; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_BZIP2+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 BZIP2=$ac_cv_path_BZIP2
6940 if test -n "$BZIP2"; then
6941 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6942 echo "${ECHO_T}$BZIP2" >&6; }
6944 { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6949 # Extract the first word of "cat", so it can be a program name with args.
6950 set dummy cat; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_CAT+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 if test -n "$CAT"; then
6981 { echo "$as_me:$LINENO: result: $CAT" >&5
6982 echo "${ECHO_T}$CAT" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 # Extract the first word of "doxygen", so it can be a program name with args.
6990 set dummy doxygen; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 DOXYGEN=$ac_cv_path_DOXYGEN
7020 if test -n "$DOXYGEN"; then
7021 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7022 echo "${ECHO_T}$DOXYGEN" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7029 # Extract the first word of "groff", so it can be a program name with args.
7030 set dummy groff; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_GROFF+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 GROFF=$ac_cv_path_GROFF
7060 if test -n "$GROFF"; then
7061 { echo "$as_me:$LINENO: result: $GROFF" >&5
7062 echo "${ECHO_T}$GROFF" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "gzip", so it can be a program name with args.
7070 set dummy gzip; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 GZIPBIN=$ac_cv_path_GZIPBIN
7100 if test -n "$GZIPBIN"; then
7101 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7102 echo "${ECHO_T}$GZIPBIN" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 # Extract the first word of "pod2html", so it can be a program name with args.
7110 set dummy pod2html; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_POD2HTML+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 POD2HTML=$ac_cv_path_POD2HTML
7140 if test -n "$POD2HTML"; then
7141 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7142 echo "${ECHO_T}$POD2HTML" >&6; }
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7149 # Extract the first word of "pod2man", so it can be a program name with args.
7150 set dummy pod2man; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_POD2MAN+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 POD2MAN=$ac_cv_path_POD2MAN
7180 if test -n "$POD2MAN"; then
7181 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7182 echo "${ECHO_T}$POD2MAN" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 # Extract the first word of "pdfroff", so it can be a program name with args.
7190 set dummy pdfroff; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_PDFROFF+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 PDFROFF=$ac_cv_path_PDFROFF
7220 if test -n "$PDFROFF"; then
7221 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7222 echo "${ECHO_T}$PDFROFF" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 # Extract the first word of "runtest", so it can be a program name with args.
7230 set dummy runtest; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_RUNTEST+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 RUNTEST=$ac_cv_path_RUNTEST
7260 if test -n "$RUNTEST"; then
7261 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7262 echo "${ECHO_T}$RUNTEST" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7271 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7272 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7274 # Check whether --with-tclinclude was given.
7275 if test "${with_tclinclude+set}" = set; then
7276 withval=$with_tclinclude; with_tclinclude=${withval}
7281 if test "${ac_cv_path_tclsh+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 if test x"${with_tclinclude}" != x ; then
7286 if test -f ${with_tclinclude}/tclsh ; then
7287 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7288 elif test -f ${with_tclinclude}/src/tclsh ; then
7289 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7291 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7292 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7293 { (exit 1); exit 1; }; }
7299 if test x"${ac_cv_path_tclsh}" = x ; then
7300 { echo "$as_me:$LINENO: result: none" >&5
7301 echo "${ECHO_T}none" >&6; }
7302 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
7304 # Extract the first word of "$ac_prog", so it can be a program name with args.
7305 set dummy $ac_prog; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_TCLSH+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 TCLSH=$ac_cv_path_TCLSH
7335 if test -n "$TCLSH"; then
7336 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7337 echo "${ECHO_T}$TCLSH" >&6; }
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7344 test -n "$TCLSH" && break
7347 if test x"${TCLSH}" = x ; then
7348 ac_cv_path_tclsh='';
7350 ac_cv_path_tclsh="${TCLSH}";
7353 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7354 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7355 TCLSH="${ac_cv_path_tclsh}"
7359 # Extract the first word of "zip", so it can be a program name with args.
7360 set dummy zip; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_ZIP+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 if test -n "$ZIP"; then
7391 { echo "$as_me:$LINENO: result: $ZIP" >&5
7392 echo "${ECHO_T}$ZIP" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7399 for ac_prog in ocamlc
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_OCAMLC+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 OCAMLC=$ac_cv_path_OCAMLC
7432 if test -n "$OCAMLC"; then
7433 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434 echo "${ECHO_T}$OCAMLC" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 test -n "$OCAMLC" && break
7444 for ac_prog in ocamlopt
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 OCAMLOPT=$ac_cv_path_OCAMLOPT
7477 if test -n "$OCAMLOPT"; then
7478 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479 echo "${ECHO_T}$OCAMLOPT" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 test -n "$OCAMLOPT" && break
7489 for ac_prog in ocamldep
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 OCAMLDEP=$ac_cv_path_OCAMLDEP
7522 if test -n "$OCAMLDEP"; then
7523 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524 echo "${ECHO_T}$OCAMLDEP" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 test -n "$OCAMLDEP" && break
7534 for ac_prog in ocamldoc
7536 # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 OCAMLDOC=$ac_cv_path_OCAMLDOC
7567 if test -n "$OCAMLDOC"; then
7568 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569 echo "${ECHO_T}$OCAMLDOC" >&6; }
7571 { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7576 test -n "$OCAMLDOC" && break
7579 for ac_prog in gas as
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GAS+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 if test -n "$GAS"; then
7613 { echo "$as_me:$LINENO: result: $GAS" >&5
7614 echo "${ECHO_T}$GAS" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 test -n "$GAS" && break
7625 { echo "$as_me:$LINENO: checking for linker version" >&5
7626 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_version+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 version_string="$(ld -v 2>&1 | head -1)"
7634 if (echo "$version_string" | grep -q "ld64"); then
7635 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7637 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7641 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7644 cat >>confdefs.h <<_ACEOF
7645 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7650 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652 if test "${llvm_cv_link_use_r+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_cpp='$CPP $CPPFLAGS'
7657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7662 CFLAGS="$CFLAGS -Wl,-R."
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; } &&
7702 { ac_try='test -s conftest$ac_exeext'
7703 { (case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_try") 2>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 llvm_cv_link_use_r=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 llvm_cv_link_use_r=no
7720 rm -f core conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733 if test "$llvm_cv_link_use_r" = yes ; then
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_LINK_R 1
7742 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7754 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 llvm_cv_link_use_export_dynamic=yes
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 llvm_cv_link_use_export_dynamic=no
7812 rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7827 cat >>confdefs.h <<\_ACEOF
7828 #define HAVE_LINK_EXPORT_DYNAMIC 1
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_version_script+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 # The following code is from the autoconf manual,
7848 # "11.13: Limitations of Usual Tools".
7849 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850 # Use mktemp if possible; otherwise fall back on mkdir,
7851 # with $RANDOM to make collisions less likely.
7855 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7857 test -n "$tmp" && test -d "$tmp"
7859 tmp=$TMPDIR/foo$$-$RANDOM
7860 (umask 077 && mkdir "$tmp")
7863 echo "{" > "$tmp/export.map"
7864 echo " global: main;" >> "$tmp/export.map"
7865 echo " local: *;" >> "$tmp/export.map"
7866 echo "};" >> "$tmp/export.map"
7868 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_try") 2>&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_try") 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 llvm_cv_link_use_version_script=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 llvm_cv_link_use_version_script=no
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 rm "$tmp/export.map"
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941 if test "$llvm_cv_link_use_version_script" = yes ; then
7942 HAVE_LINK_VERSION_SCRIPT=1
7949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7964 /* FIXME: Include the comments suggested by Paul. */
7966 /* Ultrix mips cc rejects this. */
7967 typedef int charset[2];
7969 /* SunOS 4.1.1 cc rejects this. */
7970 char const *const *ccp;
7972 /* NEC SVR4.0.2 mips cc rejects this. */
7973 struct point {int x, y;};
7974 static struct point const zero = {0,0};
7975 /* AIX XL C 1.02.0.0 rejects this.
7976 It does not let you subtract one const X* pointer from another in
7977 an arm of an if-expression whose if-part is not a constant
7979 const char *g = "string";
7980 ccp = &g + (g ? g-g : 0);
7981 /* HPUX 7.0 cc rejects these. */
7984 ccp = (char const *const *) p;
7985 { /* SCO 3.2v4 cc rejects this. */
7987 char const *s = 0 ? (char *) 0 : (char const *) 0;
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7994 const int *foo = &x[0];
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8011 return !x[0] && !zero.x;
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_compile") 2>conftest.er1
8027 grep -v '^ *+' conftest.er1 >conftest.err
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033 { (case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_try") 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest.$ac_objext'
8043 { (case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048 (eval "$ac_try") 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064 if test $ac_cv_c_const = no; then
8066 cat >>confdefs.h <<\_ACEOF
8078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 #include <sys/types.h>
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 eval "$as_ac_Header=yes"
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8142 eval "$as_ac_Header=no"
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 ac_res=`eval echo '${'$as_ac_Header'}'`
8148 { echo "$as_me:$LINENO: result: $ac_res" >&5
8149 echo "${ECHO_T}$ac_res" >&6; }
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151 cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8155 ac_header_dirent=$ac_hdr; break
8159 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160 if test $ac_header_dirent = dirent.h; then
8161 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163 if test "${ac_cv_search_opendir+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_func_search_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 /* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8189 for ac_lib in '' dir; do
8190 if test -z "$ac_lib"; then
8191 ac_res="none required"
8194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (ac_try="$ac_link"
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_link") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (case "(($ac_try" in
8222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223 *) ac_try_echo=$ac_try;;
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226 (eval "$ac_try") 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_search_opendir=$ac_res
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -f core conftest.err conftest.$ac_objext \
8240 if test "${ac_cv_search_opendir+set}" = set; then
8244 if test "${ac_cv_search_opendir+set}" = set; then
8247 ac_cv_search_opendir=no
8250 LIBS=$ac_func_search_save_LIBS
8252 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254 ac_res=$ac_cv_search_opendir
8255 if test "$ac_res" != no; then
8256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263 if test "${ac_cv_search_opendir+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_func_search_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any GCC internal prototype to avoid an error.
8275 Use char because int might match the return type of a GCC
8276 builtin and then its argument prototype would still apply. */
8289 for ac_lib in '' x; do
8290 if test -z "$ac_lib"; then
8291 ac_res="none required"
8294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_link") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311 { (case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_try") 2>&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); }; } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_try") 2>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_search_opendir=$ac_res
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8338 rm -f core conftest.err conftest.$ac_objext \
8340 if test "${ac_cv_search_opendir+set}" = set; then
8344 if test "${ac_cv_search_opendir+set}" = set; then
8347 ac_cv_search_opendir=no
8350 LIBS=$ac_func_search_save_LIBS
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8363 for ac_header in dlfcn.h
8365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373 { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8376 # Is the header compilable?
8377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #include <$ac_header>
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest.$ac_objext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_header_compiler=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_header_compiler=no
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432 echo "${ECHO_T}$ac_header_compiler" >&6; }
8434 # Is the header present?
8435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 #include <$ac_header>
8445 if { (ac_try="$ac_cpp conftest.$ac_ext"
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } >/dev/null; then
8458 if test -s conftest.err; then
8459 ac_cpp_err=$ac_c_preproc_warn_flag
8460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8467 if test -z "$ac_cpp_err"; then
8468 ac_header_preproc=yes
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_header_preproc=no
8476 rm -f conftest.err conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6; }
8480 # So? What about this header?
8481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487 ac_header_preproc=yes
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8503 ## ------------------------------ ##
8504 ## Report this to bugs@yourdomain ##
8505 ## ------------------------------ ##
8507 ) | sed "s/^/$as_me: WARNING: /" >&2
8510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 eval "$as_ac_Header=\$ac_header_preproc"
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518 { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8531 # Check whether --enable-ltdl-install was given.
8532 if test "${enable_ltdl_install+set}" = set; then
8533 enableval=$enable_ltdl_install;
8539 if test x"${enable_ltdl_install-no}" != xno; then
8541 INSTALL_LTDL_FALSE='#'
8543 INSTALL_LTDL_TRUE='#'
8549 if test x"${enable_ltdl_convenience-no}" != xno; then
8550 CONVENIENCE_LTDL_TRUE=
8551 CONVENIENCE_LTDL_FALSE='#'
8553 CONVENIENCE_LTDL_TRUE='#'
8554 CONVENIENCE_LTDL_FALSE=
8558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8561 libname_spec='lib$name'
8569 shlibpath_overrides_runpath=unknown
8571 dynamic_linker="$host_os ld.so"
8572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573 if test "$GCC" = yes; then
8574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576 # if the path contains ";" then we assume it to be the separator
8577 # otherwise default to the standard path separator (i.e. ":") - it is
8578 # assumed that no part of a normal pathname contains ";" but that should
8579 # okay in the real world where ";" in dirpaths is itself problematic.
8580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8587 need_lib_prefix=unknown
8588 hardcode_into_libs=no
8590 # when you set need_version to no, make sure it does not cause -set_version
8591 # flags to be left without arguments
8592 need_version=unknown
8597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598 shlibpath_var=LIBPATH
8600 # AIX 3 has no versioning support, so we append a major version to the name.
8601 soname_spec='${libname}${release}${shared_ext}$major'
8608 hardcode_into_libs=yes
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 supports IA64
8611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8614 # With GCC up to 2.95.x, collect2 would create an import file
8615 # for dependence libraries. The import file would start with
8616 # the line `#! .'. This would cause the generated library to
8617 # depend on `.', always an invalid library. This was fixed in
8618 # development snapshots of GCC prior to 3.0.
8620 aix4 | aix4.[01] | aix4.[01].*)
8621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631 # soname into executable. Probably we can add versioning support to
8632 # collect2, so additional links can be useful in future.
8633 if test "$aix_use_runtimelinking" = yes; then
8634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635 # instead of lib<name>.a to let people know that these are not
8636 # typical AIX shared libraries.
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8639 # We preserve .a as extension for shared libraries through AIX4.2
8640 # and later when we are not doing run time linking.
8641 library_names_spec='${libname}${release}.a $libname.a'
8642 soname_spec='${libname}${release}${shared_ext}$major'
8644 shlibpath_var=LIBPATH
8649 library_names_spec='$libname.ixlibrary $libname.a'
8650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651 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'
8655 library_names_spec='${libname}${shared_ext}'
8656 dynamic_linker="$host_os ld.so"
8657 shlibpath_var=LIBRARY_PATH
8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664 soname_spec='${libname}${release}${shared_ext}$major'
8665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666 shlibpath_var=LD_LIBRARY_PATH
8667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669 # the default ld.so.conf also contains /usr/contrib/lib and
8670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671 # libtool to hard-code these into programs
8674 cygwin* | mingw* | pw32*)
8675 version_type=windows
8680 case $GCC,$host_os in
8681 yes,cygwin* | yes,mingw* | yes,pw32*)
8682 library_names_spec='$libname.dll.a'
8683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684 postinstall_cmds='base_file=`basename \${file}`~
8685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686 dldir=$destdir/`dirname \$dlpath`~
8687 test -d \$dldir || mkdir -p \$dldir~
8688 $install_prog $dir/$dlname \$dldir/$dlname~
8689 chmod a+x \$dldir/$dlname'
8690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691 dlpath=$dir/\$dldll~
8693 shlibpath_overrides_runpath=yes
8697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8702 # MinGW DLLs use traditional 'lib' prefix
8703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706 # It is most probably a Windows format PATH printed by
8707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708 # path with ; separators, and with drive letters. We can handle the
8709 # drive letters (cygwin fileutils understands them), so leave them,
8710 # especially as we might pass files found there to a mingw objdump,
8711 # which wouldn't understand a cygwinified path. Ahh.
8712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8718 # pw32 DLLs use 'pw' prefix rather than 'lib'
8719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8728 dynamic_linker='Win32 ld.exe'
8729 # FIXME: first we should search . and the directory the executable is in
8733 darwin* | rhapsody*)
8734 dynamic_linker="$host_os dyld"
8738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739 soname_spec='${libname}${release}${major}$shared_ext'
8740 shlibpath_overrides_runpath=yes
8741 shlibpath_var=DYLD_LIBRARY_PATH
8742 shrext_cmds='.dylib'
8743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744 if test "$GCC" = yes; then
8745 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"`
8747 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 shlibpath_overrides_runpath=no
8773 hardcode_into_libs=yes
8774 dynamic_linker='GNU ld.so'
8777 freebsd* | dragonfly*)
8778 # DragonFly does not have aout. When/if they implement a new
8779 # versioning mechanism, adjust this.
8780 if test -x /usr/bin/objformat; then
8781 objformat=`/usr/bin/objformat`
8784 freebsd[123].*) objformat=aout ;;
8788 version_type=freebsd-$objformat
8789 case $version_type in
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800 shlibpath_var=LD_LIBRARY_PATH
8803 shlibpath_overrides_runpath=yes
8805 freebsd3.[01]* | freebsdelf3.[01]*)
8806 shlibpath_overrides_runpath=yes
8807 hardcode_into_libs=yes
8809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811 shlibpath_overrides_runpath=no
8812 hardcode_into_libs=yes
8814 freebsd*) # from 4.6 on
8815 shlibpath_overrides_runpath=yes
8816 hardcode_into_libs=yes
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 hardcode_into_libs=yes
8831 hpux9* | hpux10* | hpux11*)
8832 # Give a soname corresponding to the major version so that dld.sl refuses to
8833 # link against other versions.
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.so"
8842 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 if test "X$HPUX_IA64_MODE" = X32; then
8847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 hardcode_into_libs=yes
8856 dynamic_linker="$host_os dld.sl"
8857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
8861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 dynamic_linker="$host_os dld.sl"
8867 shlibpath_var=SHLIB_PATH
8868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874 postinstall_cmds='chmod 555 $lib'
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884 shlibpath_var=LD_LIBRARY_PATH
8885 shlibpath_overrides_runpath=no
8886 hardcode_into_libs=yes
8889 irix5* | irix6* | nonstopux*)
8891 nonstopux*) version_type=nonstopux ;;
8893 if test "$lt_cv_prog_gnu_ld" = yes; then
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8904 irix5* | nonstopux*)
8908 case $LD in # libtool.m4 will add one of these switches to LD
8909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910 libsuff= shlibsuff= libmagic=32-bit;;
8911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912 libsuff=32 shlibsuff=N32 libmagic=N32;;
8913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915 *) libsuff= shlibsuff= libmagic=never-match;;
8919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920 shlibpath_overrides_runpath=no
8921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923 hardcode_into_libs=yes
8926 # No shared lib support for Linux oldld, aout, or coff.
8927 linux*oldld* | linux*aout* | linux*coff*)
8931 # This must be Linux ELF.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=no
8941 # This implies no fast_install, which is unacceptable.
8942 # Some rework will be needed to allow for fast_install
8943 # before this can be enabled.
8944 hardcode_into_libs=yes
8946 # Append ld.so.conf contents to the search path
8947 if test -f /etc/ld.so.conf; then
8948 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' ' '`
8949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8952 # We used to test for /lib/ld.so.1 and disable shared libraries on
8953 # powerpc, because MkLinux only supported shared libraries with the
8954 # GNU dynamic linker. Since this was broken with cross compilers,
8955 # most powerpc-linux boxes support dynamic linking these days and
8956 # people can always --disable-shared, the test was removed, and we
8957 # assume the GNU/Linux dynamic linker is in use.
8958 dynamic_linker='GNU/Linux ld.so'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 shlibpath_var=LD_LIBRARY_PATH
8968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 dynamic_linker='GNU ld.so'
8977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980 dynamic_linker='NetBSD (a.out) ld.so'
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 dynamic_linker='NetBSD ld.elf_so'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9010 sys_lib_dlsearch_path_spec="/usr/lib"
9012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015 *) need_version=no ;;
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9022 openbsd2.[89] | openbsd2.[89].*)
9023 shlibpath_overrides_runpath=no
9026 shlibpath_overrides_runpath=yes
9030 shlibpath_overrides_runpath=yes
9035 libname_spec='$name'
9038 library_names_spec='$libname${shared_ext} $libname.a'
9039 dynamic_linker='OS/2 ld.exe'
9040 shlibpath_var=LIBPATH
9043 osf3* | osf4* | osf5*)
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 # ldd complains unless libraries are executable
9064 postinstall_cmds='chmod +x $lib'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 if test "$with_gnu_ld" = yes; then
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 case $host_vendor in
9086 shlibpath_overrides_runpath=no
9088 export_dynamic_flag_spec='${wl}-Blargedynsym'
9089 runpath_var=LD_RUN_PATH
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9104 if test -d /usr/nec ;then
9106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107 soname_spec='$libname${shared_ext}.$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113 version_type=freebsd-elf
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9120 if test "$with_gnu_ld" = yes; then
9121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122 shlibpath_overrides_runpath=no
9124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125 shlibpath_overrides_runpath=yes
9128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9132 sys_lib_dlsearch_path_spec='/usr/lib'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9146 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147 echo "${ECHO_T}$dynamic_linker" >&6; }
9148 test "$dynamic_linker" = no && can_build_shared=no
9150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151 if test "$GCC" = yes; then
9152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9156 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158 if test "${libltdl_cv_shlibext+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 eval libltdl_cv_shlibext=$shrext_cmds
9166 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168 if test -n "$libltdl_cv_shlibext"; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9177 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 libltdl_cv_shlibpath_var="$shlibpath_var"
9184 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186 if test -n "$libltdl_cv_shlibpath_var"; then
9188 cat >>confdefs.h <<_ACEOF
9189 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9195 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9196 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197 if test "${libltdl_cv_sys_search_path+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204 if test -n "$libltdl_cv_sys_search_path"; then
9206 for dir in $libltdl_cv_sys_search_path; do
9207 if test -z "$sys_search_path"; then
9208 sys_search_path="$dir"
9210 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9220 { echo "$as_me:$LINENO: checking for objdir" >&5
9221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222 if test "${libltdl_cv_objdir+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 libltdl_cv_objdir="$objdir"
9226 if test -n "$objdir"; then
9229 rm -f .libs 2>/dev/null
9230 mkdir .libs 2>/dev/null
9231 if test -d .libs; then
9232 libltdl_cv_objdir=.libs
9234 # MS-DOS does not allow filenames that begin with a dot.
9235 libltdl_cv_objdir=_libs
9237 rmdir .libs 2>/dev/null
9241 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9253 # Check for command to grab the raw symbol name followed by C symbol from nm.
9254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 # These are sane defaults that work on at least a few old systems.
9261 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9263 # Character class describing NM global symbol codes.
9264 symcode='[BCDEGRST]'
9266 # Regexp to match symbols that can be accessed directly from C.
9267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9269 # Transform an extracted symbol line into a proper C declaration
9270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9272 # Transform an extracted symbol line into symbol name and symbol address
9273 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 # Define system-specific variables.
9280 cygwin* | mingw* | pw32*)
9281 symcode='[ABCDGISTW]'
9283 hpux*) # Its linker distinguishes data from code symbols
9284 if test "$host_cpu" = ia64; then
9285 symcode='[ABCDEGRST]'
9287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288 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'"
9291 if test "$host_cpu" = ia64; then
9292 symcode='[ABCDGIRSTW]'
9293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294 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'"
9298 symcode='[BCDEGRST]'
9301 symcode='[BCDEGQRST]'
9312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9320 # Handle CRLF in mingw tool chain
9324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9328 # If we're using GNU nm, then use its standard symbol codes.
9329 case `$NM -V 2>&1` in
9330 *GNU* | *'with BFD'*)
9331 symcode='[ABCDGIRSTW]' ;;
9334 # Try without a prefix undercore, then with it.
9335 for ac_symprfx in "" "_"; do
9337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338 symxfrm="\\1 $ac_symprfx\\2 \\2"
9340 # Write the raw and C identifiers.
9341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9343 # Check to see that the pipe works correctly.
9347 cat > conftest.$ac_ext <<EOF
9352 void nm_test_func(){}
9356 int main(){nm_test_var='a';nm_test_func();return(0);}
9359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; then
9364 # Now try to grab the symbols.
9366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && test -s "$nlist"; then
9371 # Try sorting and uniquifying the output.
9372 if sort "$nlist" | uniq > "$nlist"T; then
9373 mv -f "$nlist"T "$nlist"
9378 # Make sure that we snagged all the symbols we need.
9379 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381 cat <<EOF > conftest.$ac_ext
9387 # Now generate the symbol file.
9388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9390 cat <<EOF >> conftest.$ac_ext
9391 #if defined (__STDC__) && __STDC__
9392 # define lt_ptr_t void *
9394 # define lt_ptr_t char *
9398 /* The mapping between symbol names and symbols. */
9403 lt_preloaded_symbols[] =
9406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407 cat <<\EOF >> conftest.$ac_ext
9415 # Now try linking the two files.
9416 mv conftest.$ac_objext conftstm.$ac_objext
9417 lt_save_LIBS="$LIBS"
9418 lt_save_CFLAGS="$CFLAGS"
9419 LIBS="conftstm.$ac_objext"
9420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422 (eval $ac_link) 2>&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9428 LIBS="$lt_save_LIBS"
9429 CFLAGS="$lt_save_CFLAGS"
9431 echo "cannot find nm_test_func in $nlist" >&5
9434 echo "cannot find nm_test_var in $nlist" >&5
9437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9440 echo "$progname: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 rm -f conftest* conftst*
9445 # Do not use the global_symbol_pipe unless it works.
9446 if test "$pipe_works" = yes; then
9449 lt_cv_sys_global_symbol_pipe=
9455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456 lt_cv_sys_global_symbol_to_cdecl=
9458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459 { echo "$as_me:$LINENO: result: failed" >&5
9460 echo "${ECHO_T}failed" >&6; }
9462 { echo "$as_me:$LINENO: result: ok" >&5
9463 echo "${ECHO_T}ok" >&6; }
9467 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473 libltdl_cv_preloaded_symbols=yes
9475 libltdl_cv_preloaded_symbols=no
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_PRELOADED_SYMBOLS 1
9492 ac_cpp='$CPP $CPPFLAGS'
9493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9498 { echo "$as_me:$LINENO: checking for shl_load" >&5
9499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_shl_load+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define shl_load innocuous_shl_load
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char shl_load (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined __stub_shl_load || defined __stub___shl_load
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (ac_try="$ac_link"
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_link") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563 { (case "(($ac_try" in
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_try") 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (case "(($ac_try" in
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_try") 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_func_shl_load=yes
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_func_shl_load=no
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595 if test $ac_cv_func_shl_load = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_SHL_LOAD 1
9602 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 ac_check_lib_save_LIBS=$LIBS
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_lib_dld_shl_load=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_lib_dld_shl_load=no
9673 rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SHL_LOAD 1
9685 LIBADD_DL="$LIBADD_DL -ldld"
9687 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 ac_check_lib_save_LIBS=$LIBS
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731 { (case "(($ac_try" in
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_try") 2>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest$ac_exeext'
9741 { (case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_try") 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_lib_dl_dlopen=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_lib_dl_dlopen=no
9758 rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764 if test $ac_cv_lib_dl_dlopen = yes; then
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_LIBDL 1
9770 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (case "(($ac_try" in
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_try") 2>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_LIBDL 1
9828 libltdl_cv_func_dlopen="yes"
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9896 ac_cv_lib_svld_dlopen=yes
9898 echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_cv_lib_svld_dlopen=no
9904 rm -f core conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_LIBDL 1
9916 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9918 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_dld_dld_link=yes
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_dld_dld_link=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995 if test $ac_cv_lib_dld_dld_link = yes; then
9997 cat >>confdefs.h <<\_ACEOF
10001 LIBADD_DL="$LIBADD_DL -ldld"
10003 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10016 #define _dyld_func_lookup innocuous__dyld_func_lookup
10018 /* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char _dyld_func_lookup (); below.
10020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021 <limits.h> exists even on freestanding compilers. */
10024 # include <limits.h>
10026 # include <assert.h>
10029 #undef _dyld_func_lookup
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10037 char _dyld_func_lookup ();
10038 /* The GNU C library defines this for functions which it implements
10039 to always fail with ENOSYS. Some functions are actually named
10040 something starting with __ and the normal name is an alias. */
10041 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10048 return _dyld_func_lookup ();
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_link") 2>conftest.er1
10062 grep -v '^ *+' conftest.er1 >conftest.err
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_func__dyld_func_lookup=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_func__dyld_func_lookup=no
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10098 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100 if test $ac_cv_func__dyld_func_lookup = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_DYLD 1
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10129 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10131 lt_save_LIBS="$LIBS"
10132 LIBS="$LIBS $LIBADD_DL"
10134 for ac_func in dlerror
10136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10150 #define $ac_func innocuous_$ac_func
10152 /* System header to define __stub macros and hopefully few prototypes,
10153 which can conflict with char $ac_func (); below.
10154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155 <limits.h> exists even on freestanding compilers. */
10158 # include <limits.h>
10160 # include <assert.h>
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10172 /* The GNU C library defines this for functions which it implements
10173 to always fail with ENOSYS. Some functions are actually named
10174 something starting with __ and the normal name is an alias. */
10175 #if defined __stub_$ac_func || defined __stub___$ac_func
10182 return $ac_func ();
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 eval "$as_ac_var=yes"
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 eval "$as_ac_var=no"
10229 rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10243 LIBS="$lt_save_LIBS"
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10253 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 ac_cv_sys_symbol_underscore=no
10259 cat > conftest.$ac_ext <<EOF
10260 void nm_test_func(){}
10261 int main(){nm_test_func;return 0;}
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264 (eval $ac_compile) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; then
10268 # Now try to grab the symbols.
10269 ac_nlist=conftest.nm
10270 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && test -s "$ac_nlist"; then
10275 # See whether the symbols have a leading underscore.
10276 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277 ac_cv_sys_symbol_underscore=yes
10279 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10282 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10286 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10289 echo "configure: failed program was:" >&5
10295 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10299 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300 if test x"$libltdl_cv_func_dlopen" = xyes ||
10301 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_need_uscore+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 libltdl_cv_need_uscore=unknown
10309 LIBS="$LIBS $LIBADD_DL"
10310 if test "$cross_compiling" = yes; then :
10311 libltdl_cv_need_uscore=cross
10313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314 lt_status=$lt_dlunknown
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10326 # define LT_DLGLOBAL RTLD_GLOBAL
10329 # define LT_DLGLOBAL DL_GLOBAL
10331 # define LT_DLGLOBAL 0
10335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336 find out it does not work in some platform. */
10337 #ifndef LT_DLLAZY_OR_NOW
10339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10342 # define LT_DLLAZY_OR_NOW DL_LAZY
10345 # define LT_DLLAZY_OR_NOW RTLD_NOW
10348 # define LT_DLLAZY_OR_NOW DL_NOW
10350 # define LT_DLLAZY_OR_NOW 0
10358 extern "C" void exit (int);
10361 void fnord() { int i=42;}
10364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365 int status = $lt_dlunknown;
10369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371 /* dlclose (self); */
10379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384 (./conftest; exit; ) >&5 2>/dev/null
10386 case x$lt_status in
10387 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389 x$lt_dlunknown|x*) ;;
10392 # compilation failed
10401 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10406 if test x"$libltdl_cv_need_uscore" = xyes; then
10408 cat >>confdefs.h <<\_ACEOF
10409 #define NEED_USCORE 1
10415 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 # PORTME does your system automatically load deplibs for dlopen?
10421 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422 # For now, we just catch OSes we know something about -- in the
10423 # future, we'll try test this programmatically.
10424 libltdl_cv_sys_dlopen_deplibs=unknown
10426 aix3*|aix4.1.*|aix4.2.*)
10427 # Unknown whether this is true for these versions of AIX, but
10428 # we want this `case' here to explicitly catch those versions.
10429 libltdl_cv_sys_dlopen_deplibs=unknown
10432 libltdl_cv_sys_dlopen_deplibs=yes
10435 # Assuming the user has installed a libdl from somewhere, this is true
10436 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437 libltdl_cv_sys_dlopen_deplibs=yes
10439 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440 # GNU and its variants, using gnu ld.so (Glibc)
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10449 irix[12345]*|irix6.[01]*)
10450 # Catch all versions of IRIX before 6.2, and indicate that we don't
10451 # know how it worked for any of those versions.
10452 libltdl_cv_sys_dlopen_deplibs=unknown
10455 # The case above catches anything before 6.2, and it's known that
10456 # at 6.2 and later dlopen does load deplibs.
10457 libltdl_cv_sys_dlopen_deplibs=yes
10460 libltdl_cv_sys_dlopen_deplibs=yes
10463 libltdl_cv_sys_dlopen_deplibs=yes
10466 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467 # it did *not* use an RPATH in a shared library to find objects the
10468 # library depends on, so we explicitly say `no'.
10469 libltdl_cv_sys_dlopen_deplibs=no
10471 osf5.0|osf5.0a|osf5.1)
10472 # dlopen *does* load deplibs and with the right loader patch applied
10473 # it even uses RPATH in a shared library to search for shared objects
10474 # that the library depends on, but there's no easy way to know if that
10475 # patch is installed. Since this is the case, all we can really
10476 # say is unknown -- it depends on the patch being installed. If
10477 # it is, this changes to `yes'. Without it, it would be `no'.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10481 # the two cases above should catch all versions of osf <= 5.1. Read
10482 # the comments above for what we know about them.
10483 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484 # is used to find them so we can finally say `yes'.
10485 libltdl_cv_sys_dlopen_deplibs=yes
10488 libltdl_cv_sys_dlopen_deplibs=yes
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 libltdl_cv_sys_dlopen_deplibs=yes
10496 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define LTDL_DLOPEN_DEPLIBS 1
10507 for ac_header in argz.h
10509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 ac_res=`eval echo '${'$as_ac_Header'}'`
10517 { echo "$as_me:$LINENO: result: $ac_res" >&5
10518 echo "${ECHO_T}$ac_res" >&6; }
10520 # Is the header compilable?
10521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 $ac_includes_default
10530 #include <$ac_header>
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547 { (case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_try") 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_try") 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_header_compiler=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_header_compiler=no
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 echo "${ECHO_T}$ac_header_compiler" >&6; }
10578 # Is the header present?
10579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <$ac_header>
10589 if { (ac_try="$ac_cpp conftest.$ac_ext"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10611 if test -z "$ac_cpp_err"; then
10612 ac_header_preproc=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_header_preproc=no
10620 rm -f conftest.err conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 echo "${ECHO_T}$ac_header_preproc" >&6; }
10624 # So? What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631 ac_header_preproc=yes
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647 ## ------------------------------ ##
10648 ## Report this to bugs@yourdomain ##
10649 ## ------------------------------ ##
10651 ) | sed "s/^/$as_me: WARNING: /" >&2
10654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 eval "$as_ac_Header=\$ac_header_preproc"
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667 cat >>confdefs.h <<_ACEOF
10668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 { echo "$as_me:$LINENO: checking for error_t" >&5
10677 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_error_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10691 typedef error_t ac__type_new_;
10695 if ((ac__type_new_ *) 0)
10697 if (sizeof (ac__type_new_))
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718 { (case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_try") 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest.$ac_objext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_type_error_t=yes
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ac_cv_type_error_t=no
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749 if test $ac_cv_type_error_t = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define HAVE_ERROR_T 1
10758 cat >>confdefs.h <<\_ACEOF
10759 #define error_t int
10770 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10786 #define $ac_func innocuous_$ac_func
10788 /* System header to define __stub macros and hopefully few prototypes,
10789 which can conflict with char $ac_func (); below.
10790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791 <limits.h> exists even on freestanding compilers. */
10794 # include <limits.h>
10796 # include <assert.h>
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10808 /* The GNU C library defines this for functions which it implements
10809 to always fail with ENOSYS. Some functions are actually named
10810 something starting with __ and the normal name is an alias. */
10811 #if defined __stub_$ac_func || defined __stub___$ac_func
10818 return $ac_func ();
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_link") 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_try") 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 eval "$as_ac_var=yes"
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 eval "$as_ac_var=no"
10865 rm -f core conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10868 ac_res=`eval echo '${'$as_ac_var'}'`
10869 { echo "$as_me:$LINENO: result: $ac_res" >&5
10870 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872 cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917 { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10920 # Is the header compilable?
10921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 $ac_includes_default
10930 #include <$ac_header>
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
10946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947 { (case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952 (eval "$ac_try") 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_try") 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 ac_header_compiler=yes
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 ac_header_compiler=no
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976 echo "${ECHO_T}$ac_header_compiler" >&6; }
10978 # Is the header present?
10979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <$ac_header>
10989 if { (ac_try="$ac_cpp conftest.$ac_ext"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } >/dev/null; then
11002 if test -s conftest.err; then
11003 ac_cpp_err=$ac_c_preproc_warn_flag
11004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11011 if test -z "$ac_cpp_err"; then
11012 ac_header_preproc=yes
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 ac_header_preproc=no
11020 rm -f conftest.err conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022 echo "${ECHO_T}$ac_header_preproc" >&6; }
11024 # So? What about this header?
11025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031 ac_header_preproc=yes
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 ## ------------------------------ ##
11048 ## Report this to bugs@yourdomain ##
11049 ## ------------------------------ ##
11051 ) | sed "s/^/$as_me: WARNING: /" >&2
11054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 eval "$as_ac_Header=\$ac_header_preproc"
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062 { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11079 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11092 # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 $ac_includes_default
11102 #include <$ac_header>
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_compile") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_header_compiler=yes
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11143 ac_header_compiler=no
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11169 grep -v '^ *+' conftest.er1 >conftest.err
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183 if test -z "$ac_cpp_err"; then
11184 ac_header_preproc=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_header_preproc=no
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11196 # So? What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203 ac_header_preproc=yes
11206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11219 ## ------------------------------ ##
11220 ## Report this to bugs@yourdomain ##
11221 ## ------------------------------ ##
11223 ) | sed "s/^/$as_me: WARNING: /" >&2
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 eval "$as_ac_Header=\$ac_header_preproc"
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11249 for ac_header in string.h strings.h
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11262 # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 #include <$ac_header>
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289 { (case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_try") 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_try") 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_header_compiler=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_compiler=no
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 #include <$ac_header>
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null; then
11344 if test -s conftest.err; then
11345 ac_cpp_err=$ac_c_preproc_warn_flag
11346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353 if test -z "$ac_cpp_err"; then
11354 ac_header_preproc=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 ## ------------------------------ ##
11390 ## Report this to bugs@yourdomain ##
11391 ## ------------------------------ ##
11393 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11420 for ac_func in strchr index
11422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11436 #define $ac_func innocuous_$ac_func
11438 /* System header to define __stub macros and hopefully few prototypes,
11439 which can conflict with char $ac_func (); below.
11440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441 <limits.h> exists even on freestanding compilers. */
11444 # include <limits.h>
11446 # include <assert.h>
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11458 /* The GNU C library defines this for functions which it implements
11459 to always fail with ENOSYS. Some functions are actually named
11460 something starting with __ and the normal name is an alias. */
11461 #if defined __stub_$ac_func || defined __stub___$ac_func
11468 return $ac_func ();
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480 (eval "$ac_link") 2>conftest.er1
11482 grep -v '^ *+' conftest.er1 >conftest.err
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_try") 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 eval "$as_ac_var=yes"
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 eval "$as_ac_var=no"
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11518 ac_res=`eval echo '${'$as_ac_var'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522 cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11531 for ac_func in strrchr rindex
11533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11547 #define $ac_func innocuous_$ac_func
11549 /* System header to define __stub macros and hopefully few prototypes,
11550 which can conflict with char $ac_func (); below.
11551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552 <limits.h> exists even on freestanding compilers. */
11555 # include <limits.h>
11557 # include <assert.h>
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11569 /* The GNU C library defines this for functions which it implements
11570 to always fail with ENOSYS. Some functions are actually named
11571 something starting with __ and the normal name is an alias. */
11572 #if defined __stub_$ac_func || defined __stub___$ac_func
11579 return $ac_func ();
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599 { (case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_try") 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest$ac_exeext'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 eval "$as_ac_var=yes"
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 eval "$as_ac_var=no"
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11629 ac_res=`eval echo '${'$as_ac_var'}'`
11630 { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642 for ac_func in memcpy bcopy
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11666 # include <limits.h>
11668 # include <assert.h>
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11690 return $ac_func ();
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702 (eval "$ac_link") 2>conftest.er1
11704 grep -v '^ *+' conftest.er1 >conftest.err
11706 cat conftest.err >&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710 { (case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_try") 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest$ac_exeext'
11720 { (case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_try") 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "$as_ac_var=yes"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11737 rm -f core conftest.err conftest.$ac_objext \
11738 conftest$ac_exeext conftest.$ac_ext
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741 { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744 cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11753 for ac_func in memmove strcmp
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11769 #define $ac_func innocuous_$ac_func
11771 /* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func (); below.
11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774 <limits.h> exists even on freestanding compilers. */
11777 # include <limits.h>
11779 # include <assert.h>
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11791 /* The GNU C library defines this for functions which it implements
11792 to always fail with ENOSYS. Some functions are actually named
11793 something starting with __ and the normal name is an alias. */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11801 return $ac_func ();
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821 { (case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_try") 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_try") 2>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 eval "$as_ac_var=yes"
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 eval "$as_ac_var=no"
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852 { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855 cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 for ac_func in closedir opendir readdir
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964 { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967 cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11990 if test "$GCC" != "yes" && test "$ICC" != "yes"
11992 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993 echo "$as_me: error: gcc|icc required but not found" >&2;}
11994 { (exit 1); exit 1; }; }
11997 if test "$GXX" != "yes" && test "$IXX" != "yes"
11999 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001 { (exit 1); exit 1; }; }
12004 if test "$GCC" = "yes"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 #if !defined(__GNUC__) || __GNUC__ < 3
12008 #error Unsupported GCC version
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_compile") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053 { (exit 1); exit 1; }; }
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 if test -z "$llvm_cv_gnu_make_command"
12061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062 echo "$as_me: error: GNU Make required but not found" >&2;}
12063 { (exit 1); exit 1; }; }
12066 { echo "$as_me:$LINENO: result: ok" >&5
12067 echo "${ECHO_T}ok" >&6; }
12069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12071 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12077 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12082 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_m_sin+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_check_lib_save_LIBS=$LIBS
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_m_sin=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159 if test $ac_cv_lib_m_sin = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBM 1
12168 if test "$llvm_cv_os_type" = "MingW" ; then
12170 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-limagehlp $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_imagehlp_main=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_lib_imagehlp_main=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241 if test $ac_cv_lib_imagehlp_main = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBIMAGEHLP 1
12246 LIBS="-limagehlp $LIBS"
12251 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253 if test "${ac_cv_lib_psapi_main+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lpsapi $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_lib_psapi_main=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_cv_lib_psapi_main=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322 if test $ac_cv_lib_psapi_main = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBPSAPI 1
12327 LIBS="-lpsapi $LIBS"
12333 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335 if test "${ac_cv_search_dlopen+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 ac_func_search_save_LIBS=$LIBS
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12361 for ac_lib in '' dl; do
12362 if test -z "$ac_lib"; then
12363 ac_res="none required"
12366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_search_dlopen=$ac_res
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12410 rm -f core conftest.err conftest.$ac_objext \
12412 if test "${ac_cv_search_dlopen+set}" = set; then
12416 if test "${ac_cv_search_dlopen+set}" = set; then
12419 ac_cv_search_dlopen=no
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12424 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426 ac_res=$ac_cv_search_dlopen
12427 if test "$ac_res" != no; then
12428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_DLOPEN 1
12435 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12440 if test "$llvm_cv_enable_libffi" = "yes" ; then
12441 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443 if test "${ac_cv_search_ffi_call+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 ac_func_search_save_LIBS=$LIBS
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12464 return ffi_call ();
12469 for ac_lib in '' ffi; do
12470 if test -z "$ac_lib"; then
12471 ac_res="none required"
12474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest$ac_exeext'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_ffi_call=$ac_res
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12518 rm -f core conftest.err conftest.$ac_objext \
12520 if test "${ac_cv_search_ffi_call+set}" = set; then
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
12527 ac_cv_search_ffi_call=no
12529 rm conftest.$ac_ext
12530 LIBS=$ac_func_search_save_LIBS
12532 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534 ac_res=$ac_cv_search_ffi_call
12535 if test "$ac_res" != no; then
12536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_FFI_CALL 1
12543 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545 { (exit 1); exit 1; }; }
12550 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552 if test "${ac_cv_search_mallinfo+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 ac_func_search_save_LIBS=$LIBS
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12563 /* Override any GCC internal prototype to avoid an error.
12564 Use char because int might match the return type of a GCC
12565 builtin and then its argument prototype would still apply. */
12573 return mallinfo ();
12578 for ac_lib in '' malloc; do
12579 if test -z "$ac_lib"; then
12580 ac_res="none required"
12583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search_mallinfo=$ac_res
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12627 rm -f core conftest.err conftest.$ac_objext \
12629 if test "${ac_cv_search_mallinfo+set}" = set; then
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
12636 ac_cv_search_mallinfo=no
12638 rm conftest.$ac_ext
12639 LIBS=$ac_func_search_save_LIBS
12641 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643 ac_res=$ac_cv_search_mallinfo
12644 if test "$ac_res" != no; then
12645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_MALLINFO 1
12654 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12656 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lpthread $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12670 /* Override any GCC internal prototype to avoid an error.
12671 Use char because int might match the return type of a GCC
12672 builtin and then its argument prototype would still apply. */
12676 char pthread_mutex_init ();
12680 return pthread_mutex_init ();
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_pthread_pthread_mutex_init=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_pthread_pthread_mutex_init=no
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12731 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBPTHREAD 1
12738 LIBS="-lpthread $LIBS"
12742 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12761 char pthread_mutex_lock ();
12765 return pthread_mutex_lock ();
12770 for ac_lib in '' pthread; do
12771 if test -z "$ac_lib"; then
12772 ac_res="none required"
12775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1 >conftest.err
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_cv_search_pthread_mutex_lock=$ac_res
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12819 rm -f core conftest.err conftest.$ac_objext \
12821 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12828 ac_cv_search_pthread_mutex_lock=no
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835 ac_res=$ac_cv_search_pthread_mutex_lock
12836 if test "$ac_res" != no; then
12837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_MUTEX_LOCK 1
12845 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12864 char pthread_rwlock_init ();
12868 return pthread_rwlock_init ();
12873 for ac_lib in '' pthread; do
12874 if test -z "$ac_lib"; then
12875 ac_res="none required"
12878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12889 grep -v '^ *+' conftest.er1 >conftest.err
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_search_pthread_rwlock_init=$ac_res
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f core conftest.err conftest.$ac_objext \
12924 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12931 ac_cv_search_pthread_rwlock_init=no
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938 ac_res=$ac_cv_search_pthread_rwlock_init
12939 if test "$ac_res" != no; then
12940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_RWLOCK_INIT 1
12948 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_func_search_save_LIBS=$LIBS
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12967 char pthread_getspecific ();
12971 return pthread_getspecific ();
12976 for ac_lib in '' pthread; do
12977 if test -z "$ac_lib"; then
12978 ac_res="none required"
12981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_search_pthread_getspecific=$ac_res
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13025 rm -f core conftest.err conftest.$ac_objext \
13027 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13034 ac_cv_search_pthread_getspecific=no
13036 rm conftest.$ac_ext
13037 LIBS=$ac_func_search_save_LIBS
13039 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041 ac_res=$ac_cv_search_pthread_getspecific
13042 if test "$ac_res" != no; then
13043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_PTHREAD_GETSPECIFIC 1
13054 # Check whether --with-udis86 was given.
13055 if test "${with_udis86+set}" = set; then
13056 withval=$with_udis86;
13061 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13064 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ludis86 $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_link") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } &&
13107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_lib_udis86_ud_init=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_cv_lib_udis86_ud_init=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141 if test $ac_cv_lib_udis86_ud_init = yes; then
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_LIBUDIS86 1
13146 LIBS="-ludis86 $LIBS"
13150 echo "Error! You need to have libudis86 around."
13162 cat >>confdefs.h <<_ACEOF
13163 #define USE_UDIS86 $USE_UDIS86
13168 # Check whether --with-oprofile was given.
13169 if test "${with_oprofile+set}" = set; then
13170 withval=$with_oprofile;
13174 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175 no) llvm_cv_oppath=
13178 *) llvm_cv_oppath="${withval}/lib/oprofile"
13179 CPPFLAGS="-I${withval}/include";;
13181 if test -n "$llvm_cv_oppath" ; then
13182 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13183 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13184 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13185 if test "${ac_cv_search_bfd_init+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 ac_func_search_save_LIBS=$LIBS
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13206 return bfd_init ();
13211 for ac_lib in '' bfd; do
13212 if test -z "$ac_lib"; then
13213 ac_res="none required"
13216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (ac_try="$ac_link"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_link") 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13233 { (case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_try") 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } &&
13242 { ac_try='test -s conftest$ac_exeext'
13243 { (case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 ac_cv_search_bfd_init=$ac_res
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13260 rm -f core conftest.err conftest.$ac_objext \
13262 if test "${ac_cv_search_bfd_init+set}" = set; then
13266 if test "${ac_cv_search_bfd_init+set}" = set; then
13269 ac_cv_search_bfd_init=no
13271 rm conftest.$ac_ext
13272 LIBS=$ac_func_search_save_LIBS
13274 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13275 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13276 ac_res=$ac_cv_search_bfd_init
13277 if test "$ac_res" != no; then
13278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13283 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13284 if test "${ac_cv_search_op_open_agent+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 ac_func_search_save_LIBS=$LIBS
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 /* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13301 char op_open_agent ();
13305 return op_open_agent ();
13310 for ac_lib in '' opagent; do
13311 if test -z "$ac_lib"; then
13312 ac_res="none required"
13315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_link") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_try") 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest$ac_exeext'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_search_op_open_agent=$ac_res
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13359 rm -f core conftest.err conftest.$ac_objext \
13361 if test "${ac_cv_search_op_open_agent+set}" = set; then
13365 if test "${ac_cv_search_op_open_agent+set}" = set; then
13368 ac_cv_search_op_open_agent=no
13370 rm conftest.$ac_ext
13371 LIBS=$ac_func_search_save_LIBS
13373 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13374 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13375 ac_res=$ac_cv_search_op_open_agent
13376 if test "$ac_res" != no; then
13377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13381 echo "Error! You need to have libopagent around."
13386 if test "${ac_cv_header_opagent_h+set}" = set; then
13387 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13388 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13389 if test "${ac_cv_header_opagent_h+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13393 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13395 # Is the header compilable?
13396 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13397 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 $ac_includes_default
13405 #include <opagent.h>
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_compile") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_header_compiler=yes
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_header_compiler=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
13453 # Is the header present?
13454 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13455 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <opagent.h>
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null; then
13477 if test -s conftest.err; then
13478 ac_cpp_err=$ac_c_preproc_warn_flag
13479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13486 if test -z "$ac_cpp_err"; then
13487 ac_header_preproc=yes
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_header_preproc=no
13495 rm -f conftest.err conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 echo "${ECHO_T}$ac_header_preproc" >&6; }
13499 # So? What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13505 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13506 ac_header_preproc=yes
13509 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13510 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13512 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13514 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13516 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13518 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13520 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13522 ## ------------------------------ ##
13523 ## Report this to bugs@yourdomain ##
13524 ## ------------------------------ ##
13526 ) | sed "s/^/$as_me: WARNING: /" >&2
13529 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13530 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_opagent_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_cv_header_opagent_h=$ac_header_preproc
13536 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13537 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13540 if test $ac_cv_header_opagent_h = yes; then
13544 echo "Error! You need to have opagent.h around."
13560 cat >>confdefs.h <<_ACEOF
13561 #define USE_OPROFILE $USE_OPROFILE
13571 ac_header_dirent=no
13572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13573 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13574 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <sys/types.h>
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 eval "$as_ac_Header=yes"
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 eval "$as_ac_Header=no"
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 ac_res=`eval echo '${'$as_ac_Header'}'`
13642 { echo "$as_me:$LINENO: result: $ac_res" >&5
13643 echo "${ECHO_T}$ac_res" >&6; }
13644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13645 cat >>confdefs.h <<_ACEOF
13646 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13649 ac_header_dirent=$ac_hdr; break
13653 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13654 if test $ac_header_dirent = dirent.h; then
13655 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_opendir+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_func_search_save_LIBS=$LIBS
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13683 for ac_lib in '' dir; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_search_opendir=$ac_res
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13732 rm -f core conftest.err conftest.$ac_objext \
13734 if test "${ac_cv_search_opendir+set}" = set; then
13738 if test "${ac_cv_search_opendir+set}" = set; then
13741 ac_cv_search_opendir=no
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13747 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13748 ac_res=$ac_cv_search_opendir
13749 if test "$ac_res" != no; then
13750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757 if test "${ac_cv_search_opendir+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 ac_func_search_save_LIBS=$LIBS
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13783 for ac_lib in '' x; do
13784 if test -z "$ac_lib"; then
13785 ac_res="none required"
13788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13799 grep -v '^ *+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_search_opendir=$ac_res
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13832 rm -f core conftest.err conftest.$ac_objext \
13834 if test "${ac_cv_search_opendir+set}" = set; then
13838 if test "${ac_cv_search_opendir+set}" = set; then
13841 ac_cv_search_opendir=no
13843 rm conftest.$ac_ext
13844 LIBS=$ac_func_search_save_LIBS
13846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848 ac_res=$ac_cv_search_opendir
13849 if test "$ac_res" != no; then
13850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13856 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13857 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13858 if test "${ac_cv_header_mmap_anon+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 ac_cpp='$CPP $CPPFLAGS'
13863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13867 cat >conftest.$ac_ext <<_ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <sys/mman.h>
13874 #include <unistd.h>
13879 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_header_mmap_anon=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_header_mmap_anon=no
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13935 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13936 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13937 if test "$ac_cv_header_mmap_anon" = yes; then
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_MMAP_ANONYMOUS 1
13945 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13946 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13947 if test "${ac_cv_header_stat_broken+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13956 #include <sys/types.h>
13957 #include <sys/stat.h>
13959 #if defined S_ISBLK && defined S_IFDIR
13960 # if S_ISBLK (S_IFDIR)
13965 #if defined S_ISBLK && defined S_IFCHR
13966 # if S_ISBLK (S_IFCHR)
13971 #if defined S_ISLNK && defined S_IFREG
13972 # if S_ISLNK (S_IFREG)
13977 #if defined S_ISSOCK && defined S_IFREG
13978 # if S_ISSOCK (S_IFREG)
13984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "You lose" >/dev/null 2>&1; then
13986 ac_cv_header_stat_broken=yes
13988 ac_cv_header_stat_broken=no
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13995 if test $ac_cv_header_stat_broken = yes; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define STAT_MACROS_BROKEN 1
14003 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 #include <sys/types.h>
14015 #include <sys/wait.h>
14016 #ifndef WEXITSTATUS
14017 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14028 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14033 rm -f conftest.$ac_objext
14034 if { (ac_try="$ac_compile"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_header_sys_wait_h=yes
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_cv_header_sys_wait_h=no
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14078 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14079 if test $ac_cv_header_sys_wait_h = yes; then
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_SYS_WAIT_H 1
14087 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14088 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14089 if test "${ac_cv_header_time+set}" = set; then
14090 echo $ECHO_N "(cached) $ECHO_C" >&6
14092 cat >conftest.$ac_ext <<_ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 #include <sys/types.h>
14099 #include <sys/time.h>
14105 if ((struct tm *) 0)
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_compile") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126 { (case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_try") 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest.$ac_objext'
14136 { (case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_try") 2>&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145 ac_cv_header_time=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_cv_header_time=no
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14156 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14157 if test $ac_cv_header_time = yes; then
14159 cat >>confdefs.h <<\_ACEOF
14160 #define TIME_WITH_SYS_TIME 1
14172 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_res=`eval echo '${'$as_ac_Header'}'`
14182 { echo "$as_me:$LINENO: result: $ac_res" >&5
14183 echo "${ECHO_T}$ac_res" >&6; }
14185 # Is the header compilable?
14186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 #include <$ac_header>
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_header_compiler=yes
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_header_compiler=no
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14241 echo "${ECHO_T}$ac_header_compiler" >&6; }
14243 # Is the header present?
14244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 #include <$ac_header>
14254 if { (ac_try="$ac_cpp conftest.$ac_ext"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } >/dev/null; then
14267 if test -s conftest.err; then
14268 ac_cpp_err=$ac_c_preproc_warn_flag
14269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14276 if test -z "$ac_cpp_err"; then
14277 ac_header_preproc=yes
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 ac_header_preproc=no
14285 rm -f conftest.err conftest.$ac_ext
14286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14287 echo "${ECHO_T}$ac_header_preproc" >&6; }
14289 # So? What about this header?
14290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14296 ac_header_preproc=yes
14299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14312 ## ------------------------------ ##
14313 ## Report this to bugs@yourdomain ##
14314 ## ------------------------------ ##
14316 ) | sed "s/^/$as_me: WARNING: /" >&2
14319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 eval "$as_ac_Header=\$ac_header_preproc"
14326 ac_res=`eval echo '${'$as_ac_Header'}'`
14327 { echo "$as_me:$LINENO: result: $ac_res" >&5
14328 echo "${ECHO_T}$ac_res" >&6; }
14331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14332 cat >>confdefs.h <<_ACEOF
14333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14346 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 ac_res=`eval echo '${'$as_ac_Header'}'`
14356 { echo "$as_me:$LINENO: result: $ac_res" >&5
14357 echo "${ECHO_T}$ac_res" >&6; }
14359 # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14369 #include <$ac_header>
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386 { (case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391 (eval "$ac_try") 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; } &&
14395 { ac_try='test -s conftest.$ac_objext'
14396 { (case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_try") 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_header_compiler=yes
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_header_compiler=no
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415 echo "${ECHO_T}$ac_header_compiler" >&6; }
14417 # Is the header present?
14418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 #include <$ac_header>
14428 if { (ac_try="$ac_cpp conftest.$ac_ext"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } >/dev/null; then
14441 if test -s conftest.err; then
14442 ac_cpp_err=$ac_c_preproc_warn_flag
14443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14450 if test -z "$ac_cpp_err"; then
14451 ac_header_preproc=yes
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ac_header_preproc=no
14459 rm -f conftest.err conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6; }
14463 # So? What about this header?
14464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470 ac_header_preproc=yes
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14486 ## ------------------------------ ##
14487 ## Report this to bugs@yourdomain ##
14488 ## ------------------------------ ##
14490 ) | sed "s/^/$as_me: WARNING: /" >&2
14493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 eval "$as_ac_Header=\$ac_header_preproc"
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501 { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506 cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14516 for ac_header in utime.h windows.h
14518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 ac_res=`eval echo '${'$as_ac_Header'}'`
14526 { echo "$as_me:$LINENO: result: $ac_res" >&5
14527 echo "${ECHO_T}$ac_res" >&6; }
14529 # Is the header compilable?
14530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 $ac_includes_default
14539 #include <$ac_header>
14541 rm -f conftest.$ac_objext
14542 if { (ac_try="$ac_compile"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_compile") 2>conftest.er1
14550 grep -v '^ *+' conftest.er1 >conftest.err
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest.$ac_objext'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_header_compiler=yes
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14580 ac_header_compiler=no
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14585 echo "${ECHO_T}$ac_header_compiler" >&6; }
14587 # Is the header present?
14588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 #include <$ac_header>
14598 if { (ac_try="$ac_cpp conftest.$ac_ext"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1 >conftest.err
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } >/dev/null; then
14611 if test -s conftest.err; then
14612 ac_cpp_err=$ac_c_preproc_warn_flag
14613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14620 if test -z "$ac_cpp_err"; then
14621 ac_header_preproc=yes
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_header_preproc=no
14629 rm -f conftest.err conftest.$ac_ext
14630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14631 echo "${ECHO_T}$ac_header_preproc" >&6; }
14633 # So? What about this header?
14634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14640 ac_header_preproc=yes
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14656 ## ------------------------------ ##
14657 ## Report this to bugs@yourdomain ##
14658 ## ------------------------------ ##
14660 ) | sed "s/^/$as_me: WARNING: /" >&2
14663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 eval "$as_ac_Header=\$ac_header_preproc"
14670 ac_res=`eval echo '${'$as_ac_Header'}'`
14671 { echo "$as_me:$LINENO: result: $ac_res" >&5
14672 echo "${ECHO_T}$ac_res" >&6; }
14675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14676 cat >>confdefs.h <<_ACEOF
14677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14689 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 ac_res=`eval echo '${'$as_ac_Header'}'`
14699 { echo "$as_me:$LINENO: result: $ac_res" >&5
14700 echo "${ECHO_T}$ac_res" >&6; }
14702 # Is the header compilable?
14703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 $ac_includes_default
14712 #include <$ac_header>
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_compile") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_try") 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_header_compiler=yes
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 ac_header_compiler=no
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14758 echo "${ECHO_T}$ac_header_compiler" >&6; }
14760 # Is the header present?
14761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 #include <$ac_header>
14771 if { (ac_try="$ac_cpp conftest.$ac_ext"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } >/dev/null; then
14784 if test -s conftest.err; then
14785 ac_cpp_err=$ac_c_preproc_warn_flag
14786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14793 if test -z "$ac_cpp_err"; then
14794 ac_header_preproc=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_header_preproc=no
14802 rm -f conftest.err conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804 echo "${ECHO_T}$ac_header_preproc" >&6; }
14806 # So? What about this header?
14807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14813 ac_header_preproc=yes
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14829 ## ------------------------------ ##
14830 ## Report this to bugs@yourdomain ##
14831 ## ------------------------------ ##
14833 ) | sed "s/^/$as_me: WARNING: /" >&2
14836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 eval "$as_ac_Header=\$ac_header_preproc"
14843 ac_res=`eval echo '${'$as_ac_Header'}'`
14844 { echo "$as_me:$LINENO: result: $ac_res" >&5
14845 echo "${ECHO_T}$ac_res" >&6; }
14848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14861 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 ac_res=`eval echo '${'$as_ac_Header'}'`
14871 { echo "$as_me:$LINENO: result: $ac_res" >&5
14872 echo "${ECHO_T}$ac_res" >&6; }
14874 # Is the header compilable?
14875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 $ac_includes_default
14884 #include <$ac_header>
14886 rm -f conftest.$ac_objext
14887 if { (ac_try="$ac_compile"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_compile") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } &&
14900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14901 { (case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_try") 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_header_compiler=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_header_compiler=no
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930 echo "${ECHO_T}$ac_header_compiler" >&6; }
14932 # Is the header present?
14933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <$ac_header>
14943 if { (ac_try="$ac_cpp conftest.$ac_ext"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14951 grep -v '^ *+' conftest.er1 >conftest.err
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null; then
14956 if test -s conftest.err; then
14957 ac_cpp_err=$ac_c_preproc_warn_flag
14958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14965 if test -z "$ac_cpp_err"; then
14966 ac_header_preproc=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_preproc=no
14974 rm -f conftest.err conftest.$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14976 echo "${ECHO_T}$ac_header_preproc" >&6; }
14978 # So? What about this header?
14979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14985 ac_header_preproc=yes
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15001 ## ------------------------------ ##
15002 ## Report this to bugs@yourdomain ##
15003 ## ------------------------------ ##
15005 ) | sed "s/^/$as_me: WARNING: /" >&2
15008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 eval "$as_ac_Header=\$ac_header_preproc"
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016 { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15030 for ac_header in valgrind/valgrind.h
15032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 ac_res=`eval echo '${'$as_ac_Header'}'`
15040 { echo "$as_me:$LINENO: result: $ac_res" >&5
15041 echo "${ECHO_T}$ac_res" >&6; }
15043 # Is the header compilable?
15044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 #include <$ac_header>
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15064 grep -v '^ *+' conftest.er1 >conftest.err
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_header_compiler=yes
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 ac_header_compiler=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15099 echo "${ECHO_T}$ac_header_compiler" >&6; }
15101 # Is the header present?
15102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <$ac_header>
15112 if { (ac_try="$ac_cpp conftest.$ac_ext"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } >/dev/null; then
15125 if test -s conftest.err; then
15126 ac_cpp_err=$ac_c_preproc_warn_flag
15127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15134 if test -z "$ac_cpp_err"; then
15135 ac_header_preproc=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_header_preproc=no
15143 rm -f conftest.err conftest.$ac_ext
15144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15145 echo "${ECHO_T}$ac_header_preproc" >&6; }
15147 # So? What about this header?
15148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15154 ac_header_preproc=yes
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15170 ## ------------------------------ ##
15171 ## Report this to bugs@yourdomain ##
15172 ## ------------------------------ ##
15174 ) | sed "s/^/$as_me: WARNING: /" >&2
15177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 eval "$as_ac_Header=\$ac_header_preproc"
15184 ac_res=`eval echo '${'$as_ac_Header'}'`
15185 { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15190 cat >>confdefs.h <<_ACEOF
15191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15199 for ac_header in fenv.h
15201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 ac_res=`eval echo '${'$as_ac_Header'}'`
15209 { echo "$as_me:$LINENO: result: $ac_res" >&5
15210 echo "${ECHO_T}$ac_res" >&6; }
15212 # Is the header compilable?
15213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15215 cat >conftest.$ac_ext <<_ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221 $ac_includes_default
15222 #include <$ac_header>
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_try") 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_header_compiler=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_header_compiler=no
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15268 echo "${ECHO_T}$ac_header_compiler" >&6; }
15270 # Is the header present?
15271 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <$ac_header>
15281 if { (ac_try="$ac_cpp conftest.$ac_ext"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15289 grep -v '^ *+' conftest.er1 >conftest.err
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } >/dev/null; then
15294 if test -s conftest.err; then
15295 ac_cpp_err=$ac_c_preproc_warn_flag
15296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15303 if test -z "$ac_cpp_err"; then
15304 ac_header_preproc=yes
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ac_header_preproc=no
15312 rm -f conftest.err conftest.$ac_ext
15313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15314 echo "${ECHO_T}$ac_header_preproc" >&6; }
15316 # So? What about this header?
15317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15323 ac_header_preproc=yes
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15339 ## ------------------------------ ##
15340 ## Report this to bugs@yourdomain ##
15341 ## ------------------------------ ##
15343 ) | sed "s/^/$as_me: WARNING: /" >&2
15346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 eval "$as_ac_Header=\$ac_header_preproc"
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354 { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15369 for ac_header in pthread.h
15371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 ac_res=`eval echo '${'$as_ac_Header'}'`
15379 { echo "$as_me:$LINENO: result: $ac_res" >&5
15380 echo "${ECHO_T}$ac_res" >&6; }
15382 # Is the header compilable?
15383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15385 cat >conftest.$ac_ext <<_ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 $ac_includes_default
15392 #include <$ac_header>
15394 rm -f conftest.$ac_objext
15395 if { (ac_try="$ac_compile"
15396 case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_compile") 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15409 { (case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_try") 2>&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest.$ac_objext'
15419 { (case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_try") 2>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_header_compiler=yes
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_compiler=no
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6; }
15440 # Is the header present?
15441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 #include <$ac_header>
15451 if { (ac_try="$ac_cpp conftest.$ac_ext"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } >/dev/null; then
15464 if test -s conftest.err; then
15465 ac_cpp_err=$ac_c_preproc_warn_flag
15466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15473 if test -z "$ac_cpp_err"; then
15474 ac_header_preproc=yes
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_header_preproc=no
15482 rm -f conftest.err conftest.$ac_ext
15483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15484 echo "${ECHO_T}$ac_header_preproc" >&6; }
15486 # So? What about this header?
15487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15493 ac_header_preproc=yes
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15509 ## ------------------------------ ##
15510 ## Report this to bugs@yourdomain ##
15511 ## ------------------------------ ##
15513 ) | sed "s/^/$as_me: WARNING: /" >&2
15516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 eval "$as_ac_Header=\$ac_header_preproc"
15523 ac_res=`eval echo '${'$as_ac_Header'}'`
15524 { echo "$as_me:$LINENO: result: $ac_res" >&5
15525 echo "${ECHO_T}$ac_res" >&6; }
15528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15529 cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546 if test "$llvm_cv_enable_libffi" = "yes" ; then
15549 for ac_header in ffi.h ffi/ffi.h
15551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559 { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15562 # Is the header compilable?
15563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 $ac_includes_default
15572 #include <$ac_header>
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_compile") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589 { (case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_try") 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
15599 { (case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_try") 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_header_compiler=no
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618 echo "${ECHO_T}$ac_header_compiler" >&6; }
15620 # Is the header present?
15621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 #include <$ac_header>
15631 if { (ac_try="$ac_cpp conftest.$ac_ext"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } >/dev/null; then
15644 if test -s conftest.err; then
15645 ac_cpp_err=$ac_c_preproc_warn_flag
15646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15653 if test -z "$ac_cpp_err"; then
15654 ac_header_preproc=yes
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_header_preproc=no
15662 rm -f conftest.err conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6; }
15666 # So? What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc=yes
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15689 ## ------------------------------ ##
15690 ## Report this to bugs@yourdomain ##
15691 ## ------------------------------ ##
15693 ) | sed "s/^/$as_me: WARNING: /" >&2
15696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 eval "$as_ac_Header=\$ac_header_preproc"
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15720 for ac_header in CrashReporterClient.h
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 ac_res=`eval echo '${'$as_ac_Header'}'`
15730 { echo "$as_me:$LINENO: result: $ac_res" >&5
15731 echo "${ECHO_T}$ac_res" >&6; }
15733 # Is the header compilable?
15734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 $ac_includes_default
15743 #include <$ac_header>
15745 rm -f conftest.$ac_objext
15746 if { (ac_try="$ac_compile"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_compile") 2>conftest.er1
15754 grep -v '^ *+' conftest.er1 >conftest.err
15756 cat conftest.err >&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); } &&
15759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_try") 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_header_compiler=no
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6; }
15791 # Is the header present?
15792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <$ac_header>
15802 if { (ac_try="$ac_cpp conftest.$ac_ext"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15810 grep -v '^ *+' conftest.er1 >conftest.err
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } >/dev/null; then
15815 if test -s conftest.err; then
15816 ac_cpp_err=$ac_c_preproc_warn_flag
15817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15824 if test -z "$ac_cpp_err"; then
15825 ac_header_preproc=yes
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 ac_header_preproc=no
15833 rm -f conftest.err conftest.$ac_ext
15834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15835 echo "${ECHO_T}$ac_header_preproc" >&6; }
15837 # So? What about this header?
15838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15844 ac_header_preproc=yes
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15860 ## ------------------------------ ##
15861 ## Report this to bugs@yourdomain ##
15862 ## ------------------------------ ##
15864 ) | sed "s/^/$as_me: WARNING: /" >&2
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 eval "$as_ac_Header=\$ac_header_preproc"
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875 { echo "$as_me:$LINENO: result: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15890 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 extern const char *__crashreporter_info__;
15899 __crashreporter_info__ = "test";
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest$ac_exeext'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 { echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6; }
15941 cat >>confdefs.h <<\_ACEOF
15942 #define HAVE_CRASHREPORTER_INFO 1
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 { echo "$as_me:$LINENO: result: no" >&5
15950 echo "${ECHO_T}no" >&6; }
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_CRASHREPORTER_INFO 0
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15964 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15965 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15966 if test "${ac_cv_huge_val_sanity+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_cpp='$CXXCPP $CPPFLAGS'
15972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15976 ac_save_CXXFLAGS=$CXXFLAGS
15977 CXXFLAGS="$CXXFLAGS -pedantic"
15978 if test "$cross_compiling" = yes; then
15979 ac_cv_huge_val_sanity=yes
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15991 double x = HUGE_VAL; return x != x;
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_cv_huge_val_sanity=yes
16018 echo "$as_me: program exited with status $ac_status" >&5
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ( exit $ac_status )
16023 ac_cv_huge_val_sanity=no
16025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16029 CXXFLAGS=$ac_save_CXXFLAGS
16031 ac_cpp='$CPP $CPPFLAGS'
16032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16038 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16039 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16040 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16043 { echo "$as_me:$LINENO: checking for pid_t" >&5
16044 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16045 if test "${ac_cv_type_pid_t+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 typedef pid_t ac__type_new_;
16059 if ((ac__type_new_ *) 0)
16061 if (sizeof (ac__type_new_))
16067 rm -f conftest.$ac_objext
16068 if { (ac_try="$ac_compile"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_compile") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1 >conftest.err
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082 { (case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_try") 2>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_try") 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_type_pid_t=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_cv_type_pid_t=no
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16112 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16113 if test $ac_cv_type_pid_t = yes; then
16117 cat >>confdefs.h <<_ACEOF
16123 { echo "$as_me:$LINENO: checking for size_t" >&5
16124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16125 if test "${ac_cv_type_size_t+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 typedef size_t ac__type_new_;
16139 if ((ac__type_new_ *) 0)
16141 if (sizeof (ac__type_new_))
16147 rm -f conftest.$ac_objext
16148 if { (ac_try="$ac_compile"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162 { (case "(($ac_try" in
16163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164 *) ac_try_echo=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_try") 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_type_size_t=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 ac_cv_type_size_t=no
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16191 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16192 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16193 if test $ac_cv_type_size_t = yes; then
16197 cat >>confdefs.h <<_ACEOF
16198 #define size_t unsigned int
16204 cat >>confdefs.h <<_ACEOF
16205 #define RETSIGTYPE void
16208 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16209 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16210 if test "${ac_cv_struct_tm+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <sys/types.h>
16225 struct tm *tp; tp->tm_sec;
16230 rm -f conftest.$ac_objext
16231 if { (ac_try="$ac_compile"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_compile") 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_try") 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_try") 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_struct_tm=time.h
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_cv_struct_tm=sys/time.h
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16275 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16276 if test $ac_cv_struct_tm = sys/time.h; then
16278 cat >>confdefs.h <<\_ACEOF
16279 #define TM_IN_SYS_TIME 1
16284 { echo "$as_me:$LINENO: checking for int64_t" >&5
16285 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16286 if test "${ac_cv_type_int64_t+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16296 typedef int64_t ac__type_new_;
16300 if ((ac__type_new_ *) 0)
16302 if (sizeof (ac__type_new_))
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_type_int64_t=yes
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 ac_cv_type_int64_t=no
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16353 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16354 if test $ac_cv_type_int64_t = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_INT64_T 1
16362 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16363 echo "$as_me: error: Type int64_t required but not found" >&2;}
16364 { (exit 1); exit 1; }; }
16367 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16368 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16369 if test "${ac_cv_type_uint64_t+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16379 typedef uint64_t ac__type_new_;
16383 if ((ac__type_new_ *) 0)
16385 if (sizeof (ac__type_new_))
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_cv_type_uint64_t=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_type_uint64_t=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16436 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16437 if test $ac_cv_type_uint64_t = yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define HAVE_UINT64_T 1
16445 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16446 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16447 if test "${ac_cv_type_u_int64_t+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 $ac_includes_default
16457 typedef u_int64_t ac__type_new_;
16461 if ((ac__type_new_ *) 0)
16463 if (sizeof (ac__type_new_))
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16478 grep -v '^ *+' conftest.er1 >conftest.err
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_type_u_int64_t=yes
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 ac_cv_type_u_int64_t=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16514 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16515 if test $ac_cv_type_u_int64_t = yes; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_U_INT64_T 1
16523 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16524 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16525 { (exit 1); exit 1; }; }
16539 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16555 #define $ac_func innocuous_$ac_func
16557 /* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below.
16559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560 <limits.h> exists even on freestanding compilers. */
16563 # include <limits.h>
16565 # include <assert.h>
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined __stub_$ac_func || defined __stub___$ac_func
16587 return $ac_func ();
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 eval "$as_ac_var=yes"
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 eval "$as_ac_var=no"
16634 rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16637 ac_res=`eval echo '${'$as_ac_var'}'`
16638 { echo "$as_me:$LINENO: result: $ac_res" >&5
16639 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_var'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16652 for ac_func in powf fmodf strtof round
16654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16668 #define $ac_func innocuous_$ac_func
16670 /* System header to define __stub macros and hopefully few prototypes,
16671 which can conflict with char $ac_func (); below.
16672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16673 <limits.h> exists even on freestanding compilers. */
16676 # include <limits.h>
16678 # include <assert.h>
16683 /* Override any GCC internal prototype to avoid an error.
16684 Use char because int might match the return type of a GCC
16685 builtin and then its argument prototype would still apply. */
16690 /* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693 #if defined __stub_$ac_func || defined __stub___$ac_func
16700 return $ac_func ();
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_link") 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest$ac_exeext'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 eval "$as_ac_var=yes"
16741 echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16744 eval "$as_ac_var=no"
16747 rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16750 ac_res=`eval echo '${'$as_ac_var'}'`
16751 { echo "$as_me:$LINENO: result: $ac_res" >&5
16752 echo "${ECHO_T}$ac_res" >&6; }
16753 if test `eval echo '${'$as_ac_var'}'` = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16766 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define $ac_func innocuous_$ac_func
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char $ac_func (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16790 # include <limits.h>
16792 # include <assert.h>
16797 /* Override any GCC internal prototype to avoid an error.
16798 Use char because int might match the return type of a GCC
16799 builtin and then its argument prototype would still apply. */
16804 /* The GNU C library defines this for functions which it implements
16805 to always fail with ENOSYS. Some functions are actually named
16806 something starting with __ and the normal name is an alias. */
16807 #if defined __stub_$ac_func || defined __stub___$ac_func
16814 return $ac_func ();
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_link") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest$ac_exeext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 eval "$as_ac_var=yes"
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no"
16861 rm -f core conftest.err conftest.$ac_objext \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16878 for ac_func in isatty mkdtemp mkstemp
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16909 /* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16916 /* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16926 return $ac_func ();
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 eval "$as_ac_var=yes"
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 eval "$as_ac_var=no"
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16976 ac_res=`eval echo '${'$as_ac_var'}'`
16977 { echo "$as_me:$LINENO: result: $ac_res" >&5
16978 echo "${ECHO_T}$ac_res" >&6; }
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16993 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 cat >conftest.$ac_ext <<_ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17009 #define $ac_func innocuous_$ac_func
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func (); below.
17013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17014 <limits.h> exists even on freestanding compilers. */
17017 # include <limits.h>
17019 # include <assert.h>
17024 /* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined __stub_$ac_func || defined __stub___$ac_func
17041 return $ac_func ();
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (ac_try="$ac_link"
17048 case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_link") 2>conftest.er1
17055 grep -v '^ *+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 eval "$as_ac_var=yes"
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 eval "$as_ac_var=no"
17088 rm -f core conftest.err conftest.$ac_objext \
17089 conftest$ac_exeext conftest.$ac_ext
17091 ac_res=`eval echo '${'$as_ac_var'}'`
17092 { echo "$as_me:$LINENO: result: $ac_res" >&5
17093 echo "${ECHO_T}$ac_res" >&6; }
17094 if test `eval echo '${'$as_ac_var'}'` = yes; then
17095 cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105 for ac_func in strerror strerror_r setenv
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121 #define $ac_func innocuous_$ac_func
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17129 # include <limits.h>
17131 # include <assert.h>
17136 /* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
17143 /* The GNU C library defines this for functions which it implements
17144 to always fail with ENOSYS. Some functions are actually named
17145 something starting with __ and the normal name is an alias. */
17146 #if defined __stub_$ac_func || defined __stub___$ac_func
17153 return $ac_func ();
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 eval "$as_ac_var=yes"
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 eval "$as_ac_var=no"
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17203 ac_res=`eval echo '${'$as_ac_var'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207 cat >>confdefs.h <<_ACEOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17218 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 return $ac_func ();
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17313 rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17332 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17380 return $ac_func ();
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 eval "$as_ac_var=yes"
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 eval "$as_ac_var=no"
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17430 ac_res=`eval echo '${'$as_ac_var'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17441 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17442 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17443 if test "${llvm_cv_c_printf_a+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 ac_cpp='$CPP $CPPFLAGS'
17448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452 if test "$cross_compiling" = yes; then
17453 llvmac_cv_c_printf_a=no
17455 cat >conftest.$ac_ext <<_ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17464 #include <stdlib.h>
17470 volatile double A, B;
17474 sprintf(Buffer, "%a", A);
17478 if (A != 0x1.999999999999ap-4)
17485 rm -f conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 llvm_cv_c_printf_a=yes
17507 echo "$as_me: program exited with status $ac_status" >&5
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ( exit $ac_status )
17512 llvmac_cv_c_printf_a=no
17514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17519 ac_cpp='$CPP $CPPFLAGS'
17520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17525 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17526 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17527 if test "$llvm_cv_c_printf_a" = "yes"; then
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_PRINTF_A 1
17536 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17537 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17538 if test "${ac_cv_func_rand48+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 ac_cpp='$CXXCPP $CPPFLAGS'
17543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include <stdlib.h>
17557 srand48(0);lrand48();drand48();
17562 rm -f conftest.$ac_objext
17563 if { (ac_try="$ac_compile"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_compile") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17577 { (case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_try") 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_try") 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_func_rand48=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_func_rand48=no
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606 ac_cpp='$CPP $CPPFLAGS'
17607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17612 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17613 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17615 if test "$ac_cv_func_rand48" = "yes" ; then
17617 cat >>confdefs.h <<\_ACEOF
17618 #define HAVE_RAND48 1
17624 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17625 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17626 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17635 $ac_includes_default
17640 char *p = (char *) strerror_s;
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663 { (case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_try") 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_have_decl_strerror_s=yes
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17687 ac_cv_have_decl_strerror_s=no
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17693 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17694 if test $ac_cv_have_decl_strerror_s = yes; then
17696 cat >>confdefs.h <<_ACEOF
17697 #define HAVE_DECL_STRERROR_S 1
17702 cat >>confdefs.h <<_ACEOF
17703 #define HAVE_DECL_STRERROR_S 0
17711 if test "$llvm_cv_os_type" = "MingW" ; then
17712 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17713 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17714 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 ac_check_lib_save_LIBS=$LIBS
17719 cat >conftest.$ac_ext <<_ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h. */
17726 /* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_link") 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_lib_gcc__alloca=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 ac_cv_lib_gcc__alloca=no
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17788 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17789 if test $ac_cv_lib_gcc__alloca = yes; then
17791 cat >>confdefs.h <<\_ACEOF
17792 #define HAVE__ALLOCA 1
17797 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17798 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17799 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 ac_check_lib_save_LIBS=$LIBS
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17821 return __alloca ();
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_link") 2>conftest.er1
17835 grep -v '^ *+' conftest.er1 >conftest.err
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17841 { (case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_try") 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; } &&
17850 { ac_try='test -s conftest$ac_exeext'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17860 ac_cv_lib_gcc___alloca=yes
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 ac_cv_lib_gcc___alloca=no
17868 rm -f core conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17873 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17874 if test $ac_cv_lib_gcc___alloca = yes; then
17876 cat >>confdefs.h <<\_ACEOF
17877 #define HAVE___ALLOCA 1
17882 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17883 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17884 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 ac_check_lib_save_LIBS=$LIBS
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17906 return __chkstk ();
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } &&
17925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_try") 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 ac_cv_lib_gcc___chkstk=yes
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_cv_lib_gcc___chkstk=no
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17958 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17959 if test $ac_cv_lib_gcc___chkstk = yes; then
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE___CHKSTK 1
17967 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17968 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17969 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17972 ac_check_lib_save_LIBS=$LIBS
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17991 return ___chkstk ();
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_lib_gcc____chkstk=yes
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_cv_lib_gcc____chkstk=no
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18043 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18044 if test $ac_cv_lib_gcc____chkstk = yes; then
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE____CHKSTK 1
18053 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18054 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18055 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 ac_check_lib_save_LIBS=$LIBS
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18067 /* Override any GCC internal prototype to avoid an error.
18068 Use char because int might match the return type of a GCC
18069 builtin and then its argument prototype would still apply. */
18077 return __ashldi3 ();
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (ac_try="$ac_link"
18084 case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_link") 2>conftest.er1
18091 grep -v '^ *+' conftest.er1 >conftest.err
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_try") 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_lib_gcc___ashldi3=yes
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_lib_gcc___ashldi3=no
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126 LIBS=$ac_check_lib_save_LIBS
18128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18129 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18130 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18132 cat >>confdefs.h <<\_ACEOF
18133 #define HAVE___ASHLDI3 1
18138 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18139 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18140 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 ac_check_lib_save_LIBS=$LIBS
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18152 /* Override any GCC internal prototype to avoid an error.
18153 Use char because int might match the return type of a GCC
18154 builtin and then its argument prototype would still apply. */
18162 return __ashrdi3 ();
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } &&
18181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest$ac_exeext'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18201 ac_cv_lib_gcc___ashrdi3=yes
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 ac_cv_lib_gcc___ashrdi3=no
18209 rm -f core conftest.err conftest.$ac_objext \
18210 conftest$ac_exeext conftest.$ac_ext
18211 LIBS=$ac_check_lib_save_LIBS
18213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18214 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18215 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE___ASHRDI3 1
18223 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18224 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18225 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 ac_check_lib_save_LIBS=$LIBS
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18247 return __divdi3 ();
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest$ac_exeext'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_lib_gcc___divdi3=yes
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_cv_lib_gcc___divdi3=no
18294 rm -f core conftest.err conftest.$ac_objext \
18295 conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18299 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18300 if test $ac_cv_lib_gcc___divdi3 = yes; then
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE___DIVDI3 1
18308 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18309 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 ac_check_lib_save_LIBS=$LIBS
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18322 /* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
18332 return __fixdfdi ();
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_link") 2>conftest.er1
18346 grep -v '^ *+' conftest.er1 >conftest.err
18348 cat conftest.err >&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
18351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try='test -s conftest$ac_exeext'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_lib_gcc___fixdfdi=yes
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_cv_lib_gcc___fixdfdi=no
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18384 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18385 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18387 cat >>confdefs.h <<\_ACEOF
18388 #define HAVE___FIXDFDI 1
18393 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18394 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 ac_check_lib_save_LIBS=$LIBS
18400 cat >conftest.$ac_ext <<_ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18417 return __fixsfdi ();
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_try") 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
18456 ac_cv_lib_gcc___fixsfdi=yes
18458 echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_lib_gcc___fixsfdi=no
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18469 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18470 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE___FIXSFDI 1
18478 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18479 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ac_check_lib_save_LIBS=$LIBS
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18498 char __floatdidf ();
18502 return __floatdidf ();
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_cv_lib_gcc___floatdidf=yes
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 ac_cv_lib_gcc___floatdidf=no
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18554 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18555 if test $ac_cv_lib_gcc___floatdidf = yes; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE___FLOATDIDF 1
18563 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18564 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_check_lib_save_LIBS=$LIBS
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18577 /* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18587 return __lshrdi3 ();
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest$ac_exeext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_lib_gcc___lshrdi3=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_lib_gcc___lshrdi3=no
18634 rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18639 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18640 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE___LSHRDI3 1
18648 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18649 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18650 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 ac_check_lib_save_LIBS=$LIBS
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18672 return __moddi3 ();
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_link") 2>conftest.er1
18686 grep -v '^ *+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } &&
18691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18692 { (case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_try") 2>&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest$ac_exeext'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_lib_gcc___moddi3=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_cv_lib_gcc___moddi3=no
18719 rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18724 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18725 if test $ac_cv_lib_gcc___moddi3 = yes; then
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE___MODDI3 1
18733 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18734 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 ac_check_lib_save_LIBS=$LIBS
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18757 return __udivdi3 ();
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
18776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; } &&
18786 { ac_try='test -s conftest$ac_exeext'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_cv_lib_gcc___udivdi3=yes
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 ac_cv_lib_gcc___udivdi3=no
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806 LIBS=$ac_check_lib_save_LIBS
18808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18809 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18810 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE___UDIVDI3 1
18818 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18819 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18820 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 ac_check_lib_save_LIBS=$LIBS
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18842 return __umoddi3 ();
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862 { (case "(($ac_try" in
18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864 *) ac_try_echo=$ac_try;;
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867 (eval "$ac_try") 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest$ac_exeext'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_lib_gcc___umoddi3=yes
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_cv_lib_gcc___umoddi3=no
18889 rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18893 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18894 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18895 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE___UMODDI3 1
18904 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18905 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18906 if test "${ac_cv_lib_gcc___main+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 ac_check_lib_save_LIBS=$LIBS
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_gcc___main=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_lib_gcc___main=no
18975 rm -f core conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18980 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18981 if test $ac_cv_lib_gcc___main = yes; then
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE___MAIN 1
18989 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18990 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18991 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 ac_check_lib_save_LIBS=$LIBS
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19003 /* Override any GCC internal prototype to avoid an error.
19004 Use char because int might match the return type of a GCC
19005 builtin and then its argument prototype would still apply. */
19013 return __cmpdi2 ();
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_link") 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19033 { (case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_try") 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest$ac_exeext'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_lib_gcc___cmpdi2=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_lib_gcc___cmpdi2=no
19060 rm -f core conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
19062 LIBS=$ac_check_lib_save_LIBS
19064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19065 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19066 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE___CMPDI2 1
19076 if test "$llvm_cv_os_type" = "MingW" ; then
19077 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19078 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080 #include <windows.h>
19081 #include <imagehlp.h>
19082 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19083 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_compile") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19120 { echo "$as_me:$LINENO: result: yes" >&5
19121 echo "${ECHO_T}yes" >&6; }
19122 llvm_cv_win32_elmcb_pcstr="PCSTR"
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19129 { echo "$as_me:$LINENO: result: no" >&5
19130 echo "${ECHO_T}no" >&6; }
19131 llvm_cv_win32_elmcb_pcstr="PSTR"
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 cat >>confdefs.h <<_ACEOF
19138 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19144 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19145 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19146 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 ac_cpp='$CXXCPP $CPPFLAGS'
19151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } &&
19184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19185 { (case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_try") 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest.$ac_objext'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_func_isnan_in_math_h=yes
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_func_isnan_in_math_h=no
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19221 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19224 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19226 cat >>confdefs.h <<\_ACEOF
19227 #define HAVE_ISNAN_IN_MATH_H 1
19232 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19233 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19234 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 ac_cpp='$CXXCPP $CPPFLAGS'
19239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19258 rm -f conftest.$ac_objext
19259 if { (ac_try="$ac_compile"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19273 { (case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_try") 2>&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_try") 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_cv_func_isnan_in_cmath=yes
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19297 ac_cv_func_isnan_in_cmath=no
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 ac_cpp='$CPP $CPPFLAGS'
19303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19309 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19311 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_ISNAN_IN_CMATH 1
19319 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19320 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19321 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 ac_cpp='$CXXCPP $CPPFLAGS'
19326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19340 float f; std::isnan(f);
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_func_std_isnan_in_cmath=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_func_std_isnan_in_cmath=no
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 ac_cpp='$CPP $CPPFLAGS'
19390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19395 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19396 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19398 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_STD_ISNAN_IN_CMATH 1
19407 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19408 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19409 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 ac_cpp='$CXXCPP $CPPFLAGS'
19414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19433 rm -f conftest.$ac_objext
19434 if { (ac_try="$ac_compile"
19435 case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_compile") 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } &&
19457 { ac_try='test -s conftest.$ac_objext'
19458 { (case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_func_isinf_in_math_h=yes
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 ac_cv_func_isinf_in_math_h=no
19475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19483 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19484 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19486 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_ISINF_IN_MATH_H 1
19494 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19495 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19496 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 ac_cpp='$CXXCPP $CPPFLAGS'
19501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_compile") 2>conftest.er1
19529 grep -v '^ *+' conftest.er1 >conftest.err
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_try") 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_cv_func_isinf_in_cmath=yes
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19559 ac_cv_func_isinf_in_cmath=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 ac_cpp='$CPP $CPPFLAGS'
19565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19570 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19571 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19573 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_ISINF_IN_CMATH 1
19581 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19582 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19583 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 ac_cpp='$CXXCPP $CPPFLAGS'
19588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19602 float f; std::isinf(f);
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_func_std_isinf_in_cmath=yes
19643 echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19646 ac_cv_func_std_isinf_in_cmath=no
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 ac_cpp='$CPP $CPPFLAGS'
19652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19657 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19658 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19660 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define HAVE_STD_ISINF_IN_CMATH 1
19668 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19669 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19670 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 ac_cpp='$CXXCPP $CPPFLAGS'
19675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <ieeefp.h>
19689 float f; finite(f);
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_func_finite_in_ieeefp_h=yes
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 ac_cv_func_finite_in_ieeefp_h=no
19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19744 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19745 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19747 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_FINITE_IN_IEEEFP_H 1
19757 if test "$llvm_cv_platform_type" = "Unix" ; then
19760 for ac_header in stdlib.h unistd.h
19762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 ac_res=`eval echo '${'$as_ac_Header'}'`
19770 { echo "$as_me:$LINENO: result: $ac_res" >&5
19771 echo "${ECHO_T}$ac_res" >&6; }
19773 # Is the header compilable?
19774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 $ac_includes_default
19783 #include <$ac_header>
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_header_compiler=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_header_compiler=no
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <$ac_header>
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null; then
19855 if test -s conftest.err; then
19856 ac_cpp_err=$ac_c_preproc_warn_flag
19857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19864 if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_header_preproc=no
19873 rm -f conftest.err conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875 echo "${ECHO_T}$ac_header_preproc" >&6; }
19877 # So? What about this header?
19878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19884 ac_header_preproc=yes
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19900 ## ------------------------------ ##
19901 ## Report this to bugs@yourdomain ##
19902 ## ------------------------------ ##
19904 ) | sed "s/^/$as_me: WARNING: /" >&2
19907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 eval "$as_ac_Header=\$ac_header_preproc"
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915 { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19929 for ac_func in getpagesize
19931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19945 #define $ac_func innocuous_$ac_func
19947 /* System header to define __stub macros and hopefully few prototypes,
19948 which can conflict with char $ac_func (); below.
19949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950 <limits.h> exists even on freestanding compilers. */
19953 # include <limits.h>
19955 # include <assert.h>
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19967 /* The GNU C library defines this for functions which it implements
19968 to always fail with ENOSYS. Some functions are actually named
19969 something starting with __ and the normal name is an alias. */
19970 #if defined __stub_$ac_func || defined __stub___$ac_func
19977 return $ac_func ();
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19997 { (case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_try") 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest$ac_exeext'
20007 { (case "(($ac_try" in
20008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009 *) ac_try_echo=$ac_try;;
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012 (eval "$ac_try") 2>&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; }; then
20016 eval "$as_ac_var=yes"
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 eval "$as_ac_var=no"
20024 rm -f core conftest.err conftest.$ac_objext \
20025 conftest$ac_exeext conftest.$ac_ext
20027 ac_res=`eval echo '${'$as_ac_var'}'`
20028 { echo "$as_me:$LINENO: result: $ac_res" >&5
20029 echo "${ECHO_T}$ac_res" >&6; }
20030 if test `eval echo '${'$as_ac_var'}'` = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20038 { echo "$as_me:$LINENO: checking for working mmap" >&5
20039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 if test "$cross_compiling" = yes; then
20044 ac_cv_func_mmap_fixed_mapped=no
20046 cat >conftest.$ac_ext <<_ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20052 $ac_includes_default
20053 /* malloc might have been renamed as rpl_malloc. */
20056 /* Thanks to Mike Haertel and Jim Avera for this test.
20057 Here is a matrix of mmap possibilities:
20058 mmap private not fixed
20059 mmap private fixed at somewhere currently unmapped
20060 mmap private fixed at somewhere already mapped
20061 mmap shared not fixed
20062 mmap shared fixed at somewhere currently unmapped
20063 mmap shared fixed at somewhere already mapped
20064 For private mappings, we should verify that changes cannot be read()
20065 back from the file, nor mmap's back from the file at a different
20066 address. (There have been systems where private was not correctly
20067 implemented like the infamous i386 svr4.0, and systems where the
20068 VM page cache was not coherent with the file system buffer cache
20069 like early versions of FreeBSD and possibly contemporary NetBSD.)
20070 For shared mappings, we should conversely verify that changes get
20071 propagated back to all the places they're supposed to be.
20073 Grep wants private fixed already mapped.
20074 The main things grep needs to know about mmap are:
20075 * does it exist and is it safe to write into the mmap'd area
20076 * how to use it (BSD variants) */
20079 #include <sys/mman.h>
20081 #if !STDC_HEADERS && !HAVE_STDLIB_H
20085 /* This mess was copied from the GNU getpagesize.h. */
20086 #if !HAVE_GETPAGESIZE
20087 /* Assume that all systems that can run configure have sys/param.h. */
20088 # if !HAVE_SYS_PARAM_H
20089 # define HAVE_SYS_PARAM_H 1
20092 # ifdef _SC_PAGESIZE
20093 # define getpagesize() sysconf(_SC_PAGESIZE)
20094 # else /* no _SC_PAGESIZE */
20095 # if HAVE_SYS_PARAM_H
20096 # include <sys/param.h>
20097 # ifdef EXEC_PAGESIZE
20098 # define getpagesize() EXEC_PAGESIZE
20099 # else /* no EXEC_PAGESIZE */
20101 # define getpagesize() NBPG * CLSIZE
20104 # endif /* no CLSIZE */
20105 # else /* no NBPG */
20107 # define getpagesize() NBPC
20108 # else /* no NBPC */
20110 # define getpagesize() PAGESIZE
20111 # endif /* PAGESIZE */
20112 # endif /* no NBPC */
20113 # endif /* no NBPG */
20114 # endif /* no EXEC_PAGESIZE */
20115 # else /* no HAVE_SYS_PARAM_H */
20116 # define getpagesize() 8192 /* punt totally */
20117 # endif /* no HAVE_SYS_PARAM_H */
20118 # endif /* no _SC_PAGESIZE */
20120 #endif /* no HAVE_GETPAGESIZE */
20125 char *data, *data2, *data3;
20129 pagesize = getpagesize ();
20131 /* First, make a file with some known garbage in it. */
20132 data = (char *) malloc (pagesize);
20135 for (i = 0; i < pagesize; ++i)
20136 *(data + i) = rand ();
20138 fd = creat ("conftest.mmap", 0600);
20141 if (write (fd, data, pagesize) != pagesize)
20145 /* Next, try to mmap the file at a fixed address which already has
20146 something else allocated at it. If we can, also make sure that
20147 we see the same garbage. */
20148 fd = open ("conftest.mmap", O_RDWR);
20151 data2 = (char *) malloc (2 * pagesize);
20154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20158 for (i = 0; i < pagesize; ++i)
20159 if (*(data + i) != *(data2 + i))
20162 /* Finally, make sure that changes to the mapped area do not
20163 percolate back to the file as seen by read(). (This is a bug on
20164 some variants of i386 svr4.0.) */
20165 for (i = 0; i < pagesize; ++i)
20166 *(data2 + i) = *(data2 + i) + 1;
20167 data3 = (char *) malloc (pagesize);
20170 if (read (fd, data3, pagesize) != pagesize)
20172 for (i = 0; i < pagesize; ++i)
20173 if (*(data + i) != *(data3 + i))
20179 rm -f conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_func_mmap_fixed_mapped=yes
20201 echo "$as_me: program exited with status $ac_status" >&5
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ( exit $ac_status )
20206 ac_cv_func_mmap_fixed_mapped=no
20208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE_MMAP 1
20222 rm -f conftest.mmap
20224 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20225 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20226 if test "${ac_cv_func_mmap_file+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 ac_cpp='$CPP $CPPFLAGS'
20231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20235 if test "$cross_compiling" = yes; then
20236 ac_cv_func_mmap_file=no
20238 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20246 #include <sys/types.h>
20247 #include <sys/mman.h>
20255 fd = creat ("foo",0777);
20256 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20258 return (fd != (int) MAP_FAILED);
20263 rm -f conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_func_mmap_file=yes
20285 echo "$as_me: program exited with status $ac_status" >&5
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ( exit $ac_status )
20290 ac_cv_func_mmap_file=no
20292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20297 ac_cpp='$CPP $CPPFLAGS'
20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20305 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20306 if test "$ac_cv_func_mmap_file" = yes; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_MMAP_FILE
20316 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20317 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20318 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 if test "$llvm_cv_os_type" = "Interix" ; then
20322 ac_cv_need_dev_zero_for_mmap=yes
20324 ac_cv_need_dev_zero_for_mmap=no
20328 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20329 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20330 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20332 cat >>confdefs.h <<\_ACEOF
20333 #define NEED_DEV_ZERO_FOR_MMAP 1
20338 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20340 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20341 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20343 if test "$ac_cv_func_mmap_file" = "no"
20345 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20346 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20350 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20351 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20353 ac_cpp='$CXXCPP $CPPFLAGS'
20354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 volatile unsigned long val = 1;
20366 __sync_synchronize();
20367 __sync_val_compare_and_swap(&val, 1, 0);
20368 __sync_add_and_fetch(&val, 1);
20369 __sync_sub_and_fetch(&val, 1);
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_try") 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_try") 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20409 ac_cpp='$CPP $CPPFLAGS'
20410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414 { echo "$as_me:$LINENO: result: yes" >&5
20415 echo "${ECHO_T}yes" >&6; }
20417 cat >>confdefs.h <<\_ACEOF
20418 #define LLVM_HAS_ATOMICS 1
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 { echo "$as_me:$LINENO: result: no" >&5
20426 echo "${ECHO_T}no" >&6; }
20428 cat >>confdefs.h <<\_ACEOF
20429 #define LLVM_HAS_ATOMICS 0
20432 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20433 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20436 rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20440 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20441 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20442 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20443 if test "${llvm_cv_linux_mixed+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 ac_cpp='$CPP $CPPFLAGS'
20448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452 cat >conftest.$ac_ext <<_ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20459 error: Not x86-64 even if uname says so!
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477 (eval "$ac_compile") 2>conftest.er1
20479 grep -v '^ *+' conftest.er1 >conftest.err
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
20495 { (case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_try") 2>&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 llvm_cv_linux_mixed=no
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 llvm_cv_linux_mixed=yes
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20521 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20522 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20524 if test "$llvm_cv_linux_mixed" = "yes"; then
20525 llvm_cv_target_arch="x86"
20531 for ac_func in __dso_handle
20533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20547 #define $ac_func innocuous_$ac_func
20549 /* System header to define __stub macros and hopefully few prototypes,
20550 which can conflict with char $ac_func (); below.
20551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20552 <limits.h> exists even on freestanding compilers. */
20555 # include <limits.h>
20557 # include <assert.h>
20562 /* Override any GCC internal prototype to avoid an error.
20563 Use char because int might match the return type of a GCC
20564 builtin and then its argument prototype would still apply. */
20569 /* The GNU C library defines this for functions which it implements
20570 to always fail with ENOSYS. Some functions are actually named
20571 something starting with __ and the normal name is an alias. */
20572 #if defined __stub_$ac_func || defined __stub___$ac_func
20579 return $ac_func ();
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_link") 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599 { (case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_try") 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); }; } &&
20608 { ac_try='test -s conftest$ac_exeext'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 eval "$as_ac_var=yes"
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 eval "$as_ac_var=no"
20626 rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20629 ac_res=`eval echo '${'$as_ac_var'}'`
20630 { echo "$as_me:$LINENO: result: $ac_res" >&5
20631 echo "${ECHO_T}$ac_res" >&6; }
20632 if test `eval echo '${'$as_ac_var'}'` = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20641 SHLIBEXT=$libltdl_cv_shlibext
20644 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20647 # Translate the various configuration directories and other basic
20648 # information into substitutions that will end up in Makefile.config.in
20649 # that these configured values can be used by the makefiles
20650 if test "${prefix}" = "NONE" ; then
20651 prefix="/usr/local"
20653 eval LLVM_PREFIX="${prefix}";
20654 eval LLVM_BINDIR="${prefix}/bin";
20655 eval LLVM_LIBDIR="${prefix}/lib";
20656 eval LLVM_DATADIR="${prefix}/share/llvm";
20657 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20658 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20659 eval LLVM_INCLUDEDIR="${prefix}/include";
20660 eval LLVM_INFODIR="${prefix}/info";
20661 eval LLVM_MANDIR="${prefix}/man";
20662 LLVM_CONFIGTIME=`date`
20674 # Place the various directores into the config.h file as #defines so that we
20675 # can know about the installation paths within LLVM.
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_PREFIX "$LLVM_PREFIX"
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_BINDIR "$LLVM_BINDIR"
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20692 cat >>confdefs.h <<_ACEOF
20693 #define LLVM_DATADIR "$LLVM_DATADIR"
20697 cat >>confdefs.h <<_ACEOF
20698 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20702 cat >>confdefs.h <<_ACEOF
20703 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20707 cat >>confdefs.h <<_ACEOF
20708 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20712 cat >>confdefs.h <<_ACEOF
20713 #define LLVM_INFODIR "$LLVM_INFODIR"
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_MANDIR "$LLVM_MANDIR"
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20732 # Determine which bindings to build.
20733 if test "$BINDINGS_TO_BUILD" = auto ; then
20734 BINDINGS_TO_BUILD=""
20735 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20736 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20739 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20742 # This isn't really configurey, but it avoids having to repeat the list in
20747 # Do any work necessary to ensure that bindings have what they need.
20748 binding_prereqs_failed=0
20749 for a_binding in $BINDINGS_TO_BUILD ; do
20750 case "$a_binding" in
20752 if test "x$OCAMLC" = x ; then
20753 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20754 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20755 binding_prereqs_failed=1
20757 if test "x$OCAMLDEP" = x ; then
20758 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20759 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20760 binding_prereqs_failed=1
20762 if test "x$OCAMLOPT" = x ; then
20763 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20764 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20766 if test "x$with_ocaml_libdir" != xauto ; then
20767 OCAML_LIBDIR=$with_ocaml_libdir
20770 ocaml_stdlib="`"$OCAMLC" -where`"
20771 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20773 # ocaml stdlib is beneath our prefix; use stdlib
20774 OCAML_LIBDIR=$ocaml_stdlib
20777 # ocaml stdlib is outside our prefix; use libdir/ocaml
20778 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20785 if test "$binding_prereqs_failed" = 1 ; then
20786 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20787 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20788 { (exit 1); exit 1; }; }
20791 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20792 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20793 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 ac_cpp='$CXXCPP $CPPFLAGS'
20798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20802 oldcxxflags="$CXXFLAGS"
20803 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } &&
20833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
20844 { (case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_try") 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 llvm_cv_cxx_visibility_inlines_hidden=yes
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 llvm_cv_cxx_visibility_inlines_hidden=no
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 CXXFLAGS="$oldcxxflags"
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20871 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20872 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20873 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20874 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20877 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20882 if test "$llvm_cv_link_use_r" = "yes" ; then
20889 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20890 RDYNAMIC="-Wl,-export-dynamic"
20898 ac_config_files="$ac_config_files Makefile.common"
20900 ac_config_files="$ac_config_files Makefile.llvm.config"
20903 ac_config_commands="$ac_config_commands Makefile"
20906 ac_config_commands="$ac_config_commands lib/Makefile"
20909 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20912 ac_config_commands="$ac_config_commands tools/Makefile"
20915 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20919 cat >confcache <<\_ACEOF
20920 # This file is a shell script that caches the results of configure
20921 # tests run on this system so they can be shared between configure
20922 # scripts and configure runs, see configure's option --config-cache.
20923 # It is not useful on other systems. If it contains results you don't
20924 # want to keep, you may remove or edit it.
20926 # config.status only pays attention to the cache file if you give it
20927 # the --recheck option to rerun configure.
20929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20931 # following values.
20935 # The following way of writing the cache mishandles newlines in values,
20936 # but we know of no workaround that is simple, portable, and efficient.
20937 # So, we kill variables containing newlines.
20938 # Ultrix sh set writes to stderr and can't be redirected directly,
20939 # and sets the high bit in the cache file unless we assign to the vars.
20941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20942 eval ac_val=\$$ac_var
20946 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20947 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20950 _ | IFS | as_nl) ;; #(
20951 *) $as_unset $ac_var ;;
20957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20958 *${as_nl}ac_space=\ *)
20959 # `set' does not quote correctly, so add quotes (double-quote
20960 # substitution turns \\\\ into \\, and sed turns \\ into \).
20963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20966 # `set' quotes correctly as required by POSIX, so do not add quotes.
20967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20981 if test -w "$cache_file"; then
20982 test "x$cache_file" != "x/dev/null" &&
20983 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20984 echo "$as_me: updating cache $cache_file" >&6;}
20985 cat confcache >$cache_file
20987 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20988 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20994 # Let make expand exec_prefix.
20995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20997 # Transform confdefs.h into DEFS.
20998 # Protect against shell expansion while executing Makefile rules.
20999 # Protect against Makefile macro expansion.
21001 # If the first sed substitution is executed (which looks for macros that
21002 # take arguments), then branch to the quote section. Otherwise,
21003 # look for a macro that doesn't take arguments.
21007 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21009 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21013 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21026 DEFS=`sed -n "$ac_script" confdefs.h`
21031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21032 # 1. Remove the extension, and $U if already installed.
21033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21034 ac_i=`echo "$ac_i" | sed "$ac_script"`
21035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21036 # will be set to the directory where LIBOBJS objects are built.
21037 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21038 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21040 LIBOBJS=$ac_libobjs
21042 LTLIBOBJS=$ac_ltlibobjs
21045 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21046 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21047 Usually this means the macro was only invoked conditionally." >&5
21048 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21049 Usually this means the macro was only invoked conditionally." >&2;}
21050 { (exit 1); exit 1; }; }
21052 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21053 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21054 Usually this means the macro was only invoked conditionally." >&5
21055 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21056 Usually this means the macro was only invoked conditionally." >&2;}
21057 { (exit 1); exit 1; }; }
21060 : ${CONFIG_STATUS=./config.status}
21061 ac_clean_files_save=$ac_clean_files
21062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21065 cat >$CONFIG_STATUS <<_ACEOF
21067 # Generated by $as_me.
21068 # Run this file to recreate the current configuration.
21069 # Compiler output produced by configure, useful for debugging
21070 # configure, is in config.log if it exists.
21073 ac_cs_recheck=false
21075 SHELL=\${CONFIG_SHELL-$SHELL}
21078 cat >>$CONFIG_STATUS <<\_ACEOF
21079 ## --------------------- ##
21080 ## M4sh Initialization. ##
21081 ## --------------------- ##
21083 # Be Bourne compatible
21084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21087 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21088 # is contrary to our usage. Disable this feature.
21089 alias -g '${1+"$@"}'='"$@"'
21090 setopt NO_GLOB_SUBST
21092 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21094 BIN_SH=xpg4; export BIN_SH # for Tru64
21095 DUALCASE=1; export DUALCASE # for MKS sh
21099 # Avoid depending upon Character Ranges.
21100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21103 as_cr_digits='0123456789'
21104 as_cr_alnum=$as_cr_Letters$as_cr_digits
21106 # The user is always right.
21107 if test "${PATH_SEPARATOR+set}" != set; then
21108 echo "#! /bin/sh" >conf$$.sh
21109 echo "exit 0" >>conf$$.sh
21111 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21119 # Support unset when possible.
21120 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21128 # We need space, tab and new line, in precisely that order. Quoting is
21129 # there to prevent editors from complaining about space-tab.
21130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21131 # splitting by setting IFS to empty value.)
21136 # Find who we are. Look in the path if we contain no directory separator.
21138 *[\\/]* ) as_myself=$0 ;;
21139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21140 for as_dir in $PATH
21143 test -z "$as_dir" && as_dir=.
21144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21150 # We did not find ourselves, most probably we were run as `sh COMMAND'
21151 # in which case we are not to be found in the path.
21152 if test "x$as_myself" = x; then
21155 if test ! -f "$as_myself"; then
21156 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21157 { (exit 1); exit 1; }
21160 # Work around bugs in pre-3.0 UWIN ksh.
21161 for as_var in ENV MAIL MAILPATH
21162 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21172 LC_TELEPHONE LC_TIME
21174 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21175 eval $as_var=C; export $as_var
21177 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21181 # Required to use basename.
21182 if expr a : '\(a\)' >/dev/null 2>&1 &&
21183 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21190 as_basename=basename
21196 # Name of the executable.
21197 as_me=`$as_basename -- "$0" ||
21198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21199 X"$0" : 'X\(//\)$' \| \
21200 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21202 sed '/^.*\/\([^/][^/]*\)\/*$/{
21221 as_lineno_1=$LINENO
21222 as_lineno_2=$LINENO
21223 test "x$as_lineno_1" != "x$as_lineno_2" &&
21224 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21227 # uniformly replaced by the line number. The first 'sed' inserts a
21228 # line-number line after each line using $LINENO; the second 'sed'
21229 # does the real work. The second script uses 'N' to pair each
21230 # line-number line with the line containing $LINENO, and appends
21231 # trailing '-' during substitution so that $LINENO is not a special
21232 # case at line end.
21233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21234 # scripts with optimization help from Paolo Bonzini. Blame Lee
21235 # E. McMahon (1931-1989) for sed's syntax. :-)
21247 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21250 ' >$as_me.lineno &&
21251 chmod +x "$as_me.lineno" ||
21252 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21253 { (exit 1); exit 1; }; }
21255 # Don't try to exec as it changes $[0], causing all sort of problems
21256 # (the dirname of $[0] is not the place where we might find the
21257 # original and so on. Autoconf is especially sensitive to this).
21258 . "./$as_me.lineno"
21259 # Exit status is that of the last command.
21264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21270 ECHO_C= ECHO_N= ECHO_T=
21271 case `echo -n x` in
21273 case `echo 'x\c'` in
21274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21281 if expr a : '\(a\)' >/dev/null 2>&1 &&
21282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21288 rm -f conf$$ conf$$.exe conf$$.file
21289 if test -d conf$$.dir; then
21290 rm -f conf$$.dir/conf$$.file
21296 if ln -s conf$$.file conf$$ 2>/dev/null; then
21298 # ... but there are two gotchas:
21299 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21300 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21301 # In both cases, we have to default to `cp -p'.
21302 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21304 elif ln conf$$.file conf$$ 2>/dev/null; then
21309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21310 rmdir conf$$.dir 2>/dev/null
21312 if mkdir -p . 2>/dev/null; then
21315 test -d ./-p && rmdir ./-p
21319 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21320 # systems may use methods other than mode bits to determine executability.
21321 cat >conf$$.file <<_ASEOF
21325 chmod +x conf$$.file
21326 if test -x conf$$.file >/dev/null 2>&1; then
21327 as_executable_p="test -x"
21333 # Sed expression to map a string onto a valid CPP name.
21334 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21336 # Sed expression to map a string onto a valid variable name.
21337 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21342 # Save the log message, to keep $[0] and so on meaningful, and to
21343 # report actual input values of CONFIG_FILES etc. instead of their
21344 # values after options handling.
21346 This file was extended by [SAMPLE] $as_me [x.xx], which was
21347 generated by GNU Autoconf 2.60. Invocation command line was
21349 CONFIG_FILES = $CONFIG_FILES
21350 CONFIG_HEADERS = $CONFIG_HEADERS
21351 CONFIG_LINKS = $CONFIG_LINKS
21352 CONFIG_COMMANDS = $CONFIG_COMMANDS
21355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21360 cat >>$CONFIG_STATUS <<_ACEOF
21361 # Files that config.status was made for.
21362 config_files="$ac_config_files"
21363 config_commands="$ac_config_commands"
21367 cat >>$CONFIG_STATUS <<\_ACEOF
21369 \`$as_me' instantiates files from templates according to the
21370 current configuration.
21372 Usage: $0 [OPTIONS] [FILE]...
21374 -h, --help print this help, then exit
21375 -V, --version print version number, then exit
21376 -q, --quiet do not print progress messages
21377 -d, --debug don't remove temporary files
21378 --recheck update $as_me by reconfiguring in the same conditions
21379 --file=FILE[:TEMPLATE]
21380 instantiate the configuration file FILE
21382 Configuration files:
21385 Configuration commands:
21388 Report bugs to <bug-autoconf@gnu.org>."
21391 cat >>$CONFIG_STATUS <<_ACEOF
21393 [SAMPLE] config.status [x.xx]
21394 configured by $0, generated by GNU Autoconf 2.60,
21395 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21397 Copyright (C) 2006 Free Software Foundation, Inc.
21398 This config.status script is free software; the Free Software Foundation
21399 gives unlimited permission to copy, distribute and modify it."
21406 cat >>$CONFIG_STATUS <<\_ACEOF
21407 # If no file are specified by the user, then we need to provide default
21408 # value. By we need to know if files were specified by the user.
21414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21415 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21426 # Handling of the options.
21427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21430 echo "$ac_cs_version"; exit ;;
21431 --debug | --debu | --deb | --de | --d | -d )
21433 --file | --fil | --fi | --f )
21435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21436 ac_need_defaults=false;;
21437 --he | --h | --help | --hel | -h )
21438 echo "$ac_cs_usage"; exit ;;
21439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21443 # This is an error.
21444 -*) { echo "$as_me: error: unrecognized option: $1
21445 Try \`$0 --help' for more information." >&2
21446 { (exit 1); exit 1; }; } ;;
21448 *) ac_config_targets="$ac_config_targets $1"
21449 ac_need_defaults=false ;;
21455 ac_configure_extra_args=
21457 if $ac_cs_silent; then
21459 ac_configure_extra_args="$ac_configure_extra_args --silent"
21463 cat >>$CONFIG_STATUS <<_ACEOF
21464 if \$ac_cs_recheck; then
21465 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21466 CONFIG_SHELL=$SHELL
21467 export CONFIG_SHELL
21468 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21472 cat >>$CONFIG_STATUS <<\_ACEOF
21476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21477 ## Running $as_me. ##
21483 cat >>$CONFIG_STATUS <<_ACEOF
21487 llvm_src="${LLVM_SRC}"
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21493 # Handling of arguments.
21494 for ac_config_target in $ac_config_targets
21496 case $ac_config_target in
21497 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21498 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21499 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21500 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21501 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21502 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21503 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21504 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21506 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21507 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21508 { (exit 1); exit 1; }; };;
21513 # If the user did not use the arguments to specify the items to instantiate,
21514 # then the envvar interface is used. Set only those that are not.
21515 # We use the long form for the default assignment because of an extremely
21516 # bizarre bug on SunOS 4.1.3.
21517 if $ac_need_defaults; then
21518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21522 # Have a temporary directory for convenience. Make it in the build tree
21523 # simply because there is no reason against having it here, and in addition,
21524 # creating and moving files from /tmp can sometimes cause problems.
21525 # Hook for its removal unless debugging.
21526 # Note that there is a small window in which the directory will not be cleaned:
21527 # after its creation but before its name has been assigned to `$tmp'.
21531 trap 'exit_status=$?
21532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21534 trap '{ (exit 1); exit 1; }' 1 2 13 15
21536 # Create a (secure) tmp directory for tmp files.
21539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21540 test -n "$tmp" && test -d "$tmp"
21543 tmp=./conf$$-$RANDOM
21544 (umask 077 && mkdir "$tmp")
21547 echo "$me: cannot create a temporary directory in ." >&2
21548 { (exit 1); exit 1; }
21552 # Set up the sed scripts for CONFIG_FILES section.
21555 # No need to generate the scripts if there are no CONFIG_FILES.
21556 # This happens for instance when ./config.status config.h
21557 if test -n "$CONFIG_FILES"; then
21564 for ac_last_try in false false false false false :; do
21565 cat >conf$$subs.sed <<_ACEOF
21566 SHELL!$SHELL$ac_delim
21567 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21568 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21569 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21570 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21571 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21572 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21573 exec_prefix!$exec_prefix$ac_delim
21574 prefix!$prefix$ac_delim
21575 program_transform_name!$program_transform_name$ac_delim
21576 bindir!$bindir$ac_delim
21577 sbindir!$sbindir$ac_delim
21578 libexecdir!$libexecdir$ac_delim
21579 datarootdir!$datarootdir$ac_delim
21580 datadir!$datadir$ac_delim
21581 sysconfdir!$sysconfdir$ac_delim
21582 sharedstatedir!$sharedstatedir$ac_delim
21583 localstatedir!$localstatedir$ac_delim
21584 includedir!$includedir$ac_delim
21585 oldincludedir!$oldincludedir$ac_delim
21586 docdir!$docdir$ac_delim
21587 infodir!$infodir$ac_delim
21588 htmldir!$htmldir$ac_delim
21589 dvidir!$dvidir$ac_delim
21590 pdfdir!$pdfdir$ac_delim
21591 psdir!$psdir$ac_delim
21592 libdir!$libdir$ac_delim
21593 localedir!$localedir$ac_delim
21594 mandir!$mandir$ac_delim
21595 DEFS!$DEFS$ac_delim
21596 ECHO_C!$ECHO_C$ac_delim
21597 ECHO_N!$ECHO_N$ac_delim
21598 ECHO_T!$ECHO_T$ac_delim
21599 LIBS!$LIBS$ac_delim
21600 build_alias!$build_alias$ac_delim
21601 host_alias!$host_alias$ac_delim
21602 target_alias!$target_alias$ac_delim
21603 LLVM_SRC!$LLVM_SRC$ac_delim
21604 LLVM_OBJ!$LLVM_OBJ$ac_delim
21605 LLVM_VERSION!$LLVM_VERSION$ac_delim
21607 CFLAGS!$CFLAGS$ac_delim
21608 LDFLAGS!$LDFLAGS$ac_delim
21609 CPPFLAGS!$CPPFLAGS$ac_delim
21610 ac_ct_CC!$ac_ct_CC$ac_delim
21611 EXEEXT!$EXEEXT$ac_delim
21612 OBJEXT!$OBJEXT$ac_delim
21614 CXXFLAGS!$CXXFLAGS$ac_delim
21615 ac_ct_CXX!$ac_ct_CXX$ac_delim
21617 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21618 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21619 subdirs!$subdirs$ac_delim
21620 build!$build$ac_delim
21621 build_cpu!$build_cpu$ac_delim
21622 build_vendor!$build_vendor$ac_delim
21623 build_os!$build_os$ac_delim
21624 host!$host$ac_delim
21625 host_cpu!$host_cpu$ac_delim
21626 host_vendor!$host_vendor$ac_delim
21627 host_os!$host_os$ac_delim
21628 target!$target$ac_delim
21629 target_cpu!$target_cpu$ac_delim
21630 target_vendor!$target_vendor$ac_delim
21631 target_os!$target_os$ac_delim
21633 HOST_OS!$HOST_OS$ac_delim
21634 TARGET_OS!$TARGET_OS$ac_delim
21635 LINKALL!$LINKALL$ac_delim
21636 NOLINKALL!$NOLINKALL$ac_delim
21637 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639 ARCH!$ARCH$ac_delim
21640 ENDIAN!$ENDIAN$ac_delim
21641 GREP!$GREP$ac_delim
21642 EGREP!$EGREP$ac_delim
21643 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21644 BUILD_CC!$BUILD_CC$ac_delim
21645 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21646 BUILD_CXX!$BUILD_CXX$ac_delim
21647 CVSBUILD!$CVSBUILD$ac_delim
21648 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21649 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21650 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21651 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21652 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21653 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21654 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21655 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21657 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21658 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21659 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21660 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21661 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21662 ENABLE_PIC!$ENABLE_PIC$ac_delim
21665 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21667 elif $ac_last_try; then
21668 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21669 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21670 { (exit 1); exit 1; }; }
21672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21676 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21677 if test -n "$ac_eof"; then
21678 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21679 ac_eof=`expr $ac_eof + 1`
21682 cat >>$CONFIG_STATUS <<_ACEOF
21683 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21687 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21688 s/^/s,@/; s/!/@,|#_!!_#|/
21691 s/'"$ac_delim"'$/,g/; t
21693 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21694 ' >>$CONFIG_STATUS <conf$$subs.sed
21695 rm -f conf$$subs.sed
21696 cat >>$CONFIG_STATUS <<_ACEOF
21702 for ac_last_try in false false false false false :; do
21703 cat >conf$$subs.sed <<_ACEOF
21704 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21705 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21706 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21707 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21708 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21709 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21710 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21711 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21712 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21713 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21714 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21715 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21717 ifGNUmake!$ifGNUmake$ac_delim
21718 LN_S!$LN_S$ac_delim
21721 DATE!$DATE$ac_delim
21722 FIND!$FIND$ac_delim
21723 MKDIR!$MKDIR$ac_delim
21725 RANLIB!$RANLIB$ac_delim
21730 BINPWD!$BINPWD$ac_delim
21731 GRAPHVIZ!$GRAPHVIZ$ac_delim
21734 NEATO!$NEATO$ac_delim
21735 TWOPI!$TWOPI$ac_delim
21736 CIRCO!$CIRCO$ac_delim
21738 DOTTY!$DOTTY$ac_delim
21739 XDOT_PY!$XDOT_PY$ac_delim
21740 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21741 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21742 INSTALL_DATA!$INSTALL_DATA$ac_delim
21743 BZIP2!$BZIP2$ac_delim
21745 DOXYGEN!$DOXYGEN$ac_delim
21746 GROFF!$GROFF$ac_delim
21747 GZIPBIN!$GZIPBIN$ac_delim
21748 POD2HTML!$POD2HTML$ac_delim
21749 POD2MAN!$POD2MAN$ac_delim
21750 PDFROFF!$PDFROFF$ac_delim
21751 RUNTEST!$RUNTEST$ac_delim
21752 TCLSH!$TCLSH$ac_delim
21754 OCAMLC!$OCAMLC$ac_delim
21755 OCAMLOPT!$OCAMLOPT$ac_delim
21756 OCAMLDEP!$OCAMLDEP$ac_delim
21757 OCAMLDOC!$OCAMLDOC$ac_delim
21759 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21760 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21761 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21762 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21763 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21764 LIBADD_DL!$LIBADD_DL$ac_delim
21765 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21766 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21767 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21768 USE_UDIS86!$USE_UDIS86$ac_delim
21769 USE_OPROFILE!$USE_OPROFILE$ac_delim
21770 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21771 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21772 MMAP_FILE!$MMAP_FILE$ac_delim
21773 SHLIBEXT!$SHLIBEXT$ac_delim
21774 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21775 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21776 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21777 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21778 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21779 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21780 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21781 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21782 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21783 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21784 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21785 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21786 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21787 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21788 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21789 RPATH!$RPATH$ac_delim
21790 RDYNAMIC!$RDYNAMIC$ac_delim
21791 LIBOBJS!$LIBOBJS$ac_delim
21792 LTLIBOBJS!$LTLIBOBJS$ac_delim
21795 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21797 elif $ac_last_try; then
21798 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21800 { (exit 1); exit 1; }; }
21802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21807 if test -n "$ac_eof"; then
21808 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21809 ac_eof=`expr $ac_eof + 1`
21812 cat >>$CONFIG_STATUS <<_ACEOF
21813 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21818 s/^/s,@/; s/!/@,|#_!!_#|/
21821 s/'"$ac_delim"'$/,g/; t
21823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21824 ' >>$CONFIG_STATUS <conf$$subs.sed
21825 rm -f conf$$subs.sed
21826 cat >>$CONFIG_STATUS <<_ACEOF
21833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21835 # trailing colons and then remove the whole line if VPATH becomes empty
21836 # (actually we leave an empty line to preserve line numbers).
21837 if test "x$srcdir" = x.; then
21838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21839 s/:*\$(srcdir):*/:/
21840 s/:*\${srcdir}:*/:/
21842 s/^\([^=]*=[ ]*\):*/\1/
21848 cat >>$CONFIG_STATUS <<\_ACEOF
21849 fi # test -n "$CONFIG_FILES"
21852 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21855 :[FHLC]) ac_mode=$ac_tag; continue;;
21857 case $ac_mode$ac_tag in
21859 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21860 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21861 { (exit 1); exit 1; }; };;
21862 :[FH]-) ac_tag=-:-;;
21863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21880 -) ac_f="$tmp/stdin";;
21881 *) # Look for the file first in the build tree, then in the source tree
21882 # (if the path is not absolute). The absolute path cannot be DOS-style,
21883 # because $ac_f cannot contain `:'.
21887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21889 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21890 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21891 { (exit 1); exit 1; }; };;
21893 ac_file_inputs="$ac_file_inputs $ac_f"
21896 # Let's still pretend it is `configure' which instantiates (i.e., don't
21897 # use $as_me), people would be surprised to read:
21898 # /* config.h. Generated by config.status. */
21899 configure_input="Generated from "`IFS=:
21900 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21901 if test x"$ac_file" != x-; then
21902 configure_input="$ac_file. $configure_input"
21903 { echo "$as_me:$LINENO: creating $ac_file" >&5
21904 echo "$as_me: creating $ac_file" >&6;}
21908 *:-:* | *:-) cat >"$tmp/stdin";;
21913 ac_dir=`$as_dirname -- "$ac_file" ||
21914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21915 X"$ac_file" : 'X\(//\)[^/]' \| \
21916 X"$ac_file" : 'X\(//\)$' \| \
21917 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21923 /^X\(\/\/\)[^/].*/{
21938 -*) as_dir=./$as_dir;;
21940 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21944 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21945 *) as_qdir=$as_dir;;
21947 as_dirs="'$as_qdir' $as_dirs"
21948 as_dir=`$as_dirname -- "$as_dir" ||
21949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21950 X"$as_dir" : 'X\(//\)[^/]' \| \
21951 X"$as_dir" : 'X\(//\)$' \| \
21952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21958 /^X\(\/\/\)[^/].*/{
21971 test -d "$as_dir" && break
21973 test -z "$as_dirs" || eval "mkdir $as_dirs"
21974 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21975 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21976 { (exit 1); exit 1; }; }; }
21980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21983 # A ".." for each directory in $ac_dir_suffix.
21984 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21985 case $ac_top_builddir_sub in
21986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21990 ac_abs_top_builddir=$ac_pwd
21991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21992 # for backward compatibility:
21993 ac_top_builddir=$ac_top_build_prefix
21996 .) # We are building in place.
21998 ac_top_srcdir=$ac_top_builddir_sub
21999 ac_abs_top_srcdir=$ac_pwd ;;
22000 [\\/]* | ?:[\\/]* ) # Absolute name.
22001 ac_srcdir=$srcdir$ac_dir_suffix;
22002 ac_top_srcdir=$srcdir
22003 ac_abs_top_srcdir=$srcdir ;;
22004 *) # Relative name.
22005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22006 ac_top_srcdir=$ac_top_build_prefix$srcdir
22007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22024 cat >>$CONFIG_STATUS <<\_ACEOF
22025 # If the template does not know about datarootdir, expand it.
22026 # FIXME: This hack should be removed a few years after 2.60.
22027 ac_datarootdir_hack=; ac_datarootdir_seen=
22029 case `sed -n '/datarootdir/ {
22038 ' $ac_file_inputs` in
22039 *datarootdir*) ac_datarootdir_seen=yes;;
22040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22041 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22042 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22044 cat >>$CONFIG_STATUS <<_ACEOF
22045 ac_datarootdir_hack='
22046 s&@datadir@&$datadir&g
22047 s&@docdir@&$docdir&g
22048 s&@infodir@&$infodir&g
22049 s&@localedir@&$localedir&g
22050 s&@mandir@&$mandir&g
22051 s&\\\${datarootdir}&$datarootdir&g' ;;
22055 # Neutralize VPATH when `$srcdir' = `.'.
22056 # Shell code in configure.ac might set extrasub.
22057 # FIXME: do we really want to maintain this feature?
22058 cat >>$CONFIG_STATUS <<_ACEOF
22062 cat >>$CONFIG_STATUS <<\_ACEOF
22064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22065 s&@configure_input@&$configure_input&;t t
22066 s&@top_builddir@&$ac_top_builddir_sub&;t t
22067 s&@srcdir@&$ac_srcdir&;t t
22068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22069 s&@top_srcdir@&$ac_top_srcdir&;t t
22070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22071 s&@builddir@&$ac_builddir&;t t
22072 s&@abs_builddir@&$ac_abs_builddir&;t t
22073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22074 s&@INSTALL@&$ac_INSTALL&;t t
22075 $ac_datarootdir_hack
22076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22081 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22082 which seems to be undefined. Please make sure it is defined." >&5
22083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22084 which seems to be undefined. Please make sure it is defined." >&2;}
22088 -) cat "$tmp/out"; rm -f "$tmp/out";;
22089 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22094 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22095 echo "$as_me: executing $ac_file commands" >&6;}
22100 case $ac_file$ac_mode in
22101 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22103 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22104 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22105 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22106 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22107 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22108 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22109 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22110 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22116 { (exit 0); exit 0; }
22118 chmod +x $CONFIG_STATUS
22119 ac_clean_files=$ac_clean_files_save
22122 # configure is writing to config.log, and then calls config.status.
22123 # config.status does its own redirection, appending to config.log.
22124 # Unfortunately, on DOS this fails, as config.log is still kept open
22125 # by configure, so config.status won't be able to write to it; its
22126 # output is simply discarded. So we exec the FD to /dev/null,
22127 # effectively closing config.log, so it can be properly (re)opened and
22128 # appended to by config.status. When coming back to configure, we
22129 # need to make the FD available again.
22130 if test "$no_create" != yes; then
22132 ac_config_status_args=
22133 test "$silent" = yes &&
22134 ac_config_status_args="$ac_config_status_args --quiet"
22136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22139 # would make configure fail if this is the last instruction.
22140 $ac_cs_success || { (exit 1); exit 1; }
22144 # CONFIG_SUBDIRS section.
22146 if test "$no_recursion" != yes; then
22148 # Remove --cache-file and --srcdir arguments so they do not pile up.
22149 ac_sub_configure_args=
22151 eval "set x $ac_configure_args"
22155 if test -n "$ac_prev"; then
22160 -cache-file | --cache-file | --cache-fil | --cache-fi \
22161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22162 ac_prev=cache_file ;;
22163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22167 --config-cache | -C)
22169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22179 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22181 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22185 # Always prepend --prefix to ensure using the same prefix
22186 # in subdir configurations.
22187 ac_arg="--prefix=$prefix"
22189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22191 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22194 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22196 # Do not complain, so a configure script can configure whichever
22197 # parts of a large source tree are present.
22198 test -d "$srcdir/$ac_dir" || continue
22200 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22201 echo "$as_me:$LINENO: $ac_msg" >&5
22205 -*) as_dir=./$as_dir;;
22207 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22211 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22212 *) as_qdir=$as_dir;;
22214 as_dirs="'$as_qdir' $as_dirs"
22215 as_dir=`$as_dirname -- "$as_dir" ||
22216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217 X"$as_dir" : 'X\(//\)[^/]' \| \
22218 X"$as_dir" : 'X\(//\)$' \| \
22219 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225 /^X\(\/\/\)[^/].*/{
22238 test -d "$as_dir" && break
22240 test -z "$as_dirs" || eval "mkdir $as_dirs"
22241 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22242 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22243 { (exit 1); exit 1; }; }; }
22247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22250 # A ".." for each directory in $ac_dir_suffix.
22251 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22252 case $ac_top_builddir_sub in
22253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22257 ac_abs_top_builddir=$ac_pwd
22258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22259 # for backward compatibility:
22260 ac_top_builddir=$ac_top_build_prefix
22263 .) # We are building in place.
22265 ac_top_srcdir=$ac_top_builddir_sub
22266 ac_abs_top_srcdir=$ac_pwd ;;
22267 [\\/]* | ?:[\\/]* ) # Absolute name.
22268 ac_srcdir=$srcdir$ac_dir_suffix;
22269 ac_top_srcdir=$srcdir
22270 ac_abs_top_srcdir=$srcdir ;;
22271 *) # Relative name.
22272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22273 ac_top_srcdir=$ac_top_build_prefix$srcdir
22274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22281 # Check for guested configure; otherwise get Cygnus style configure.
22282 if test -f "$ac_srcdir/configure.gnu"; then
22283 ac_sub_configure=$ac_srcdir/configure.gnu
22284 elif test -f "$ac_srcdir/configure"; then
22285 ac_sub_configure=$ac_srcdir/configure
22286 elif test -f "$ac_srcdir/configure.in"; then
22287 # This should be Cygnus configure.
22288 ac_sub_configure=$ac_aux_dir/configure
22290 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22291 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22295 # The recursion is here.
22296 if test -n "$ac_sub_configure"; then
22297 # Make the cache file name correct relative to the subdirectory.
22298 case $cache_file in
22299 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22300 *) # Relative name.
22301 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22304 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22305 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22306 # The eval makes quoting arguments work.
22307 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22308 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22309 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22310 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22311 { (exit 1); exit 1; }; }