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, nvptx, cbe, r600, 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 mipsel-*) llvm_cv_target_arch="Mips" ;;
3846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
3848 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3849 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
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 NVPTX) TARGET_HAS_JIT=0
5080 # Check whether --enable-docs was given.
5081 if test "${enable_docs+set}" = set; then
5082 enableval=$enable_docs;
5087 case "$enableval" in
5092 default) ENABLE_DOCS=1
5094 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5095 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5099 # Check whether --enable-doxygen was given.
5100 if test "${enable_doxygen+set}" = set; then
5101 enableval=$enable_doxygen;
5106 case "$enableval" in
5107 yes) ENABLE_DOXYGEN=1
5109 no) ENABLE_DOXYGEN=0
5111 default) ENABLE_DOXYGEN=0
5113 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5114 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5118 # Check whether --enable-threads was given.
5119 if test "${enable_threads+set}" = set; then
5120 enableval=$enable_threads;
5125 case "$enableval" in
5126 yes) ENABLE_THREADS=1
5128 no) ENABLE_THREADS=0
5130 default) ENABLE_THREADS=1
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5137 cat >>confdefs.h <<_ACEOF
5138 #define ENABLE_THREADS $ENABLE_THREADS
5142 # Check whether --enable-pthreads was given.
5143 if test "${enable_pthreads+set}" = set; then
5144 enableval=$enable_pthreads;
5149 case "$enableval" in
5150 yes) ENABLE_PTHREADS=1
5152 no) ENABLE_PTHREADS=0
5154 default) ENABLE_PTHREADS=1
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5161 # Check whether --enable-pic was given.
5162 if test "${enable_pic+set}" = set; then
5163 enableval=$enable_pic;
5168 case "$enableval" in
5173 default) ENABLE_PIC=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_PIC $ENABLE_PIC
5185 # Check whether --enable-shared was given.
5186 if test "${enable_shared+set}" = set; then
5187 enableval=$enable_shared;
5192 case "$enableval" in
5193 yes) ENABLE_SHARED=1
5197 default) ENABLE_SHARED=0
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5204 # Check whether --enable-embed-stdcxx was given.
5205 if test "${enable_embed_stdcxx+set}" = set; then
5206 enableval=$enable_embed_stdcxx;
5211 case "$enableval" in
5212 yes) ENABLE_EMBED_STDCXX=1
5214 no) ENABLE_EMBED_STDCXX=0
5216 default) ENABLE_EMBED_STDCXX=1
5218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5223 # Check whether --enable-timestamps was given.
5224 if test "${enable_timestamps+set}" = set; then
5225 enableval=$enable_timestamps;
5230 case "$enableval" in
5231 yes) ENABLE_TIMESTAMPS=1
5233 no) ENABLE_TIMESTAMPS=0
5235 default) ENABLE_TIMESTAMPS=1
5237 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5238 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5242 cat >>confdefs.h <<_ACEOF
5243 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5248 # Check whether --enable-targets was given.
5249 if test "${enable_targets+set}" = set; then
5250 enableval=$enable_targets;
5255 if test "$enableval" = host-only ; then
5258 case "$enableval" in
5259 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX AMDGPU" ;;
5260 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5262 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5264 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5265 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5266 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5269 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5270 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5271 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5272 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5273 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5274 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5275 r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5276 host) case "$llvm_cv_target_arch" in
5277 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5278 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5279 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5280 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5281 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5282 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5284 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5285 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5288 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5289 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5290 echo "$as_me: error: Can not set target to build" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5293 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5294 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5300 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5303 # Determine whether we are building LLVM support for the native architecture.
5304 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5305 for a_target in $TARGETS_TO_BUILD; do
5306 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5308 cat >>confdefs.h <<_ACEOF
5309 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5312 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5313 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5314 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5315 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5316 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5317 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5320 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5323 cat >>confdefs.h <<_ACEOF
5324 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5328 cat >>confdefs.h <<_ACEOF
5329 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5333 cat >>confdefs.h <<_ACEOF
5334 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5342 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5344 cat >>confdefs.h <<_ACEOF
5345 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5359 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5360 # target feature def files.
5361 LLVM_ENUM_TARGETS=""
5362 LLVM_ENUM_ASM_PRINTERS=""
5363 LLVM_ENUM_ASM_PARSERS=""
5364 LLVM_ENUM_DISASSEMBLERS=""
5365 for target_to_build in $TARGETS_TO_BUILD; do
5366 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5367 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5368 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5370 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5371 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5373 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5374 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5383 # Check whether --with-optimize-option was given.
5384 if test "${with_optimize_option+set}" = set; then
5385 withval=$with_optimize_option;
5390 { echo "$as_me:$LINENO: checking optimization flags" >&5
5391 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5394 case "$llvm_cv_os_type" in
5395 FreeBSD) optimize_option=-O2 ;;
5396 MingW) optimize_option=-O2 ;;
5397 *) optimize_option=-O3 ;;
5399 *) optimize_option="$withval" ;;
5401 OPTIMIZE_OPTION=$optimize_option
5403 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5404 echo "${ECHO_T}$optimize_option" >&6; }
5407 # Check whether --with-extra-options was given.
5408 if test "${with_extra_options+set}" = set; then
5409 withval=$with_extra_options;
5415 default) EXTRA_OPTIONS= ;;
5416 *) EXTRA_OPTIONS=$withval ;;
5418 EXTRA_OPTIONS=$EXTRA_OPTIONS
5422 # Check whether --with-extra-ld-options was given.
5423 if test "${with_extra_ld_options+set}" = set; then
5424 withval=$with_extra_ld_options;
5430 default) EXTRA_LD_OPTIONS= ;;
5431 *) EXTRA_LD_OPTIONS=$withval ;;
5433 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5436 # Check whether --enable-bindings was given.
5437 if test "${enable_bindings+set}" = set; then
5438 enableval=$enable_bindings;
5443 BINDINGS_TO_BUILD=""
5444 case "$enableval" in
5445 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5446 all ) BINDINGS_TO_BUILD="ocaml" ;;
5447 none | no) BINDINGS_TO_BUILD="" ;;
5448 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5449 case "$a_binding" in
5450 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5451 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5452 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5453 { (exit 1); exit 1; }; } ;;
5460 # Check whether --with-ocaml-libdir was given.
5461 if test "${with_ocaml_libdir+set}" = set; then
5462 withval=$with_ocaml_libdir;
5468 auto) with_ocaml_libdir="$withval" ;;
5469 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5470 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5471 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5472 { (exit 1); exit 1; }; } ;;
5476 # Check whether --with-clang-resource-dir was given.
5477 if test "${with_clang_resource_dir+set}" = set; then
5478 withval=$with_clang_resource_dir;
5484 cat >>confdefs.h <<_ACEOF
5485 #define CLANG_RESOURCE_DIR "$withval"
5490 # Check whether --with-c-include-dirs was given.
5491 if test "${with_c_include_dirs+set}" = set; then
5492 withval=$with_c_include_dirs;
5498 cat >>confdefs.h <<_ACEOF
5499 #define C_INCLUDE_DIRS "$withval"
5503 # Clang normally uses the system c++ headers and libraries. With this option,
5504 # clang will use the ones provided by a gcc installation instead. This option should
5505 # be passed the same value that was used with --prefix when configuring gcc.
5507 # Check whether --with-gcc-toolchain was given.
5508 if test "${with_gcc_toolchain+set}" = set; then
5509 withval=$with_gcc_toolchain;
5515 cat >>confdefs.h <<_ACEOF
5516 #define GCC_INSTALL_PREFIX "$withval"
5521 # Check whether --with-binutils-include was given.
5522 if test "${with_binutils_include+set}" = set; then
5523 withval=$with_binutils_include;
5529 default) WITH_BINUTILS_INCDIR=default ;;
5530 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5531 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5532 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5533 { (exit 1); exit 1; }; } ;;
5535 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5536 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5538 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5539 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5540 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5541 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5542 { (exit 1); exit 1; }; };
5547 # Check whether --with-bug-report-url was given.
5548 if test "${with_bug_report_url+set}" = set; then
5549 withval=$with_bug_report_url;
5551 withval="http://llvm.org/bugs/"
5555 cat >>confdefs.h <<_ACEOF
5556 #define BUG_REPORT_URL "$withval"
5560 # Check whether --enable-libffi was given.
5561 if test "${enable_libffi+set}" = set; then
5562 enableval=$enable_libffi; case "$enableval" in
5563 yes) llvm_cv_enable_libffi="yes" ;;
5564 no) llvm_cv_enable_libffi="no" ;;
5565 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5566 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5567 { (exit 1); exit 1; }; } ;;
5570 llvm_cv_enable_libffi=no
5575 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5576 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5577 if test "${lt_cv_path_NM+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 if test -n "$NM"; then
5581 # Let the user override the test.
5584 lt_nm_to_check="${ac_tool_prefix}nm"
5585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5586 lt_nm_to_check="$lt_nm_to_check nm"
5588 for lt_tmp_nm in $lt_nm_to_check; do
5589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5592 test -z "$ac_dir" && ac_dir=.
5593 tmp_nm="$ac_dir/$lt_tmp_nm"
5594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5595 # Check to see if the nm accepts a BSD-compat flag.
5596 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5597 # nm: unknown option "B" ignored
5598 # Tru64's nm complains that /dev/null is an invalid object file
5599 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5600 */dev/null* | *'Invalid file or object type'*)
5601 lt_cv_path_NM="$tmp_nm -B"
5605 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5607 lt_cv_path_NM="$tmp_nm -p"
5611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612 continue # so that we can try to find one that supports BSD flags
5621 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5624 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5625 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5630 { echo "$as_me:$LINENO: checking for GNU make" >&5
5631 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5632 if test "${llvm_cv_gnu_make_command+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 llvm_cv_gnu_make_command=''
5636 for a in "$MAKE" make gmake gnumake ; do
5637 if test -z "$a" ; then continue ; fi ;
5638 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5640 llvm_cv_gnu_make_command=$a ;
5645 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5646 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5647 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5651 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5652 echo "${ECHO_T}\"Not found\"" >&6; };
5656 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5657 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5659 if test "$LN_S" = "ln -s"; then
5660 { echo "$as_me:$LINENO: result: yes" >&5
5661 echo "${ECHO_T}yes" >&6; }
5663 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5664 echo "${ECHO_T}no, using $LN_S" >&6; }
5667 # Extract the first word of "cmp", so it can be a program name with args.
5668 set dummy cmp; ac_word=$2
5669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671 if test "${ac_cv_path_CMP+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5699 if test -n "$CMP"; then
5700 { echo "$as_me:$LINENO: result: $CMP" >&5
5701 echo "${ECHO_T}$CMP" >&6; }
5703 { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5708 # Extract the first word of "cp", so it can be a program name with args.
5709 set dummy cp; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_path_CP+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5740 if test -n "$CP"; then
5741 { echo "$as_me:$LINENO: result: $CP" >&5
5742 echo "${ECHO_T}$CP" >&6; }
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5749 # Extract the first word of "date", so it can be a program name with args.
5750 set dummy date; ac_word=$2
5751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_DATE+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5780 DATE=$ac_cv_path_DATE
5781 if test -n "$DATE"; then
5782 { echo "$as_me:$LINENO: result: $DATE" >&5
5783 echo "${ECHO_T}$DATE" >&6; }
5785 { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5790 # Extract the first word of "find", so it can be a program name with args.
5791 set dummy find; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_FIND+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5821 FIND=$ac_cv_path_FIND
5822 if test -n "$FIND"; then
5823 { echo "$as_me:$LINENO: result: $FIND" >&5
5824 echo "${ECHO_T}$FIND" >&6; }
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5831 # Extract the first word of "grep", so it can be a program name with args.
5832 set dummy grep; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_GREP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5862 GREP=$ac_cv_path_GREP
5863 if test -n "$GREP"; then
5864 { echo "$as_me:$LINENO: result: $GREP" >&5
5865 echo "${ECHO_T}$GREP" >&6; }
5867 { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5872 # Extract the first word of "mkdir", so it can be a program name with args.
5873 set dummy mkdir; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_MKDIR+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5903 MKDIR=$ac_cv_path_MKDIR
5904 if test -n "$MKDIR"; then
5905 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5906 echo "${ECHO_T}$MKDIR" >&6; }
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5913 # Extract the first word of "mv", so it can be a program name with args.
5914 set dummy mv; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_path_MV+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5945 if test -n "$MV"; then
5946 { echo "$as_me:$LINENO: result: $MV" >&5
5947 echo "${ECHO_T}$MV" >&6; }
5949 { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_RANLIB+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 if test -n "$RANLIB"; then
5963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 RANLIB=$ac_cv_prog_RANLIB
5983 if test -n "$RANLIB"; then
5984 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5985 echo "${ECHO_T}$RANLIB" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5993 if test -z "$ac_cv_prog_RANLIB"; then
5994 ac_ct_RANLIB=$RANLIB
5995 # Extract the first word of "ranlib", so it can be a program name with args.
5996 set dummy ranlib; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 if test -n "$ac_ct_RANLIB"; then
6003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_RANLIB="ranlib"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6023 if test -n "$ac_ct_RANLIB"; then
6024 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6025 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6031 if test "x$ac_ct_RANLIB" = x; then
6034 case $cross_compiling:$ac_tool_warned in
6036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037 whose name does not start with the host triplet. If you think this
6038 configuration is useful to you, please write to autoconf@gnu.org." >&5
6039 echo "$as_me: 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." >&2;}
6042 ac_tool_warned=yes ;;
6044 RANLIB=$ac_ct_RANLIB
6047 RANLIB="$ac_cv_prog_RANLIB"
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 if test -n "$AR"; then
6080 { echo "$as_me:$LINENO: result: $AR" >&5
6081 echo "${ECHO_T}$AR" >&6; }
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6089 if test -z "$ac_cv_prog_AR"; then
6091 # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121 echo "${ECHO_T}$ac_ct_AR" >&6; }
6123 { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6127 if test "x$ac_ct_AR" = x; then
6130 case $cross_compiling:$ac_tool_warned in
6132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133 whose name does not start with the host triplet. If you think this
6134 configuration is useful to you, please write to autoconf@gnu.org." >&5
6135 echo "$as_me: 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." >&2;}
6138 ac_tool_warned=yes ;;
6146 # Extract the first word of "rm", so it can be a program name with args.
6147 set dummy rm; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_RM+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6178 if test -n "$RM"; then
6179 { echo "$as_me:$LINENO: result: $RM" >&5
6180 echo "${ECHO_T}$RM" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "sed", so it can be a program name with args.
6188 set dummy sed; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_SED+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6219 if test -n "$SED"; then
6220 { echo "$as_me:$LINENO: result: $SED" >&5
6221 echo "${ECHO_T}$SED" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "tar", so it can be a program name with args.
6229 set dummy tar; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_TAR+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6260 if test -n "$TAR"; then
6261 { echo "$as_me:$LINENO: result: $TAR" >&5
6262 echo "${ECHO_T}$TAR" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 # Extract the first word of "pwd", so it can be a program name with args.
6270 set dummy pwd; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_BINPWD+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6300 BINPWD=$ac_cv_path_BINPWD
6301 if test -n "$BINPWD"; then
6302 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6303 echo "${ECHO_T}$BINPWD" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6311 # Extract the first word of "Graphviz", so it can be a program name with args.
6312 set dummy Graphviz; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6342 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6343 if test -n "$GRAPHVIZ"; then
6344 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6345 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define HAVE_GRAPHVIZ 1
6358 if test "$llvm_cv_os_type" = "MingW" ; then
6359 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6362 cat >>confdefs.h <<_ACEOF
6363 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6367 # Extract the first word of "dot", so it can be a program name with args.
6368 set dummy dot; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_DOT+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6399 if test -n "$DOT"; then
6400 { echo "$as_me:$LINENO: result: $DOT" >&5
6401 echo "${ECHO_T}$DOT" >&6; }
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6408 if test "$DOT" != "echo dot" ; then
6410 cat >>confdefs.h <<\_ACEOF
6414 if test "$llvm_cv_os_type" = "MingW" ; then
6415 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6418 cat >>confdefs.h <<_ACEOF
6419 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6423 # Extract the first word of "fdp", so it can be a program name with args.
6424 set dummy fdp; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_path_FDP+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6455 if test -n "$FDP"; then
6456 { echo "$as_me:$LINENO: result: $FDP" >&5
6457 echo "${ECHO_T}$FDP" >&6; }
6459 { echo "$as_me:$LINENO: result: no" >&5
6460 echo "${ECHO_T}no" >&6; }
6464 if test "$FDP" != "echo fdp" ; then
6466 cat >>confdefs.h <<\_ACEOF
6470 if test "$llvm_cv_os_type" = "MingW" ; then
6471 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6474 cat >>confdefs.h <<_ACEOF
6475 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6479 # Extract the first word of "neato", so it can be a program name with args.
6480 set dummy neato; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_path_NEATO+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6510 NEATO=$ac_cv_path_NEATO
6511 if test -n "$NEATO"; then
6512 { echo "$as_me:$LINENO: result: $NEATO" >&5
6513 echo "${ECHO_T}$NEATO" >&6; }
6515 { echo "$as_me:$LINENO: result: no" >&5
6516 echo "${ECHO_T}no" >&6; }
6520 if test "$NEATO" != "echo neato" ; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_NEATO 1
6526 if test "$llvm_cv_os_type" = "MingW" ; then
6527 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6530 cat >>confdefs.h <<_ACEOF
6531 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6535 # Extract the first word of "twopi", so it can be a program name with args.
6536 set dummy twopi; ac_word=$2
6537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6539 if test "${ac_cv_path_TWOPI+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6566 TWOPI=$ac_cv_path_TWOPI
6567 if test -n "$TWOPI"; then
6568 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6569 echo "${ECHO_T}$TWOPI" >&6; }
6571 { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6576 if test "$TWOPI" != "echo twopi" ; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_TWOPI 1
6582 if test "$llvm_cv_os_type" = "MingW" ; then
6583 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6586 cat >>confdefs.h <<_ACEOF
6587 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6591 # Extract the first word of "circo", so it can be a program name with args.
6592 set dummy circo; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_CIRCO+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6622 CIRCO=$ac_cv_path_CIRCO
6623 if test -n "$CIRCO"; then
6624 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6625 echo "${ECHO_T}$CIRCO" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6632 if test "$CIRCO" != "echo circo" ; then
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_CIRCO 1
6638 if test "$llvm_cv_os_type" = "MingW" ; then
6639 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6642 cat >>confdefs.h <<_ACEOF
6643 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6647 for ac_prog in gv gsview32
6649 # Extract the first word of "$ac_prog", so it can be a program name with args.
6650 set dummy $ac_prog; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_path_GV+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6668 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 if test -n "$GV"; then
6681 { echo "$as_me:$LINENO: result: $GV" >&5
6682 echo "${ECHO_T}$GV" >&6; }
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6689 test -n "$GV" && break
6691 test -n "$GV" || GV="echo gv"
6693 if test "$GV" != "echo gv" ; then
6695 cat >>confdefs.h <<\_ACEOF
6699 if test "$llvm_cv_os_type" = "MingW" ; then
6700 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6703 cat >>confdefs.h <<_ACEOF
6704 #define LLVM_PATH_GV "$GV${EXEEXT}"
6708 # Extract the first word of "dotty", so it can be a program name with args.
6709 set dummy dotty; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_DOTTY+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6739 DOTTY=$ac_cv_path_DOTTY
6740 if test -n "$DOTTY"; then
6741 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6742 echo "${ECHO_T}$DOTTY" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 if test "$DOTTY" != "echo dotty" ; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_DOTTY 1
6755 if test "$llvm_cv_os_type" = "MingW" ; then
6756 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759 cat >>confdefs.h <<_ACEOF
6760 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6764 # Extract the first word of "xdot.py", so it can be a program name with args.
6765 set dummy xdot.py; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6795 XDOT_PY=$ac_cv_path_XDOT_PY
6796 if test -n "$XDOT_PY"; then
6797 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6798 echo "${ECHO_T}$XDOT_PY" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 if test "$XDOT_PY" != "echo xdot.py" ; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_XDOT_PY 1
6811 if test "$llvm_cv_os_type" = "MingW" ; then
6812 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6821 # Find a good install program. We prefer a C program (faster),
6822 # so one script is as good as another. But avoid the broken or
6823 # incompatible versions:
6824 # SysV /etc/install, /usr/sbin/install
6825 # SunOS /usr/etc/install
6826 # IRIX /sbin/install
6828 # AmigaOS /C/install, which installs bootblocks on floppy discs
6829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6832 # OS/2's system install, which has a completely different semantic
6833 # ./install, which can be erroneously created by make from ./install.sh.
6834 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6835 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6836 if test -z "$INSTALL"; then
6837 if test "${ac_cv_path_install+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 # Account for people who put trailing slashes in PATH elements.
6847 ./ | .// | /cC/* | \
6848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6849 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6852 # OSF1 and SCO ODT 3.0 have their own names for install.
6853 # Don't use installbsd from OSF since it installs stuff as root
6855 for ac_prog in ginstall scoinst install; do
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6858 if test $ac_prog = install &&
6859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6860 # AIX install. It has an incompatible calling convention.
6862 elif test $ac_prog = install &&
6863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6864 # program-specific install script used by HP pwplus--don't use.
6867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6880 if test "${ac_cv_path_install+set}" = set; then
6881 INSTALL=$ac_cv_path_install
6883 # As a last resort, use the slow shell script. Don't cache a
6884 # value for INSTALL within a source directory, because that will
6885 # break other packages using the cache if that directory is
6886 # removed, or if the value is a relative name.
6887 INSTALL=$ac_install_sh
6890 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6891 echo "${ECHO_T}$INSTALL" >&6; }
6893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6894 # It thinks the first close brace ends the variable substitution.
6895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6902 [\\/$]* | ?:[\\/]* ) ;;
6903 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6906 # Extract the first word of "bzip2", so it can be a program name with args.
6907 set dummy bzip2; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_BZIP2+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 BZIP2=$ac_cv_path_BZIP2
6937 if test -n "$BZIP2"; then
6938 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6939 echo "${ECHO_T}$BZIP2" >&6; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "cat", so it can be a program name with args.
6947 set dummy cat; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_CAT+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 if test -n "$CAT"; then
6978 { echo "$as_me:$LINENO: result: $CAT" >&5
6979 echo "${ECHO_T}$CAT" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "doxygen", so it can be a program name with args.
6987 set dummy doxygen; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 DOXYGEN=$ac_cv_path_DOXYGEN
7017 if test -n "$DOXYGEN"; then
7018 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7019 echo "${ECHO_T}$DOXYGEN" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7026 # Extract the first word of "groff", so it can be a program name with args.
7027 set dummy groff; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_path_GROFF+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 GROFF=$ac_cv_path_GROFF
7057 if test -n "$GROFF"; then
7058 { echo "$as_me:$LINENO: result: $GROFF" >&5
7059 echo "${ECHO_T}$GROFF" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "gzip", so it can be a program name with args.
7067 set dummy gzip; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 GZIPBIN=$ac_cv_path_GZIPBIN
7097 if test -n "$GZIPBIN"; then
7098 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7099 echo "${ECHO_T}$GZIPBIN" >&6; }
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7106 # Extract the first word of "pod2html", so it can be a program name with args.
7107 set dummy pod2html; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_POD2HTML+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 POD2HTML=$ac_cv_path_POD2HTML
7137 if test -n "$POD2HTML"; then
7138 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7139 echo "${ECHO_T}$POD2HTML" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 # Extract the first word of "pod2man", so it can be a program name with args.
7147 set dummy pod2man; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_POD2MAN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 POD2MAN=$ac_cv_path_POD2MAN
7177 if test -n "$POD2MAN"; then
7178 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7179 echo "${ECHO_T}$POD2MAN" >&6; }
7181 { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7186 # Extract the first word of "pdfroff", so it can be a program name with args.
7187 set dummy pdfroff; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_path_PDFROFF+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 PDFROFF=$ac_cv_path_PDFROFF
7217 if test -n "$PDFROFF"; then
7218 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7219 echo "${ECHO_T}$PDFROFF" >&6; }
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7226 # Extract the first word of "runtest", so it can be a program name with args.
7227 set dummy runtest; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_path_RUNTEST+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 RUNTEST=$ac_cv_path_RUNTEST
7257 if test -n "$RUNTEST"; then
7258 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7259 echo "${ECHO_T}$RUNTEST" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7268 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7269 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7271 # Check whether --with-tclinclude was given.
7272 if test "${with_tclinclude+set}" = set; then
7273 withval=$with_tclinclude; with_tclinclude=${withval}
7278 if test "${ac_cv_path_tclsh+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 if test x"${with_tclinclude}" != x ; then
7283 if test -f ${with_tclinclude}/tclsh ; then
7284 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7285 elif test -f ${with_tclinclude}/src/tclsh ; then
7286 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7288 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7289 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7290 { (exit 1); exit 1; }; }
7296 if test x"${ac_cv_path_tclsh}" = x ; then
7297 { echo "$as_me:$LINENO: result: none" >&5
7298 echo "${ECHO_T}none" >&6; }
7299 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
7301 # Extract the first word of "$ac_prog", so it can be a program name with args.
7302 set dummy $ac_prog; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TCLSH+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 TCLSH=$ac_cv_path_TCLSH
7332 if test -n "$TCLSH"; then
7333 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7334 echo "${ECHO_T}$TCLSH" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 test -n "$TCLSH" && break
7344 if test x"${TCLSH}" = x ; then
7345 ac_cv_path_tclsh='';
7347 ac_cv_path_tclsh="${TCLSH}";
7350 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7351 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7352 TCLSH="${ac_cv_path_tclsh}"
7356 # Extract the first word of "zip", so it can be a program name with args.
7357 set dummy zip; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_ZIP+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 if test -n "$ZIP"; then
7388 { echo "$as_me:$LINENO: result: $ZIP" >&5
7389 echo "${ECHO_T}$ZIP" >&6; }
7391 { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7396 for ac_prog in ocamlc
7398 # Extract the first word of "$ac_prog", so it can be a program name with args.
7399 set dummy $ac_prog; ac_word=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_OCAMLC+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 OCAMLC=$ac_cv_path_OCAMLC
7429 if test -n "$OCAMLC"; then
7430 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7431 echo "${ECHO_T}$OCAMLC" >&6; }
7433 { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7438 test -n "$OCAMLC" && break
7441 for ac_prog in ocamlopt
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy $ac_prog; ac_word=$2
7445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 OCAMLOPT=$ac_cv_path_OCAMLOPT
7474 if test -n "$OCAMLOPT"; then
7475 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7476 echo "${ECHO_T}$OCAMLOPT" >&6; }
7478 { echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6; }
7483 test -n "$OCAMLOPT" && break
7486 for ac_prog in ocamldep
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 OCAMLDEP=$ac_cv_path_OCAMLDEP
7519 if test -n "$OCAMLDEP"; then
7520 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7521 echo "${ECHO_T}$OCAMLDEP" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 test -n "$OCAMLDEP" && break
7531 for ac_prog in ocamldoc
7533 # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 OCAMLDOC=$ac_cv_path_OCAMLDOC
7564 if test -n "$OCAMLDOC"; then
7565 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7566 echo "${ECHO_T}$OCAMLDOC" >&6; }
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7573 test -n "$OCAMLDOC" && break
7576 for ac_prog in gas as
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_GAS+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 if test -n "$GAS"; then
7610 { echo "$as_me:$LINENO: result: $GAS" >&5
7611 echo "${ECHO_T}$GAS" >&6; }
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7618 test -n "$GAS" && break
7622 { echo "$as_me:$LINENO: checking for linker version" >&5
7623 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7624 if test "${llvm_cv_link_version+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 version_string="$(ld -v 2>&1 | head -1)"
7631 if (echo "$version_string" | grep -q "ld64"); then
7632 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7634 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7638 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7639 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7641 cat >>confdefs.h <<_ACEOF
7642 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7647 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649 if test "${llvm_cv_link_use_r+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659 CFLAGS="$CFLAGS -Wl,-R."
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7690 { (case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_try") 2>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_try") 2>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 llvm_cv_link_use_r=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 llvm_cv_link_use_r=no
7717 rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7721 ac_cpp='$CPP $CPPFLAGS'
7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7729 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7730 if test "$llvm_cv_link_use_r" = yes ; then
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_LINK_R 1
7739 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7740 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7741 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_link") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 llvm_cv_link_use_export_dynamic=yes
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 llvm_cv_link_use_export_dynamic=no
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7821 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7822 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_LINK_EXPORT_DYNAMIC 1
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_version_script+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844 # The following code is from the autoconf manual,
7845 # "11.13: Limitations of Usual Tools".
7846 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7847 # Use mktemp if possible; otherwise fall back on mkdir,
7848 # with $RANDOM to make collisions less likely.
7852 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7854 test -n "$tmp" && test -d "$tmp"
7856 tmp=$TMPDIR/foo$$-$RANDOM
7857 (umask 077 && mkdir "$tmp")
7860 echo "{" > "$tmp/export.map"
7861 echo " global: main;" >> "$tmp/export.map"
7862 echo " local: *;" >> "$tmp/export.map"
7863 echo "};" >> "$tmp/export.map"
7865 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (ac_try="$ac_link"
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_link") 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7896 { (case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_try") 2>&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 llvm_cv_link_use_version_script=yes
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 llvm_cv_link_use_version_script=no
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 rm "$tmp/export.map"
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7937 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7938 if test "$llvm_cv_link_use_version_script" = yes ; then
7939 HAVE_LINK_VERSION_SCRIPT=1
7946 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7948 if test "${ac_cv_c_const+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7961 /* FIXME: Include the comments suggested by Paul. */
7963 /* Ultrix mips cc rejects this. */
7964 typedef int charset[2];
7966 /* SunOS 4.1.1 cc rejects this. */
7967 char const *const *ccp;
7969 /* NEC SVR4.0.2 mips cc rejects this. */
7970 struct point {int x, y;};
7971 static struct point const zero = {0,0};
7972 /* AIX XL C 1.02.0.0 rejects this.
7973 It does not let you subtract one const X* pointer from another in
7974 an arm of an if-expression whose if-part is not a constant
7976 const char *g = "string";
7977 ccp = &g + (g ? g-g : 0);
7978 /* HPUX 7.0 cc rejects these. */
7981 ccp = (char const *const *) p;
7982 { /* SCO 3.2v4 cc rejects this. */
7984 char const *s = 0 ? (char *) 0 : (char const *) 0;
7989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7991 const int *foo = &x[0];
7994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7995 typedef const int *iptr;
7999 { /* AIX XL C 1.02.0.0 rejects this saying
8000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8001 struct s { int j; const int *ap[3]; };
8002 struct s *b; b->j = 5;
8004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008 return !x[0] && !zero.x;
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8024 grep -v '^ *+' conftest.er1 >conftest.err
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8030 { (case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_try") 2>&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest.$ac_objext'
8040 { (case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_try") 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8060 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8061 if test $ac_cv_c_const = no; then
8063 cat >>confdefs.h <<\_ACEOF
8075 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8076 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8077 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8078 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <sys/types.h>
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 eval "$as_ac_Header=yes"
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 eval "$as_ac_Header=no"
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 ac_res=`eval echo '${'$as_ac_Header'}'`
8145 { echo "$as_me:$LINENO: result: $ac_res" >&5
8146 echo "${ECHO_T}$ac_res" >&6; }
8147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8152 ac_header_dirent=$ac_hdr; break
8156 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8157 if test $ac_header_dirent = dirent.h; then
8158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8186 for ac_lib in '' dir; do
8187 if test -z "$ac_lib"; then
8188 ac_res="none required"
8191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208 { (case "(($ac_try" in
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_try") 2>&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8227 ac_cv_search_opendir=$ac_res
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8235 rm -f core conftest.err conftest.$ac_objext \
8237 if test "${ac_cv_search_opendir+set}" = set; then
8241 if test "${ac_cv_search_opendir+set}" = set; then
8244 ac_cv_search_opendir=no
8247 LIBS=$ac_func_search_save_LIBS
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8258 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260 if test "${ac_cv_search_opendir+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8271 /* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8286 for ac_lib in '' x; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_link") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 ac_cv_search_opendir=$ac_res
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8335 rm -f core conftest.err conftest.$ac_objext \
8337 if test "${ac_cv_search_opendir+set}" = set; then
8341 if test "${ac_cv_search_opendir+set}" = set; then
8344 ac_cv_search_opendir=no
8347 LIBS=$ac_func_search_save_LIBS
8349 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351 ac_res=$ac_cv_search_opendir
8352 if test "$ac_res" != no; then
8353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360 for ac_header in dlfcn.h
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 ac_res=`eval echo '${'$as_ac_Header'}'`
8370 { echo "$as_me:$LINENO: result: $ac_res" >&5
8371 echo "${ECHO_T}$ac_res" >&6; }
8373 # Is the header compilable?
8374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_header_compiler=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8429 echo "${ECHO_T}$ac_header_compiler" >&6; }
8431 # Is the header present?
8432 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 #include <$ac_header>
8442 if { (ac_try="$ac_cpp conftest.$ac_ext"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } >/dev/null; then
8455 if test -s conftest.err; then
8456 ac_cpp_err=$ac_c_preproc_warn_flag
8457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8464 if test -z "$ac_cpp_err"; then
8465 ac_header_preproc=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_header_preproc=no
8473 rm -f conftest.err conftest.$ac_ext
8474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8475 echo "${ECHO_T}$ac_header_preproc" >&6; }
8477 # So? What about this header?
8478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8484 ac_header_preproc=yes
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8500 ## ------------------------------ ##
8501 ## Report this to bugs@yourdomain ##
8502 ## ------------------------------ ##
8504 ) | sed "s/^/$as_me: WARNING: /" >&2
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 eval "$as_ac_Header=\$ac_header_preproc"
8514 ac_res=`eval echo '${'$as_ac_Header'}'`
8515 { echo "$as_me:$LINENO: result: $ac_res" >&5
8516 echo "${ECHO_T}$ac_res" >&6; }
8519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8520 cat >>confdefs.h <<_ACEOF
8521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8528 # Check whether --enable-ltdl-install was given.
8529 if test "${enable_ltdl_install+set}" = set; then
8530 enableval=$enable_ltdl_install;
8536 if test x"${enable_ltdl_install-no}" != xno; then
8538 INSTALL_LTDL_FALSE='#'
8540 INSTALL_LTDL_TRUE='#'
8546 if test x"${enable_ltdl_convenience-no}" != xno; then
8547 CONVENIENCE_LTDL_TRUE=
8548 CONVENIENCE_LTDL_FALSE='#'
8550 CONVENIENCE_LTDL_TRUE='#'
8551 CONVENIENCE_LTDL_FALSE=
8555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8558 libname_spec='lib$name'
8566 shlibpath_overrides_runpath=unknown
8568 dynamic_linker="$host_os ld.so"
8569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8570 if test "$GCC" = yes; then
8571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8573 # if the path contains ";" then we assume it to be the separator
8574 # otherwise default to the standard path separator (i.e. ":") - it is
8575 # assumed that no part of a normal pathname contains ";" but that should
8576 # okay in the real world where ";" in dirpaths is itself problematic.
8577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8584 need_lib_prefix=unknown
8585 hardcode_into_libs=no
8587 # when you set need_version to no, make sure it does not cause -set_version
8588 # flags to be left without arguments
8589 need_version=unknown
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8595 shlibpath_var=LIBPATH
8597 # AIX 3 has no versioning support, so we append a major version to the name.
8598 soname_spec='${libname}${release}${shared_ext}$major'
8605 hardcode_into_libs=yes
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 supports IA64
8608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8609 shlibpath_var=LD_LIBRARY_PATH
8611 # With GCC up to 2.95.x, collect2 would create an import file
8612 # for dependence libraries. The import file would start with
8613 # the line `#! .'. This would cause the generated library to
8614 # depend on `.', always an invalid library. This was fixed in
8615 # development snapshots of GCC prior to 3.0.
8617 aix4 | aix4.[01] | aix4.[01].*)
8618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8628 # soname into executable. Probably we can add versioning support to
8629 # collect2, so additional links can be useful in future.
8630 if test "$aix_use_runtimelinking" = yes; then
8631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8632 # instead of lib<name>.a to let people know that these are not
8633 # typical AIX shared libraries.
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636 # We preserve .a as extension for shared libraries through AIX4.2
8637 # and later when we are not doing run time linking.
8638 library_names_spec='${libname}${release}.a $libname.a'
8639 soname_spec='${libname}${release}${shared_ext}$major'
8641 shlibpath_var=LIBPATH
8646 library_names_spec='$libname.ixlibrary $libname.a'
8647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8648 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'
8652 library_names_spec='${libname}${shared_ext}'
8653 dynamic_linker="$host_os ld.so"
8654 shlibpath_var=LIBRARY_PATH
8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8661 soname_spec='${libname}${release}${shared_ext}$major'
8662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8663 shlibpath_var=LD_LIBRARY_PATH
8664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8666 # the default ld.so.conf also contains /usr/contrib/lib and
8667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8668 # libtool to hard-code these into programs
8671 cygwin* | mingw* | pw32*)
8672 version_type=windows
8677 case $GCC,$host_os in
8678 yes,cygwin* | yes,mingw* | yes,pw32*)
8679 library_names_spec='$libname.dll.a'
8680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8681 postinstall_cmds='base_file=`basename \${file}`~
8682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8683 dldir=$destdir/`dirname \$dlpath`~
8684 test -d \$dldir || mkdir -p \$dldir~
8685 $install_prog $dir/$dlname \$dldir/$dlname~
8686 chmod a+x \$dldir/$dlname'
8687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8688 dlpath=$dir/\$dldll~
8690 shlibpath_overrides_runpath=yes
8694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8696 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8699 # MinGW DLLs use traditional 'lib' prefix
8700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8703 # It is most probably a Windows format PATH printed by
8704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8705 # path with ; separators, and with drive letters. We can handle the
8706 # drive letters (cygwin fileutils understands them), so leave them,
8707 # especially as we might pass files found there to a mingw objdump,
8708 # which wouldn't understand a cygwinified path. Ahh.
8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8715 # pw32 DLLs use 'pw' prefix rather than 'lib'
8716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8725 dynamic_linker='Win32 ld.exe'
8726 # FIXME: first we should search . and the directory the executable is in
8730 darwin* | rhapsody*)
8731 dynamic_linker="$host_os dyld"
8735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8736 soname_spec='${libname}${release}${major}$shared_ext'
8737 shlibpath_overrides_runpath=yes
8738 shlibpath_var=DYLD_LIBRARY_PATH
8739 shrext_cmds='.dylib'
8740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8741 if test "$GCC" = yes; then
8742 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"`
8744 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8754 soname_spec='${libname}${release}${shared_ext}$major'
8755 shlibpath_var=LD_LIBRARY_PATH
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=no
8770 hardcode_into_libs=yes
8771 dynamic_linker='GNU ld.so'
8774 freebsd* | dragonfly*)
8775 # DragonFly does not have aout. When/if they implement a new
8776 # versioning mechanism, adjust this.
8777 if test -x /usr/bin/objformat; then
8778 objformat=`/usr/bin/objformat`
8781 freebsd[123].*) objformat=aout ;;
8785 version_type=freebsd-$objformat
8786 case $version_type in
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8797 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=yes
8802 freebsd3.[01]* | freebsdelf3.[01]*)
8803 shlibpath_overrides_runpath=yes
8804 hardcode_into_libs=yes
8806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8808 shlibpath_overrides_runpath=no
8809 hardcode_into_libs=yes
8811 freebsd*) # from 4.6 on
8812 shlibpath_overrides_runpath=yes
8813 hardcode_into_libs=yes
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 hardcode_into_libs=yes
8828 hpux9* | hpux10* | hpux11*)
8829 # Give a soname corresponding to the major version so that dld.sl refuses to
8830 # link against other versions.
8837 hardcode_into_libs=yes
8838 dynamic_linker="$host_os dld.so"
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 if test "X$HPUX_IA64_MODE" = X32; then
8844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852 hardcode_into_libs=yes
8853 dynamic_linker="$host_os dld.sl"
8854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863 dynamic_linker="$host_os dld.sl"
8864 shlibpath_var=SHLIB_PATH
8865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8871 postinstall_cmds='chmod 555 $lib'
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 shlibpath_overrides_runpath=no
8883 hardcode_into_libs=yes
8886 irix5* | irix6* | nonstopux*)
8888 nonstopux*) version_type=nonstopux ;;
8890 if test "$lt_cv_prog_gnu_ld" = yes; then
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8901 irix5* | nonstopux*)
8905 case $LD in # libtool.m4 will add one of these switches to LD
8906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8907 libsuff= shlibsuff= libmagic=32-bit;;
8908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8909 libsuff=32 shlibsuff=N32 libmagic=N32;;
8910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8912 *) libsuff= shlibsuff= libmagic=never-match;;
8916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8917 shlibpath_overrides_runpath=no
8918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8920 hardcode_into_libs=yes
8923 # No shared lib support for Linux oldld, aout, or coff.
8924 linux*oldld* | linux*aout* | linux*coff*)
8928 # This must be Linux ELF.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 # This implies no fast_install, which is unacceptable.
8939 # Some rework will be needed to allow for fast_install
8940 # before this can be enabled.
8941 hardcode_into_libs=yes
8943 # Append ld.so.conf contents to the search path
8944 if test -f /etc/ld.so.conf; then
8945 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' ' '`
8946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8949 # We used to test for /lib/ld.so.1 and disable shared libraries on
8950 # powerpc, because MkLinux only supported shared libraries with the
8951 # GNU dynamic linker. Since this was broken with cross compilers,
8952 # most powerpc-linux boxes support dynamic linking these days and
8953 # people can always --disable-shared, the test was removed, and we
8954 # assume the GNU/Linux dynamic linker is in use.
8955 dynamic_linker='GNU/Linux ld.so'
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=no
8966 hardcode_into_libs=yes
8967 dynamic_linker='GNU ld.so'
8974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8977 dynamic_linker='NetBSD (a.out) ld.so'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 dynamic_linker='NetBSD ld.elf_so'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9007 sys_lib_dlsearch_path_spec="/usr/lib"
9009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9012 *) need_version=no ;;
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9019 openbsd2.[89] | openbsd2.[89].*)
9020 shlibpath_overrides_runpath=no
9023 shlibpath_overrides_runpath=yes
9027 shlibpath_overrides_runpath=yes
9032 libname_spec='$name'
9035 library_names_spec='$libname${shared_ext} $libname.a'
9036 dynamic_linker='OS/2 ld.exe'
9037 shlibpath_var=LIBPATH
9040 osf3* | osf4* | osf5*)
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 hardcode_into_libs=yes
9060 # ldd complains unless libraries are executable
9061 postinstall_cmds='chmod +x $lib'
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 if test "$with_gnu_ld" = yes; then
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 case $host_vendor in
9083 shlibpath_overrides_runpath=no
9085 export_dynamic_flag_spec='${wl}-Blargedynsym'
9086 runpath_var=LD_RUN_PATH
9094 shlibpath_overrides_runpath=no
9095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9101 if test -d /usr/nec ;then
9103 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9104 soname_spec='$libname${shared_ext}.$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9110 version_type=freebsd-elf
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 hardcode_into_libs=yes
9117 if test "$with_gnu_ld" = yes; then
9118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9119 shlibpath_overrides_runpath=no
9121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9122 shlibpath_overrides_runpath=yes
9125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9129 sys_lib_dlsearch_path_spec='/usr/lib'
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9143 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9144 echo "${ECHO_T}$dynamic_linker" >&6; }
9145 test "$dynamic_linker" = no && can_build_shared=no
9147 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9148 if test "$GCC" = yes; then
9149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9153 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9154 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9155 if test "${libltdl_cv_shlibext+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 eval libltdl_cv_shlibext=$shrext_cmds
9163 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9164 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9165 if test -n "$libltdl_cv_shlibext"; then
9167 cat >>confdefs.h <<_ACEOF
9168 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9174 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9175 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9176 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 libltdl_cv_shlibpath_var="$shlibpath_var"
9181 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9182 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9183 if test -n "$libltdl_cv_shlibpath_var"; then
9185 cat >>confdefs.h <<_ACEOF
9186 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9192 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9193 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9194 if test "${libltdl_cv_sys_search_path+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9199 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9200 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9201 if test -n "$libltdl_cv_sys_search_path"; then
9203 for dir in $libltdl_cv_sys_search_path; do
9204 if test -z "$sys_search_path"; then
9205 sys_search_path="$dir"
9207 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9211 cat >>confdefs.h <<_ACEOF
9212 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9217 { echo "$as_me:$LINENO: checking for objdir" >&5
9218 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_objdir+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 libltdl_cv_objdir="$objdir"
9223 if test -n "$objdir"; then
9226 rm -f .libs 2>/dev/null
9227 mkdir .libs 2>/dev/null
9228 if test -d .libs; then
9229 libltdl_cv_objdir=.libs
9231 # MS-DOS does not allow filenames that begin with a dot.
9232 libltdl_cv_objdir=_libs
9234 rmdir .libs 2>/dev/null
9238 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9239 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9250 # Check for command to grab the raw symbol name followed by C symbol from nm.
9251 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9252 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9253 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 # These are sane defaults that work on at least a few old systems.
9258 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9260 # Character class describing NM global symbol codes.
9261 symcode='[BCDEGRST]'
9263 # Regexp to match symbols that can be accessed directly from C.
9264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9266 # Transform an extracted symbol line into a proper C declaration
9267 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9269 # Transform an extracted symbol line into symbol name and symbol address
9270 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'"
9272 # Define system-specific variables.
9277 cygwin* | mingw* | pw32*)
9278 symcode='[ABCDGISTW]'
9280 hpux*) # Its linker distinguishes data from code symbols
9281 if test "$host_cpu" = ia64; then
9282 symcode='[ABCDEGRST]'
9284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9285 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'"
9288 if test "$host_cpu" = ia64; then
9289 symcode='[ABCDGIRSTW]'
9290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291 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'"
9295 symcode='[BCDEGRST]'
9298 symcode='[BCDEGQRST]'
9309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9317 # Handle CRLF in mingw tool chain
9321 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9325 # If we're using GNU nm, then use its standard symbol codes.
9326 case `$NM -V 2>&1` in
9327 *GNU* | *'with BFD'*)
9328 symcode='[ABCDGIRSTW]' ;;
9331 # Try without a prefix undercore, then with it.
9332 for ac_symprfx in "" "_"; do
9334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9335 symxfrm="\\1 $ac_symprfx\\2 \\2"
9337 # Write the raw and C identifiers.
9338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9340 # Check to see that the pipe works correctly.
9344 cat > conftest.$ac_ext <<EOF
9349 void nm_test_func(){}
9353 int main(){nm_test_var='a';nm_test_func();return(0);}
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; then
9361 # Now try to grab the symbols.
9363 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9364 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && test -s "$nlist"; then
9368 # Try sorting and uniquifying the output.
9369 if sort "$nlist" | uniq > "$nlist"T; then
9370 mv -f "$nlist"T "$nlist"
9375 # Make sure that we snagged all the symbols we need.
9376 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9377 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9378 cat <<EOF > conftest.$ac_ext
9384 # Now generate the symbol file.
9385 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9387 cat <<EOF >> conftest.$ac_ext
9388 #if defined (__STDC__) && __STDC__
9389 # define lt_ptr_t void *
9391 # define lt_ptr_t char *
9395 /* The mapping between symbol names and symbols. */
9400 lt_preloaded_symbols[] =
9403 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9404 cat <<\EOF >> conftest.$ac_ext
9412 # Now try linking the two files.
9413 mv conftest.$ac_objext conftstm.$ac_objext
9414 lt_save_LIBS="$LIBS"
9415 lt_save_CFLAGS="$CFLAGS"
9416 LIBS="conftstm.$ac_objext"
9417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9425 LIBS="$lt_save_LIBS"
9426 CFLAGS="$lt_save_CFLAGS"
9428 echo "cannot find nm_test_func in $nlist" >&5
9431 echo "cannot find nm_test_var in $nlist" >&5
9434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9437 echo "$progname: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9440 rm -f conftest* conftst*
9442 # Do not use the global_symbol_pipe unless it works.
9443 if test "$pipe_works" = yes; then
9446 lt_cv_sys_global_symbol_pipe=
9452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9453 lt_cv_sys_global_symbol_to_cdecl=
9455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9456 { echo "$as_me:$LINENO: result: failed" >&5
9457 echo "${ECHO_T}failed" >&6; }
9459 { echo "$as_me:$LINENO: result: ok" >&5
9460 echo "${ECHO_T}ok" >&6; }
9464 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9465 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9466 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9470 libltdl_cv_preloaded_symbols=yes
9472 libltdl_cv_preloaded_symbols=no
9476 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9477 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9478 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9480 cat >>confdefs.h <<\_ACEOF
9481 #define HAVE_PRELOADED_SYMBOLS 1
9489 ac_cpp='$CPP $CPPFLAGS'
9490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495 { echo "$as_me:$LINENO: checking for shl_load" >&5
9496 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9497 if test "${ac_cv_func_shl_load+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9508 #define shl_load innocuous_shl_load
9510 /* System header to define __stub macros and hopefully few prototypes,
9511 which can conflict with char shl_load (); below.
9512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9513 <limits.h> exists even on freestanding compilers. */
9516 # include <limits.h>
9518 # include <assert.h>
9523 /* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9530 /* The GNU C library defines this for functions which it implements
9531 to always fail with ENOSYS. Some functions are actually named
9532 something starting with __ and the normal name is an alias. */
9533 #if defined __stub_shl_load || defined __stub___shl_load
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9560 { (case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_try") 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_try") 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 ac_cv_func_shl_load=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_func_shl_load=no
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9590 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9592 if test $ac_cv_func_shl_load = yes; then
9594 cat >>confdefs.h <<\_ACEOF
9595 #define HAVE_SHL_LOAD 1
9599 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 ac_check_lib_save_LIBS=$LIBS
9606 cat >conftest.$ac_ext <<_ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest$ac_exeext'
9653 { (case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_try") 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_lib_dld_shl_load=yes
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_cv_lib_dld_shl_load=no
9670 rm -f core conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672 LIBS=$ac_check_lib_save_LIBS
9674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9676 if test $ac_cv_lib_dld_shl_load = yes; then
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_SHL_LOAD 1
9682 LIBADD_DL="$LIBADD_DL -ldld"
9684 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9685 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_check_lib_save_LIBS=$LIBS
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_lib_dl_dlopen=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_lib_dl_dlopen=no
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9761 if test $ac_cv_lib_dl_dlopen = yes; then
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_LIBDL 1
9767 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_link") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; } &&
9811 { ac_try='test -s conftest$ac_exeext'
9812 { (case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_try") 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9822 cat >>confdefs.h <<\_ACEOF
9823 #define HAVE_LIBDL 1
9825 libltdl_cv_func_dlopen="yes"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9831 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9832 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_check_lib_save_LIBS=$LIBS
9837 cat >conftest.$ac_ext <<_ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9844 /* Override any GCC internal prototype to avoid an error.
9845 Use char because int might match the return type of a GCC
9846 builtin and then its argument prototype would still apply. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_lib_svld_dlopen=yes
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_lib_svld_dlopen=no
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9907 if test $ac_cv_lib_svld_dlopen = yes; then
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_LIBDL 1
9913 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9915 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 ac_check_lib_save_LIBS=$LIBS
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_link") 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_dld_dld_link=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_lib_dld_dld_link=no
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9990 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9991 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9992 if test $ac_cv_lib_dld_dld_link = yes; then
9994 cat >>confdefs.h <<\_ACEOF
9998 LIBADD_DL="$LIBADD_DL -ldld"
10000 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10001 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10002 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define _dyld_func_lookup innocuous__dyld_func_lookup
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char _dyld_func_lookup (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10026 #undef _dyld_func_lookup
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10034 char _dyld_func_lookup ();
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10045 return _dyld_func_lookup ();
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_try") 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_cv_func__dyld_func_lookup=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_cv_func__dyld_func_lookup=no
10092 rm -f core conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10095 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10096 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10097 if test $ac_cv_func__dyld_func_lookup = yes; then
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_DYLD 1
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10126 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10128 lt_save_LIBS="$LIBS"
10129 LIBS="$LIBS $LIBADD_DL"
10131 for ac_func in dlerror
10133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10147 #define $ac_func innocuous_$ac_func
10149 /* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char $ac_func (); below.
10151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10152 <limits.h> exists even on freestanding compilers. */
10155 # include <limits.h>
10157 # include <assert.h>
10162 /* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
10169 /* The GNU C library defines this for functions which it implements
10170 to always fail with ENOSYS. Some functions are actually named
10171 something starting with __ and the normal name is an alias. */
10172 #if defined __stub_$ac_func || defined __stub___$ac_func
10179 return $ac_func ();
10184 rm -f conftest.$ac_objext conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_link") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest$ac_exeext'
10209 { (case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_try") 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 eval "$as_ac_var=yes"
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 eval "$as_ac_var=no"
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10229 ac_res=`eval echo '${'$as_ac_var'}'`
10230 { echo "$as_me:$LINENO: result: $ac_res" >&5
10231 echo "${ECHO_T}$ac_res" >&6; }
10232 if test `eval echo '${'$as_ac_var'}'` = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 LIBS="$lt_save_LIBS"
10243 ac_cpp='$CPP $CPPFLAGS'
10244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10251 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10252 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_cv_sys_symbol_underscore=no
10256 cat > conftest.$ac_ext <<EOF
10257 void nm_test_func(){}
10258 int main(){nm_test_func;return 0;}
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; then
10265 # Now try to grab the symbols.
10266 ac_nlist=conftest.nm
10267 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10268 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && test -s "$ac_nlist"; then
10272 # See whether the symbols have a leading underscore.
10273 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10274 ac_cv_sys_symbol_underscore=yes
10276 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10279 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10283 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10286 echo "configure: failed program was:" >&5
10292 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10293 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10296 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10297 if test x"$libltdl_cv_func_dlopen" = xyes ||
10298 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10299 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10300 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10301 if test "${libltdl_cv_need_uscore+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 libltdl_cv_need_uscore=unknown
10306 LIBS="$LIBS $LIBADD_DL"
10307 if test "$cross_compiling" = yes; then :
10308 libltdl_cv_need_uscore=cross
10310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10311 lt_status=$lt_dlunknown
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10312 "configure"
10314 #include "confdefs.h"
10323 # define LT_DLGLOBAL RTLD_GLOBAL
10326 # define LT_DLGLOBAL DL_GLOBAL
10328 # define LT_DLGLOBAL 0
10332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10333 find out it does not work in some platform. */
10334 #ifndef LT_DLLAZY_OR_NOW
10336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10339 # define LT_DLLAZY_OR_NOW DL_LAZY
10342 # define LT_DLLAZY_OR_NOW RTLD_NOW
10345 # define LT_DLLAZY_OR_NOW DL_NOW
10347 # define LT_DLLAZY_OR_NOW 0
10355 extern "C" void exit (int);
10358 void fnord() { int i=42;}
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10368 /* dlclose (self); */
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381 (./conftest; exit; ) >&5 2>/dev/null
10383 case x$lt_status in
10384 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10385 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10386 x$lt_dlunknown|x*) ;;
10389 # compilation failed
10398 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10399 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10403 if test x"$libltdl_cv_need_uscore" = xyes; then
10405 cat >>confdefs.h <<\_ACEOF
10406 #define NEED_USCORE 1
10412 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10413 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10414 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 # PORTME does your system automatically load deplibs for dlopen?
10418 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10419 # For now, we just catch OSes we know something about -- in the
10420 # future, we'll try test this programmatically.
10421 libltdl_cv_sys_dlopen_deplibs=unknown
10423 aix3*|aix4.1.*|aix4.2.*)
10424 # Unknown whether this is true for these versions of AIX, but
10425 # we want this `case' here to explicitly catch those versions.
10426 libltdl_cv_sys_dlopen_deplibs=unknown
10429 libltdl_cv_sys_dlopen_deplibs=yes
10432 # Assuming the user has installed a libdl from somewhere, this is true
10433 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10434 libltdl_cv_sys_dlopen_deplibs=yes
10436 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10437 # GNU and its variants, using gnu ld.so (Glibc)
10438 libltdl_cv_sys_dlopen_deplibs=yes
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10446 irix[12345]*|irix6.[01]*)
10447 # Catch all versions of IRIX before 6.2, and indicate that we don't
10448 # know how it worked for any of those versions.
10449 libltdl_cv_sys_dlopen_deplibs=unknown
10452 # The case above catches anything before 6.2, and it's known that
10453 # at 6.2 and later dlopen does load deplibs.
10454 libltdl_cv_sys_dlopen_deplibs=yes
10457 libltdl_cv_sys_dlopen_deplibs=yes
10460 libltdl_cv_sys_dlopen_deplibs=yes
10463 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10464 # it did *not* use an RPATH in a shared library to find objects the
10465 # library depends on, so we explicitly say `no'.
10466 libltdl_cv_sys_dlopen_deplibs=no
10468 osf5.0|osf5.0a|osf5.1)
10469 # dlopen *does* load deplibs and with the right loader patch applied
10470 # it even uses RPATH in a shared library to search for shared objects
10471 # that the library depends on, but there's no easy way to know if that
10472 # patch is installed. Since this is the case, all we can really
10473 # say is unknown -- it depends on the patch being installed. If
10474 # it is, this changes to `yes'. Without it, it would be `no'.
10475 libltdl_cv_sys_dlopen_deplibs=unknown
10478 # the two cases above should catch all versions of osf <= 5.1. Read
10479 # the comments above for what we know about them.
10480 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10481 # is used to find them so we can finally say `yes'.
10482 libltdl_cv_sys_dlopen_deplibs=yes
10485 libltdl_cv_sys_dlopen_deplibs=yes
10487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10488 libltdl_cv_sys_dlopen_deplibs=yes
10493 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10494 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10495 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define LTDL_DLOPEN_DEPLIBS 1
10504 for ac_header in argz.h
10506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 ac_res=`eval echo '${'$as_ac_Header'}'`
10514 { echo "$as_me:$LINENO: result: $ac_res" >&5
10515 echo "${ECHO_T}$ac_res" >&6; }
10517 # Is the header compilable?
10518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 $ac_includes_default
10527 #include <$ac_header>
10529 rm -f conftest.$ac_objext
10530 if { (ac_try="$ac_compile"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_compile") 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_header_compiler=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_header_compiler=no
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10573 echo "${ECHO_T}$ac_header_compiler" >&6; }
10575 # Is the header present?
10576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <$ac_header>
10586 if { (ac_try="$ac_cpp conftest.$ac_ext"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } >/dev/null; then
10599 if test -s conftest.err; then
10600 ac_cpp_err=$ac_c_preproc_warn_flag
10601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10608 if test -z "$ac_cpp_err"; then
10609 ac_header_preproc=yes
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ac_header_preproc=no
10617 rm -f conftest.err conftest.$ac_ext
10618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6; }
10621 # So? What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628 ac_header_preproc=yes
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10644 ## ------------------------------ ##
10645 ## Report this to bugs@yourdomain ##
10646 ## ------------------------------ ##
10648 ) | sed "s/^/$as_me: WARNING: /" >&2
10651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 eval "$as_ac_Header=\$ac_header_preproc"
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10664 cat >>confdefs.h <<_ACEOF
10665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 { echo "$as_me:$LINENO: checking for error_t" >&5
10674 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10675 if test "${ac_cv_type_error_t+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10688 typedef error_t ac__type_new_;
10692 if ((ac__type_new_ *) 0)
10694 if (sizeof (ac__type_new_))
10700 rm -f conftest.$ac_objext
10701 if { (ac_try="$ac_compile"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_type_error_t=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_type_error_t=no
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10745 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10746 if test $ac_cv_type_error_t = yes; then
10748 cat >>confdefs.h <<_ACEOF
10749 #define HAVE_ERROR_T 1
10755 cat >>confdefs.h <<\_ACEOF
10756 #define error_t int
10767 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10783 #define $ac_func innocuous_$ac_func
10785 /* System header to define __stub macros and hopefully few prototypes,
10786 which can conflict with char $ac_func (); below.
10787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10788 <limits.h> exists even on freestanding compilers. */
10791 # include <limits.h>
10793 # include <assert.h>
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10805 /* The GNU C library defines this for functions which it implements
10806 to always fail with ENOSYS. Some functions are actually named
10807 something starting with __ and the normal name is an alias. */
10808 #if defined __stub_$ac_func || defined __stub___$ac_func
10815 return $ac_func ();
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (ac_try="$ac_link"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_link") 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_try") 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; }; then
10854 eval "$as_ac_var=yes"
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 eval "$as_ac_var=no"
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10865 ac_res=`eval echo '${'$as_ac_var'}'`
10866 { echo "$as_me:$LINENO: result: $ac_res" >&5
10867 echo "${ECHO_T}$ac_res" >&6; }
10868 if test `eval echo '${'$as_ac_var'}'` = yes; then
10869 cat >>confdefs.h <<_ACEOF
10870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10903 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10917 # Is the header compilable?
10918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_header_compiler=yes
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_header_compiler=no
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <$ac_header>
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11008 if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_header_preproc=no
11017 rm -f conftest.err conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11019 echo "${ECHO_T}$ac_header_preproc" >&6; }
11021 # So? What about this header?
11022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11028 ac_header_preproc=yes
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11044 ## ------------------------------ ##
11045 ## Report this to bugs@yourdomain ##
11046 ## ------------------------------ ##
11048 ) | sed "s/^/$as_me: WARNING: /" >&2
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 eval "$as_ac_Header=\$ac_header_preproc"
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11076 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11089 # Is the header compilable?
11090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 $ac_includes_default
11099 #include <$ac_header>
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_header_compiler=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 ac_header_compiler=no
11143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11145 echo "${ECHO_T}$ac_header_compiler" >&6; }
11147 # Is the header present?
11148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11150 cat >conftest.$ac_ext <<_ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156 #include <$ac_header>
11158 if { (ac_try="$ac_cpp conftest.$ac_ext"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } >/dev/null; then
11171 if test -s conftest.err; then
11172 ac_cpp_err=$ac_c_preproc_warn_flag
11173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11180 if test -z "$ac_cpp_err"; then
11181 ac_header_preproc=yes
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11186 ac_header_preproc=no
11189 rm -f conftest.err conftest.$ac_ext
11190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191 echo "${ECHO_T}$ac_header_preproc" >&6; }
11193 # So? What about this header?
11194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11200 ac_header_preproc=yes
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11216 ## ------------------------------ ##
11217 ## Report this to bugs@yourdomain ##
11218 ## ------------------------------ ##
11220 ) | sed "s/^/$as_me: WARNING: /" >&2
11223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 eval "$as_ac_Header=\$ac_header_preproc"
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11236 cat >>confdefs.h <<_ACEOF
11237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11246 for ac_header in string.h strings.h
11248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11259 # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <$ac_header>
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_header_compiler=yes
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_header_compiler=no
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } >/dev/null; then
11341 if test -s conftest.err; then
11342 ac_cpp_err=$ac_c_preproc_warn_flag
11343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11350 if test -z "$ac_cpp_err"; then
11351 ac_header_preproc=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_preproc=no
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11363 # So? What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc=yes
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11386 ## ------------------------------ ##
11387 ## Report this to bugs@yourdomain ##
11388 ## ------------------------------ ##
11390 ) | sed "s/^/$as_me: WARNING: /" >&2
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 eval "$as_ac_Header=\$ac_header_preproc"
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 for ac_func in strchr index
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433 #define $ac_func innocuous_$ac_func
11435 /* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11441 # include <limits.h>
11443 # include <assert.h>
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11455 /* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 return $ac_func ();
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_link") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11485 { (case "(($ac_try" in
11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_try") 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 eval "$as_ac_var=yes"
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 eval "$as_ac_var=no"
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11515 ac_res=`eval echo '${'$as_ac_var'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517 echo "${ECHO_T}$ac_res" >&6; }
11518 if test `eval echo '${'$as_ac_var'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11528 for ac_func in strrchr rindex
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11544 #define $ac_func innocuous_$ac_func
11546 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func (); below.
11548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11549 <limits.h> exists even on freestanding compilers. */
11552 # include <limits.h>
11554 # include <assert.h>
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11566 /* The GNU C library defines this for functions which it implements
11567 to always fail with ENOSYS. Some functions are actually named
11568 something starting with __ and the normal name is an alias. */
11569 #if defined __stub_$ac_func || defined __stub___$ac_func
11576 return $ac_func ();
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (ac_try="$ac_link"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_link") 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11596 { (case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_try") 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest$ac_exeext'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 eval "$as_ac_var=yes"
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 eval "$as_ac_var=no"
11623 rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11626 ac_res=`eval echo '${'$as_ac_var'}'`
11627 { echo "$as_me:$LINENO: result: $ac_res" >&5
11628 echo "${ECHO_T}$ac_res" >&6; }
11629 if test `eval echo '${'$as_ac_var'}'` = yes; then
11630 cat >>confdefs.h <<_ACEOF
11631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11639 for ac_func in memcpy bcopy
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11663 # include <limits.h>
11665 # include <assert.h>
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 return $ac_func ();
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "$as_ac_var=yes"
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 eval "$as_ac_var=no"
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11737 ac_res=`eval echo '${'$as_ac_var'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11750 for ac_func in memmove strcmp
11752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11766 #define $ac_func innocuous_$ac_func
11768 /* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char $ac_func (); below.
11770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 <limits.h> exists even on freestanding compilers. */
11774 # include <limits.h>
11776 # include <assert.h>
11781 /* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11788 /* The GNU C library defines this for functions which it implements
11789 to always fail with ENOSYS. Some functions are actually named
11790 something starting with __ and the normal name is an alias. */
11791 #if defined __stub_$ac_func || defined __stub___$ac_func
11798 return $ac_func ();
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (ac_try="$ac_link"
11805 case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_link") 2>conftest.er1
11812 grep -v '^ *+' conftest.er1 >conftest.err
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest$ac_exeext'
11828 { (case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_try") 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 eval "$as_ac_var=yes"
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 eval "$as_ac_var=no"
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11848 ac_res=`eval echo '${'$as_ac_var'}'`
11849 { echo "$as_me:$LINENO: result: $ac_res" >&5
11850 echo "${ECHO_T}$ac_res" >&6; }
11851 if test `eval echo '${'$as_ac_var'}'` = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11862 for ac_func in closedir opendir readdir
11864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11878 #define $ac_func innocuous_$ac_func
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11886 # include <limits.h>
11888 # include <assert.h>
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11910 return $ac_func ();
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_link") 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_try") 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 eval "$as_ac_var=yes"
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 eval "$as_ac_var=no"
11957 rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11960 ac_res=`eval echo '${'$as_ac_var'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11963 if test `eval echo '${'$as_ac_var'}'` = yes; then
11964 cat >>confdefs.h <<_ACEOF
11965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11973 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11974 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11987 if test "$GCC" != "yes" && test "$ICC" != "yes"
11989 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11990 echo "$as_me: error: gcc|icc required but not found" >&2;}
11991 { (exit 1); exit 1; }; }
11994 if test "$GXX" != "yes" && test "$IXX" != "yes"
11996 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11997 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11998 { (exit 1); exit 1; }; }
12001 if test "$GCC" = "yes"
12003 cat >conftest.$ac_ext <<_ACEOF
12004 #if !defined(__GNUC__) || __GNUC__ < 3
12005 #error Unsupported GCC version
12009 rm -f conftest.$ac_objext
12010 if { (ac_try="$ac_compile"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024 { (case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_try") 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12049 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12050 { (exit 1); exit 1; }; }
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 if test -z "$llvm_cv_gnu_make_command"
12058 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12059 echo "$as_me: error: GNU Make required but not found" >&2;}
12060 { (exit 1); exit 1; }; }
12063 { echo "$as_me:$LINENO: result: ok" >&5
12064 echo "${ECHO_T}ok" >&6; }
12066 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12067 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12068 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12070 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12072 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12074 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12075 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12079 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12080 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_m_sin+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 ac_check_lib_save_LIBS=$LIBS
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest$ac_exeext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 ac_cv_lib_m_sin=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12155 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12156 if test $ac_cv_lib_m_sin = yes; then
12157 cat >>confdefs.h <<_ACEOF
12158 #define HAVE_LIBM 1
12165 if test "$llvm_cv_os_type" = "MingW" ; then
12167 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12168 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12169 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-limagehlp $LIBS"
12174 cat >conftest.$ac_ext <<_ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_link") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest$ac_exeext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_lib_imagehlp_main=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_lib_imagehlp_main=no
12232 rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12237 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12238 if test $ac_cv_lib_imagehlp_main = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define HAVE_LIBIMAGEHLP 1
12243 LIBS="-limagehlp $LIBS"
12248 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12249 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_psapi_main+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lpsapi $LIBS"
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12271 rm -f conftest.$ac_objext conftest$ac_exeext
12272 if { (ac_try="$ac_link"
12273 case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12286 { (case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_lib_psapi_main=yes
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ac_cv_lib_psapi_main=no
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12317 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12318 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12319 if test $ac_cv_lib_psapi_main = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define HAVE_LIBPSAPI 1
12324 LIBS="-lpsapi $LIBS"
12330 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12331 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12332 if test "${ac_cv_search_dlopen+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 ac_func_search_save_LIBS=$LIBS
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12358 for ac_lib in '' dl; do
12359 if test -z "$ac_lib"; then
12360 ac_res="none required"
12363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (ac_try="$ac_link"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_link") 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest$ac_exeext'
12390 { (case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_try") 2>&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_search_dlopen=$ac_res
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12407 rm -f core conftest.err conftest.$ac_objext \
12409 if test "${ac_cv_search_dlopen+set}" = set; then
12413 if test "${ac_cv_search_dlopen+set}" = set; then
12416 ac_cv_search_dlopen=no
12418 rm conftest.$ac_ext
12419 LIBS=$ac_func_search_save_LIBS
12421 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12422 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12423 ac_res=$ac_cv_search_dlopen
12424 if test "$ac_res" != no; then
12425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_DLOPEN 1
12432 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12433 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12437 if test "$llvm_cv_enable_libffi" = "yes" ; then
12438 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12439 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12440 if test "${ac_cv_search_ffi_call+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_func_search_save_LIBS=$LIBS
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12461 return ffi_call ();
12466 for ac_lib in '' ffi; do
12467 if test -z "$ac_lib"; then
12468 ac_res="none required"
12471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_search_ffi_call=$ac_res
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12515 rm -f core conftest.err conftest.$ac_objext \
12517 if test "${ac_cv_search_ffi_call+set}" = set; then
12521 if test "${ac_cv_search_ffi_call+set}" = set; then
12524 ac_cv_search_ffi_call=no
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12529 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12530 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12531 ac_res=$ac_cv_search_ffi_call
12532 if test "$ac_res" != no; then
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12535 cat >>confdefs.h <<\_ACEOF
12536 #define HAVE_FFI_CALL 1
12540 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12541 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12542 { (exit 1); exit 1; }; }
12547 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12548 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12549 if test "${ac_cv_search_mallinfo+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 ac_func_search_save_LIBS=$LIBS
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12570 return mallinfo ();
12575 for ac_lib in '' malloc; do
12576 if test -z "$ac_lib"; then
12577 ac_res="none required"
12580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_link") 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597 { (case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_try") 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest$ac_exeext'
12607 { (case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_try") 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_search_mallinfo=$ac_res
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12624 rm -f core conftest.err conftest.$ac_objext \
12626 if test "${ac_cv_search_mallinfo+set}" = set; then
12630 if test "${ac_cv_search_mallinfo+set}" = set; then
12633 ac_cv_search_mallinfo=no
12635 rm conftest.$ac_ext
12636 LIBS=$ac_func_search_save_LIBS
12638 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12639 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12640 ac_res=$ac_cv_search_mallinfo
12641 if test "$ac_res" != no; then
12642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_MALLINFO 1
12651 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12653 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12654 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12655 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 ac_check_lib_save_LIBS=$LIBS
12659 LIBS="-lpthread $LIBS"
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12667 /* Override any GCC internal prototype to avoid an error.
12668 Use char because int might match the return type of a GCC
12669 builtin and then its argument prototype would still apply. */
12673 char pthread_mutex_init ();
12677 return pthread_mutex_init ();
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (ac_try="$ac_link"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697 { (case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_try") 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_lib_pthread_pthread_mutex_init=yes
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ac_cv_lib_pthread_pthread_mutex_init=no
12724 rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_check_lib_save_LIBS
12728 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12729 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12730 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732 #define HAVE_LIBPTHREAD 1
12735 LIBS="-lpthread $LIBS"
12739 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12740 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12741 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 ac_func_search_save_LIBS=$LIBS
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 /* Override any GCC internal prototype to avoid an error.
12753 Use char because int might match the return type of a GCC
12754 builtin and then its argument prototype would still apply. */
12758 char pthread_mutex_lock ();
12762 return pthread_mutex_lock ();
12767 for ac_lib in '' pthread; do
12768 if test -z "$ac_lib"; then
12769 ac_res="none required"
12772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_search_pthread_mutex_lock=$ac_res
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12816 rm -f core conftest.err conftest.$ac_objext \
12818 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12822 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825 ac_cv_search_pthread_mutex_lock=no
12827 rm conftest.$ac_ext
12828 LIBS=$ac_func_search_save_LIBS
12830 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12831 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12832 ac_res=$ac_cv_search_pthread_mutex_lock
12833 if test "$ac_res" != no; then
12834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_PTHREAD_MUTEX_LOCK 1
12842 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12843 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12844 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 ac_func_search_save_LIBS=$LIBS
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12861 char pthread_rwlock_init ();
12865 return pthread_rwlock_init ();
12870 for ac_lib in '' pthread; do
12871 if test -z "$ac_lib"; then
12872 ac_res="none required"
12875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_link") 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_search_pthread_rwlock_init=$ac_res
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12919 rm -f core conftest.err conftest.$ac_objext \
12921 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12925 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928 ac_cv_search_pthread_rwlock_init=no
12930 rm conftest.$ac_ext
12931 LIBS=$ac_func_search_save_LIBS
12933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12934 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12935 ac_res=$ac_cv_search_pthread_rwlock_init
12936 if test "$ac_res" != no; then
12937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_PTHREAD_RWLOCK_INIT 1
12945 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12946 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12947 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_func_search_save_LIBS=$LIBS
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12964 char pthread_getspecific ();
12968 return pthread_getspecific ();
12973 for ac_lib in '' pthread; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_link") 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_search_pthread_getspecific=$ac_res
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13022 rm -f core conftest.err conftest.$ac_objext \
13024 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13028 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031 ac_cv_search_pthread_getspecific=no
13033 rm conftest.$ac_ext
13034 LIBS=$ac_func_search_save_LIBS
13036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13037 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13038 ac_res=$ac_cv_search_pthread_getspecific
13039 if test "$ac_res" != no; then
13040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_PTHREAD_GETSPECIFIC 1
13051 # Check whether --with-udis86 was given.
13052 if test "${with_udis86+set}" = set; then
13053 withval=$with_udis86;
13058 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13061 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13062 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13063 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 ac_check_lib_save_LIBS=$LIBS
13067 LIBS="-ludis86 $LIBS"
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13075 /* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
13090 rm -f conftest.$ac_objext conftest$ac_exeext
13091 if { (ac_try="$ac_link"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_cv_lib_udis86_ud_init=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_udis86_ud_init=no
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13137 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13138 if test $ac_cv_lib_udis86_ud_init = yes; then
13139 cat >>confdefs.h <<_ACEOF
13140 #define HAVE_LIBUDIS86 1
13143 LIBS="-ludis86 $LIBS"
13147 echo "Error! You need to have libudis86 around."
13159 cat >>confdefs.h <<_ACEOF
13160 #define USE_UDIS86 $USE_UDIS86
13165 # Check whether --with-oprofile was given.
13166 if test "${with_oprofile+set}" = set; then
13167 withval=$with_oprofile;
13171 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13172 no) llvm_cv_oppath=
13175 *) llvm_cv_oppath="${withval}/lib/oprofile"
13176 CPPFLAGS="-I${withval}/include";;
13178 if test -n "$llvm_cv_oppath" ; then
13179 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13180 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13181 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13182 if test "${ac_cv_search_bfd_init+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 ac_func_search_save_LIBS=$LIBS
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13203 return bfd_init ();
13208 for ac_lib in '' bfd; do
13209 if test -z "$ac_lib"; then
13210 ac_res="none required"
13213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13215 rm -f conftest.$ac_objext conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_link") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest$ac_exeext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_search_bfd_init=$ac_res
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13257 rm -f core conftest.err conftest.$ac_objext \
13259 if test "${ac_cv_search_bfd_init+set}" = set; then
13263 if test "${ac_cv_search_bfd_init+set}" = set; then
13266 ac_cv_search_bfd_init=no
13268 rm conftest.$ac_ext
13269 LIBS=$ac_func_search_save_LIBS
13271 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13272 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13273 ac_res=$ac_cv_search_bfd_init
13274 if test "$ac_res" != no; then
13275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13279 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13280 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13281 if test "${ac_cv_search_op_open_agent+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 ac_func_search_save_LIBS=$LIBS
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13298 char op_open_agent ();
13302 return op_open_agent ();
13307 for ac_lib in '' opagent; do
13308 if test -z "$ac_lib"; then
13309 ac_res="none required"
13312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_link") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_search_op_open_agent=$ac_res
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13356 rm -f core conftest.err conftest.$ac_objext \
13358 if test "${ac_cv_search_op_open_agent+set}" = set; then
13362 if test "${ac_cv_search_op_open_agent+set}" = set; then
13365 ac_cv_search_op_open_agent=no
13367 rm conftest.$ac_ext
13368 LIBS=$ac_func_search_save_LIBS
13370 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13371 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13372 ac_res=$ac_cv_search_op_open_agent
13373 if test "$ac_res" != no; then
13374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13378 echo "Error! You need to have libopagent around."
13383 if test "${ac_cv_header_opagent_h+set}" = set; then
13384 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13385 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13386 if test "${ac_cv_header_opagent_h+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13390 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13392 # Is the header compilable?
13393 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13394 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 $ac_includes_default
13402 #include <opagent.h>
13404 rm -f conftest.$ac_objext
13405 if { (ac_try="$ac_compile"
13406 case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
13413 grep -v '^ *+' conftest.er1 >conftest.err
13415 cat conftest.err >&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_header_compiler=yes
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_header_compiler=no
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13448 echo "${ECHO_T}$ac_header_compiler" >&6; }
13450 # Is the header present?
13451 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13452 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 #include <opagent.h>
13461 if { (ac_try="$ac_cpp conftest.$ac_ext"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null; then
13474 if test -s conftest.err; then
13475 ac_cpp_err=$ac_c_preproc_warn_flag
13476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13483 if test -z "$ac_cpp_err"; then
13484 ac_header_preproc=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_header_preproc=no
13492 rm -f conftest.err conftest.$ac_ext
13493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13494 echo "${ECHO_T}$ac_header_preproc" >&6; }
13496 # So? What about this header?
13497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13499 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13500 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13502 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13503 ac_header_preproc=yes
13506 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13507 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13509 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13511 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13513 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13515 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13517 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13519 ## ------------------------------ ##
13520 ## Report this to bugs@yourdomain ##
13521 ## ------------------------------ ##
13523 ) | sed "s/^/$as_me: WARNING: /" >&2
13526 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13527 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13528 if test "${ac_cv_header_opagent_h+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_cv_header_opagent_h=$ac_header_preproc
13533 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13534 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13537 if test $ac_cv_header_opagent_h = yes; then
13541 echo "Error! You need to have opagent.h around."
13557 cat >>confdefs.h <<_ACEOF
13558 #define USE_OPROFILE $USE_OPROFILE
13568 ac_header_dirent=no
13569 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13570 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13571 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13572 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <sys/types.h>
13594 rm -f conftest.$ac_objext
13595 if { (ac_try="$ac_compile"
13596 case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_compile") 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13628 eval "$as_ac_Header=yes"
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 eval "$as_ac_Header=no"
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 ac_res=`eval echo '${'$as_ac_Header'}'`
13639 { echo "$as_me:$LINENO: result: $ac_res" >&5
13640 echo "${ECHO_T}$ac_res" >&6; }
13641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13642 cat >>confdefs.h <<_ACEOF
13643 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13646 ac_header_dirent=$ac_hdr; break
13650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13651 if test $ac_header_dirent = dirent.h; then
13652 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13653 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13654 if test "${ac_cv_search_opendir+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 ac_func_search_save_LIBS=$LIBS
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13665 /* Override any GCC internal prototype to avoid an error.
13666 Use char because int might match the return type of a GCC
13667 builtin and then its argument prototype would still apply. */
13680 for ac_lib in '' dir; do
13681 if test -z "$ac_lib"; then
13682 ac_res="none required"
13685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_link") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_search_opendir=$ac_res
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13729 rm -f core conftest.err conftest.$ac_objext \
13731 if test "${ac_cv_search_opendir+set}" = set; then
13735 if test "${ac_cv_search_opendir+set}" = set; then
13738 ac_cv_search_opendir=no
13740 rm conftest.$ac_ext
13741 LIBS=$ac_func_search_save_LIBS
13743 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13744 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13745 ac_res=$ac_cv_search_opendir
13746 if test "$ac_res" != no; then
13747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13753 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13754 if test "${ac_cv_search_opendir+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_func_search_save_LIBS=$LIBS
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13765 /* Override any GCC internal prototype to avoid an error.
13766 Use char because int might match the return type of a GCC
13767 builtin and then its argument prototype would still apply. */
13780 for ac_lib in '' x; do
13781 if test -z "$ac_lib"; then
13782 ac_res="none required"
13785 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (ac_try="$ac_link"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_link") 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_try") 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_try") 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_search_opendir=$ac_res
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13829 rm -f core conftest.err conftest.$ac_objext \
13831 if test "${ac_cv_search_opendir+set}" = set; then
13835 if test "${ac_cv_search_opendir+set}" = set; then
13838 ac_cv_search_opendir=no
13840 rm conftest.$ac_ext
13841 LIBS=$ac_func_search_save_LIBS
13843 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13844 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13845 ac_res=$ac_cv_search_opendir
13846 if test "$ac_res" != no; then
13847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13853 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13854 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13855 if test "${ac_cv_header_mmap_anon+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 ac_cpp='$CPP $CPPFLAGS'
13860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <sys/mman.h>
13871 #include <unistd.h>
13876 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_compile") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_header_mmap_anon=yes
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_header_mmap_anon=no
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13933 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13934 if test "$ac_cv_header_mmap_anon" = yes; then
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_MMAP_ANONYMOUS 1
13942 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13943 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13944 if test "${ac_cv_header_stat_broken+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <sys/types.h>
13954 #include <sys/stat.h>
13956 #if defined S_ISBLK && defined S_IFDIR
13957 # if S_ISBLK (S_IFDIR)
13962 #if defined S_ISBLK && defined S_IFCHR
13963 # if S_ISBLK (S_IFCHR)
13968 #if defined S_ISLNK && defined S_IFREG
13969 # if S_ISLNK (S_IFREG)
13974 #if defined S_ISSOCK && defined S_IFREG
13975 # if S_ISSOCK (S_IFREG)
13981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13982 $EGREP "You lose" >/dev/null 2>&1; then
13983 ac_cv_header_stat_broken=yes
13985 ac_cv_header_stat_broken=no
13990 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13991 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13992 if test $ac_cv_header_stat_broken = yes; then
13994 cat >>confdefs.h <<\_ACEOF
13995 #define STAT_MACROS_BROKEN 1
14000 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14001 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14002 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 #include <sys/types.h>
14012 #include <sys/wait.h>
14013 #ifndef WEXITSTATUS
14014 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14017 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14025 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_header_sys_wait_h=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_header_sys_wait_h=no
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14075 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14076 if test $ac_cv_header_sys_wait_h = yes; then
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_SYS_WAIT_H 1
14084 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14086 if test "${ac_cv_header_time+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 cat >conftest.$ac_ext <<_ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095 #include <sys/types.h>
14096 #include <sys/time.h>
14102 if ((struct tm *) 0)
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_compile") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_header_time=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_header_time=no
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14153 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14154 if test $ac_cv_header_time = yes; then
14156 cat >>confdefs.h <<\_ACEOF
14157 #define TIME_WITH_SYS_TIME 1
14169 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 ac_res=`eval echo '${'$as_ac_Header'}'`
14179 { echo "$as_me:$LINENO: result: $ac_res" >&5
14180 echo "${ECHO_T}$ac_res" >&6; }
14182 # Is the header compilable?
14183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14185 cat >conftest.$ac_ext <<_ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 $ac_includes_default
14192 #include <$ac_header>
14194 rm -f conftest.$ac_objext
14195 if { (ac_try="$ac_compile"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_compile") 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_header_compiler=yes
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_header_compiler=no
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14238 echo "${ECHO_T}$ac_header_compiler" >&6; }
14240 # Is the header present?
14241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14249 #include <$ac_header>
14251 if { (ac_try="$ac_cpp conftest.$ac_ext"
14252 case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } >/dev/null; then
14264 if test -s conftest.err; then
14265 ac_cpp_err=$ac_c_preproc_warn_flag
14266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14273 if test -z "$ac_cpp_err"; then
14274 ac_header_preproc=yes
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ac_header_preproc=no
14282 rm -f conftest.err conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6; }
14286 # So? What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293 ac_header_preproc=yes
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14309 ## ------------------------------ ##
14310 ## Report this to bugs@yourdomain ##
14311 ## ------------------------------ ##
14313 ) | sed "s/^/$as_me: WARNING: /" >&2
14316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 eval "$as_ac_Header=\$ac_header_preproc"
14323 ac_res=`eval echo '${'$as_ac_Header'}'`
14324 { echo "$as_me:$LINENO: result: $ac_res" >&5
14325 echo "${ECHO_T}$ac_res" >&6; }
14328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14329 cat >>confdefs.h <<_ACEOF
14330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 ac_res=`eval echo '${'$as_ac_Header'}'`
14353 { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14356 # Is the header compilable?
14357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 $ac_includes_default
14366 #include <$ac_header>
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_compile") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_header_compiler=yes
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_compiler=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6; }
14414 # Is the header present?
14415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <$ac_header>
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_c_preproc_warn_flag
14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14447 if test -z "$ac_cpp_err"; then
14448 ac_header_preproc=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_header_preproc=no
14456 rm -f conftest.err conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6; }
14460 # So? What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14483 ## ------------------------------ ##
14484 ## Report this to bugs@yourdomain ##
14485 ## ------------------------------ ##
14487 ) | sed "s/^/$as_me: WARNING: /" >&2
14490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 eval "$as_ac_Header=\$ac_header_preproc"
14497 ac_res=`eval echo '${'$as_ac_Header'}'`
14498 { echo "$as_me:$LINENO: result: $ac_res" >&5
14499 echo "${ECHO_T}$ac_res" >&6; }
14502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14503 cat >>confdefs.h <<_ACEOF
14504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14513 for ac_header in utime.h windows.h
14515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 ac_res=`eval echo '${'$as_ac_Header'}'`
14523 { echo "$as_me:$LINENO: result: $ac_res" >&5
14524 echo "${ECHO_T}$ac_res" >&6; }
14526 # Is the header compilable?
14527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14536 #include <$ac_header>
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_header_compiler=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_header_compiler=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582 echo "${ECHO_T}$ac_header_compiler" >&6; }
14584 # Is the header present?
14585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <$ac_header>
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev/null; then
14608 if test -s conftest.err; then
14609 ac_cpp_err=$ac_c_preproc_warn_flag
14610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14617 if test -z "$ac_cpp_err"; then
14618 ac_header_preproc=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_header_preproc=no
14626 rm -f conftest.err conftest.$ac_ext
14627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14628 echo "${ECHO_T}$ac_header_preproc" >&6; }
14630 # So? What about this header?
14631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14637 ac_header_preproc=yes
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14653 ## ------------------------------ ##
14654 ## Report this to bugs@yourdomain ##
14655 ## ------------------------------ ##
14657 ) | sed "s/^/$as_me: WARNING: /" >&2
14660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 eval "$as_ac_Header=\$ac_header_preproc"
14667 ac_res=`eval echo '${'$as_ac_Header'}'`
14668 { echo "$as_me:$LINENO: result: $ac_res" >&5
14669 echo "${ECHO_T}$ac_res" >&6; }
14672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14673 cat >>confdefs.h <<_ACEOF
14674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14686 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 ac_res=`eval echo '${'$as_ac_Header'}'`
14696 { echo "$as_me:$LINENO: result: $ac_res" >&5
14697 echo "${ECHO_T}$ac_res" >&6; }
14699 # Is the header compilable?
14700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14709 #include <$ac_header>
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_header_compiler=yes
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_header_compiler=no
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14755 echo "${ECHO_T}$ac_header_compiler" >&6; }
14757 # Is the header present?
14758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14760 cat >conftest.$ac_ext <<_ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 #include <$ac_header>
14768 if { (ac_try="$ac_cpp conftest.$ac_ext"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } >/dev/null; then
14781 if test -s conftest.err; then
14782 ac_cpp_err=$ac_c_preproc_warn_flag
14783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14790 if test -z "$ac_cpp_err"; then
14791 ac_header_preproc=yes
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 ac_header_preproc=no
14799 rm -f conftest.err conftest.$ac_ext
14800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14801 echo "${ECHO_T}$ac_header_preproc" >&6; }
14803 # So? What about this header?
14804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14810 ac_header_preproc=yes
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14826 ## ------------------------------ ##
14827 ## Report this to bugs@yourdomain ##
14828 ## ------------------------------ ##
14830 ) | sed "s/^/$as_me: WARNING: /" >&2
14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 eval "$as_ac_Header=\$ac_header_preproc"
14840 ac_res=`eval echo '${'$as_ac_Header'}'`
14841 { echo "$as_me:$LINENO: result: $ac_res" >&5
14842 echo "${ECHO_T}$ac_res" >&6; }
14845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 ac_res=`eval echo '${'$as_ac_Header'}'`
14868 { echo "$as_me:$LINENO: result: $ac_res" >&5
14869 echo "${ECHO_T}$ac_res" >&6; }
14871 # Is the header compilable?
14872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14874 cat >conftest.$ac_ext <<_ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 $ac_includes_default
14881 #include <$ac_header>
14883 rm -f conftest.$ac_objext
14884 if { (ac_try="$ac_compile"
14885 case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; } &&
14907 { ac_try='test -s conftest.$ac_objext'
14908 { (case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_try") 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_header_compiler=yes
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ac_header_compiler=no
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14927 echo "${ECHO_T}$ac_header_compiler" >&6; }
14929 # Is the header present?
14930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 #include <$ac_header>
14940 if { (ac_try="$ac_cpp conftest.$ac_ext"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev/null; then
14953 if test -s conftest.err; then
14954 ac_cpp_err=$ac_c_preproc_warn_flag
14955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14962 if test -z "$ac_cpp_err"; then
14963 ac_header_preproc=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_header_preproc=no
14971 rm -f conftest.err conftest.$ac_ext
14972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 echo "${ECHO_T}$ac_header_preproc" >&6; }
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc=yes
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14998 ## ------------------------------ ##
14999 ## Report this to bugs@yourdomain ##
15000 ## ------------------------------ ##
15002 ) | sed "s/^/$as_me: WARNING: /" >&2
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 eval "$as_ac_Header=\$ac_header_preproc"
15012 ac_res=`eval echo '${'$as_ac_Header'}'`
15013 { echo "$as_me:$LINENO: result: $ac_res" >&5
15014 echo "${ECHO_T}$ac_res" >&6; }
15017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018 cat >>confdefs.h <<_ACEOF
15019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15027 for ac_header in valgrind/valgrind.h
15029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 ac_res=`eval echo '${'$as_ac_Header'}'`
15037 { echo "$as_me:$LINENO: result: $ac_res" >&5
15038 echo "${ECHO_T}$ac_res" >&6; }
15040 # Is the header compilable?
15041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15050 #include <$ac_header>
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15061 grep -v '^ *+' conftest.er1 >conftest.err
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_try") 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_header_compiler=yes
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 ac_header_compiler=no
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 echo "${ECHO_T}$ac_header_compiler" >&6; }
15098 # Is the header present?
15099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 #include <$ac_header>
15109 if { (ac_try="$ac_cpp conftest.$ac_ext"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } >/dev/null; then
15122 if test -s conftest.err; then
15123 ac_cpp_err=$ac_c_preproc_warn_flag
15124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15131 if test -z "$ac_cpp_err"; then
15132 ac_header_preproc=yes
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_header_preproc=no
15140 rm -f conftest.err conftest.$ac_ext
15141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15142 echo "${ECHO_T}$ac_header_preproc" >&6; }
15144 # So? What about this header?
15145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15151 ac_header_preproc=yes
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15167 ## ------------------------------ ##
15168 ## Report this to bugs@yourdomain ##
15169 ## ------------------------------ ##
15171 ) | sed "s/^/$as_me: WARNING: /" >&2
15174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 eval "$as_ac_Header=\$ac_header_preproc"
15181 ac_res=`eval echo '${'$as_ac_Header'}'`
15182 { echo "$as_me:$LINENO: result: $ac_res" >&5
15183 echo "${ECHO_T}$ac_res" >&6; }
15186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15187 cat >>confdefs.h <<_ACEOF
15188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15196 for ac_header in fenv.h
15198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207 echo "${ECHO_T}$ac_res" >&6; }
15209 # Is the header compilable?
15210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15219 #include <$ac_header>
15221 rm -f conftest.$ac_objext
15222 if { (ac_try="$ac_compile"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_compile") 2>conftest.er1
15230 grep -v '^ *+' conftest.er1 >conftest.err
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15236 { (case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_try") 2>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest.$ac_objext'
15246 { (case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_try") 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_header_compiler=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_header_compiler=no
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15265 echo "${ECHO_T}$ac_header_compiler" >&6; }
15267 # Is the header present?
15268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 #include <$ac_header>
15278 if { (ac_try="$ac_cpp conftest.$ac_ext"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15286 grep -v '^ *+' conftest.er1 >conftest.err
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } >/dev/null; then
15291 if test -s conftest.err; then
15292 ac_cpp_err=$ac_c_preproc_warn_flag
15293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15300 if test -z "$ac_cpp_err"; then
15301 ac_header_preproc=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_header_preproc=no
15309 rm -f conftest.err conftest.$ac_ext
15310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15311 echo "${ECHO_T}$ac_header_preproc" >&6; }
15313 # So? What about this header?
15314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15320 ac_header_preproc=yes
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15336 ## ------------------------------ ##
15337 ## Report this to bugs@yourdomain ##
15338 ## ------------------------------ ##
15340 ) | sed "s/^/$as_me: WARNING: /" >&2
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 eval "$as_ac_Header=\$ac_header_preproc"
15350 ac_res=`eval echo '${'$as_ac_Header'}'`
15351 { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15364 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15366 for ac_header in pthread.h
15368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15379 # Is the header compilable?
15380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 $ac_includes_default
15389 #include <$ac_header>
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_header_compiler=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435 echo "${ECHO_T}$ac_header_compiler" >&6; }
15437 # Is the header present?
15438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <$ac_header>
15448 if { (ac_try="$ac_cpp conftest.$ac_ext"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15470 if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ac_header_preproc=no
15479 rm -f conftest.err conftest.$ac_ext
15480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481 echo "${ECHO_T}$ac_header_preproc" >&6; }
15483 # So? What about this header?
15484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490 ac_header_preproc=yes
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506 ## ------------------------------ ##
15507 ## Report this to bugs@yourdomain ##
15508 ## ------------------------------ ##
15510 ) | sed "s/^/$as_me: WARNING: /" >&2
15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 eval "$as_ac_Header=\$ac_header_preproc"
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543 if test "$llvm_cv_enable_libffi" = "yes" ; then
15546 for ac_header in ffi.h ffi/ffi.h
15548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 ac_res=`eval echo '${'$as_ac_Header'}'`
15556 { echo "$as_me:$LINENO: result: $ac_res" >&5
15557 echo "${ECHO_T}$ac_res" >&6; }
15559 # Is the header compilable?
15560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 $ac_includes_default
15569 #include <$ac_header>
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_compile") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_header_compiler=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_header_compiler=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15615 echo "${ECHO_T}$ac_header_compiler" >&6; }
15617 # Is the header present?
15618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <$ac_header>
15628 if { (ac_try="$ac_cpp conftest.$ac_ext"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } >/dev/null; then
15641 if test -s conftest.err; then
15642 ac_cpp_err=$ac_c_preproc_warn_flag
15643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15650 if test -z "$ac_cpp_err"; then
15651 ac_header_preproc=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15656 ac_header_preproc=no
15659 rm -f conftest.err conftest.$ac_ext
15660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15661 echo "${ECHO_T}$ac_header_preproc" >&6; }
15663 # So? What about this header?
15664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15670 ac_header_preproc=yes
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15686 ## ------------------------------ ##
15687 ## Report this to bugs@yourdomain ##
15688 ## ------------------------------ ##
15690 ) | sed "s/^/$as_me: WARNING: /" >&2
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 eval "$as_ac_Header=\$ac_header_preproc"
15700 ac_res=`eval echo '${'$as_ac_Header'}'`
15701 { echo "$as_me:$LINENO: result: $ac_res" >&5
15702 echo "${ECHO_T}$ac_res" >&6; }
15705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15706 cat >>confdefs.h <<_ACEOF
15707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15717 for ac_header in CrashReporterClient.h
15719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15730 # Is the header compilable?
15731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_compile") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } &&
15766 { ac_try='test -s conftest.$ac_objext'
15767 { (case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_try") 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15786 echo "${ECHO_T}$ac_header_compiler" >&6; }
15788 # Is the header present?
15789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <$ac_header>
15799 if { (ac_try="$ac_cpp conftest.$ac_ext"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } >/dev/null; then
15812 if test -s conftest.err; then
15813 ac_cpp_err=$ac_c_preproc_warn_flag
15814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821 if test -z "$ac_cpp_err"; then
15822 ac_header_preproc=yes
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_header_preproc=no
15830 rm -f conftest.err conftest.$ac_ext
15831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15832 echo "${ECHO_T}$ac_header_preproc" >&6; }
15834 # So? What about this header?
15835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15841 ac_header_preproc=yes
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15857 ## ------------------------------ ##
15858 ## Report this to bugs@yourdomain ##
15859 ## ------------------------------ ##
15861 ) | sed "s/^/$as_me: WARNING: /" >&2
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 eval "$as_ac_Header=\$ac_header_preproc"
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872 { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15886 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15887 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 extern const char *__crashreporter_info__;
15896 __crashreporter_info__ = "test";
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_link") 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } &&
15915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916 { (case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_try") 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest$ac_exeext'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 { echo "$as_me:$LINENO: result: yes" >&5
15936 echo "${ECHO_T}yes" >&6; }
15938 cat >>confdefs.h <<\_ACEOF
15939 #define HAVE_CRASHREPORTER_INFO 1
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 { echo "$as_me:$LINENO: result: no" >&5
15947 echo "${ECHO_T}no" >&6; }
15949 cat >>confdefs.h <<\_ACEOF
15950 #define HAVE_CRASHREPORTER_INFO 0
15955 rm -f core conftest.err conftest.$ac_objext \
15956 conftest$ac_exeext conftest.$ac_ext
15961 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15962 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15963 if test "${ac_cv_huge_val_sanity+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_cpp='$CXXCPP $CPPFLAGS'
15969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15973 ac_save_CXXFLAGS=$CXXFLAGS
15974 CXXFLAGS="$CXXFLAGS -pedantic"
15975 if test "$cross_compiling" = yes; then
15976 ac_cv_huge_val_sanity=yes
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15988 double x = HUGE_VAL; return x != x;
15993 rm -f conftest$ac_exeext
15994 if { (ac_try="$ac_link"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16004 { (case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_try") 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_cv_huge_val_sanity=yes
16015 echo "$as_me: program exited with status $ac_status" >&5
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ( exit $ac_status )
16020 ac_cv_huge_val_sanity=no
16022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16026 CXXFLAGS=$ac_save_CXXFLAGS
16028 ac_cpp='$CPP $CPPFLAGS'
16029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16036 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16037 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16040 { echo "$as_me:$LINENO: checking for pid_t" >&5
16041 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16042 if test "${ac_cv_type_pid_t+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 $ac_includes_default
16052 typedef pid_t ac__type_new_;
16056 if ((ac__type_new_ *) 0)
16058 if (sizeof (ac__type_new_))
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_type_pid_t=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_cv_type_pid_t=no
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16109 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16110 if test $ac_cv_type_pid_t = yes; then
16114 cat >>confdefs.h <<_ACEOF
16120 { echo "$as_me:$LINENO: checking for size_t" >&5
16121 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16122 if test "${ac_cv_type_size_t+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 cat >conftest.$ac_ext <<_ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16132 typedef size_t ac__type_new_;
16136 if ((ac__type_new_ *) 0)
16138 if (sizeof (ac__type_new_))
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1 >conftest.err
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
16158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
16169 { (case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_try") 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16178 ac_cv_type_size_t=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ac_cv_type_size_t=no
16186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16190 if test $ac_cv_type_size_t = yes; then
16194 cat >>confdefs.h <<_ACEOF
16195 #define size_t unsigned int
16201 cat >>confdefs.h <<_ACEOF
16202 #define RETSIGTYPE void
16205 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16206 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16207 if test "${ac_cv_struct_tm+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 #include <sys/types.h>
16222 struct tm *tp; tp->tm_sec;
16227 rm -f conftest.$ac_objext
16228 if { (ac_try="$ac_compile"
16229 case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_compile") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_struct_tm=time.h
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_struct_tm=sys/time.h
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16272 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16273 if test $ac_cv_struct_tm = sys/time.h; then
16275 cat >>confdefs.h <<\_ACEOF
16276 #define TM_IN_SYS_TIME 1
16281 { echo "$as_me:$LINENO: checking for int64_t" >&5
16282 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16283 if test "${ac_cv_type_int64_t+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 typedef int64_t ac__type_new_;
16297 if ((ac__type_new_ *) 0)
16299 if (sizeof (ac__type_new_))
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_compile") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_try") 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_cv_type_int64_t=yes
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16344 ac_cv_type_int64_t=no
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16350 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16351 if test $ac_cv_type_int64_t = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_INT64_T 1
16359 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16360 echo "$as_me: error: Type int64_t required but not found" >&2;}
16361 { (exit 1); exit 1; }; }
16364 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16365 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16366 if test "${ac_cv_type_uint64_t+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 typedef uint64_t ac__type_new_;
16380 if ((ac__type_new_ *) 0)
16382 if (sizeof (ac__type_new_))
16388 rm -f conftest.$ac_objext
16389 if { (ac_try="$ac_compile"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_compile") 2>conftest.er1
16397 grep -v '^ *+' conftest.er1 >conftest.err
16399 cat conftest.err >&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest.$ac_objext'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_type_uint64_t=yes
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_cv_type_uint64_t=no
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16433 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16434 if test $ac_cv_type_uint64_t = yes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_UINT64_T 1
16442 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16443 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16444 if test "${ac_cv_type_u_int64_t+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16454 typedef u_int64_t ac__type_new_;
16458 if ((ac__type_new_ *) 0)
16460 if (sizeof (ac__type_new_))
16466 rm -f conftest.$ac_objext
16467 if { (ac_try="$ac_compile"
16468 case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16500 ac_cv_type_u_int64_t=yes
16502 echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16505 ac_cv_type_u_int64_t=no
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16511 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16512 if test $ac_cv_type_u_int64_t = yes; then
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_U_INT64_T 1
16520 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16521 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16522 { (exit 1); exit 1; }; }
16536 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16552 #define $ac_func innocuous_$ac_func
16554 /* System header to define __stub macros and hopefully few prototypes,
16555 which can conflict with char $ac_func (); below.
16556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557 <limits.h> exists even on freestanding compilers. */
16560 # include <limits.h>
16562 # include <assert.h>
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16574 /* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
16577 #if defined __stub_$ac_func || defined __stub___$ac_func
16584 return $ac_func ();
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (ac_try="$ac_link"
16591 case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_link") 2>conftest.er1
16598 grep -v '^ *+' conftest.er1 >conftest.err
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604 { (case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_try") 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_try") 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 eval "$as_ac_var=yes"
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 eval "$as_ac_var=no"
16631 rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16634 ac_res=`eval echo '${'$as_ac_var'}'`
16635 { echo "$as_me:$LINENO: result: $ac_res" >&5
16636 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_var'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16649 for ac_func in powf fmodf strtof round
16651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16665 #define $ac_func innocuous_$ac_func
16667 /* System header to define __stub macros and hopefully few prototypes,
16668 which can conflict with char $ac_func (); below.
16669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16670 <limits.h> exists even on freestanding compilers. */
16673 # include <limits.h>
16675 # include <assert.h>
16680 /* Override any GCC internal prototype to avoid an error.
16681 Use char because int might match the return type of a GCC
16682 builtin and then its argument prototype would still apply. */
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined __stub_$ac_func || defined __stub___$ac_func
16697 return $ac_func ();
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 eval "$as_ac_var=yes"
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 eval "$as_ac_var=no"
16744 rm -f core conftest.err conftest.$ac_objext \
16745 conftest$ac_exeext conftest.$ac_ext
16747 ac_res=`eval echo '${'$as_ac_var'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16750 if test `eval echo '${'$as_ac_var'}'` = yes; then
16751 cat >>confdefs.h <<_ACEOF
16752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16763 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16779 #define $ac_func innocuous_$ac_func
16781 /* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func (); below.
16783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 <limits.h> exists even on freestanding compilers. */
16787 # include <limits.h>
16789 # include <assert.h>
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16811 return $ac_func ();
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest$ac_exeext'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 eval "$as_ac_var=yes"
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 eval "$as_ac_var=no"
16858 rm -f core conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16861 ac_res=`eval echo '${'$as_ac_var'}'`
16862 { echo "$as_me:$LINENO: result: $ac_res" >&5
16863 echo "${ECHO_T}$ac_res" >&6; }
16864 if test `eval echo '${'$as_ac_var'}'` = yes; then
16865 cat >>confdefs.h <<_ACEOF
16866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16875 for ac_func in isatty mkdtemp mkstemp
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16891 #define $ac_func innocuous_$ac_func
16893 /* System header to define __stub macros and hopefully few prototypes,
16894 which can conflict with char $ac_func (); below.
16895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896 <limits.h> exists even on freestanding compilers. */
16899 # include <limits.h>
16901 # include <assert.h>
16906 /* Override any GCC internal prototype to avoid an error.
16907 Use char because int might match the return type of a GCC
16908 builtin and then its argument prototype would still apply. */
16913 /* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916 #if defined __stub_$ac_func || defined __stub___$ac_func
16923 return $ac_func ();
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_link") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest$ac_exeext'
16953 { (case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_try") 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 eval "$as_ac_var=yes"
16964 echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 eval "$as_ac_var=no"
16970 rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974 { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17006 #define $ac_func innocuous_$ac_func
17008 /* System header to define __stub macros and hopefully few prototypes,
17009 which can conflict with char $ac_func (); below.
17010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011 <limits.h> exists even on freestanding compilers. */
17014 # include <limits.h>
17016 # include <assert.h>
17021 /* Override any GCC internal prototype to avoid an error.
17022 Use char because int might match the return type of a GCC
17023 builtin and then its argument prototype would still apply. */
17028 /* The GNU C library defines this for functions which it implements
17029 to always fail with ENOSYS. Some functions are actually named
17030 something starting with __ and the normal name is an alias. */
17031 #if defined __stub_$ac_func || defined __stub___$ac_func
17038 return $ac_func ();
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_link") 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest$ac_exeext'
17068 { (case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_try") 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 eval "$as_ac_var=yes"
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 eval "$as_ac_var=no"
17085 rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 ac_res=`eval echo '${'$as_ac_var'}'`
17089 { echo "$as_me:$LINENO: result: $ac_res" >&5
17090 echo "${ECHO_T}$ac_res" >&6; }
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17102 for ac_func in strerror strerror_r setenv
17104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17118 #define $ac_func innocuous_$ac_func
17120 /* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func (); below.
17122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123 <limits.h> exists even on freestanding compilers. */
17126 # include <limits.h>
17128 # include <assert.h>
17133 /* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17140 /* The GNU C library defines this for functions which it implements
17141 to always fail with ENOSYS. Some functions are actually named
17142 something starting with __ and the normal name is an alias. */
17143 #if defined __stub_$ac_func || defined __stub___$ac_func
17150 return $ac_func ();
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest$ac_exeext'
17180 { (case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_try") 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 eval "$as_ac_var=yes"
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 eval "$as_ac_var=no"
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17200 ac_res=`eval echo '${'$as_ac_var'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203 if test `eval echo '${'$as_ac_var'}'` = yes; then
17204 cat >>confdefs.h <<_ACEOF
17205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17215 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17231 #define $ac_func innocuous_$ac_func
17233 /* System header to define __stub macros and hopefully few prototypes,
17234 which can conflict with char $ac_func (); below.
17235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236 <limits.h> exists even on freestanding compilers. */
17239 # include <limits.h>
17241 # include <assert.h>
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17253 /* The GNU C library defines this for functions which it implements
17254 to always fail with ENOSYS. Some functions are actually named
17255 something starting with __ and the normal name is an alias. */
17256 #if defined __stub_$ac_func || defined __stub___$ac_func
17263 return $ac_func ();
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 eval "$as_ac_var=yes"
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 eval "$as_ac_var=no"
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17313 ac_res=`eval echo '${'$as_ac_var'}'`
17314 { echo "$as_me:$LINENO: result: $ac_res" >&5
17315 echo "${ECHO_T}$ac_res" >&6; }
17316 if test `eval echo '${'$as_ac_var'}'` = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17329 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17345 #define $ac_func innocuous_$ac_func
17347 /* System header to define __stub macros and hopefully few prototypes,
17348 which can conflict with char $ac_func (); below.
17349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17350 <limits.h> exists even on freestanding compilers. */
17353 # include <limits.h>
17355 # include <assert.h>
17360 /* Override any GCC internal prototype to avoid an error.
17361 Use char because int might match the return type of a GCC
17362 builtin and then its argument prototype would still apply. */
17367 /* The GNU C library defines this for functions which it implements
17368 to always fail with ENOSYS. Some functions are actually named
17369 something starting with __ and the normal name is an alias. */
17370 #if defined __stub_$ac_func || defined __stub___$ac_func
17377 return $ac_func ();
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_link") 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest$ac_exeext'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 eval "$as_ac_var=yes"
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 eval "$as_ac_var=no"
17424 rm -f core conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17427 ac_res=`eval echo '${'$as_ac_var'}'`
17428 { echo "$as_me:$LINENO: result: $ac_res" >&5
17429 echo "${ECHO_T}$ac_res" >&6; }
17430 if test `eval echo '${'$as_ac_var'}'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17438 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17439 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17440 if test "${llvm_cv_c_printf_a+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 ac_cpp='$CPP $CPPFLAGS'
17445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17449 if test "$cross_compiling" = yes; then
17450 llvmac_cv_c_printf_a=no
17452 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17461 #include <stdlib.h>
17467 volatile double A, B;
17471 sprintf(Buffer, "%a", A);
17475 if (A != 0x1.999999999999ap-4)
17482 rm -f conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 llvm_cv_c_printf_a=yes
17504 echo "$as_me: program exited with status $ac_status" >&5
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 ( exit $ac_status )
17509 llvmac_cv_c_printf_a=no
17511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17516 ac_cpp='$CPP $CPPFLAGS'
17517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17522 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17523 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17524 if test "$llvm_cv_c_printf_a" = "yes"; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_PRINTF_A 1
17533 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17534 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17535 if test "${ac_cv_func_rand48+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 ac_cpp='$CXXCPP $CPPFLAGS'
17540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 #include <stdlib.h>
17554 srand48(0);lrand48();drand48();
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_compile") 2>conftest.er1
17568 grep -v '^ *+' conftest.er1 >conftest.err
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_func_rand48=yes
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_func_rand48=no
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 ac_cpp='$CPP $CPPFLAGS'
17604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17609 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17610 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17612 if test "$ac_cv_func_rand48" = "yes" ; then
17614 cat >>confdefs.h <<\_ACEOF
17615 #define HAVE_RAND48 1
17621 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17622 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17623 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 $ac_includes_default
17637 char *p = (char *) strerror_s;
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_have_decl_strerror_s=yes
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_have_decl_strerror_s=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17690 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17691 if test $ac_cv_have_decl_strerror_s = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_STRERROR_S 1
17699 cat >>confdefs.h <<_ACEOF
17700 #define HAVE_DECL_STRERROR_S 0
17708 if test "$llvm_cv_os_type" = "MingW" ; then
17709 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17710 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17711 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 ac_check_lib_save_LIBS=$LIBS
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (ac_try="$ac_link"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_link") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_lib_gcc__alloca=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_lib_gcc__alloca=no
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17784 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17785 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17786 if test $ac_cv_lib_gcc__alloca = yes; then
17788 cat >>confdefs.h <<\_ACEOF
17789 #define HAVE__ALLOCA 1
17794 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17795 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17796 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 ac_check_lib_save_LIBS=$LIBS
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17818 return __alloca ();
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_lib_gcc___alloca=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_lib_gcc___alloca=no
17865 rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17870 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17871 if test $ac_cv_lib_gcc___alloca = yes; then
17873 cat >>confdefs.h <<\_ACEOF
17874 #define HAVE___ALLOCA 1
17879 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17880 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17881 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 ac_check_lib_save_LIBS=$LIBS
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17903 return __chkstk ();
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17923 { (case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_try") 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; } &&
17932 { ac_try='test -s conftest$ac_exeext'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_lib_gcc___chkstk=yes
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 ac_cv_lib_gcc___chkstk=no
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 LIBS=$ac_check_lib_save_LIBS
17954 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17955 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17956 if test $ac_cv_lib_gcc___chkstk = yes; then
17958 cat >>confdefs.h <<\_ACEOF
17959 #define HAVE___CHKSTK 1
17964 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17965 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17966 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 ac_check_lib_save_LIBS=$LIBS
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17988 return ___chkstk ();
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_link") 2>conftest.er1
18002 grep -v '^ *+' conftest.er1 >conftest.err
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest$ac_exeext'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_lib_gcc____chkstk=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_lib_gcc____chkstk=no
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037 LIBS=$ac_check_lib_save_LIBS
18039 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18040 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18041 if test $ac_cv_lib_gcc____chkstk = yes; then
18043 cat >>confdefs.h <<\_ACEOF
18044 #define HAVE____CHKSTK 1
18050 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18051 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18052 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 ac_check_lib_save_LIBS=$LIBS
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18074 return __ashldi3 ();
18079 rm -f conftest.$ac_objext conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_link") 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest$ac_exeext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_lib_gcc___ashldi3=yes
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_lib_gcc___ashldi3=no
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123 LIBS=$ac_check_lib_save_LIBS
18125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18126 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18127 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE___ASHLDI3 1
18135 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18136 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18137 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 ac_check_lib_save_LIBS=$LIBS
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18149 /* Override any GCC internal prototype to avoid an error.
18150 Use char because int might match the return type of a GCC
18151 builtin and then its argument prototype would still apply. */
18159 return __ashrdi3 ();
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_link") 2>conftest.er1
18173 grep -v '^ *+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
18178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; } &&
18188 { ac_try='test -s conftest$ac_exeext'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18198 ac_cv_lib_gcc___ashrdi3=yes
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_cv_lib_gcc___ashrdi3=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18211 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18212 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE___ASHRDI3 1
18220 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18221 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18222 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 ac_check_lib_save_LIBS=$LIBS
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18244 return __divdi3 ();
18249 rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (ac_try="$ac_link"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_link") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264 { (case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_try") 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest$ac_exeext'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_lib_gcc___divdi3=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_gcc___divdi3=no
18291 rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18296 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18297 if test $ac_cv_lib_gcc___divdi3 = yes; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE___DIVDI3 1
18305 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18306 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18307 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 ac_check_lib_save_LIBS=$LIBS
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18319 /* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18329 return __fixdfdi ();
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_link") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_try") 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_gcc___fixdfdi=yes
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 ac_cv_lib_gcc___fixdfdi=no
18376 rm -f core conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18378 LIBS=$ac_check_lib_save_LIBS
18380 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18381 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18382 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18384 cat >>confdefs.h <<\_ACEOF
18385 #define HAVE___FIXDFDI 1
18390 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18391 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18392 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 ac_check_lib_save_LIBS=$LIBS
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any GCC internal prototype to avoid an error.
18405 Use char because int might match the return type of a GCC
18406 builtin and then its argument prototype would still apply. */
18414 return __fixsfdi ();
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18428 grep -v '^ *+' conftest.er1 >conftest.err
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
18444 { (case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_try") 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_lib_gcc___fixsfdi=yes
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_cv_lib_gcc___fixsfdi=no
18461 rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18465 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18466 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18467 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18469 cat >>confdefs.h <<\_ACEOF
18470 #define HAVE___FIXSFDI 1
18475 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18476 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18477 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 ac_check_lib_save_LIBS=$LIBS
18482 cat >conftest.$ac_ext <<_ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18495 char __floatdidf ();
18499 return __floatdidf ();
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18513 grep -v '^ *+' conftest.er1 >conftest.err
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_lib_gcc___floatdidf=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_cv_lib_gcc___floatdidf=no
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18551 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18552 if test $ac_cv_lib_gcc___floatdidf = yes; then
18554 cat >>confdefs.h <<\_ACEOF
18555 #define HAVE___FLOATDIDF 1
18560 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18561 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18562 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 ac_check_lib_save_LIBS=$LIBS
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18584 return __lshrdi3 ();
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (ac_try="$ac_link"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_link") 2>conftest.er1
18598 grep -v '^ *+' conftest.er1 >conftest.err
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_try") 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_lib_gcc___lshrdi3=yes
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 ac_cv_lib_gcc___lshrdi3=no
18631 rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18636 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18637 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18639 cat >>confdefs.h <<\_ACEOF
18640 #define HAVE___LSHRDI3 1
18645 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18646 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18647 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS=$LIBS
18652 cat >conftest.$ac_ext <<_ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18659 /* Override any GCC internal prototype to avoid an error.
18660 Use char because int might match the return type of a GCC
18661 builtin and then its argument prototype would still apply. */
18669 return __moddi3 ();
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_lib_gcc___moddi3=yes
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_gcc___moddi3=no
18716 rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18720 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18721 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18722 if test $ac_cv_lib_gcc___moddi3 = yes; then
18724 cat >>confdefs.h <<\_ACEOF
18725 #define HAVE___MODDI3 1
18730 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18731 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18732 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 ac_check_lib_save_LIBS=$LIBS
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18754 return __udivdi3 ();
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest$ac_exeext'
18784 { (case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_try") 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_cv_lib_gcc___udivdi3=yes
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 ac_cv_lib_gcc___udivdi3=no
18801 rm -f core conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18805 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18806 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18807 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE___UDIVDI3 1
18815 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18816 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18817 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 ac_check_lib_save_LIBS=$LIBS
18822 cat >conftest.$ac_ext <<_ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18829 /* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18839 return __umoddi3 ();
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest$ac_exeext'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_cv_lib_gcc___umoddi3=yes
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18883 ac_cv_lib_gcc___umoddi3=no
18886 rm -f core conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 LIBS=$ac_check_lib_save_LIBS
18890 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18891 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18892 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18894 cat >>confdefs.h <<\_ACEOF
18895 #define HAVE___UMODDI3 1
18901 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18902 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18903 if test "${ac_cv_lib_gcc___main+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 ac_check_lib_save_LIBS=$LIBS
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945 { (case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_try") 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest$ac_exeext'
18955 { (case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_try") 2>&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_lib_gcc___main=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_lib_gcc___main=no
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18977 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18978 if test $ac_cv_lib_gcc___main = yes; then
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE___MAIN 1
18986 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18987 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18988 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 ac_check_lib_save_LIBS=$LIBS
18993 cat >conftest.$ac_ext <<_ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19010 return __cmpdi2 ();
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_try") 2>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 ac_cv_lib_gcc___cmpdi2=yes
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 ac_cv_lib_gcc___cmpdi2=no
19057 rm -f core conftest.err conftest.$ac_objext \
19058 conftest$ac_exeext conftest.$ac_ext
19059 LIBS=$ac_check_lib_save_LIBS
19061 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19062 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19063 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19065 cat >>confdefs.h <<\_ACEOF
19066 #define HAVE___CMPDI2 1
19073 if test "$llvm_cv_os_type" = "MingW" ; then
19074 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19075 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19076 cat >conftest.$ac_ext <<_ACEOF
19077 #include <windows.h>
19078 #include <imagehlp.h>
19079 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19080 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_compile") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19117 { echo "$as_me:$LINENO: result: yes" >&5
19118 echo "${ECHO_T}yes" >&6; }
19119 llvm_cv_win32_elmcb_pcstr="PCSTR"
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19126 { echo "$as_me:$LINENO: result: no" >&5
19127 echo "${ECHO_T}no" >&6; }
19128 llvm_cv_win32_elmcb_pcstr="PSTR"
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134 cat >>confdefs.h <<_ACEOF
19135 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19141 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19142 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19143 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 ac_cpp='$CXXCPP $CPPFLAGS'
19148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19152 cat >conftest.$ac_ext <<_ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19167 rm -f conftest.$ac_objext
19168 if { (ac_try="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest.$ac_objext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_func_isnan_in_math_h=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_func_isnan_in_math_h=no
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 ac_cpp='$CPP $CPPFLAGS'
19212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19218 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19221 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_ISNAN_IN_MATH_H 1
19229 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19230 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19231 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 ac_cpp='$CXXCPP $CPPFLAGS'
19236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19270 { (case "(($ac_try" in
19271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272 *) ac_try_echo=$ac_try;;
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275 (eval "$ac_try") 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_func_isnan_in_cmath=yes
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 ac_cv_func_isnan_in_cmath=no
19297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 ac_cpp='$CPP $CPPFLAGS'
19300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19305 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19306 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19308 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19310 cat >>confdefs.h <<\_ACEOF
19311 #define HAVE_ISNAN_IN_CMATH 1
19316 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19317 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19318 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 ac_cpp='$CXXCPP $CPPFLAGS'
19323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19337 float f; std::isnan(f);
19342 rm -f conftest.$ac_objext
19343 if { (ac_try="$ac_compile"
19344 case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_compile") 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; } &&
19366 { ac_try='test -s conftest.$ac_objext'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; }; then
19376 ac_cv_func_std_isnan_in_cmath=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_func_std_isnan_in_cmath=no
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19392 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19393 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19395 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE_STD_ISNAN_IN_CMATH 1
19404 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19405 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19406 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 ac_cpp='$CXXCPP $CPPFLAGS'
19411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19430 rm -f conftest.$ac_objext
19431 if { (ac_try="$ac_compile"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_compile") 2>conftest.er1
19439 grep -v '^ *+' conftest.er1 >conftest.err
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_func_isinf_in_math_h=yes
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_func_isinf_in_math_h=no
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19474 ac_cpp='$CPP $CPPFLAGS'
19475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19480 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19481 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19483 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_ISINF_IN_MATH_H 1
19491 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19492 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19493 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 ac_cpp='$CXXCPP $CPPFLAGS'
19498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19517 rm -f conftest.$ac_objext
19518 if { (ac_try="$ac_compile"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_compile") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 ac_cv_func_isinf_in_cmath=yes
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_cv_func_isinf_in_cmath=no
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 ac_cpp='$CPP $CPPFLAGS'
19562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19567 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19568 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19570 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19572 cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_ISINF_IN_CMATH 1
19578 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19579 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19580 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 ac_cpp='$CXXCPP $CPPFLAGS'
19585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19599 float f; std::isinf(f);
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_compile") 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19619 { (case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_try") 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 ac_cv_func_std_isinf_in_cmath=yes
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 ac_cv_func_std_isinf_in_cmath=no
19646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19654 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19655 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19657 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_STD_ISINF_IN_CMATH 1
19665 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19666 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19667 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 ac_cpp='$CXXCPP $CPPFLAGS'
19672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <ieeefp.h>
19686 float f; finite(f);
19691 rm -f conftest.$ac_objext
19692 if { (ac_try="$ac_compile"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19706 { (case "(($ac_try" in
19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19708 *) ac_try_echo=$ac_try;;
19710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19711 (eval "$ac_try") 2>&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); }; } &&
19715 { ac_try='test -s conftest.$ac_objext'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_func_finite_in_ieeefp_h=yes
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_cv_func_finite_in_ieeefp_h=no
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19741 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19742 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19744 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19746 cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_FINITE_IN_IEEEFP_H 1
19754 if test "$llvm_cv_platform_type" = "Unix" ; then
19757 for ac_header in stdlib.h unistd.h
19759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 ac_res=`eval echo '${'$as_ac_Header'}'`
19767 { echo "$as_me:$LINENO: result: $ac_res" >&5
19768 echo "${ECHO_T}$ac_res" >&6; }
19770 # Is the header compilable?
19771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779 $ac_includes_default
19780 #include <$ac_header>
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_header_compiler=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_header_compiler=no
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826 echo "${ECHO_T}$ac_header_compiler" >&6; }
19828 # Is the header present?
19829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 #include <$ac_header>
19839 if { (ac_try="$ac_cpp conftest.$ac_ext"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } >/dev/null; then
19852 if test -s conftest.err; then
19853 ac_cpp_err=$ac_c_preproc_warn_flag
19854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19861 if test -z "$ac_cpp_err"; then
19862 ac_header_preproc=yes
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_header_preproc=no
19870 rm -f conftest.err conftest.$ac_ext
19871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872 echo "${ECHO_T}$ac_header_preproc" >&6; }
19874 # So? What about this header?
19875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19881 ac_header_preproc=yes
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19897 ## ------------------------------ ##
19898 ## Report this to bugs@yourdomain ##
19899 ## ------------------------------ ##
19901 ) | sed "s/^/$as_me: WARNING: /" >&2
19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 eval "$as_ac_Header=\$ac_header_preproc"
19911 ac_res=`eval echo '${'$as_ac_Header'}'`
19912 { echo "$as_me:$LINENO: result: $ac_res" >&5
19913 echo "${ECHO_T}$ac_res" >&6; }
19916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19917 cat >>confdefs.h <<_ACEOF
19918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19926 for ac_func in getpagesize
19928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19942 #define $ac_func innocuous_$ac_func
19944 /* System header to define __stub macros and hopefully few prototypes,
19945 which can conflict with char $ac_func (); below.
19946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19947 <limits.h> exists even on freestanding compilers. */
19950 # include <limits.h>
19952 # include <assert.h>
19957 /* Override any GCC internal prototype to avoid an error.
19958 Use char because int might match the return type of a GCC
19959 builtin and then its argument prototype would still apply. */
19964 /* The GNU C library defines this for functions which it implements
19965 to always fail with ENOSYS. Some functions are actually named
19966 something starting with __ and the normal name is an alias. */
19967 #if defined __stub_$ac_func || defined __stub___$ac_func
19974 return $ac_func ();
19979 rm -f conftest.$ac_objext conftest$ac_exeext
19980 if { (ac_try="$ac_link"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_link") 2>conftest.er1
19988 grep -v '^ *+' conftest.er1 >conftest.err
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19994 { (case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_try") 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest$ac_exeext'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 eval "$as_ac_var=yes"
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 eval "$as_ac_var=no"
20021 rm -f core conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20024 ac_res=`eval echo '${'$as_ac_var'}'`
20025 { echo "$as_me:$LINENO: result: $ac_res" >&5
20026 echo "${ECHO_T}$ac_res" >&6; }
20027 if test `eval echo '${'$as_ac_var'}'` = yes; then
20028 cat >>confdefs.h <<_ACEOF
20029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20035 { echo "$as_me:$LINENO: checking for working mmap" >&5
20036 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20037 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20038 echo $ECHO_N "(cached) $ECHO_C" >&6
20040 if test "$cross_compiling" = yes; then
20041 ac_cv_func_mmap_fixed_mapped=no
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20050 /* malloc might have been renamed as rpl_malloc. */
20053 /* Thanks to Mike Haertel and Jim Avera for this test.
20054 Here is a matrix of mmap possibilities:
20055 mmap private not fixed
20056 mmap private fixed at somewhere currently unmapped
20057 mmap private fixed at somewhere already mapped
20058 mmap shared not fixed
20059 mmap shared fixed at somewhere currently unmapped
20060 mmap shared fixed at somewhere already mapped
20061 For private mappings, we should verify that changes cannot be read()
20062 back from the file, nor mmap's back from the file at a different
20063 address. (There have been systems where private was not correctly
20064 implemented like the infamous i386 svr4.0, and systems where the
20065 VM page cache was not coherent with the file system buffer cache
20066 like early versions of FreeBSD and possibly contemporary NetBSD.)
20067 For shared mappings, we should conversely verify that changes get
20068 propagated back to all the places they're supposed to be.
20070 Grep wants private fixed already mapped.
20071 The main things grep needs to know about mmap are:
20072 * does it exist and is it safe to write into the mmap'd area
20073 * how to use it (BSD variants) */
20076 #include <sys/mman.h>
20078 #if !STDC_HEADERS && !HAVE_STDLIB_H
20082 /* This mess was copied from the GNU getpagesize.h. */
20083 #if !HAVE_GETPAGESIZE
20084 /* Assume that all systems that can run configure have sys/param.h. */
20085 # if !HAVE_SYS_PARAM_H
20086 # define HAVE_SYS_PARAM_H 1
20089 # ifdef _SC_PAGESIZE
20090 # define getpagesize() sysconf(_SC_PAGESIZE)
20091 # else /* no _SC_PAGESIZE */
20092 # if HAVE_SYS_PARAM_H
20093 # include <sys/param.h>
20094 # ifdef EXEC_PAGESIZE
20095 # define getpagesize() EXEC_PAGESIZE
20096 # else /* no EXEC_PAGESIZE */
20098 # define getpagesize() NBPG * CLSIZE
20101 # endif /* no CLSIZE */
20102 # else /* no NBPG */
20104 # define getpagesize() NBPC
20105 # else /* no NBPC */
20107 # define getpagesize() PAGESIZE
20108 # endif /* PAGESIZE */
20109 # endif /* no NBPC */
20110 # endif /* no NBPG */
20111 # endif /* no EXEC_PAGESIZE */
20112 # else /* no HAVE_SYS_PARAM_H */
20113 # define getpagesize() 8192 /* punt totally */
20114 # endif /* no HAVE_SYS_PARAM_H */
20115 # endif /* no _SC_PAGESIZE */
20117 #endif /* no HAVE_GETPAGESIZE */
20122 char *data, *data2, *data3;
20126 pagesize = getpagesize ();
20128 /* First, make a file with some known garbage in it. */
20129 data = (char *) malloc (pagesize);
20132 for (i = 0; i < pagesize; ++i)
20133 *(data + i) = rand ();
20135 fd = creat ("conftest.mmap", 0600);
20138 if (write (fd, data, pagesize) != pagesize)
20142 /* Next, try to mmap the file at a fixed address which already has
20143 something else allocated at it. If we can, also make sure that
20144 we see the same garbage. */
20145 fd = open ("conftest.mmap", O_RDWR);
20148 data2 = (char *) malloc (2 * pagesize);
20151 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20152 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20153 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20155 for (i = 0; i < pagesize; ++i)
20156 if (*(data + i) != *(data2 + i))
20159 /* Finally, make sure that changes to the mapped area do not
20160 percolate back to the file as seen by read(). (This is a bug on
20161 some variants of i386 svr4.0.) */
20162 for (i = 0; i < pagesize; ++i)
20163 *(data2 + i) = *(data2 + i) + 1;
20164 data3 = (char *) malloc (pagesize);
20167 if (read (fd, data3, pagesize) != pagesize)
20169 for (i = 0; i < pagesize; ++i)
20170 if (*(data + i) != *(data3 + i))
20176 rm -f conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_func_mmap_fixed_mapped=yes
20198 echo "$as_me: program exited with status $ac_status" >&5
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20202 ( exit $ac_status )
20203 ac_cv_func_mmap_fixed_mapped=no
20205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20210 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20211 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20214 cat >>confdefs.h <<\_ACEOF
20215 #define HAVE_MMAP 1
20219 rm -f conftest.mmap
20221 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20222 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20223 if test "${ac_cv_func_mmap_file+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20232 if test "$cross_compiling" = yes; then
20233 ac_cv_func_mmap_file=no
20235 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 #include <sys/types.h>
20244 #include <sys/mman.h>
20252 fd = creat ("foo",0777);
20253 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20255 return (fd != (int) MAP_FAILED);
20260 rm -f conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271 { (case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_try") 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_cv_func_mmap_file=yes
20282 echo "$as_me: program exited with status $ac_status" >&5
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 ( exit $ac_status )
20287 ac_cv_func_mmap_file=no
20289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20294 ac_cpp='$CPP $CPPFLAGS'
20295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20302 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20303 if test "$ac_cv_func_mmap_file" = yes; then
20305 cat >>confdefs.h <<\_ACEOF
20306 #define HAVE_MMAP_FILE
20313 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20314 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20315 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 if test "$llvm_cv_os_type" = "Interix" ; then
20319 ac_cv_need_dev_zero_for_mmap=yes
20321 ac_cv_need_dev_zero_for_mmap=no
20325 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20326 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20327 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define NEED_DEV_ZERO_FOR_MMAP 1
20335 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20337 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20338 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20340 if test "$ac_cv_func_mmap_file" = "no"
20342 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20343 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20347 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20348 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20350 ac_cpp='$CXXCPP $CPPFLAGS'
20351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20362 volatile unsigned long val = 1;
20363 __sync_synchronize();
20364 __sync_val_compare_and_swap(&val, 1, 0);
20365 __sync_add_and_fetch(&val, 1);
20366 __sync_sub_and_fetch(&val, 1);
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_link") 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_try") 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20406 ac_cpp='$CPP $CPPFLAGS'
20407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411 { echo "$as_me:$LINENO: result: yes" >&5
20412 echo "${ECHO_T}yes" >&6; }
20414 cat >>confdefs.h <<\_ACEOF
20415 #define LLVM_HAS_ATOMICS 1
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 { echo "$as_me:$LINENO: result: no" >&5
20423 echo "${ECHO_T}no" >&6; }
20425 cat >>confdefs.h <<\_ACEOF
20426 #define LLVM_HAS_ATOMICS 0
20429 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20430 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20433 rm -f core conftest.err conftest.$ac_objext \
20434 conftest$ac_exeext conftest.$ac_ext
20437 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20438 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20439 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20440 if test "${llvm_cv_linux_mixed+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 ac_cpp='$CPP $CPPFLAGS'
20445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 error: Not x86-64 even if uname says so!
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_compile") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20482 { (case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_try") 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501 llvm_cv_linux_mixed=no
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 llvm_cv_linux_mixed=yes
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 ac_cpp='$CPP $CPPFLAGS'
20512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20519 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20521 if test "$llvm_cv_linux_mixed" = "yes"; then
20522 llvm_cv_target_arch="x86"
20528 for ac_func in __dso_handle
20530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20544 #define $ac_func innocuous_$ac_func
20546 /* System header to define __stub macros and hopefully few prototypes,
20547 which can conflict with char $ac_func (); below.
20548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20549 <limits.h> exists even on freestanding compilers. */
20552 # include <limits.h>
20554 # include <assert.h>
20559 /* Override any GCC internal prototype to avoid an error.
20560 Use char because int might match the return type of a GCC
20561 builtin and then its argument prototype would still apply. */
20566 /* The GNU C library defines this for functions which it implements
20567 to always fail with ENOSYS. Some functions are actually named
20568 something starting with __ and the normal name is an alias. */
20569 #if defined __stub_$ac_func || defined __stub___$ac_func
20576 return $ac_func ();
20581 rm -f conftest.$ac_objext conftest$ac_exeext
20582 if { (ac_try="$ac_link"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_link") 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; } &&
20605 { ac_try='test -s conftest$ac_exeext'
20606 { (case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_try") 2>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 eval "$as_ac_var=yes"
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 eval "$as_ac_var=no"
20623 rm -f core conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20626 ac_res=`eval echo '${'$as_ac_var'}'`
20627 { echo "$as_me:$LINENO: result: $ac_res" >&5
20628 echo "${ECHO_T}$ac_res" >&6; }
20629 if test `eval echo '${'$as_ac_var'}'` = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20638 SHLIBEXT=$libltdl_cv_shlibext
20641 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20644 # Translate the various configuration directories and other basic
20645 # information into substitutions that will end up in Makefile.config.in
20646 # that these configured values can be used by the makefiles
20647 if test "${prefix}" = "NONE" ; then
20648 prefix="/usr/local"
20650 eval LLVM_PREFIX="${prefix}";
20651 eval LLVM_BINDIR="${prefix}/bin";
20652 eval LLVM_LIBDIR="${prefix}/lib";
20653 eval LLVM_DATADIR="${prefix}/share/llvm";
20654 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20655 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20656 eval LLVM_INCLUDEDIR="${prefix}/include";
20657 eval LLVM_INFODIR="${prefix}/info";
20658 eval LLVM_MANDIR="${prefix}/man";
20659 LLVM_CONFIGTIME=`date`
20671 # Place the various directores into the config.h file as #defines so that we
20672 # can know about the installation paths within LLVM.
20674 cat >>confdefs.h <<_ACEOF
20675 #define LLVM_PREFIX "$LLVM_PREFIX"
20679 cat >>confdefs.h <<_ACEOF
20680 #define LLVM_BINDIR "$LLVM_BINDIR"
20684 cat >>confdefs.h <<_ACEOF
20685 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20689 cat >>confdefs.h <<_ACEOF
20690 #define LLVM_DATADIR "$LLVM_DATADIR"
20694 cat >>confdefs.h <<_ACEOF
20695 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20699 cat >>confdefs.h <<_ACEOF
20700 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20704 cat >>confdefs.h <<_ACEOF
20705 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20709 cat >>confdefs.h <<_ACEOF
20710 #define LLVM_INFODIR "$LLVM_INFODIR"
20714 cat >>confdefs.h <<_ACEOF
20715 #define LLVM_MANDIR "$LLVM_MANDIR"
20719 cat >>confdefs.h <<_ACEOF
20720 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20724 cat >>confdefs.h <<_ACEOF
20725 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20729 # Determine which bindings to build.
20730 if test "$BINDINGS_TO_BUILD" = auto ; then
20731 BINDINGS_TO_BUILD=""
20732 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20733 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20736 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20739 # This isn't really configurey, but it avoids having to repeat the list in
20744 # Do any work necessary to ensure that bindings have what they need.
20745 binding_prereqs_failed=0
20746 for a_binding in $BINDINGS_TO_BUILD ; do
20747 case "$a_binding" in
20749 if test "x$OCAMLC" = x ; then
20750 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20751 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20752 binding_prereqs_failed=1
20754 if test "x$OCAMLDEP" = x ; then
20755 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20756 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20757 binding_prereqs_failed=1
20759 if test "x$OCAMLOPT" = x ; then
20760 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20761 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20763 if test "x$with_ocaml_libdir" != xauto ; then
20764 OCAML_LIBDIR=$with_ocaml_libdir
20767 ocaml_stdlib="`"$OCAMLC" -where`"
20768 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20770 # ocaml stdlib is beneath our prefix; use stdlib
20771 OCAML_LIBDIR=$ocaml_stdlib
20774 # ocaml stdlib is outside our prefix; use libdir/ocaml
20775 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20782 if test "$binding_prereqs_failed" = 1 ; then
20783 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20784 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20785 { (exit 1); exit 1; }; }
20788 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20789 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20790 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 ac_cpp='$CXXCPP $CPPFLAGS'
20795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20799 oldcxxflags="$CXXFLAGS"
20800 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20831 { (case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try='test -s conftest.$ac_objext'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 llvm_cv_cxx_visibility_inlines_hidden=yes
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 llvm_cv_cxx_visibility_inlines_hidden=no
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859 CXXFLAGS="$oldcxxflags"
20861 ac_cpp='$CPP $CPPFLAGS'
20862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20869 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20870 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20871 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20874 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20879 if test "$llvm_cv_link_use_r" = "yes" ; then
20886 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20887 RDYNAMIC="-Wl,-export-dynamic"
20895 ac_config_files="$ac_config_files Makefile.common"
20897 ac_config_files="$ac_config_files Makefile.llvm.config"
20900 ac_config_commands="$ac_config_commands Makefile"
20903 ac_config_commands="$ac_config_commands lib/Makefile"
20906 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20909 ac_config_commands="$ac_config_commands tools/Makefile"
20912 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20916 cat >confcache <<\_ACEOF
20917 # This file is a shell script that caches the results of configure
20918 # tests run on this system so they can be shared between configure
20919 # scripts and configure runs, see configure's option --config-cache.
20920 # It is not useful on other systems. If it contains results you don't
20921 # want to keep, you may remove or edit it.
20923 # config.status only pays attention to the cache file if you give it
20924 # the --recheck option to rerun configure.
20926 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20927 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20928 # following values.
20932 # The following way of writing the cache mishandles newlines in values,
20933 # but we know of no workaround that is simple, portable, and efficient.
20934 # So, we kill variables containing newlines.
20935 # Ultrix sh set writes to stderr and can't be redirected directly,
20936 # and sets the high bit in the cache file unless we assign to the vars.
20938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20939 eval ac_val=\$$ac_var
20943 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20944 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20947 _ | IFS | as_nl) ;; #(
20948 *) $as_unset $ac_var ;;
20954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20955 *${as_nl}ac_space=\ *)
20956 # `set' does not quote correctly, so add quotes (double-quote
20957 # substitution turns \\\\ into \\, and sed turns \\ into \).
20960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20963 # `set' quotes correctly as required by POSIX, so do not add quotes.
20964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20978 if test -w "$cache_file"; then
20979 test "x$cache_file" != "x/dev/null" &&
20980 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20981 echo "$as_me: updating cache $cache_file" >&6;}
20982 cat confcache >$cache_file
20984 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20985 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20991 # Let make expand exec_prefix.
20992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20994 # Transform confdefs.h into DEFS.
20995 # Protect against shell expansion while executing Makefile rules.
20996 # Protect against Makefile macro expansion.
20998 # If the first sed substitution is executed (which looks for macros that
20999 # take arguments), then branch to the quote section. Otherwise,
21000 # look for a macro that doesn't take arguments.
21004 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21006 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21010 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21023 DEFS=`sed -n "$ac_script" confdefs.h`
21028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21029 # 1. Remove the extension, and $U if already installed.
21030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21031 ac_i=`echo "$ac_i" | sed "$ac_script"`
21032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21033 # will be set to the directory where LIBOBJS objects are built.
21034 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21035 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21037 LIBOBJS=$ac_libobjs
21039 LTLIBOBJS=$ac_ltlibobjs
21042 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21043 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21044 Usually this means the macro was only invoked conditionally." >&5
21045 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21046 Usually this means the macro was only invoked conditionally." >&2;}
21047 { (exit 1); exit 1; }; }
21049 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21050 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21051 Usually this means the macro was only invoked conditionally." >&5
21052 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21053 Usually this means the macro was only invoked conditionally." >&2;}
21054 { (exit 1); exit 1; }; }
21057 : ${CONFIG_STATUS=./config.status}
21058 ac_clean_files_save=$ac_clean_files
21059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21062 cat >$CONFIG_STATUS <<_ACEOF
21064 # Generated by $as_me.
21065 # Run this file to recreate the current configuration.
21066 # Compiler output produced by configure, useful for debugging
21067 # configure, is in config.log if it exists.
21070 ac_cs_recheck=false
21072 SHELL=\${CONFIG_SHELL-$SHELL}
21075 cat >>$CONFIG_STATUS <<\_ACEOF
21076 ## --------------------- ##
21077 ## M4sh Initialization. ##
21078 ## --------------------- ##
21080 # Be Bourne compatible
21081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21085 # is contrary to our usage. Disable this feature.
21086 alias -g '${1+"$@"}'='"$@"'
21087 setopt NO_GLOB_SUBST
21089 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21091 BIN_SH=xpg4; export BIN_SH # for Tru64
21092 DUALCASE=1; export DUALCASE # for MKS sh
21096 # Avoid depending upon Character Ranges.
21097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21100 as_cr_digits='0123456789'
21101 as_cr_alnum=$as_cr_Letters$as_cr_digits
21103 # The user is always right.
21104 if test "${PATH_SEPARATOR+set}" != set; then
21105 echo "#! /bin/sh" >conf$$.sh
21106 echo "exit 0" >>conf$$.sh
21108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21116 # Support unset when possible.
21117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21125 # We need space, tab and new line, in precisely that order. Quoting is
21126 # there to prevent editors from complaining about space-tab.
21127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21128 # splitting by setting IFS to empty value.)
21133 # Find who we are. Look in the path if we contain no directory separator.
21135 *[\\/]* ) as_myself=$0 ;;
21136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21137 for as_dir in $PATH
21140 test -z "$as_dir" && as_dir=.
21141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21147 # We did not find ourselves, most probably we were run as `sh COMMAND'
21148 # in which case we are not to be found in the path.
21149 if test "x$as_myself" = x; then
21152 if test ! -f "$as_myself"; then
21153 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21154 { (exit 1); exit 1; }
21157 # Work around bugs in pre-3.0 UWIN ksh.
21158 for as_var in ENV MAIL MAILPATH
21159 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21169 LC_TELEPHONE LC_TIME
21171 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21172 eval $as_var=C; export $as_var
21174 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21178 # Required to use basename.
21179 if expr a : '\(a\)' >/dev/null 2>&1 &&
21180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21187 as_basename=basename
21193 # Name of the executable.
21194 as_me=`$as_basename -- "$0" ||
21195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21196 X"$0" : 'X\(//\)$' \| \
21197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21199 sed '/^.*\/\([^/][^/]*\)\/*$/{
21218 as_lineno_1=$LINENO
21219 as_lineno_2=$LINENO
21220 test "x$as_lineno_1" != "x$as_lineno_2" &&
21221 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21223 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21224 # uniformly replaced by the line number. The first 'sed' inserts a
21225 # line-number line after each line using $LINENO; the second 'sed'
21226 # does the real work. The second script uses 'N' to pair each
21227 # line-number line with the line containing $LINENO, and appends
21228 # trailing '-' during substitution so that $LINENO is not a special
21229 # case at line end.
21230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21231 # scripts with optimization help from Paolo Bonzini. Blame Lee
21232 # E. McMahon (1931-1989) for sed's syntax. :-)
21244 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21247 ' >$as_me.lineno &&
21248 chmod +x "$as_me.lineno" ||
21249 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21250 { (exit 1); exit 1; }; }
21252 # Don't try to exec as it changes $[0], causing all sort of problems
21253 # (the dirname of $[0] is not the place where we might find the
21254 # original and so on. Autoconf is especially sensitive to this).
21255 . "./$as_me.lineno"
21256 # Exit status is that of the last command.
21261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21267 ECHO_C= ECHO_N= ECHO_T=
21268 case `echo -n x` in
21270 case `echo 'x\c'` in
21271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21278 if expr a : '\(a\)' >/dev/null 2>&1 &&
21279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21285 rm -f conf$$ conf$$.exe conf$$.file
21286 if test -d conf$$.dir; then
21287 rm -f conf$$.dir/conf$$.file
21293 if ln -s conf$$.file conf$$ 2>/dev/null; then
21295 # ... but there are two gotchas:
21296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21298 # In both cases, we have to default to `cp -p'.
21299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21301 elif ln conf$$.file conf$$ 2>/dev/null; then
21306 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21307 rmdir conf$$.dir 2>/dev/null
21309 if mkdir -p . 2>/dev/null; then
21312 test -d ./-p && rmdir ./-p
21316 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21317 # systems may use methods other than mode bits to determine executability.
21318 cat >conf$$.file <<_ASEOF
21322 chmod +x conf$$.file
21323 if test -x conf$$.file >/dev/null 2>&1; then
21324 as_executable_p="test -x"
21330 # Sed expression to map a string onto a valid CPP name.
21331 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21333 # Sed expression to map a string onto a valid variable name.
21334 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21339 # Save the log message, to keep $[0] and so on meaningful, and to
21340 # report actual input values of CONFIG_FILES etc. instead of their
21341 # values after options handling.
21343 This file was extended by [SAMPLE] $as_me [x.xx], which was
21344 generated by GNU Autoconf 2.60. Invocation command line was
21346 CONFIG_FILES = $CONFIG_FILES
21347 CONFIG_HEADERS = $CONFIG_HEADERS
21348 CONFIG_LINKS = $CONFIG_LINKS
21349 CONFIG_COMMANDS = $CONFIG_COMMANDS
21352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21357 cat >>$CONFIG_STATUS <<_ACEOF
21358 # Files that config.status was made for.
21359 config_files="$ac_config_files"
21360 config_commands="$ac_config_commands"
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21366 \`$as_me' instantiates files from templates according to the
21367 current configuration.
21369 Usage: $0 [OPTIONS] [FILE]...
21371 -h, --help print this help, then exit
21372 -V, --version print version number, then exit
21373 -q, --quiet do not print progress messages
21374 -d, --debug don't remove temporary files
21375 --recheck update $as_me by reconfiguring in the same conditions
21376 --file=FILE[:TEMPLATE]
21377 instantiate the configuration file FILE
21379 Configuration files:
21382 Configuration commands:
21385 Report bugs to <bug-autoconf@gnu.org>."
21388 cat >>$CONFIG_STATUS <<_ACEOF
21390 [SAMPLE] config.status [x.xx]
21391 configured by $0, generated by GNU Autoconf 2.60,
21392 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21394 Copyright (C) 2006 Free Software Foundation, Inc.
21395 This config.status script is free software; the Free Software Foundation
21396 gives unlimited permission to copy, distribute and modify it."
21403 cat >>$CONFIG_STATUS <<\_ACEOF
21404 # If no file are specified by the user, then we need to provide default
21405 # value. By we need to know if files were specified by the user.
21411 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21412 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21423 # Handling of the options.
21424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21427 echo "$ac_cs_version"; exit ;;
21428 --debug | --debu | --deb | --de | --d | -d )
21430 --file | --fil | --fi | --f )
21432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21433 ac_need_defaults=false;;
21434 --he | --h | --help | --hel | -h )
21435 echo "$ac_cs_usage"; exit ;;
21436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21440 # This is an error.
21441 -*) { echo "$as_me: error: unrecognized option: $1
21442 Try \`$0 --help' for more information." >&2
21443 { (exit 1); exit 1; }; } ;;
21445 *) ac_config_targets="$ac_config_targets $1"
21446 ac_need_defaults=false ;;
21452 ac_configure_extra_args=
21454 if $ac_cs_silent; then
21456 ac_configure_extra_args="$ac_configure_extra_args --silent"
21460 cat >>$CONFIG_STATUS <<_ACEOF
21461 if \$ac_cs_recheck; then
21462 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21463 CONFIG_SHELL=$SHELL
21464 export CONFIG_SHELL
21465 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21469 cat >>$CONFIG_STATUS <<\_ACEOF
21473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474 ## Running $as_me. ##
21480 cat >>$CONFIG_STATUS <<_ACEOF
21484 llvm_src="${LLVM_SRC}"
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21490 # Handling of arguments.
21491 for ac_config_target in $ac_config_targets
21493 case $ac_config_target in
21494 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21495 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21496 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21497 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21498 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21499 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21500 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21501 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21503 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21504 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21505 { (exit 1); exit 1; }; };;
21510 # If the user did not use the arguments to specify the items to instantiate,
21511 # then the envvar interface is used. Set only those that are not.
21512 # We use the long form for the default assignment because of an extremely
21513 # bizarre bug on SunOS 4.1.3.
21514 if $ac_need_defaults; then
21515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21519 # Have a temporary directory for convenience. Make it in the build tree
21520 # simply because there is no reason against having it here, and in addition,
21521 # creating and moving files from /tmp can sometimes cause problems.
21522 # Hook for its removal unless debugging.
21523 # Note that there is a small window in which the directory will not be cleaned:
21524 # after its creation but before its name has been assigned to `$tmp'.
21528 trap 'exit_status=$?
21529 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21531 trap '{ (exit 1); exit 1; }' 1 2 13 15
21533 # Create a (secure) tmp directory for tmp files.
21536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21537 test -n "$tmp" && test -d "$tmp"
21540 tmp=./conf$$-$RANDOM
21541 (umask 077 && mkdir "$tmp")
21544 echo "$me: cannot create a temporary directory in ." >&2
21545 { (exit 1); exit 1; }
21549 # Set up the sed scripts for CONFIG_FILES section.
21552 # No need to generate the scripts if there are no CONFIG_FILES.
21553 # This happens for instance when ./config.status config.h
21554 if test -n "$CONFIG_FILES"; then
21561 for ac_last_try in false false false false false :; do
21562 cat >conf$$subs.sed <<_ACEOF
21563 SHELL!$SHELL$ac_delim
21564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21570 exec_prefix!$exec_prefix$ac_delim
21571 prefix!$prefix$ac_delim
21572 program_transform_name!$program_transform_name$ac_delim
21573 bindir!$bindir$ac_delim
21574 sbindir!$sbindir$ac_delim
21575 libexecdir!$libexecdir$ac_delim
21576 datarootdir!$datarootdir$ac_delim
21577 datadir!$datadir$ac_delim
21578 sysconfdir!$sysconfdir$ac_delim
21579 sharedstatedir!$sharedstatedir$ac_delim
21580 localstatedir!$localstatedir$ac_delim
21581 includedir!$includedir$ac_delim
21582 oldincludedir!$oldincludedir$ac_delim
21583 docdir!$docdir$ac_delim
21584 infodir!$infodir$ac_delim
21585 htmldir!$htmldir$ac_delim
21586 dvidir!$dvidir$ac_delim
21587 pdfdir!$pdfdir$ac_delim
21588 psdir!$psdir$ac_delim
21589 libdir!$libdir$ac_delim
21590 localedir!$localedir$ac_delim
21591 mandir!$mandir$ac_delim
21592 DEFS!$DEFS$ac_delim
21593 ECHO_C!$ECHO_C$ac_delim
21594 ECHO_N!$ECHO_N$ac_delim
21595 ECHO_T!$ECHO_T$ac_delim
21596 LIBS!$LIBS$ac_delim
21597 build_alias!$build_alias$ac_delim
21598 host_alias!$host_alias$ac_delim
21599 target_alias!$target_alias$ac_delim
21600 LLVM_SRC!$LLVM_SRC$ac_delim
21601 LLVM_OBJ!$LLVM_OBJ$ac_delim
21602 LLVM_VERSION!$LLVM_VERSION$ac_delim
21604 CFLAGS!$CFLAGS$ac_delim
21605 LDFLAGS!$LDFLAGS$ac_delim
21606 CPPFLAGS!$CPPFLAGS$ac_delim
21607 ac_ct_CC!$ac_ct_CC$ac_delim
21608 EXEEXT!$EXEEXT$ac_delim
21609 OBJEXT!$OBJEXT$ac_delim
21611 CXXFLAGS!$CXXFLAGS$ac_delim
21612 ac_ct_CXX!$ac_ct_CXX$ac_delim
21614 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21615 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21616 subdirs!$subdirs$ac_delim
21617 build!$build$ac_delim
21618 build_cpu!$build_cpu$ac_delim
21619 build_vendor!$build_vendor$ac_delim
21620 build_os!$build_os$ac_delim
21621 host!$host$ac_delim
21622 host_cpu!$host_cpu$ac_delim
21623 host_vendor!$host_vendor$ac_delim
21624 host_os!$host_os$ac_delim
21625 target!$target$ac_delim
21626 target_cpu!$target_cpu$ac_delim
21627 target_vendor!$target_vendor$ac_delim
21628 target_os!$target_os$ac_delim
21630 HOST_OS!$HOST_OS$ac_delim
21631 TARGET_OS!$TARGET_OS$ac_delim
21632 LINKALL!$LINKALL$ac_delim
21633 NOLINKALL!$NOLINKALL$ac_delim
21634 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21635 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21636 ARCH!$ARCH$ac_delim
21637 ENDIAN!$ENDIAN$ac_delim
21638 GREP!$GREP$ac_delim
21639 EGREP!$EGREP$ac_delim
21640 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21641 BUILD_CC!$BUILD_CC$ac_delim
21642 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21643 BUILD_CXX!$BUILD_CXX$ac_delim
21644 CVSBUILD!$CVSBUILD$ac_delim
21645 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21646 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21647 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21648 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21649 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21650 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21651 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21652 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21654 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21655 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21656 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21657 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21658 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21659 ENABLE_PIC!$ENABLE_PIC$ac_delim
21662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21664 elif $ac_last_try; then
21665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21667 { (exit 1); exit 1; }; }
21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21674 if test -n "$ac_eof"; then
21675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21676 ac_eof=`expr $ac_eof + 1`
21679 cat >>$CONFIG_STATUS <<_ACEOF
21680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21685 s/^/s,@/; s/!/@,|#_!!_#|/
21688 s/'"$ac_delim"'$/,g/; t
21690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21691 ' >>$CONFIG_STATUS <conf$$subs.sed
21692 rm -f conf$$subs.sed
21693 cat >>$CONFIG_STATUS <<_ACEOF
21699 for ac_last_try in false false false false false :; do
21700 cat >conf$$subs.sed <<_ACEOF
21701 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21702 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21703 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21704 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21705 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21706 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21707 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21708 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21709 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21710 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21711 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21712 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21714 ifGNUmake!$ifGNUmake$ac_delim
21715 LN_S!$LN_S$ac_delim
21718 DATE!$DATE$ac_delim
21719 FIND!$FIND$ac_delim
21720 MKDIR!$MKDIR$ac_delim
21722 RANLIB!$RANLIB$ac_delim
21727 BINPWD!$BINPWD$ac_delim
21728 GRAPHVIZ!$GRAPHVIZ$ac_delim
21731 NEATO!$NEATO$ac_delim
21732 TWOPI!$TWOPI$ac_delim
21733 CIRCO!$CIRCO$ac_delim
21735 DOTTY!$DOTTY$ac_delim
21736 XDOT_PY!$XDOT_PY$ac_delim
21737 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21738 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21739 INSTALL_DATA!$INSTALL_DATA$ac_delim
21740 BZIP2!$BZIP2$ac_delim
21742 DOXYGEN!$DOXYGEN$ac_delim
21743 GROFF!$GROFF$ac_delim
21744 GZIPBIN!$GZIPBIN$ac_delim
21745 POD2HTML!$POD2HTML$ac_delim
21746 POD2MAN!$POD2MAN$ac_delim
21747 PDFROFF!$PDFROFF$ac_delim
21748 RUNTEST!$RUNTEST$ac_delim
21749 TCLSH!$TCLSH$ac_delim
21751 OCAMLC!$OCAMLC$ac_delim
21752 OCAMLOPT!$OCAMLOPT$ac_delim
21753 OCAMLDEP!$OCAMLDEP$ac_delim
21754 OCAMLDOC!$OCAMLDOC$ac_delim
21756 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21757 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21758 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21759 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21760 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21761 LIBADD_DL!$LIBADD_DL$ac_delim
21762 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21763 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21764 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21765 USE_UDIS86!$USE_UDIS86$ac_delim
21766 USE_OPROFILE!$USE_OPROFILE$ac_delim
21767 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21768 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21769 MMAP_FILE!$MMAP_FILE$ac_delim
21770 SHLIBEXT!$SHLIBEXT$ac_delim
21771 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21772 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21773 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21774 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21775 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21776 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21777 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21778 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21779 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21780 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21781 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21782 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21783 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21784 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21785 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21786 RPATH!$RPATH$ac_delim
21787 RDYNAMIC!$RDYNAMIC$ac_delim
21788 LIBOBJS!$LIBOBJS$ac_delim
21789 LTLIBOBJS!$LTLIBOBJS$ac_delim
21792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21794 elif $ac_last_try; then
21795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21797 { (exit 1); exit 1; }; }
21799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21804 if test -n "$ac_eof"; then
21805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21806 ac_eof=`expr $ac_eof + 1`
21809 cat >>$CONFIG_STATUS <<_ACEOF
21810 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21815 s/^/s,@/; s/!/@,|#_!!_#|/
21818 s/'"$ac_delim"'$/,g/; t
21820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21821 ' >>$CONFIG_STATUS <conf$$subs.sed
21822 rm -f conf$$subs.sed
21823 cat >>$CONFIG_STATUS <<_ACEOF
21830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21832 # trailing colons and then remove the whole line if VPATH becomes empty
21833 # (actually we leave an empty line to preserve line numbers).
21834 if test "x$srcdir" = x.; then
21835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21836 s/:*\$(srcdir):*/:/
21837 s/:*\${srcdir}:*/:/
21839 s/^\([^=]*=[ ]*\):*/\1/
21845 cat >>$CONFIG_STATUS <<\_ACEOF
21846 fi # test -n "$CONFIG_FILES"
21849 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21852 :[FHLC]) ac_mode=$ac_tag; continue;;
21854 case $ac_mode$ac_tag in
21856 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21857 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21858 { (exit 1); exit 1; }; };;
21859 :[FH]-) ac_tag=-:-;;
21860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21877 -) ac_f="$tmp/stdin";;
21878 *) # Look for the file first in the build tree, then in the source tree
21879 # (if the path is not absolute). The absolute path cannot be DOS-style,
21880 # because $ac_f cannot contain `:'.
21884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21887 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21888 { (exit 1); exit 1; }; };;
21890 ac_file_inputs="$ac_file_inputs $ac_f"
21893 # Let's still pretend it is `configure' which instantiates (i.e., don't
21894 # use $as_me), people would be surprised to read:
21895 # /* config.h. Generated by config.status. */
21896 configure_input="Generated from "`IFS=:
21897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21898 if test x"$ac_file" != x-; then
21899 configure_input="$ac_file. $configure_input"
21900 { echo "$as_me:$LINENO: creating $ac_file" >&5
21901 echo "$as_me: creating $ac_file" >&6;}
21905 *:-:* | *:-) cat >"$tmp/stdin";;
21910 ac_dir=`$as_dirname -- "$ac_file" ||
21911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21912 X"$ac_file" : 'X\(//\)[^/]' \| \
21913 X"$ac_file" : 'X\(//\)$' \| \
21914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21920 /^X\(\/\/\)[^/].*/{
21935 -*) as_dir=./$as_dir;;
21937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21942 *) as_qdir=$as_dir;;
21944 as_dirs="'$as_qdir' $as_dirs"
21945 as_dir=`$as_dirname -- "$as_dir" ||
21946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21947 X"$as_dir" : 'X\(//\)[^/]' \| \
21948 X"$as_dir" : 'X\(//\)$' \| \
21949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21955 /^X\(\/\/\)[^/].*/{
21968 test -d "$as_dir" && break
21970 test -z "$as_dirs" || eval "mkdir $as_dirs"
21971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21973 { (exit 1); exit 1; }; }; }
21977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21980 # A ".." for each directory in $ac_dir_suffix.
21981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21982 case $ac_top_builddir_sub in
21983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21987 ac_abs_top_builddir=$ac_pwd
21988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21989 # for backward compatibility:
21990 ac_top_builddir=$ac_top_build_prefix
21993 .) # We are building in place.
21995 ac_top_srcdir=$ac_top_builddir_sub
21996 ac_abs_top_srcdir=$ac_pwd ;;
21997 [\\/]* | ?:[\\/]* ) # Absolute name.
21998 ac_srcdir=$srcdir$ac_dir_suffix;
21999 ac_top_srcdir=$srcdir
22000 ac_abs_top_srcdir=$srcdir ;;
22001 *) # Relative name.
22002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22003 ac_top_srcdir=$ac_top_build_prefix$srcdir
22004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22021 cat >>$CONFIG_STATUS <<\_ACEOF
22022 # If the template does not know about datarootdir, expand it.
22023 # FIXME: This hack should be removed a few years after 2.60.
22024 ac_datarootdir_hack=; ac_datarootdir_seen=
22026 case `sed -n '/datarootdir/ {
22035 ' $ac_file_inputs` in
22036 *datarootdir*) ac_datarootdir_seen=yes;;
22037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22038 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22039 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22041 cat >>$CONFIG_STATUS <<_ACEOF
22042 ac_datarootdir_hack='
22043 s&@datadir@&$datadir&g
22044 s&@docdir@&$docdir&g
22045 s&@infodir@&$infodir&g
22046 s&@localedir@&$localedir&g
22047 s&@mandir@&$mandir&g
22048 s&\\\${datarootdir}&$datarootdir&g' ;;
22052 # Neutralize VPATH when `$srcdir' = `.'.
22053 # Shell code in configure.ac might set extrasub.
22054 # FIXME: do we really want to maintain this feature?
22055 cat >>$CONFIG_STATUS <<_ACEOF
22059 cat >>$CONFIG_STATUS <<\_ACEOF
22061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22062 s&@configure_input@&$configure_input&;t t
22063 s&@top_builddir@&$ac_top_builddir_sub&;t t
22064 s&@srcdir@&$ac_srcdir&;t t
22065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22066 s&@top_srcdir@&$ac_top_srcdir&;t t
22067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22068 s&@builddir@&$ac_builddir&;t t
22069 s&@abs_builddir@&$ac_abs_builddir&;t t
22070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22071 s&@INSTALL@&$ac_INSTALL&;t t
22072 $ac_datarootdir_hack
22073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22079 which seems to be undefined. Please make sure it is defined." >&5
22080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22081 which seems to be undefined. Please make sure it is defined." >&2;}
22085 -) cat "$tmp/out"; rm -f "$tmp/out";;
22086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22091 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22092 echo "$as_me: executing $ac_file commands" >&6;}
22097 case $ac_file$ac_mode in
22098 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22100 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22102 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22104 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22106 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22113 { (exit 0); exit 0; }
22115 chmod +x $CONFIG_STATUS
22116 ac_clean_files=$ac_clean_files_save
22119 # configure is writing to config.log, and then calls config.status.
22120 # config.status does its own redirection, appending to config.log.
22121 # Unfortunately, on DOS this fails, as config.log is still kept open
22122 # by configure, so config.status won't be able to write to it; its
22123 # output is simply discarded. So we exec the FD to /dev/null,
22124 # effectively closing config.log, so it can be properly (re)opened and
22125 # appended to by config.status. When coming back to configure, we
22126 # need to make the FD available again.
22127 if test "$no_create" != yes; then
22129 ac_config_status_args=
22130 test "$silent" = yes &&
22131 ac_config_status_args="$ac_config_status_args --quiet"
22133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22136 # would make configure fail if this is the last instruction.
22137 $ac_cs_success || { (exit 1); exit 1; }
22141 # CONFIG_SUBDIRS section.
22143 if test "$no_recursion" != yes; then
22145 # Remove --cache-file and --srcdir arguments so they do not pile up.
22146 ac_sub_configure_args=
22148 eval "set x $ac_configure_args"
22152 if test -n "$ac_prev"; then
22157 -cache-file | --cache-file | --cache-fil | --cache-fi \
22158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22159 ac_prev=cache_file ;;
22160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22164 --config-cache | -C)
22166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22176 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22178 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22182 # Always prepend --prefix to ensure using the same prefix
22183 # in subdir configurations.
22184 ac_arg="--prefix=$prefix"
22186 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22188 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22191 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22193 # Do not complain, so a configure script can configure whichever
22194 # parts of a large source tree are present.
22195 test -d "$srcdir/$ac_dir" || continue
22197 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22198 echo "$as_me:$LINENO: $ac_msg" >&5
22202 -*) as_dir=./$as_dir;;
22204 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22208 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22209 *) as_qdir=$as_dir;;
22211 as_dirs="'$as_qdir' $as_dirs"
22212 as_dir=`$as_dirname -- "$as_dir" ||
22213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22214 X"$as_dir" : 'X\(//\)[^/]' \| \
22215 X"$as_dir" : 'X\(//\)$' \| \
22216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22222 /^X\(\/\/\)[^/].*/{
22235 test -d "$as_dir" && break
22237 test -z "$as_dirs" || eval "mkdir $as_dirs"
22238 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22239 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22240 { (exit 1); exit 1; }; }; }
22244 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22246 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22247 # A ".." for each directory in $ac_dir_suffix.
22248 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22249 case $ac_top_builddir_sub in
22250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22254 ac_abs_top_builddir=$ac_pwd
22255 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22256 # for backward compatibility:
22257 ac_top_builddir=$ac_top_build_prefix
22260 .) # We are building in place.
22262 ac_top_srcdir=$ac_top_builddir_sub
22263 ac_abs_top_srcdir=$ac_pwd ;;
22264 [\\/]* | ?:[\\/]* ) # Absolute name.
22265 ac_srcdir=$srcdir$ac_dir_suffix;
22266 ac_top_srcdir=$srcdir
22267 ac_abs_top_srcdir=$srcdir ;;
22268 *) # Relative name.
22269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22270 ac_top_srcdir=$ac_top_build_prefix$srcdir
22271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22273 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22278 # Check for guested configure; otherwise get Cygnus style configure.
22279 if test -f "$ac_srcdir/configure.gnu"; then
22280 ac_sub_configure=$ac_srcdir/configure.gnu
22281 elif test -f "$ac_srcdir/configure"; then
22282 ac_sub_configure=$ac_srcdir/configure
22283 elif test -f "$ac_srcdir/configure.in"; then
22284 # This should be Cygnus configure.
22285 ac_sub_configure=$ac_aux_dir/configure
22287 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22288 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22292 # The recursion is here.
22293 if test -n "$ac_sub_configure"; then
22294 # Make the cache file name correct relative to the subdirectory.
22295 case $cache_file in
22296 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22297 *) # Relative name.
22298 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22301 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22302 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22303 # The eval makes quoting arguments work.
22304 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22305 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22306 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22307 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22308 { (exit 1); exit 1; }; }