2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='tools/polly'
804 # Initialize some variables set by options.
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911 eval enable_$ac_feature=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package| sed 's/-/_/g'`
1127 eval with_$ac_package=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package | sed 's/-/_/g'`
1136 eval with_$ac_package=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1187 # Be sure to have absolute directory names.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
1244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273 { (exit 1); exit 1; }; }
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278 { (exit 1); exit 1; }; }
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-libcpp Use libc++ if available (default is NO)
1379 --enable-cxx11 Use c++11 if available (default is NO)
1380 --enable-optimized Compile with optimizations enabled (default is NO)
1381 --enable-profiling Compile with profiling enabled (default is NO)
1382 --enable-assertions Compile with assertion checks enabled (default is
1384 --enable-werror Compile with -Werror enabled (default is NO)
1385 --enable-expensive-checks
1386 Compile with expensive debug checks enabled (default
1388 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1391 optimization is on and YES if it's off)
1392 --enable-jit Enable Just In Time Compiling (default is YES)
1393 --enable-docs Build documents (default is YES)
1394 --enable-doxygen Build doxygen documentation (default is NO)
1395 --enable-threads Use threads if available (default is YES)
1396 --enable-pthreads Use pthreads if available (default is YES)
1397 --enable-pic Build LLVM with Position Independent Code (default
1399 --enable-shared Build a shared library and link tools against it
1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1402 Win32 DLL (default is YES)
1403 --enable-timestamps Enable embedding timestamp information in build
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408 xcore, msp430, nvptx, systemz, r600, and cpp
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
1420 --with-optimize-option Select the compiler options to use for optimized
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1429 --with-c-include-dirs Colon separated list of directories clang will
1431 --with-gcc-toolchain Directory where gcc is installed.
1432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <bugs@yourdomain>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60. Invocation command line was
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 ac_config_commands="$ac_config_commands setup"
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1928 llvm_package_version="unknown";
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3474 case "$enableval" in
3479 default) ENABLE_POLLY=1
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490 subdirs="$subdirs tools/polly"
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3528 ac_save_IFS=$IFS; IFS='-'
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3620 program_prefix=${target_alias}-
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
3653 *-*-freebsd* | *-*-kfreebsd-gnu)
3654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 llvm_cv_target_os_type="AIX" ;;
3747 llvm_cv_target_os_type="IRIX" ;;
3749 llvm_cv_target_os_type="Cygwin" ;;
3751 llvm_cv_target_os_type="Darwin" ;;
3753 llvm_cv_target_os_type="Minix" ;;
3754 *-*-freebsd* | *-*-kfreebsd-gnu)
3755 llvm_cv_target_os_type="FreeBSD" ;;
3757 llvm_cv_target_os_type="OpenBSD" ;;
3759 llvm_cv_target_os_type="NetBSD" ;;
3761 llvm_cv_target_os_type="DragonFly" ;;
3763 llvm_cv_target_os_type="HP-UX" ;;
3765 llvm_cv_target_os_type="Interix" ;;
3767 llvm_cv_target_os_type="Linux" ;;
3769 llvm_cv_target_os_type="GNU" ;;
3771 llvm_cv_target_os_type="SunOS" ;;
3773 llvm_cv_target_os_type="AuroraUX" ;;
3775 llvm_cv_target_os_type="Win32" ;;
3777 llvm_cv_target_os_type="MingW" ;;
3779 llvm_cv_target_os_type="Haiku" ;;
3781 llvm_cv_target_os_type="RTEMS" ;;
3783 llvm_cv_target_os_type="NativeClient" ;;
3785 llvm_cv_target_os_type="Freestanding" ;;
3787 llvm_cv_target_os_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3801 HOST_OS=$llvm_cv_os_type
3803 TARGET_OS=$llvm_cv_target_os_type
3806 LINKALL=$llvm_cv_link_all_option
3808 NOLINKALL=$llvm_cv_no_link_all_option
3811 case $llvm_cv_platform_type in
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3846 arm*-*) llvm_cv_target_arch="ARM" ;;
3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3853 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3854 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3855 *) llvm_cv_target_arch="Unknown" ;;
3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3859 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3861 if test "$llvm_cv_target_arch" = "Unknown" ; then
3862 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3863 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3866 # Determine the LLVM native architecture for the target
3867 case "$llvm_cv_target_arch" in
3868 x86) LLVM_NATIVE_ARCH="X86" ;;
3869 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3870 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3873 ARCH=$llvm_cv_target_arch
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in grep ggrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP="$ac_path_GREP"
3920 ac_path_GREP_max=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 $ac_path_GREP_found && break 3
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3947 ac_cv_path_GREP=$GREP
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3965 # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 $ac_path_EGREP_found && break 3
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_EGREP=$EGREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_header_stdc=yes
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_cv_header_stdc=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "memchr" >/dev/null 2>&1; then
4123 ac_cv_header_stdc=no
4129 if test $ac_cv_header_stdc = yes; then
4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "free" >/dev/null 2>&1; then
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152 if test "$cross_compiling" = yes; then
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4163 #if ((' ' & 0x0FF) == 0x020)
4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 # define ISLOWER(c) \
4168 (('a' <= (c) && (c) <= 'i') \
4169 || ('j' <= (c) && (c) <= 'r') \
4170 || ('s' <= (c) && (c) <= 'z'))
4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179 for (i = 0; i < 256; i++)
4180 if (XOR (islower (i), ISLOWER (i))
4181 || toupper (i) != TOUPPER (i))
4186 rm -f conftest$ac_exeext
4187 if { (ac_try="$ac_link"
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_link") 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4208 echo "$as_me: program exited with status $ac_status" >&5
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_header_stdc=no
4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4223 if test $ac_cv_header_stdc = yes; then
4225 cat >>confdefs.h <<\_ACEOF
4226 #define STDC_HEADERS 1
4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4258 #include <$ac_header>
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 eval "$as_ac_Header=yes"
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 eval "$as_ac_Header=no"
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_res=`eval echo '${'$as_ac_Header'}'`
4305 { echo "$as_me:$LINENO: result: $ac_res" >&5
4306 echo "${ECHO_T}$ac_res" >&6; }
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4319 if test "${ac_cv_c_bigendian+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 # See if sys/param.h defines the BYTE_ORDER macro.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 #include <sys/param.h>
4335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 # It does; now see whether it defined to BIG_ENDIAN or not.
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #include <sys/types.h>
4385 #include <sys/param.h>
4390 #if BYTE_ORDER != BIG_ENDIAN
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_try") 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 ac_cv_c_bigendian=yes
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_cv_c_bigendian=no
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # It does not; compile a test program.
4446 if test "$cross_compiling" = yes; then
4447 # try to guess the endianness by grepping values into an object file
4448 ac_cv_c_bigendian=unknown
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4464 _ascii (); _ebcdic ();
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4504 ac_cv_c_bigendian=yes
4506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4507 if test "$ac_cv_c_bigendian" = unknown; then
4508 ac_cv_c_bigendian=no
4510 # finding both strings is unlikely to happen, but who knows?
4511 ac_cv_c_bigendian=unknown
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4534 /* Are we little or big endian? From Harbison&Steele. */
4538 char c[sizeof (long int)];
4541 return u.c[sizeof (long int) - 1] == 1;
4547 rm -f conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_c_bigendian=no
4569 echo "$as_me: program exited with status $ac_status" >&5
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_c_bigendian=yes
4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4585 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4586 case $ac_cv_c_bigendian in
4594 { { echo "$as_me:$LINENO: error: unknown endianness
4595 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4596 echo "$as_me: error: unknown endianness
4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4598 { (exit 1); exit 1; }; } ;;
4602 if test "$cross_compiling" = yes; then
4603 LLVM_CROSS_COMPILING=1
4606 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4607 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4608 if test "${ac_cv_build_exeext+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4612 ac_cv_build_exeext=.exe
4614 ac_build_prefix=${build_alias}-
4616 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4617 set dummy ${ac_build_prefix}gcc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$BUILD_CC"; then
4624 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 BUILD_CC=$ac_cv_prog_BUILD_CC
4644 if test -n "$BUILD_CC"; then
4645 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4646 echo "${ECHO_T}$BUILD_CC" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4653 if test -z "$BUILD_CC"; then
4654 # Extract the first word of "gcc", so it can be a program name with args.
4655 set dummy gcc; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$BUILD_CC"; then
4662 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_BUILD_CC="gcc"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 BUILD_CC=$ac_cv_prog_BUILD_CC
4682 if test -n "$BUILD_CC"; then
4683 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4684 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 if test -z "$BUILD_CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 if test -n "$BUILD_CC"; then
4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected=yes
4714 ac_cv_prog_BUILD_CC="cc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy $ac_cv_prog_BUILD_CC
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set BUILD_CC to just the basename; use the full file name.
4731 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4736 BUILD_CC=$ac_cv_prog_BUILD_CC
4737 if test -n "$BUILD_CC"; then
4738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4739 echo "${ECHO_T}$BUILD_CC" >&6; }
4741 { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4748 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4749 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4750 { (exit 1); exit 1; }; }
4751 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4753 echo 'int main () { return 0; }' > conftest.$ac_ext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4756 (eval $ac_build_link) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 for file in conftest.*; do
4762 *.c | *.o | *.obj | *.dSYM) ;;
4763 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4767 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4768 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4769 { (exit 1); exit 1; }; }
4772 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4777 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4778 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4779 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4780 ac_build_exeext=$BUILD_EXEEXT
4782 ac_build_prefix=${build_alias}-
4783 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4784 set dummy ${ac_build_prefix}g++; ac_word=$2
4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 if test -n "$BUILD_CXX"; then
4791 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4811 if test -n "$BUILD_CXX"; then
4812 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4813 echo "${ECHO_T}$BUILD_CXX" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 if test -z "$BUILD_CXX"; then
4821 # Extract the first word of "g++", so it can be a program name with args.
4822 set dummy g++; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 if test -n "$BUILD_CXX"; then
4829 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_BUILD_CXX="g++"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4849 if test -n "$BUILD_CXX"; then
4850 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4851 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 if test -z "$BUILD_CXX"; then
4859 # Extract the first word of "c++", so it can be a program name with args.
4860 set dummy c++; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 if test -n "$BUILD_CXX"; then
4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4878 ac_prog_rejected=yes
4881 ac_cv_prog_BUILD_CXX="c++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 if test $ac_prog_rejected = yes; then
4890 # We found a bogon in the path, so make sure we never use it.
4891 set dummy $ac_cv_prog_BUILD_CXX
4893 if test $# != 0; then
4894 # We chose a different compiler from the bogus one.
4895 # However, it has the same basename, so the bogon will be chosen
4896 # first if we set BUILD_CXX to just the basename; use the full file name.
4898 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4903 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4904 if test -n "$BUILD_CXX"; then
4905 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4906 echo "${ECHO_T}$BUILD_CXX" >&6; }
4908 { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4916 LLVM_CROSS_COMPILING=0
4920 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4931 # Check whether --enable-libcpp was given.
4932 if test "${enable_libcpp+set}" = set; then
4933 enableval=$enable_libcpp;
4938 case "$enableval" in
4939 yes) ENABLE_LIBCPP=1
4943 default) ENABLE_LIBCPP=0
4945 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4946 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4947 { (exit 1); exit 1; }; } ;;
4950 # Check whether --enable-cxx11 was given.
4951 if test "${enable_cxx11+set}" = set; then
4952 enableval=$enable_cxx11;
4957 case "$enableval" in
4962 default) ENABLE_CXX11=0
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4969 # Check whether --enable-optimized was given.
4970 if test "${enable_optimized+set}" = set; then
4971 enableval=$enable_optimized;
4976 if test ${enableval} = "no" ; then
4980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4984 # Check whether --enable-profiling was given.
4985 if test "${enable_profiling+set}" = set; then
4986 enableval=$enable_profiling;
4991 if test ${enableval} = "no" ; then
4995 ENABLE_PROFILING=ENABLE_PROFILING=1
4999 # Check whether --enable-assertions was given.
5000 if test "${enable_assertions+set}" = set; then
5001 enableval=$enable_assertions;
5006 if test ${enableval} = "yes" ; then
5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 # Check whether --enable-werror was given.
5015 if test "${enable_werror+set}" = set; then
5016 enableval=$enable_werror;
5021 case "$enableval" in
5022 yes) ENABLE_WERROR=1
5026 default) ENABLE_WERROR=0
5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5029 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035 enableval=$enable_expensive_checks;
5040 if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043 EXPENSIVE_CHECKS=yes
5046 ENABLE_EXPENSIVE_CHECKS=
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054 enableval=$enable_debug_runtime;
5059 if test ${enableval} = "no" ; then
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069 enableval=$enable_debug_symbols;
5074 if test ${enableval} = "no" ; then
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084 enableval=$enable_jit;
5089 if test ${enableval} = "no"
5094 case "$llvm_cv_target_arch" in
5095 x86) TARGET_HAS_JIT=1
5097 Sparc) TARGET_HAS_JIT=0
5099 PowerPC) TARGET_HAS_JIT=1
5101 x86_64) TARGET_HAS_JIT=1
5103 ARM) TARGET_HAS_JIT=1
5105 AArch64) TARGET_HAS_JIT=0
5107 Mips) TARGET_HAS_JIT=1
5109 XCore) TARGET_HAS_JIT=0
5111 MSP430) TARGET_HAS_JIT=0
5113 Hexagon) TARGET_HAS_JIT=0
5115 NVPTX) TARGET_HAS_JIT=0
5117 SystemZ) TARGET_HAS_JIT=1
5124 # Check whether --enable-docs was given.
5125 if test "${enable_docs+set}" = set; then
5126 enableval=$enable_docs;
5131 case "$enableval" in
5136 default) ENABLE_DOCS=1
5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5143 # Check whether --enable-doxygen was given.
5144 if test "${enable_doxygen+set}" = set; then
5145 enableval=$enable_doxygen;
5150 case "$enableval" in
5151 yes) ENABLE_DOXYGEN=1
5153 no) ENABLE_DOXYGEN=0
5155 default) ENABLE_DOXYGEN=0
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5162 # Check whether --enable-threads was given.
5163 if test "${enable_threads+set}" = set; then
5164 enableval=$enable_threads;
5169 case "$enableval" in
5170 yes) ENABLE_THREADS=1
5172 no) ENABLE_THREADS=0
5174 default) ENABLE_THREADS=1
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 cat >>confdefs.h <<_ACEOF
5182 #define ENABLE_THREADS $ENABLE_THREADS
5186 # Check whether --enable-pthreads was given.
5187 if test "${enable_pthreads+set}" = set; then
5188 enableval=$enable_pthreads;
5193 case "$enableval" in
5194 yes) ENABLE_PTHREADS=1
5196 no) ENABLE_PTHREADS=0
5198 default) ENABLE_PTHREADS=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 # Check whether --enable-pic was given.
5206 if test "${enable_pic+set}" = set; then
5207 enableval=$enable_pic;
5212 case "$enableval" in
5217 default) ENABLE_PIC=1
5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5224 cat >>confdefs.h <<_ACEOF
5225 #define ENABLE_PIC $ENABLE_PIC
5229 # Check whether --enable-shared was given.
5230 if test "${enable_shared+set}" = set; then
5231 enableval=$enable_shared;
5236 case "$enableval" in
5237 yes) ENABLE_SHARED=1
5241 default) ENABLE_SHARED=0
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5248 # Check whether --enable-embed-stdcxx was given.
5249 if test "${enable_embed_stdcxx+set}" = set; then
5250 enableval=$enable_embed_stdcxx;
5255 case "$enableval" in
5256 yes) ENABLE_EMBED_STDCXX=1
5258 no) ENABLE_EMBED_STDCXX=0
5260 default) ENABLE_EMBED_STDCXX=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-timestamps was given.
5268 if test "${enable_timestamps+set}" = set; then
5269 enableval=$enable_timestamps;
5274 case "$enableval" in
5275 yes) ENABLE_TIMESTAMPS=1
5277 no) ENABLE_TIMESTAMPS=0
5279 default) ENABLE_TIMESTAMPS=1
5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5286 cat >>confdefs.h <<_ACEOF
5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292 # Check whether --enable-targets was given.
5293 if test "${enable_targets+set}" = set; then
5294 enableval=$enable_targets;
5299 if test "$enableval" = host-only ; then
5302 case "$enableval" in
5303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5311 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5312 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5314 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5319 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5320 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5321 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5322 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5323 host) case "$llvm_cv_target_arch" in
5324 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5325 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5327 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5328 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5329 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5331 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5332 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5333 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5334 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5335 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5336 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5337 echo "$as_me: error: Can not set target to build" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5340 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5341 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5342 { (exit 1); exit 1; }; } ;;
5347 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5350 # Determine whether we are building LLVM support for the native architecture.
5351 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5352 for a_target in $TARGETS_TO_BUILD; do
5353 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5359 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5360 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5361 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5362 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5363 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5364 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5367 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5370 cat >>confdefs.h <<_ACEOF
5371 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5406 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5407 # target feature def files.
5408 LLVM_ENUM_TARGETS=""
5409 LLVM_ENUM_ASM_PRINTERS=""
5410 LLVM_ENUM_ASM_PARSERS=""
5411 LLVM_ENUM_DISASSEMBLERS=""
5412 for target_to_build in $TARGETS_TO_BUILD; do
5413 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5414 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5415 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5417 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5418 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5420 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5421 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5430 # Check whether --with-optimize-option was given.
5431 if test "${with_optimize_option+set}" = set; then
5432 withval=$with_optimize_option;
5437 { echo "$as_me:$LINENO: checking optimization flags" >&5
5438 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5441 case "$llvm_cv_os_type" in
5442 FreeBSD) optimize_option=-O2 ;;
5443 MingW) optimize_option=-O2 ;;
5444 *) optimize_option=-O3 ;;
5446 *) optimize_option="$withval" ;;
5448 OPTIMIZE_OPTION=$optimize_option
5450 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5451 echo "${ECHO_T}$optimize_option" >&6; }
5454 # Check whether --with-extra-options was given.
5455 if test "${with_extra_options+set}" = set; then
5456 withval=$with_extra_options;
5462 default) EXTRA_OPTIONS= ;;
5463 *) EXTRA_OPTIONS=$withval ;;
5465 EXTRA_OPTIONS=$EXTRA_OPTIONS
5469 # Check whether --with-extra-ld-options was given.
5470 if test "${with_extra_ld_options+set}" = set; then
5471 withval=$with_extra_ld_options;
5477 default) EXTRA_LD_OPTIONS= ;;
5478 *) EXTRA_LD_OPTIONS=$withval ;;
5480 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483 # Check whether --enable-bindings was given.
5484 if test "${enable_bindings+set}" = set; then
5485 enableval=$enable_bindings;
5490 BINDINGS_TO_BUILD=""
5491 case "$enableval" in
5492 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5493 all ) BINDINGS_TO_BUILD="ocaml" ;;
5494 none | no) BINDINGS_TO_BUILD="" ;;
5495 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5496 case "$a_binding" in
5497 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5498 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5499 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5500 { (exit 1); exit 1; }; } ;;
5507 # Check whether --with-ocaml-libdir was given.
5508 if test "${with_ocaml_libdir+set}" = set; then
5509 withval=$with_ocaml_libdir;
5515 auto) with_ocaml_libdir="$withval" ;;
5516 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5517 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5518 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5523 # Check whether --with-clang-resource-dir was given.
5524 if test "${with_clang_resource_dir+set}" = set; then
5525 withval=$with_clang_resource_dir;
5531 cat >>confdefs.h <<_ACEOF
5532 #define CLANG_RESOURCE_DIR "$withval"
5537 # Check whether --with-c-include-dirs was given.
5538 if test "${with_c_include_dirs+set}" = set; then
5539 withval=$with_c_include_dirs;
5545 cat >>confdefs.h <<_ACEOF
5546 #define C_INCLUDE_DIRS "$withval"
5550 # Clang normally uses the system c++ headers and libraries. With this option,
5551 # clang will use the ones provided by a gcc installation instead. This option should
5552 # be passed the same value that was used with --prefix when configuring gcc.
5554 # Check whether --with-gcc-toolchain was given.
5555 if test "${with_gcc_toolchain+set}" = set; then
5556 withval=$with_gcc_toolchain;
5562 cat >>confdefs.h <<_ACEOF
5563 #define GCC_INSTALL_PREFIX "$withval"
5568 # Check whether --with-binutils-include was given.
5569 if test "${with_binutils_include+set}" = set; then
5570 withval=$with_binutils_include;
5576 default) WITH_BINUTILS_INCDIR=default ;;
5577 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5578 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5579 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5580 { (exit 1); exit 1; }; } ;;
5582 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5583 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5585 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5586 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5587 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5588 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5589 { (exit 1); exit 1; }; };
5594 # Check whether --with-bug-report-url was given.
5595 if test "${with_bug_report_url+set}" = set; then
5596 withval=$with_bug_report_url;
5598 withval="http://llvm.org/bugs/"
5602 cat >>confdefs.h <<_ACEOF
5603 #define BUG_REPORT_URL "$withval"
5607 # Check whether --enable-libffi was given.
5608 if test "${enable_libffi+set}" = set; then
5609 enableval=$enable_libffi; case "$enableval" in
5610 yes) llvm_cv_enable_libffi="yes" ;;
5611 no) llvm_cv_enable_libffi="no" ;;
5612 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5613 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5614 { (exit 1); exit 1; }; } ;;
5617 llvm_cv_enable_libffi=no
5622 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5623 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5624 if test "${lt_cv_path_NM+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if test -n "$NM"; then
5628 # Let the user override the test.
5631 lt_nm_to_check="${ac_tool_prefix}nm"
5632 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5633 lt_nm_to_check="$lt_nm_to_check nm"
5635 for lt_tmp_nm in $lt_nm_to_check; do
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5639 test -z "$ac_dir" && ac_dir=.
5640 tmp_nm="$ac_dir/$lt_tmp_nm"
5641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5642 # Check to see if the nm accepts a BSD-compat flag.
5643 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5644 # nm: unknown option "B" ignored
5645 # Tru64's nm complains that /dev/null is an invalid object file
5646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5647 */dev/null* | *'Invalid file or object type'*)
5648 lt_cv_path_NM="$tmp_nm -B"
5652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5654 lt_cv_path_NM="$tmp_nm -p"
5658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5659 continue # so that we can try to find one that supports BSD flags
5668 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5671 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5672 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5677 { echo "$as_me:$LINENO: checking for GNU make" >&5
5678 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5679 if test "${llvm_cv_gnu_make_command+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 llvm_cv_gnu_make_command=''
5683 for a in "$MAKE" make gmake gnumake ; do
5684 if test -z "$a" ; then continue ; fi ;
5685 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5687 llvm_cv_gnu_make_command=$a ;
5692 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5693 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5694 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5698 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5699 echo "${ECHO_T}\"Not found\"" >&6; };
5703 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5704 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5706 if test "$LN_S" = "ln -s"; then
5707 { echo "$as_me:$LINENO: result: yes" >&5
5708 echo "${ECHO_T}yes" >&6; }
5710 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5711 echo "${ECHO_T}no, using $LN_S" >&6; }
5714 # Extract the first word of "cmp", so it can be a program name with args.
5715 set dummy cmp; ac_word=$2
5716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5718 if test "${ac_cv_path_CMP+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5746 if test -n "$CMP"; then
5747 { echo "$as_me:$LINENO: result: $CMP" >&5
5748 echo "${ECHO_T}$CMP" >&6; }
5750 { echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6; }
5755 # Extract the first word of "cp", so it can be a program name with args.
5756 set dummy cp; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_path_CP+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5787 if test -n "$CP"; then
5788 { echo "$as_me:$LINENO: result: $CP" >&5
5789 echo "${ECHO_T}$CP" >&6; }
5791 { echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6; }
5796 # Extract the first word of "date", so it can be a program name with args.
5797 set dummy date; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_path_DATE+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5827 DATE=$ac_cv_path_DATE
5828 if test -n "$DATE"; then
5829 { echo "$as_me:$LINENO: result: $DATE" >&5
5830 echo "${ECHO_T}$DATE" >&6; }
5832 { echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6; }
5837 # Extract the first word of "find", so it can be a program name with args.
5838 set dummy find; ac_word=$2
5839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5841 if test "${ac_cv_path_FIND+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5868 FIND=$ac_cv_path_FIND
5869 if test -n "$FIND"; then
5870 { echo "$as_me:$LINENO: result: $FIND" >&5
5871 echo "${ECHO_T}$FIND" >&6; }
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5878 # Extract the first word of "grep", so it can be a program name with args.
5879 set dummy grep; ac_word=$2
5880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5882 if test "${ac_cv_path_GREP+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5909 GREP=$ac_cv_path_GREP
5910 if test -n "$GREP"; then
5911 { echo "$as_me:$LINENO: result: $GREP" >&5
5912 echo "${ECHO_T}$GREP" >&6; }
5914 { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5919 # Extract the first word of "mkdir", so it can be a program name with args.
5920 set dummy mkdir; ac_word=$2
5921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923 if test "${ac_cv_path_MKDIR+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5950 MKDIR=$ac_cv_path_MKDIR
5951 if test -n "$MKDIR"; then
5952 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5953 echo "${ECHO_T}$MKDIR" >&6; }
5955 { echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6; }
5960 # Extract the first word of "mv", so it can be a program name with args.
5961 set dummy mv; ac_word=$2
5962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964 if test "${ac_cv_path_MV+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5992 if test -n "$MV"; then
5993 { echo "$as_me:$LINENO: result: $MV" >&5
5994 echo "${ECHO_T}$MV" >&6; }
5996 { echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6; }
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_prog_RANLIB+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 if test -n "$RANLIB"; then
6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 RANLIB=$ac_cv_prog_RANLIB
6030 if test -n "$RANLIB"; then
6031 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6032 echo "${ECHO_T}$RANLIB" >&6; }
6034 { echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6; }
6040 if test -z "$ac_cv_prog_RANLIB"; then
6041 ac_ct_RANLIB=$RANLIB
6042 # Extract the first word of "ranlib", so it can be a program name with args.
6043 set dummy ranlib; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 if test -n "$ac_ct_RANLIB"; then
6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_RANLIB="ranlib"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6070 if test -n "$ac_ct_RANLIB"; then
6071 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6072 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6078 if test "x$ac_ct_RANLIB" = x; then
6081 case $cross_compiling:$ac_tool_warned in
6083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6084 whose name does not start with the host triplet. If you think this
6085 configuration is useful to you, please write to autoconf@gnu.org." >&5
6086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6087 whose name does not start with the host triplet. If you think this
6088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6089 ac_tool_warned=yes ;;
6091 RANLIB=$ac_ct_RANLIB
6094 RANLIB="$ac_cv_prog_RANLIB"
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ar; ac_word=$2
6100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6102 if test "${ac_cv_prog_AR+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 if test -n "$AR"; then
6106 ac_cv_prog_AR="$AR" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_AR="${ac_tool_prefix}ar"
6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 if test -n "$AR"; then
6127 { echo "$as_me:$LINENO: result: $AR" >&5
6128 echo "${ECHO_T}$AR" >&6; }
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6136 if test -z "$ac_cv_prog_AR"; then
6138 # Extract the first word of "ar", so it can be a program name with args.
6139 set dummy ar; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 if test -n "$ac_ct_AR"; then
6146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_AR="ar"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6166 if test -n "$ac_ct_AR"; then
6167 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6168 echo "${ECHO_T}$ac_ct_AR" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6174 if test "x$ac_ct_AR" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6180 whose name does not start with the host triplet. If you think this
6181 configuration is useful to you, please write to autoconf@gnu.org." >&5
6182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet. If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6185 ac_tool_warned=yes ;;
6193 # Extract the first word of "rm", so it can be a program name with args.
6194 set dummy rm; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_path_RM+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6225 if test -n "$RM"; then
6226 { echo "$as_me:$LINENO: result: $RM" >&5
6227 echo "${ECHO_T}$RM" >&6; }
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6234 # Extract the first word of "sed", so it can be a program name with args.
6235 set dummy sed; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_path_SED+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6266 if test -n "$SED"; then
6267 { echo "$as_me:$LINENO: result: $SED" >&5
6268 echo "${ECHO_T}$SED" >&6; }
6270 { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6275 # Extract the first word of "tar", so it can be a program name with args.
6276 set dummy tar; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_path_TAR+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6307 if test -n "$TAR"; then
6308 { echo "$as_me:$LINENO: result: $TAR" >&5
6309 echo "${ECHO_T}$TAR" >&6; }
6311 { echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6; }
6316 # Extract the first word of "pwd", so it can be a program name with args.
6317 set dummy pwd; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_path_BINPWD+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6347 BINPWD=$ac_cv_path_BINPWD
6348 if test -n "$BINPWD"; then
6349 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6350 echo "${ECHO_T}$BINPWD" >&6; }
6352 { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6358 # Extract the first word of "Graphviz", so it can be a program name with args.
6359 set dummy Graphviz; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6389 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6390 if test -n "$GRAPHVIZ"; then
6391 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6392 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6399 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_GRAPHVIZ 1
6405 if test "$llvm_cv_os_type" = "MingW" ; then
6406 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6409 cat >>confdefs.h <<_ACEOF
6410 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6414 # Extract the first word of "dot", so it can be a program name with args.
6415 set dummy dot; ac_word=$2
6416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6418 if test "${ac_cv_path_DOT+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6446 if test -n "$DOT"; then
6447 { echo "$as_me:$LINENO: result: $DOT" >&5
6448 echo "${ECHO_T}$DOT" >&6; }
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6455 if test "$DOT" != "echo dot" ; then
6457 cat >>confdefs.h <<\_ACEOF
6461 if test "$llvm_cv_os_type" = "MingW" ; then
6462 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6465 cat >>confdefs.h <<_ACEOF
6466 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6470 # Extract the first word of "fdp", so it can be a program name with args.
6471 set dummy fdp; ac_word=$2
6472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6474 if test "${ac_cv_path_FDP+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6502 if test -n "$FDP"; then
6503 { echo "$as_me:$LINENO: result: $FDP" >&5
6504 echo "${ECHO_T}$FDP" >&6; }
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6511 if test "$FDP" != "echo fdp" ; then
6513 cat >>confdefs.h <<\_ACEOF
6517 if test "$llvm_cv_os_type" = "MingW" ; then
6518 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6521 cat >>confdefs.h <<_ACEOF
6522 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6526 # Extract the first word of "neato", so it can be a program name with args.
6527 set dummy neato; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_path_NEATO+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6557 NEATO=$ac_cv_path_NEATO
6558 if test -n "$NEATO"; then
6559 { echo "$as_me:$LINENO: result: $NEATO" >&5
6560 echo "${ECHO_T}$NEATO" >&6; }
6562 { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6567 if test "$NEATO" != "echo neato" ; then
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_NEATO 1
6573 if test "$llvm_cv_os_type" = "MingW" ; then
6574 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6577 cat >>confdefs.h <<_ACEOF
6578 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6582 # Extract the first word of "twopi", so it can be a program name with args.
6583 set dummy twopi; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_path_TWOPI+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6613 TWOPI=$ac_cv_path_TWOPI
6614 if test -n "$TWOPI"; then
6615 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6616 echo "${ECHO_T}$TWOPI" >&6; }
6618 { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6623 if test "$TWOPI" != "echo twopi" ; then
6625 cat >>confdefs.h <<\_ACEOF
6626 #define HAVE_TWOPI 1
6629 if test "$llvm_cv_os_type" = "MingW" ; then
6630 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6633 cat >>confdefs.h <<_ACEOF
6634 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6638 # Extract the first word of "circo", so it can be a program name with args.
6639 set dummy circo; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_CIRCO+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6669 CIRCO=$ac_cv_path_CIRCO
6670 if test -n "$CIRCO"; then
6671 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6672 echo "${ECHO_T}$CIRCO" >&6; }
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6679 if test "$CIRCO" != "echo circo" ; then
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_CIRCO 1
6685 if test "$llvm_cv_os_type" = "MingW" ; then
6686 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6689 cat >>confdefs.h <<_ACEOF
6690 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6694 for ac_prog in gv gsview32
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_GV+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 if test -n "$GV"; then
6728 { echo "$as_me:$LINENO: result: $GV" >&5
6729 echo "${ECHO_T}$GV" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 test -n "$GV" && break
6738 test -n "$GV" || GV="echo gv"
6740 if test "$GV" != "echo gv" ; then
6742 cat >>confdefs.h <<\_ACEOF
6746 if test "$llvm_cv_os_type" = "MingW" ; then
6747 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6750 cat >>confdefs.h <<_ACEOF
6751 #define LLVM_PATH_GV "$GV${EXEEXT}"
6755 # Extract the first word of "dotty", so it can be a program name with args.
6756 set dummy dotty; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_DOTTY+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6786 DOTTY=$ac_cv_path_DOTTY
6787 if test -n "$DOTTY"; then
6788 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6789 echo "${ECHO_T}$DOTTY" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6796 if test "$DOTTY" != "echo dotty" ; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_DOTTY 1
6802 if test "$llvm_cv_os_type" = "MingW" ; then
6803 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6806 cat >>confdefs.h <<_ACEOF
6807 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6811 # Extract the first word of "xdot.py", so it can be a program name with args.
6812 set dummy xdot.py; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6842 XDOT_PY=$ac_cv_path_XDOT_PY
6843 if test -n "$XDOT_PY"; then
6844 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6845 echo "${ECHO_T}$XDOT_PY" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6852 if test "$XDOT_PY" != "echo xdot.py" ; then
6854 cat >>confdefs.h <<\_ACEOF
6855 #define HAVE_XDOT_PY 1
6858 if test "$llvm_cv_os_type" = "MingW" ; then
6859 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6862 cat >>confdefs.h <<_ACEOF
6863 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6868 # Find a good install program. We prefer a C program (faster),
6869 # so one script is as good as another. But avoid the broken or
6870 # incompatible versions:
6871 # SysV /etc/install, /usr/sbin/install
6872 # SunOS /usr/etc/install
6873 # IRIX /sbin/install
6875 # AmigaOS /C/install, which installs bootblocks on floppy discs
6876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6879 # OS/2's system install, which has a completely different semantic
6880 # ./install, which can be erroneously created by make from ./install.sh.
6881 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6882 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6883 if test -z "$INSTALL"; then
6884 if test "${ac_cv_path_install+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 # Account for people who put trailing slashes in PATH elements.
6894 ./ | .// | /cC/* | \
6895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6896 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6899 # OSF1 and SCO ODT 3.0 have their own names for install.
6900 # Don't use installbsd from OSF since it installs stuff as root
6902 for ac_prog in ginstall scoinst install; do
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6905 if test $ac_prog = install &&
6906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6907 # AIX install. It has an incompatible calling convention.
6909 elif test $ac_prog = install &&
6910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6911 # program-specific install script used by HP pwplus--don't use.
6914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6927 if test "${ac_cv_path_install+set}" = set; then
6928 INSTALL=$ac_cv_path_install
6930 # As a last resort, use the slow shell script. Don't cache a
6931 # value for INSTALL within a source directory, because that will
6932 # break other packages using the cache if that directory is
6933 # removed, or if the value is a relative name.
6934 INSTALL=$ac_install_sh
6937 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6938 echo "${ECHO_T}$INSTALL" >&6; }
6940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6941 # It thinks the first close brace ends the variable substitution.
6942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6949 [\\/$]* | ?:[\\/]* ) ;;
6950 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6953 # Extract the first word of "bzip2", so it can be a program name with args.
6954 set dummy bzip2; ac_word=$2
6955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957 if test "${ac_cv_path_BZIP2+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 BZIP2=$ac_cv_path_BZIP2
6984 if test -n "$BZIP2"; then
6985 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6986 echo "${ECHO_T}$BZIP2" >&6; }
6988 { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6993 # Extract the first word of "cat", so it can be a program name with args.
6994 set dummy cat; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_CAT+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 if test -n "$CAT"; then
7025 { echo "$as_me:$LINENO: result: $CAT" >&5
7026 echo "${ECHO_T}$CAT" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7033 # Extract the first word of "doxygen", so it can be a program name with args.
7034 set dummy doxygen; ac_word=$2
7035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 DOXYGEN=$ac_cv_path_DOXYGEN
7064 if test -n "$DOXYGEN"; then
7065 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7066 echo "${ECHO_T}$DOXYGEN" >&6; }
7068 { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7073 # Extract the first word of "groff", so it can be a program name with args.
7074 set dummy groff; ac_word=$2
7075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7077 if test "${ac_cv_path_GROFF+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 GROFF=$ac_cv_path_GROFF
7104 if test -n "$GROFF"; then
7105 { echo "$as_me:$LINENO: result: $GROFF" >&5
7106 echo "${ECHO_T}$GROFF" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7113 # Extract the first word of "gzip", so it can be a program name with args.
7114 set dummy gzip; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 GZIPBIN=$ac_cv_path_GZIPBIN
7144 if test -n "$GZIPBIN"; then
7145 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7146 echo "${ECHO_T}$GZIPBIN" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 # Extract the first word of "pod2html", so it can be a program name with args.
7154 set dummy pod2html; ac_word=$2
7155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157 if test "${ac_cv_path_POD2HTML+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 POD2HTML=$ac_cv_path_POD2HTML
7184 if test -n "$POD2HTML"; then
7185 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7186 echo "${ECHO_T}$POD2HTML" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7193 # Extract the first word of "pod2man", so it can be a program name with args.
7194 set dummy pod2man; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_POD2MAN+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 POD2MAN=$ac_cv_path_POD2MAN
7224 if test -n "$POD2MAN"; then
7225 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7226 echo "${ECHO_T}$POD2MAN" >&6; }
7228 { echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6; }
7233 # Extract the first word of "pdfroff", so it can be a program name with args.
7234 set dummy pdfroff; ac_word=$2
7235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7237 if test "${ac_cv_path_PDFROFF+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 PDFROFF=$ac_cv_path_PDFROFF
7264 if test -n "$PDFROFF"; then
7265 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7266 echo "${ECHO_T}$PDFROFF" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7273 # Extract the first word of "runtest", so it can be a program name with args.
7274 set dummy runtest; ac_word=$2
7275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7277 if test "${ac_cv_path_RUNTEST+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 RUNTEST=$ac_cv_path_RUNTEST
7304 if test -n "$RUNTEST"; then
7305 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7306 echo "${ECHO_T}$RUNTEST" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7315 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7316 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7318 # Check whether --with-tclinclude was given.
7319 if test "${with_tclinclude+set}" = set; then
7320 withval=$with_tclinclude; with_tclinclude=${withval}
7325 if test "${ac_cv_path_tclsh+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 if test x"${with_tclinclude}" != x ; then
7330 if test -f ${with_tclinclude}/tclsh ; then
7331 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7332 elif test -f ${with_tclinclude}/src/tclsh ; then
7333 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7335 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7336 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7337 { (exit 1); exit 1; }; }
7343 if test x"${ac_cv_path_tclsh}" = x ; then
7344 { echo "$as_me:$LINENO: result: none" >&5
7345 echo "${ECHO_T}none" >&6; }
7346 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
7348 # Extract the first word of "$ac_prog", so it can be a program name with args.
7349 set dummy $ac_prog; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_TCLSH+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 TCLSH=$ac_cv_path_TCLSH
7379 if test -n "$TCLSH"; then
7380 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7381 echo "${ECHO_T}$TCLSH" >&6; }
7383 { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7388 test -n "$TCLSH" && break
7391 if test x"${TCLSH}" = x ; then
7392 ac_cv_path_tclsh='';
7394 ac_cv_path_tclsh="${TCLSH}";
7397 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7398 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7399 TCLSH="${ac_cv_path_tclsh}"
7403 # Extract the first word of "zip", so it can be a program name with args.
7404 set dummy zip; ac_word=$2
7405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_ZIP+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 if test -n "$ZIP"; then
7435 { echo "$as_me:$LINENO: result: $ZIP" >&5
7436 echo "${ECHO_T}$ZIP" >&6; }
7438 { echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6; }
7443 for ac_prog in ocamlc
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449 if test "${ac_cv_path_OCAMLC+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 OCAMLC=$ac_cv_path_OCAMLC
7476 if test -n "$OCAMLC"; then
7477 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7478 echo "${ECHO_T}$OCAMLC" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7485 test -n "$OCAMLC" && break
7488 for ac_prog in ocamlopt
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 OCAMLOPT=$ac_cv_path_OCAMLOPT
7521 if test -n "$OCAMLOPT"; then
7522 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7523 echo "${ECHO_T}$OCAMLOPT" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 test -n "$OCAMLOPT" && break
7533 for ac_prog in ocamldep
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 OCAMLDEP=$ac_cv_path_OCAMLDEP
7566 if test -n "$OCAMLDEP"; then
7567 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7568 echo "${ECHO_T}$OCAMLDEP" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 test -n "$OCAMLDEP" && break
7578 for ac_prog in ocamldoc
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 OCAMLDOC=$ac_cv_path_OCAMLDOC
7611 if test -n "$OCAMLDOC"; then
7612 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7613 echo "${ECHO_T}$OCAMLDOC" >&6; }
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 test -n "$OCAMLDOC" && break
7623 for ac_prog in gas as
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_GAS+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 if test -n "$GAS"; then
7657 { echo "$as_me:$LINENO: result: $GAS" >&5
7658 echo "${ECHO_T}$GAS" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 test -n "$GAS" && break
7669 { echo "$as_me:$LINENO: checking for linker version" >&5
7670 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7671 if test "${llvm_cv_link_version+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 version_string="$(ld -v 2>&1 | head -1)"
7678 if (echo "$version_string" | grep -q "ld64"); then
7679 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7681 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7685 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7686 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7688 cat >>confdefs.h <<_ACEOF
7689 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7694 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7695 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7696 if test "${llvm_cv_link_use_r+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 ac_cpp='$CPP $CPPFLAGS'
7701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706 CFLAGS="$CFLAGS -Wl,-R."
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_link") 2>conftest.er1
7731 grep -v '^ *+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7737 { (case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_try") 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 llvm_cv_link_use_r=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 llvm_cv_link_use_r=no
7764 rm -f core conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7776 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7777 if test "$llvm_cv_link_use_r" = yes ; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_LINK_R 1
7786 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7787 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7788 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 ac_cpp='$CPP $CPPFLAGS'
7793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (ac_try="$ac_link"
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821 (eval "$ac_link") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 llvm_cv_link_use_export_dynamic=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 llvm_cv_link_use_export_dynamic=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7868 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7869 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_LINK_EXPORT_DYNAMIC 1
7878 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7879 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7880 if test "${llvm_cv_link_use_version_script+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 # The following code is from the autoconf manual,
7892 # "11.13: Limitations of Usual Tools".
7893 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7894 # Use mktemp if possible; otherwise fall back on mkdir,
7895 # with $RANDOM to make collisions less likely.
7899 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7901 test -n "$tmp" && test -d "$tmp"
7903 tmp=$TMPDIR/foo$$-$RANDOM
7904 (umask 077 && mkdir "$tmp")
7907 echo "{" > "$tmp/export.map"
7908 echo " global: main;" >> "$tmp/export.map"
7909 echo " local: *;" >> "$tmp/export.map"
7910 echo "};" >> "$tmp/export.map"
7912 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7928 rm -f conftest.$ac_objext conftest$ac_exeext
7929 if { (ac_try="$ac_link"
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_link") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7943 { (case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_try") 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_try") 2>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 llvm_cv_link_use_version_script=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 llvm_cv_link_use_version_script=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 rm "$tmp/export.map"
7976 ac_cpp='$CPP $CPPFLAGS'
7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7984 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7985 if test "$llvm_cv_link_use_version_script" = yes ; then
7986 HAVE_LINK_VERSION_SCRIPT=1
7993 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7994 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7995 if test "${ac_cv_c_const+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8008 /* FIXME: Include the comments suggested by Paul. */
8010 /* Ultrix mips cc rejects this. */
8011 typedef int charset[2];
8013 /* SunOS 4.1.1 cc rejects this. */
8014 char const *const *ccp;
8016 /* NEC SVR4.0.2 mips cc rejects this. */
8017 struct point {int x, y;};
8018 static struct point const zero = {0,0};
8019 /* AIX XL C 1.02.0.0 rejects this.
8020 It does not let you subtract one const X* pointer from another in
8021 an arm of an if-expression whose if-part is not a constant
8023 const char *g = "string";
8024 ccp = &g + (g ? g-g : 0);
8025 /* HPUX 7.0 cc rejects these. */
8028 ccp = (char const *const *) p;
8029 { /* SCO 3.2v4 cc rejects this. */
8031 char const *s = 0 ? (char *) 0 : (char const *) 0;
8036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8038 const int *foo = &x[0];
8041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8042 typedef const int *iptr;
8046 { /* AIX XL C 1.02.0.0 rejects this saying
8047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8048 struct s { int j; const int *ap[3]; };
8049 struct s *b; b->j = 5;
8051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8055 return !x[0] && !zero.x;
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077 { (case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_try") 2>&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest.$ac_objext'
8087 { (case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_try") 2>&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8107 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8108 if test $ac_cv_c_const = no; then
8110 cat >>confdefs.h <<\_ACEOF
8122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8124 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 #include <sys/types.h>
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
8161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8162 { (case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_try") 2>&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 eval "$as_ac_Header=yes"
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 eval "$as_ac_Header=no"
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 ac_res=`eval echo '${'$as_ac_Header'}'`
8192 { echo "$as_me:$LINENO: result: $ac_res" >&5
8193 echo "${ECHO_T}$ac_res" >&6; }
8194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8199 ac_header_dirent=$ac_hdr; break
8203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8204 if test $ac_header_dirent = dirent.h; then
8205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8207 if test "${ac_cv_search_opendir+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_func_search_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8233 for ac_lib in '' dir; do
8234 if test -z "$ac_lib"; then
8235 ac_res="none required"
8238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_link") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest$ac_exeext'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_search_opendir=$ac_res
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8282 rm -f core conftest.err conftest.$ac_objext \
8284 if test "${ac_cv_search_opendir+set}" = set; then
8288 if test "${ac_cv_search_opendir+set}" = set; then
8291 ac_cv_search_opendir=no
8294 LIBS=$ac_func_search_save_LIBS
8296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8298 ac_res=$ac_cv_search_opendir
8299 if test "$ac_res" != no; then
8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8307 if test "${ac_cv_search_opendir+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 ac_func_search_save_LIBS=$LIBS
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8333 for ac_lib in '' x; do
8334 if test -z "$ac_lib"; then
8335 ac_res="none required"
8338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_link") 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_try") 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_search_opendir=$ac_res
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8382 rm -f core conftest.err conftest.$ac_objext \
8384 if test "${ac_cv_search_opendir+set}" = set; then
8388 if test "${ac_cv_search_opendir+set}" = set; then
8391 ac_cv_search_opendir=no
8394 LIBS=$ac_func_search_save_LIBS
8396 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8397 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8398 ac_res=$ac_cv_search_opendir
8399 if test "$ac_res" != no; then
8400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8407 for ac_header in dlfcn.h
8409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 ac_res=`eval echo '${'$as_ac_Header'}'`
8417 { echo "$as_me:$LINENO: result: $ac_res" >&5
8418 echo "${ECHO_T}$ac_res" >&6; }
8420 # Is the header compilable?
8421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #include <$ac_header>
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_compile") 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_header_compiler=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_header_compiler=no
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476 echo "${ECHO_T}$ac_header_compiler" >&6; }
8478 # Is the header present?
8479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 #include <$ac_header>
8489 if { (ac_try="$ac_cpp conftest.$ac_ext"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } >/dev/null; then
8502 if test -s conftest.err; then
8503 ac_cpp_err=$ac_c_preproc_warn_flag
8504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8511 if test -z "$ac_cpp_err"; then
8512 ac_header_preproc=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_header_preproc=no
8520 rm -f conftest.err conftest.$ac_ext
8521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8522 echo "${ECHO_T}$ac_header_preproc" >&6; }
8524 # So? What about this header?
8525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8531 ac_header_preproc=yes
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547 ## ------------------------------ ##
8548 ## Report this to bugs@yourdomain ##
8549 ## ------------------------------ ##
8551 ) | sed "s/^/$as_me: WARNING: /" >&2
8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 eval "$as_ac_Header=\$ac_header_preproc"
8561 ac_res=`eval echo '${'$as_ac_Header'}'`
8562 { echo "$as_me:$LINENO: result: $ac_res" >&5
8563 echo "${ECHO_T}$ac_res" >&6; }
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567 cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8575 # Check whether --enable-ltdl-install was given.
8576 if test "${enable_ltdl_install+set}" = set; then
8577 enableval=$enable_ltdl_install;
8583 if test x"${enable_ltdl_install-no}" != xno; then
8585 INSTALL_LTDL_FALSE='#'
8587 INSTALL_LTDL_TRUE='#'
8593 if test x"${enable_ltdl_convenience-no}" != xno; then
8594 CONVENIENCE_LTDL_TRUE=
8595 CONVENIENCE_LTDL_FALSE='#'
8597 CONVENIENCE_LTDL_TRUE='#'
8598 CONVENIENCE_LTDL_FALSE=
8602 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8605 libname_spec='lib$name'
8613 shlibpath_overrides_runpath=unknown
8615 dynamic_linker="$host_os ld.so"
8616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8617 if test "$GCC" = yes; then
8618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8620 # if the path contains ";" then we assume it to be the separator
8621 # otherwise default to the standard path separator (i.e. ":") - it is
8622 # assumed that no part of a normal pathname contains ";" but that should
8623 # okay in the real world where ";" in dirpaths is itself problematic.
8624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8631 need_lib_prefix=unknown
8632 hardcode_into_libs=no
8634 # when you set need_version to no, make sure it does not cause -set_version
8635 # flags to be left without arguments
8636 need_version=unknown
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8642 shlibpath_var=LIBPATH
8644 # AIX 3 has no versioning support, so we append a major version to the name.
8645 soname_spec='${libname}${release}${shared_ext}$major'
8652 hardcode_into_libs=yes
8653 if test "$host_cpu" = ia64; then
8654 # AIX 5 supports IA64
8655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8656 shlibpath_var=LD_LIBRARY_PATH
8658 # With GCC up to 2.95.x, collect2 would create an import file
8659 # for dependence libraries. The import file would start with
8660 # the line `#! .'. This would cause the generated library to
8661 # depend on `.', always an invalid library. This was fixed in
8662 # development snapshots of GCC prior to 3.0.
8664 aix4 | aix4.[01] | aix4.[01].*)
8665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8675 # soname into executable. Probably we can add versioning support to
8676 # collect2, so additional links can be useful in future.
8677 if test "$aix_use_runtimelinking" = yes; then
8678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8679 # instead of lib<name>.a to let people know that these are not
8680 # typical AIX shared libraries.
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 # We preserve .a as extension for shared libraries through AIX4.2
8684 # and later when we are not doing run time linking.
8685 library_names_spec='${libname}${release}.a $libname.a'
8686 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LIBPATH
8693 library_names_spec='$libname.ixlibrary $libname.a'
8694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8695 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'
8699 library_names_spec='${libname}${shared_ext}'
8700 dynamic_linker="$host_os ld.so"
8701 shlibpath_var=LIBRARY_PATH
8707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708 soname_spec='${libname}${release}${shared_ext}$major'
8709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8710 shlibpath_var=LD_LIBRARY_PATH
8711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8713 # the default ld.so.conf also contains /usr/contrib/lib and
8714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8715 # libtool to hard-code these into programs
8718 cygwin* | mingw* | pw32*)
8719 version_type=windows
8724 case $GCC,$host_os in
8725 yes,cygwin* | yes,mingw* | yes,pw32*)
8726 library_names_spec='$libname.dll.a'
8727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8728 postinstall_cmds='base_file=`basename \${file}`~
8729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8730 dldir=$destdir/`dirname \$dlpath`~
8731 test -d \$dldir || mkdir -p \$dldir~
8732 $install_prog $dir/$dlname \$dldir/$dlname~
8733 chmod a+x \$dldir/$dlname'
8734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8735 dlpath=$dir/\$dldll~
8737 shlibpath_overrides_runpath=yes
8741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8746 # MinGW DLLs use traditional 'lib' prefix
8747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8750 # It is most probably a Windows format PATH printed by
8751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8752 # path with ; separators, and with drive letters. We can handle the
8753 # drive letters (cygwin fileutils understands them), so leave them,
8754 # especially as we might pass files found there to a mingw objdump,
8755 # which wouldn't understand a cygwinified path. Ahh.
8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8762 # pw32 DLLs use 'pw' prefix rather than 'lib'
8763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8772 dynamic_linker='Win32 ld.exe'
8773 # FIXME: first we should search . and the directory the executable is in
8777 darwin* | rhapsody*)
8778 dynamic_linker="$host_os dyld"
8782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8783 soname_spec='${libname}${release}${major}$shared_ext'
8784 shlibpath_overrides_runpath=yes
8785 shlibpath_var=DYLD_LIBRARY_PATH
8786 shrext_cmds='.dylib'
8787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8788 if test "$GCC" = yes; then
8789 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"`
8791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 shlibpath_var=LD_LIBRARY_PATH
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 shlibpath_var=LD_LIBRARY_PATH
8816 shlibpath_overrides_runpath=no
8817 hardcode_into_libs=yes
8818 dynamic_linker='GNU ld.so'
8821 freebsd* | dragonfly*)
8822 # DragonFly does not have aout. When/if they implement a new
8823 # versioning mechanism, adjust this.
8824 if test -x /usr/bin/objformat; then
8825 objformat=`/usr/bin/objformat`
8828 freebsd[123].*) objformat=aout ;;
8832 version_type=freebsd-$objformat
8833 case $version_type in
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8844 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=yes
8849 freebsd3.[01]* | freebsdelf3.[01]*)
8850 shlibpath_overrides_runpath=yes
8851 hardcode_into_libs=yes
8853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8855 shlibpath_overrides_runpath=no
8856 hardcode_into_libs=yes
8858 freebsd*) # from 4.6 on
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 shlibpath_var=LD_LIBRARY_PATH
8872 hardcode_into_libs=yes
8875 hpux9* | hpux10* | hpux11*)
8876 # Give a soname corresponding to the major version so that dld.sl refuses to
8877 # link against other versions.
8884 hardcode_into_libs=yes
8885 dynamic_linker="$host_os dld.so"
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 if test "X$HPUX_IA64_MODE" = X32; then
8891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 hardcode_into_libs=yes
8900 dynamic_linker="$host_os dld.sl"
8901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8910 dynamic_linker="$host_os dld.sl"
8911 shlibpath_var=SHLIB_PATH
8912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8914 soname_spec='${libname}${release}${shared_ext}$major'
8917 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8918 postinstall_cmds='chmod 555 $lib'
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=no
8930 hardcode_into_libs=yes
8933 irix5* | irix6* | nonstopux*)
8935 nonstopux*) version_type=nonstopux ;;
8937 if test "$lt_cv_prog_gnu_ld" = yes; then
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948 irix5* | nonstopux*)
8952 case $LD in # libtool.m4 will add one of these switches to LD
8953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8954 libsuff= shlibsuff= libmagic=32-bit;;
8955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8956 libsuff=32 shlibsuff=N32 libmagic=N32;;
8957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8959 *) libsuff= shlibsuff= libmagic=never-match;;
8963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8964 shlibpath_overrides_runpath=no
8965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8967 hardcode_into_libs=yes
8970 # No shared lib support for Linux oldld, aout, or coff.
8971 linux*oldld* | linux*aout* | linux*coff*)
8975 # This must be Linux ELF.
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=no
8985 # This implies no fast_install, which is unacceptable.
8986 # Some rework will be needed to allow for fast_install
8987 # before this can be enabled.
8988 hardcode_into_libs=yes
8990 # Append ld.so.conf contents to the search path
8991 if test -f /etc/ld.so.conf; then
8992 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' ' '`
8993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8996 # We used to test for /lib/ld.so.1 and disable shared libraries on
8997 # powerpc, because MkLinux only supported shared libraries with the
8998 # GNU dynamic linker. Since this was broken with cross compilers,
8999 # most powerpc-linux boxes support dynamic linking these days and
9000 # people can always --disable-shared, the test was removed, and we
9001 # assume the GNU/Linux dynamic linker is in use.
9002 dynamic_linker='GNU/Linux ld.so'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath=no
9013 hardcode_into_libs=yes
9014 dynamic_linker='GNU ld.so'
9021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9024 dynamic_linker='NetBSD (a.out) ld.so'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 dynamic_linker='NetBSD ld.elf_so'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 hardcode_into_libs=yes
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9054 sys_lib_dlsearch_path_spec="/usr/lib"
9056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9059 *) need_version=no ;;
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9066 openbsd2.[89] | openbsd2.[89].*)
9067 shlibpath_overrides_runpath=no
9070 shlibpath_overrides_runpath=yes
9074 shlibpath_overrides_runpath=yes
9079 libname_spec='$name'
9082 library_names_spec='$libname${shared_ext} $libname.a'
9083 dynamic_linker='OS/2 ld.exe'
9084 shlibpath_var=LIBPATH
9087 osf3* | osf4* | osf5*)
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=yes
9106 hardcode_into_libs=yes
9107 # ldd complains unless libraries are executable
9108 postinstall_cmds='chmod +x $lib'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes
9117 if test "$with_gnu_ld" = yes; then
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 case $host_vendor in
9130 shlibpath_overrides_runpath=no
9132 export_dynamic_flag_spec='${wl}-Blargedynsym'
9133 runpath_var=LD_RUN_PATH
9141 shlibpath_overrides_runpath=no
9142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9148 if test -d /usr/nec ;then
9150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9151 soname_spec='$libname${shared_ext}.$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9157 version_type=freebsd-elf
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 hardcode_into_libs=yes
9164 if test "$with_gnu_ld" = yes; then
9165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9166 shlibpath_overrides_runpath=no
9168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9169 shlibpath_overrides_runpath=yes
9172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9176 sys_lib_dlsearch_path_spec='/usr/lib'
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9190 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9191 echo "${ECHO_T}$dynamic_linker" >&6; }
9192 test "$dynamic_linker" = no && can_build_shared=no
9194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9195 if test "$GCC" = yes; then
9196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9200 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9201 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9202 if test "${libltdl_cv_shlibext+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 eval libltdl_cv_shlibext=$shrext_cmds
9210 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9211 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9212 if test -n "$libltdl_cv_shlibext"; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9221 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9222 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9223 if test "${libltdl_cv_sys_search_path+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9228 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9229 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9230 if test -n "$libltdl_cv_sys_search_path"; then
9232 for dir in $libltdl_cv_sys_search_path; do
9233 if test -z "$sys_search_path"; then
9234 sys_search_path="$dir"
9236 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9240 cat >>confdefs.h <<_ACEOF
9241 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9246 { echo "$as_me:$LINENO: checking for objdir" >&5
9247 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9248 if test "${libltdl_cv_objdir+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 libltdl_cv_objdir="$objdir"
9252 if test -n "$objdir"; then
9255 rm -f .libs 2>/dev/null
9256 mkdir .libs 2>/dev/null
9257 if test -d .libs; then
9258 libltdl_cv_objdir=.libs
9260 # MS-DOS does not allow filenames that begin with a dot.
9261 libltdl_cv_objdir=_libs
9263 rmdir .libs 2>/dev/null
9267 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9268 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9270 cat >>confdefs.h <<_ACEOF
9271 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9279 # Check for command to grab the raw symbol name followed by C symbol from nm.
9280 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9281 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9282 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 # These are sane defaults that work on at least a few old systems.
9287 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9289 # Character class describing NM global symbol codes.
9290 symcode='[BCDEGRST]'
9292 # Regexp to match symbols that can be accessed directly from C.
9293 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9295 # Transform an extracted symbol line into a proper C declaration
9296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9298 # Transform an extracted symbol line into symbol name and symbol address
9299 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'"
9301 # Define system-specific variables.
9306 cygwin* | mingw* | pw32*)
9307 symcode='[ABCDGISTW]'
9309 hpux*) # Its linker distinguishes data from code symbols
9310 if test "$host_cpu" = ia64; then
9311 symcode='[ABCDEGRST]'
9313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9314 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'"
9317 if test "$host_cpu" = ia64; then
9318 symcode='[ABCDGIRSTW]'
9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9320 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'"
9324 symcode='[BCDEGRST]'
9327 symcode='[BCDEGQRST]'
9338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9346 # Handle CRLF in mingw tool chain
9350 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9354 # If we're using GNU nm, then use its standard symbol codes.
9355 case `$NM -V 2>&1` in
9356 *GNU* | *'with BFD'*)
9357 symcode='[ABCDGIRSTW]' ;;
9360 # Try without a prefix undercore, then with it.
9361 for ac_symprfx in "" "_"; do
9363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9364 symxfrm="\\1 $ac_symprfx\\2 \\2"
9366 # Write the raw and C identifiers.
9367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9369 # Check to see that the pipe works correctly.
9373 cat > conftest.$ac_ext <<EOF
9378 void nm_test_func(){}
9382 int main(){nm_test_var='a';nm_test_func();return(0);}
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; then
9390 # Now try to grab the symbols.
9392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && test -s "$nlist"; then
9397 # Try sorting and uniquifying the output.
9398 if sort "$nlist" | uniq > "$nlist"T; then
9399 mv -f "$nlist"T "$nlist"
9404 # Make sure that we snagged all the symbols we need.
9405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9407 cat <<EOF > conftest.$ac_ext
9413 # Now generate the symbol file.
9414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9416 cat <<EOF >> conftest.$ac_ext
9417 #if defined (__STDC__) && __STDC__
9418 # define lt_ptr_t void *
9420 # define lt_ptr_t char *
9424 /* The mapping between symbol names and symbols. */
9429 lt_preloaded_symbols[] =
9432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9433 cat <<\EOF >> conftest.$ac_ext
9441 # Now try linking the two files.
9442 mv conftest.$ac_objext conftstm.$ac_objext
9443 lt_save_LIBS="$LIBS"
9444 lt_save_CFLAGS="$CFLAGS"
9445 LIBS="conftstm.$ac_objext"
9446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9454 LIBS="$lt_save_LIBS"
9455 CFLAGS="$lt_save_CFLAGS"
9457 echo "cannot find nm_test_func in $nlist" >&5
9460 echo "cannot find nm_test_var in $nlist" >&5
9463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9466 echo "$progname: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9469 rm -f conftest* conftst*
9471 # Do not use the global_symbol_pipe unless it works.
9472 if test "$pipe_works" = yes; then
9475 lt_cv_sys_global_symbol_pipe=
9481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9482 lt_cv_sys_global_symbol_to_cdecl=
9484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9485 { echo "$as_me:$LINENO: result: failed" >&5
9486 echo "${ECHO_T}failed" >&6; }
9488 { echo "$as_me:$LINENO: result: ok" >&5
9489 echo "${ECHO_T}ok" >&6; }
9493 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9494 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9495 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9499 libltdl_cv_preloaded_symbols=yes
9501 libltdl_cv_preloaded_symbols=no
9505 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9506 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9507 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9509 cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_PRELOADED_SYMBOLS 1
9518 ac_cpp='$CPP $CPPFLAGS'
9519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9524 { echo "$as_me:$LINENO: checking for shl_load" >&5
9525 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9526 if test "${ac_cv_func_shl_load+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9537 #define shl_load innocuous_shl_load
9539 /* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char shl_load (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9545 # include <limits.h>
9547 # include <assert.h>
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9559 /* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562 #if defined __stub_shl_load || defined __stub___shl_load
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (ac_try="$ac_link"
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_link") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_cv_func_shl_load=yes
9610 echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9613 ac_cv_func_shl_load=no
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9619 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9621 if test $ac_cv_func_shl_load = yes; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_SHL_LOAD 1
9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9629 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_lib_dld_shl_load=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_dld_shl_load=no
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9705 if test $ac_cv_lib_dld_shl_load = yes; then
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_SHL_LOAD 1
9711 LIBADD_DL="$LIBADD_DL -ldld"
9713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 ac_check_lib_save_LIBS=$LIBS
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest$ac_exeext'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_dl_dlopen=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_cv_lib_dl_dlopen=no
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LIBS=$ac_check_lib_save_LIBS
9788 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9789 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9790 if test $ac_cv_lib_dl_dlopen = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_LIBDL 1
9796 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9851 cat >>confdefs.h <<\_ACEOF
9852 #define HAVE_LIBDL 1
9854 libltdl_cv_func_dlopen="yes"
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9860 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9861 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 ac_check_lib_save_LIBS=$LIBS
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_svld_dlopen=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_svld_dlopen=no
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9935 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9936 if test $ac_cv_lib_svld_dlopen = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_LIBDL 1
9942 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9944 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9945 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9946 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_check_lib_save_LIBS=$LIBS
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (ac_try="$ac_link"
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_lib_dld_dld_link=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_cv_lib_dld_dld_link=no
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10021 if test $ac_cv_lib_dld_dld_link = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10027 LIBADD_DL="$LIBADD_DL -ldld"
10029 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10030 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10031 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10042 #define _dyld_func_lookup innocuous__dyld_func_lookup
10044 /* System header to define __stub macros and hopefully few prototypes,
10045 which can conflict with char _dyld_func_lookup (); below.
10046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10047 <limits.h> exists even on freestanding compilers. */
10050 # include <limits.h>
10052 # include <assert.h>
10055 #undef _dyld_func_lookup
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10063 char _dyld_func_lookup ();
10064 /* The GNU C library defines this for functions which it implements
10065 to always fail with ENOSYS. Some functions are actually named
10066 something starting with __ and the normal name is an alias. */
10067 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10074 return _dyld_func_lookup ();
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (ac_try="$ac_link"
10081 case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_link") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_func__dyld_func_lookup=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_func__dyld_func_lookup=no
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10124 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10125 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10126 if test $ac_cv_func__dyld_func_lookup = yes; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_DYLD 1
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10155 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10157 lt_save_LIBS="$LIBS"
10158 LIBS="$LIBS $LIBADD_DL"
10160 for ac_func in dlerror
10162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10176 #define $ac_func innocuous_$ac_func
10178 /* System header to define __stub macros and hopefully few prototypes,
10179 which can conflict with char $ac_func (); below.
10180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10181 <limits.h> exists even on freestanding compilers. */
10184 # include <limits.h>
10186 # include <assert.h>
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10198 /* The GNU C library defines this for functions which it implements
10199 to always fail with ENOSYS. Some functions are actually named
10200 something starting with __ and the normal name is an alias. */
10201 #if defined __stub_$ac_func || defined __stub___$ac_func
10208 return $ac_func ();
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_link") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1 >conftest.err
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest$ac_exeext'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 eval "$as_ac_var=yes"
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 eval "$as_ac_var=no"
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10258 ac_res=`eval echo '${'$as_ac_var'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10261 if test `eval echo '${'$as_ac_var'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10269 LIBS="$lt_save_LIBS"
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10279 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10280 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10281 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 ac_cv_sys_symbol_underscore=no
10285 cat > conftest.$ac_ext <<EOF
10286 void nm_test_func(){}
10287 int main(){nm_test_func;return 0;}
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; then
10294 # Now try to grab the symbols.
10295 ac_nlist=conftest.nm
10296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && test -s "$ac_nlist"; then
10301 # See whether the symbols have a leading underscore.
10302 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10303 ac_cv_sys_symbol_underscore=yes
10305 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10315 echo "configure: failed program was:" >&5
10321 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10322 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10325 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10326 if test x"$libltdl_cv_func_dlopen" = xyes ||
10327 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10328 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10329 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10330 if test "${libltdl_cv_need_uscore+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 libltdl_cv_need_uscore=unknown
10335 LIBS="$LIBS $LIBADD_DL"
10336 if test "$cross_compiling" = yes; then :
10337 libltdl_cv_need_uscore=cross
10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340 lt_status=$lt_dlunknown
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10352 # define LT_DLGLOBAL RTLD_GLOBAL
10355 # define LT_DLGLOBAL DL_GLOBAL
10357 # define LT_DLGLOBAL 0
10361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362 find out it does not work in some platform. */
10363 #ifndef LT_DLLAZY_OR_NOW
10365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10368 # define LT_DLLAZY_OR_NOW DL_LAZY
10371 # define LT_DLLAZY_OR_NOW RTLD_NOW
10374 # define LT_DLLAZY_OR_NOW DL_NOW
10376 # define LT_DLLAZY_OR_NOW 0
10384 extern "C" void exit (int);
10387 void fnord() { int i=42;}
10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10391 int status = $lt_dlunknown;
10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10397 /* dlclose (self); */
10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10406 (eval $ac_link) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10410 (./conftest; exit; ) >&5 2>/dev/null
10412 case x$lt_status in
10413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10415 x$lt_dlunknown|x*) ;;
10418 # compilation failed
10427 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10428 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10432 if test x"$libltdl_cv_need_uscore" = xyes; then
10434 cat >>confdefs.h <<\_ACEOF
10435 #define NEED_USCORE 1
10441 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10442 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10443 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 # PORTME does your system automatically load deplibs for dlopen?
10447 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10448 # For now, we just catch OSes we know something about -- in the
10449 # future, we'll try test this programmatically.
10450 libltdl_cv_sys_dlopen_deplibs=unknown
10452 aix3*|aix4.1.*|aix4.2.*)
10453 # Unknown whether this is true for these versions of AIX, but
10454 # we want this `case' here to explicitly catch those versions.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10458 libltdl_cv_sys_dlopen_deplibs=yes
10461 # Assuming the user has installed a libdl from somewhere, this is true
10462 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10463 libltdl_cv_sys_dlopen_deplibs=yes
10465 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10466 # GNU and its variants, using gnu ld.so (Glibc)
10467 libltdl_cv_sys_dlopen_deplibs=yes
10470 libltdl_cv_sys_dlopen_deplibs=yes
10473 libltdl_cv_sys_dlopen_deplibs=yes
10475 irix[12345]*|irix6.[01]*)
10476 # Catch all versions of IRIX before 6.2, and indicate that we don't
10477 # know how it worked for any of those versions.
10478 libltdl_cv_sys_dlopen_deplibs=unknown
10481 # The case above catches anything before 6.2, and it's known that
10482 # at 6.2 and later dlopen does load deplibs.
10483 libltdl_cv_sys_dlopen_deplibs=yes
10486 libltdl_cv_sys_dlopen_deplibs=yes
10489 libltdl_cv_sys_dlopen_deplibs=yes
10492 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10493 # it did *not* use an RPATH in a shared library to find objects the
10494 # library depends on, so we explicitly say `no'.
10495 libltdl_cv_sys_dlopen_deplibs=no
10497 osf5.0|osf5.0a|osf5.1)
10498 # dlopen *does* load deplibs and with the right loader patch applied
10499 # it even uses RPATH in a shared library to search for shared objects
10500 # that the library depends on, but there's no easy way to know if that
10501 # patch is installed. Since this is the case, all we can really
10502 # say is unknown -- it depends on the patch being installed. If
10503 # it is, this changes to `yes'. Without it, it would be `no'.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10507 # the two cases above should catch all versions of osf <= 5.1. Read
10508 # the comments above for what we know about them.
10509 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10510 # is used to find them so we can finally say `yes'.
10511 libltdl_cv_sys_dlopen_deplibs=yes
10514 libltdl_cv_sys_dlopen_deplibs=yes
10516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10517 libltdl_cv_sys_dlopen_deplibs=yes
10522 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10523 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10524 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define LTDL_DLOPEN_DEPLIBS 1
10533 for ac_header in argz.h
10535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 ac_res=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10546 # Is the header compilable?
10547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10549 cat >conftest.$ac_ext <<_ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 $ac_includes_default
10556 #include <$ac_header>
10558 rm -f conftest.$ac_objext
10559 if { (ac_try="$ac_compile"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_compile") 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest.$ac_objext'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_header_compiler=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_header_compiler=no
10600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602 echo "${ECHO_T}$ac_header_compiler" >&6; }
10604 # Is the header present?
10605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <$ac_header>
10615 if { (ac_try="$ac_cpp conftest.$ac_ext"
10616 case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null; then
10628 if test -s conftest.err; then
10629 ac_cpp_err=$ac_c_preproc_warn_flag
10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637 if test -z "$ac_cpp_err"; then
10638 ac_header_preproc=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_preproc=no
10646 rm -f conftest.err conftest.$ac_ext
10647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 echo "${ECHO_T}$ac_header_preproc" >&6; }
10650 # So? What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 ## ------------------------------ ##
10674 ## Report this to bugs@yourdomain ##
10675 ## ------------------------------ ##
10677 ) | sed "s/^/$as_me: WARNING: /" >&2
10680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 eval "$as_ac_Header=\$ac_header_preproc"
10687 ac_res=`eval echo '${'$as_ac_Header'}'`
10688 { echo "$as_me:$LINENO: result: $ac_res" >&5
10689 echo "${ECHO_T}$ac_res" >&6; }
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10702 { echo "$as_me:$LINENO: checking for error_t" >&5
10703 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10704 if test "${ac_cv_type_error_t+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10717 typedef error_t ac__type_new_;
10721 if ((ac__type_new_ *) 0)
10723 if (sizeof (ac__type_new_))
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 ac_cv_type_error_t=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_cv_type_error_t=no
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10774 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10775 if test $ac_cv_type_error_t = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778 #define HAVE_ERROR_T 1
10784 cat >>confdefs.h <<\_ACEOF
10785 #define error_t int
10796 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10820 # include <limits.h>
10822 # include <assert.h>
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10834 /* The GNU C library defines this for functions which it implements
10835 to always fail with ENOSYS. Some functions are actually named
10836 something starting with __ and the normal name is an alias. */
10837 #if defined __stub_$ac_func || defined __stub___$ac_func
10844 return $ac_func ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 eval "$as_ac_var=yes"
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 eval "$as_ac_var=no"
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10894 ac_res=`eval echo '${'$as_ac_var'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896 echo "${ECHO_T}$ac_res" >&6; }
10897 if test `eval echo '${'$as_ac_var'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10931 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 ac_res=`eval echo '${'$as_ac_Header'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10945 # Is the header compilable?
10946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 $ac_includes_default
10955 #include <$ac_header>
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1 >conftest.err
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10972 { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 ac_header_compiler=yes
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_compiler=no
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11001 echo "${ECHO_T}$ac_header_compiler" >&6; }
11003 # Is the header present?
11004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <$ac_header>
11014 if { (ac_try="$ac_cpp conftest.$ac_ext"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } >/dev/null; then
11027 if test -s conftest.err; then
11028 ac_cpp_err=$ac_c_preproc_warn_flag
11029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11036 if test -z "$ac_cpp_err"; then
11037 ac_header_preproc=yes
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 ac_header_preproc=no
11045 rm -f conftest.err conftest.$ac_ext
11046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11047 echo "${ECHO_T}$ac_header_preproc" >&6; }
11049 # So? What about this header?
11050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11056 ac_header_preproc=yes
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11072 ## ------------------------------ ##
11073 ## Report this to bugs@yourdomain ##
11074 ## ------------------------------ ##
11076 ) | sed "s/^/$as_me: WARNING: /" >&2
11079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 eval "$as_ac_Header=\$ac_header_preproc"
11086 ac_res=`eval echo '${'$as_ac_Header'}'`
11087 { echo "$as_me:$LINENO: result: $ac_res" >&5
11088 echo "${ECHO_T}$ac_res" >&6; }
11091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11104 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11117 # Is the header compilable?
11118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 $ac_includes_default
11127 #include <$ac_header>
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_compile") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_header_compiler=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_compiler=no
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11173 echo "${ECHO_T}$ac_header_compiler" >&6; }
11175 # Is the header present?
11176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11178 cat >conftest.$ac_ext <<_ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <$ac_header>
11186 if { (ac_try="$ac_cpp conftest.$ac_ext"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11194 grep -v '^ *+' conftest.er1 >conftest.err
11196 cat conftest.err >&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } >/dev/null; then
11199 if test -s conftest.err; then
11200 ac_cpp_err=$ac_c_preproc_warn_flag
11201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11208 if test -z "$ac_cpp_err"; then
11209 ac_header_preproc=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 ac_header_preproc=no
11217 rm -f conftest.err conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11219 echo "${ECHO_T}$ac_header_preproc" >&6; }
11221 # So? What about this header?
11222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11228 ac_header_preproc=yes
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11244 ## ------------------------------ ##
11245 ## Report this to bugs@yourdomain ##
11246 ## ------------------------------ ##
11248 ) | sed "s/^/$as_me: WARNING: /" >&2
11251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 eval "$as_ac_Header=\$ac_header_preproc"
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11274 for ac_header in string.h strings.h
11276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 ac_res=`eval echo '${'$as_ac_Header'}'`
11284 { echo "$as_me:$LINENO: result: $ac_res" >&5
11285 echo "${ECHO_T}$ac_res" >&6; }
11287 # Is the header compilable?
11288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 $ac_includes_default
11297 #include <$ac_header>
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_compile") 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11314 { (case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_try") 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 ac_header_compiler=yes
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_compiler=no
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11343 echo "${ECHO_T}$ac_header_compiler" >&6; }
11345 # Is the header present?
11346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 #include <$ac_header>
11356 if { (ac_try="$ac_cpp conftest.$ac_ext"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } >/dev/null; then
11369 if test -s conftest.err; then
11370 ac_cpp_err=$ac_c_preproc_warn_flag
11371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11378 if test -z "$ac_cpp_err"; then
11379 ac_header_preproc=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_preproc=no
11387 rm -f conftest.err conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 echo "${ECHO_T}$ac_header_preproc" >&6; }
11391 # So? What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11398 ac_header_preproc=yes
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414 ## ------------------------------ ##
11415 ## Report this to bugs@yourdomain ##
11416 ## ------------------------------ ##
11418 ) | sed "s/^/$as_me: WARNING: /" >&2
11421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 eval "$as_ac_Header=\$ac_header_preproc"
11428 ac_res=`eval echo '${'$as_ac_Header'}'`
11429 { echo "$as_me:$LINENO: result: $ac_res" >&5
11430 echo "${ECHO_T}$ac_res" >&6; }
11433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11434 cat >>confdefs.h <<_ACEOF
11435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11445 for ac_func in strchr index
11447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 cat >conftest.$ac_ext <<_ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11461 #define $ac_func innocuous_$ac_func
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11469 # include <limits.h>
11471 # include <assert.h>
11476 /* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11483 /* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486 #if defined __stub_$ac_func || defined __stub___$ac_func
11493 return $ac_func ();
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (ac_try="$ac_link"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 eval "$as_ac_var=yes"
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 eval "$as_ac_var=no"
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11543 ac_res=`eval echo '${'$as_ac_var'}'`
11544 { echo "$as_me:$LINENO: result: $ac_res" >&5
11545 echo "${ECHO_T}$ac_res" >&6; }
11546 if test `eval echo '${'$as_ac_var'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11556 for ac_func in strrchr rindex
11558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11572 #define $ac_func innocuous_$ac_func
11574 /* System header to define __stub macros and hopefully few prototypes,
11575 which can conflict with char $ac_func (); below.
11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11577 <limits.h> exists even on freestanding compilers. */
11580 # include <limits.h>
11582 # include <assert.h>
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11594 /* The GNU C library defines this for functions which it implements
11595 to always fail with ENOSYS. Some functions are actually named
11596 something starting with __ and the normal name is an alias. */
11597 #if defined __stub_$ac_func || defined __stub___$ac_func
11604 return $ac_func ();
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (ac_try="$ac_link"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_link") 2>conftest.er1
11618 grep -v '^ *+' conftest.er1 >conftest.err
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11624 { (case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_try") 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest$ac_exeext'
11634 { (case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_try") 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 eval "$as_ac_var=yes"
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 eval "$as_ac_var=no"
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11654 ac_res=`eval echo '${'$as_ac_var'}'`
11655 { echo "$as_me:$LINENO: result: $ac_res" >&5
11656 echo "${ECHO_T}$ac_res" >&6; }
11657 if test `eval echo '${'$as_ac_var'}'` = yes; then
11658 cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11667 for ac_func in memcpy bcopy
11669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 cat >conftest.$ac_ext <<_ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11683 #define $ac_func innocuous_$ac_func
11685 /* System header to define __stub macros and hopefully few prototypes,
11686 which can conflict with char $ac_func (); below.
11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688 <limits.h> exists even on freestanding compilers. */
11691 # include <limits.h>
11693 # include <assert.h>
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11705 /* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708 #if defined __stub_$ac_func || defined __stub___$ac_func
11715 return $ac_func ();
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_link") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest$ac_exeext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 eval "$as_ac_var=yes"
11756 echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 eval "$as_ac_var=no"
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11765 ac_res=`eval echo '${'$as_ac_var'}'`
11766 { echo "$as_me:$LINENO: result: $ac_res" >&5
11767 echo "${ECHO_T}$ac_res" >&6; }
11768 if test `eval echo '${'$as_ac_var'}'` = yes; then
11769 cat >>confdefs.h <<_ACEOF
11770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11778 for ac_func in memmove strcmp
11780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11794 #define $ac_func innocuous_$ac_func
11796 /* System header to define __stub macros and hopefully few prototypes,
11797 which can conflict with char $ac_func (); below.
11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 <limits.h> exists even on freestanding compilers. */
11802 # include <limits.h>
11804 # include <assert.h>
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11816 /* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
11819 #if defined __stub_$ac_func || defined __stub___$ac_func
11826 return $ac_func ();
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_link") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 eval "$as_ac_var=yes"
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 eval "$as_ac_var=no"
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11876 ac_res=`eval echo '${'$as_ac_var'}'`
11877 { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 if test `eval echo '${'$as_ac_var'}'` = yes; then
11880 cat >>confdefs.h <<_ACEOF
11881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11890 for ac_func in closedir opendir readdir
11892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define $ac_func innocuous_$ac_func
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char $ac_func (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11914 # include <limits.h>
11916 # include <assert.h>
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_$ac_func || defined __stub___$ac_func
11938 return $ac_func ();
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 eval "$as_ac_var=yes"
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 eval "$as_ac_var=no"
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11988 ac_res=`eval echo '${'$as_ac_var'}'`
11989 { echo "$as_me:$LINENO: result: $ac_res" >&5
11990 echo "${ECHO_T}$ac_res" >&6; }
11991 if test `eval echo '${'$as_ac_var'}'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12002 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12015 if test "$GCC" != "yes" && test "$ICC" != "yes"
12017 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12018 echo "$as_me: error: gcc|icc required but not found" >&2;}
12019 { (exit 1); exit 1; }; }
12022 if test "$GXX" != "yes" && test "$IXX" != "yes"
12024 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12025 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12026 { (exit 1); exit 1; }; }
12029 if test "$GCC" = "yes"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 #if !defined(__GNUC__) || __GNUC__ < 3
12033 #error Unsupported GCC version
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1 >conftest.err
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12077 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12078 { (exit 1); exit 1; }; }
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 if test -z "$llvm_cv_gnu_make_command"
12086 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12087 echo "$as_me: error: GNU Make required but not found" >&2;}
12088 { (exit 1); exit 1; }; }
12091 { echo "$as_me:$LINENO: result: ok" >&5
12092 echo "${ECHO_T}ok" >&6; }
12094 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12095 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12096 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12098 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12100 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12102 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12103 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12107 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12108 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12109 if test "${ac_cv_lib_m_sin+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 ac_check_lib_save_LIBS=$LIBS
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_try") 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170 ac_cv_lib_m_sin=yes
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12182 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12183 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12184 if test $ac_cv_lib_m_sin = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_LIBM 1
12193 if test "$llvm_cv_os_type" = "MingW" ; then
12195 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12196 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12197 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-limagehlp $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12218 rm -f conftest.$ac_objext conftest$ac_exeext
12219 if { (ac_try="$ac_link"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_link") 2>conftest.er1
12227 grep -v '^ *+' conftest.er1 >conftest.err
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12233 { (case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_try") 2>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_try") 2>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252 ac_cv_lib_imagehlp_main=yes
12254 echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12257 ac_cv_lib_imagehlp_main=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12265 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12266 if test $ac_cv_lib_imagehlp_main = yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_LIBIMAGEHLP 1
12271 LIBS="-limagehlp $LIBS"
12276 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12277 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12278 if test "${ac_cv_lib_psapi_main+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lpsapi $LIBS"
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (ac_try="$ac_link"
12301 case "(($ac_try" in
12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303 *) ac_try_echo=$ac_try;;
12305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12306 (eval "$ac_link") 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest$ac_exeext'
12324 { (case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_try") 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_cv_lib_psapi_main=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_lib_psapi_main=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12346 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12347 if test $ac_cv_lib_psapi_main = yes; then
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBPSAPI 1
12352 LIBS="-lpsapi $LIBS"
12358 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12359 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12360 if test "${ac_cv_search_dlopen+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_func_search_save_LIBS=$LIBS
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12386 for ac_lib in '' dl; do
12387 if test -z "$ac_lib"; then
12388 ac_res="none required"
12391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12393 rm -f conftest.$ac_objext conftest$ac_exeext
12394 if { (ac_try="$ac_link"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_link") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12408 { (case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_try") 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest$ac_exeext'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_search_dlopen=$ac_res
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12435 rm -f core conftest.err conftest.$ac_objext \
12437 if test "${ac_cv_search_dlopen+set}" = set; then
12441 if test "${ac_cv_search_dlopen+set}" = set; then
12444 ac_cv_search_dlopen=no
12446 rm conftest.$ac_ext
12447 LIBS=$ac_func_search_save_LIBS
12449 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12450 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12451 ac_res=$ac_cv_search_dlopen
12452 if test "$ac_res" != no; then
12453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_DLOPEN 1
12460 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12461 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12465 if test "$llvm_cv_enable_libffi" = "yes" ; then
12466 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12467 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12468 if test "${ac_cv_search_ffi_call+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 ac_func_search_save_LIBS=$LIBS
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12489 return ffi_call ();
12494 for ac_lib in '' ffi; do
12495 if test -z "$ac_lib"; then
12496 ac_res="none required"
12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12501 rm -f conftest.$ac_objext conftest$ac_exeext
12502 if { (ac_try="$ac_link"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_link") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12516 { (case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_try") 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; } &&
12525 { ac_try='test -s conftest$ac_exeext'
12526 { (case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_try") 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12535 ac_cv_search_ffi_call=$ac_res
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12543 rm -f core conftest.err conftest.$ac_objext \
12545 if test "${ac_cv_search_ffi_call+set}" = set; then
12549 if test "${ac_cv_search_ffi_call+set}" = set; then
12552 ac_cv_search_ffi_call=no
12554 rm conftest.$ac_ext
12555 LIBS=$ac_func_search_save_LIBS
12557 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12558 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12559 ac_res=$ac_cv_search_ffi_call
12560 if test "$ac_res" != no; then
12561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_FFI_CALL 1
12568 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12569 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12570 { (exit 1); exit 1; }; }
12575 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12576 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12577 if test "${ac_cv_search_mallinfo+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 ac_func_search_save_LIBS=$LIBS
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12598 return mallinfo ();
12603 for ac_lib in '' malloc; do
12604 if test -z "$ac_lib"; then
12605 ac_res="none required"
12608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625 { (case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_try") 2>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_search_mallinfo=$ac_res
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f core conftest.err conftest.$ac_objext \
12654 if test "${ac_cv_search_mallinfo+set}" = set; then
12658 if test "${ac_cv_search_mallinfo+set}" = set; then
12661 ac_cv_search_mallinfo=no
12663 rm conftest.$ac_ext
12664 LIBS=$ac_func_search_save_LIBS
12666 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12667 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12668 ac_res=$ac_cv_search_mallinfo
12669 if test "$ac_res" != no; then
12670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12672 cat >>confdefs.h <<\_ACEOF
12673 #define HAVE_MALLINFO 1
12679 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12681 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12682 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12683 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-lpthread $LIBS"
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12695 /* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12701 char pthread_mutex_init ();
12705 return pthread_mutex_init ();
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_lib_pthread_pthread_mutex_init=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_cv_lib_pthread_pthread_mutex_init=no
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12756 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12757 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12758 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_LIBPTHREAD 1
12763 LIBS="-lpthread $LIBS"
12767 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12768 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12769 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 ac_func_search_save_LIBS=$LIBS
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12786 char pthread_mutex_lock ();
12790 return pthread_mutex_lock ();
12795 for ac_lib in '' pthread; do
12796 if test -z "$ac_lib"; then
12797 ac_res="none required"
12800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_search_pthread_mutex_lock=$ac_res
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12844 rm -f core conftest.err conftest.$ac_objext \
12846 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12850 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12853 ac_cv_search_pthread_mutex_lock=no
12855 rm conftest.$ac_ext
12856 LIBS=$ac_func_search_save_LIBS
12858 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12859 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12860 ac_res=$ac_cv_search_pthread_mutex_lock
12861 if test "$ac_res" != no; then
12862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12864 cat >>confdefs.h <<\_ACEOF
12865 #define HAVE_PTHREAD_MUTEX_LOCK 1
12870 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12871 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12872 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_func_search_save_LIBS=$LIBS
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12889 char pthread_rwlock_init ();
12893 return pthread_rwlock_init ();
12898 for ac_lib in '' pthread; do
12899 if test -z "$ac_lib"; then
12900 ac_res="none required"
12903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (ac_try="$ac_link"
12907 case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_search_pthread_rwlock_init=$ac_res
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12947 rm -f core conftest.err conftest.$ac_objext \
12949 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12953 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12956 ac_cv_search_pthread_rwlock_init=no
12958 rm conftest.$ac_ext
12959 LIBS=$ac_func_search_save_LIBS
12961 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12962 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12963 ac_res=$ac_cv_search_pthread_rwlock_init
12964 if test "$ac_res" != no; then
12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12967 cat >>confdefs.h <<\_ACEOF
12968 #define HAVE_PTHREAD_RWLOCK_INIT 1
12973 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12974 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12975 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 ac_func_search_save_LIBS=$LIBS
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12992 char pthread_getspecific ();
12996 return pthread_getspecific ();
13001 for ac_lib in '' pthread; do
13002 if test -z "$ac_lib"; then
13003 ac_res="none required"
13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13008 rm -f conftest.$ac_objext conftest$ac_exeext
13009 if { (ac_try="$ac_link"
13010 case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_link") 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13023 { (case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_try") 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038 (eval "$ac_try") 2>&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; }; then
13042 ac_cv_search_pthread_getspecific=$ac_res
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13050 rm -f core conftest.err conftest.$ac_objext \
13052 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13056 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13059 ac_cv_search_pthread_getspecific=no
13061 rm conftest.$ac_ext
13062 LIBS=$ac_func_search_save_LIBS
13064 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13065 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13066 ac_res=$ac_cv_search_pthread_getspecific
13067 if test "$ac_res" != no; then
13068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13070 cat >>confdefs.h <<\_ACEOF
13071 #define HAVE_PTHREAD_GETSPECIFIC 1
13079 # Check whether --with-udis86 was given.
13080 if test "${with_udis86+set}" = set; then
13081 withval=$with_udis86;
13086 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13089 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13090 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13091 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-ludis86 $LIBS"
13096 cat >conftest.$ac_ext <<_ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13103 /* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_link") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133 { (case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_try") 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_lib_udis86_ud_init=yes
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_lib_udis86_ud_init=no
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13165 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13166 if test $ac_cv_lib_udis86_ud_init = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_LIBUDIS86 1
13171 LIBS="-ludis86 $LIBS"
13175 echo "Error! You need to have libudis86 around."
13187 cat >>confdefs.h <<_ACEOF
13188 #define USE_UDIS86 $USE_UDIS86
13193 # Check whether --with-oprofile was given.
13194 if test "${with_oprofile+set}" = set; then
13195 withval=$with_oprofile;
13199 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13200 no) llvm_cv_oppath=
13203 *) llvm_cv_oppath="${withval}/lib/oprofile"
13204 CPPFLAGS="-I${withval}/include";;
13206 if test -n "$llvm_cv_oppath" ; then
13207 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13208 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13209 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13210 if test "${ac_cv_search_bfd_init+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_func_search_save_LIBS=$LIBS
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13231 return bfd_init ();
13236 for ac_lib in '' bfd; do
13237 if test -z "$ac_lib"; then
13238 ac_res="none required"
13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13243 rm -f conftest.$ac_objext conftest$ac_exeext
13244 if { (ac_try="$ac_link"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_link") 2>conftest.er1
13252 grep -v '^ *+' conftest.er1 >conftest.err
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; } &&
13267 { ac_try='test -s conftest$ac_exeext'
13268 { (case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13273 (eval "$ac_try") 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 ac_cv_search_bfd_init=$ac_res
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13285 rm -f core conftest.err conftest.$ac_objext \
13287 if test "${ac_cv_search_bfd_init+set}" = set; then
13291 if test "${ac_cv_search_bfd_init+set}" = set; then
13294 ac_cv_search_bfd_init=no
13296 rm conftest.$ac_ext
13297 LIBS=$ac_func_search_save_LIBS
13299 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13300 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13301 ac_res=$ac_cv_search_bfd_init
13302 if test "$ac_res" != no; then
13303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13307 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13308 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13309 if test "${ac_cv_search_op_open_agent+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 ac_func_search_save_LIBS=$LIBS
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13326 char op_open_agent ();
13330 return op_open_agent ();
13335 for ac_lib in '' opagent; do
13336 if test -z "$ac_lib"; then
13337 ac_res="none required"
13340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13342 rm -f conftest.$ac_objext conftest$ac_exeext
13343 if { (ac_try="$ac_link"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1 >conftest.err
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13357 { (case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_try") 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest$ac_exeext'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_search_op_open_agent=$ac_res
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13384 rm -f core conftest.err conftest.$ac_objext \
13386 if test "${ac_cv_search_op_open_agent+set}" = set; then
13390 if test "${ac_cv_search_op_open_agent+set}" = set; then
13393 ac_cv_search_op_open_agent=no
13395 rm conftest.$ac_ext
13396 LIBS=$ac_func_search_save_LIBS
13398 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13399 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13400 ac_res=$ac_cv_search_op_open_agent
13401 if test "$ac_res" != no; then
13402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13406 echo "Error! You need to have libopagent around."
13411 if test "${ac_cv_header_opagent_h+set}" = set; then
13412 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13413 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13414 if test "${ac_cv_header_opagent_h+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13420 # Is the header compilable?
13421 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13422 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13430 #include <opagent.h>
13432 rm -f conftest.$ac_objext
13433 if { (ac_try="$ac_compile"
13434 case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_compile") 2>conftest.er1
13441 grep -v '^ *+' conftest.er1 >conftest.err
13443 cat conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_try") 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_header_compiler=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_header_compiler=no
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13476 echo "${ECHO_T}$ac_header_compiler" >&6; }
13478 # Is the header present?
13479 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13480 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 #include <opagent.h>
13489 if { (ac_try="$ac_cpp conftest.$ac_ext"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13497 grep -v '^ *+' conftest.er1 >conftest.err
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } >/dev/null; then
13502 if test -s conftest.err; then
13503 ac_cpp_err=$ac_c_preproc_warn_flag
13504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13511 if test -z "$ac_cpp_err"; then
13512 ac_header_preproc=yes
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_header_preproc=no
13520 rm -f conftest.err conftest.$ac_ext
13521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13522 echo "${ECHO_T}$ac_header_preproc" >&6; }
13524 # So? What about this header?
13525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13527 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13528 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13530 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13531 ac_header_preproc=yes
13534 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13535 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13536 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13537 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13539 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13541 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13543 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13545 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13547 ## ------------------------------ ##
13548 ## Report this to bugs@yourdomain ##
13549 ## ------------------------------ ##
13551 ) | sed "s/^/$as_me: WARNING: /" >&2
13554 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13555 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13556 if test "${ac_cv_header_opagent_h+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 ac_cv_header_opagent_h=$ac_header_preproc
13561 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13565 if test $ac_cv_header_opagent_h = yes; then
13569 echo "Error! You need to have opagent.h around."
13585 cat >>confdefs.h <<_ACEOF
13586 #define USE_OPROFILE $USE_OPROFILE
13596 ac_header_dirent=no
13597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13599 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 #include <sys/types.h>
13622 rm -f conftest.$ac_objext
13623 if { (ac_try="$ac_compile"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_compile") 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13637 { (case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_try") 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest.$ac_objext'
13647 { (case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_try") 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 eval "$as_ac_Header=yes"
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 eval "$as_ac_Header=no"
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 ac_res=`eval echo '${'$as_ac_Header'}'`
13667 { echo "$as_me:$LINENO: result: $ac_res" >&5
13668 echo "${ECHO_T}$ac_res" >&6; }
13669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13674 ac_header_dirent=$ac_hdr; break
13678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13679 if test $ac_header_dirent = dirent.h; then
13680 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13681 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13682 if test "${ac_cv_search_opendir+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 ac_func_search_save_LIBS=$LIBS
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13708 for ac_lib in '' dir; do
13709 if test -z "$ac_lib"; then
13710 ac_res="none required"
13713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (ac_try="$ac_link"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_search_opendir=$ac_res
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13757 rm -f core conftest.err conftest.$ac_objext \
13759 if test "${ac_cv_search_opendir+set}" = set; then
13763 if test "${ac_cv_search_opendir+set}" = set; then
13766 ac_cv_search_opendir=no
13768 rm conftest.$ac_ext
13769 LIBS=$ac_func_search_save_LIBS
13771 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13772 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13773 ac_res=$ac_cv_search_opendir
13774 if test "$ac_res" != no; then
13775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13782 if test "${ac_cv_search_opendir+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_func_search_save_LIBS=$LIBS
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13808 for ac_lib in '' x; do
13809 if test -z "$ac_lib"; then
13810 ac_res="none required"
13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest$ac_exeext'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_search_opendir=$ac_res
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13857 rm -f core conftest.err conftest.$ac_objext \
13859 if test "${ac_cv_search_opendir+set}" = set; then
13863 if test "${ac_cv_search_opendir+set}" = set; then
13866 ac_cv_search_opendir=no
13868 rm conftest.$ac_ext
13869 LIBS=$ac_func_search_save_LIBS
13871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13873 ac_res=$ac_cv_search_opendir
13874 if test "$ac_res" != no; then
13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13881 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13882 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13883 if test "${ac_cv_header_mmap_anon+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 ac_cpp='$CPP $CPPFLAGS'
13888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #include <sys/mman.h>
13899 #include <unistd.h>
13904 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1 >conftest.err
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13924 { (case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_try") 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_header_mmap_anon=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_cv_header_mmap_anon=no
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13961 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13962 if test "$ac_cv_header_mmap_anon" = yes; then
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_MMAP_ANONYMOUS 1
13970 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13971 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13972 if test "${ac_cv_header_stat_broken+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 #include <sys/types.h>
13982 #include <sys/stat.h>
13984 #if defined S_ISBLK && defined S_IFDIR
13985 # if S_ISBLK (S_IFDIR)
13990 #if defined S_ISBLK && defined S_IFCHR
13991 # if S_ISBLK (S_IFCHR)
13996 #if defined S_ISLNK && defined S_IFREG
13997 # if S_ISLNK (S_IFREG)
14002 #if defined S_ISSOCK && defined S_IFREG
14003 # if S_ISSOCK (S_IFREG)
14009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14010 $EGREP "You lose" >/dev/null 2>&1; then
14011 ac_cv_header_stat_broken=yes
14013 ac_cv_header_stat_broken=no
14018 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14019 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14020 if test $ac_cv_header_stat_broken = yes; then
14022 cat >>confdefs.h <<\_ACEOF
14023 #define STAT_MACROS_BROKEN 1
14028 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14029 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14030 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 cat >conftest.$ac_ext <<_ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h. */
14039 #include <sys/types.h>
14040 #include <sys/wait.h>
14041 #ifndef WEXITSTATUS
14042 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14045 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14053 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14058 rm -f conftest.$ac_objext
14059 if { (ac_try="$ac_compile"
14060 case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_header_sys_wait_h=yes
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_cv_header_sys_wait_h=no
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14103 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14104 if test $ac_cv_header_sys_wait_h = yes; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_SYS_WAIT_H 1
14112 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14113 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_time+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 #include <sys/types.h>
14124 #include <sys/time.h>
14130 if ((struct tm *) 0)
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1 >conftest.err
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151 { (case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_try") 2>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; } &&
14160 { ac_try='test -s conftest.$ac_objext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_header_time=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_cv_header_time=no
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14181 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14182 if test $ac_cv_header_time = yes; then
14184 cat >>confdefs.h <<\_ACEOF
14185 #define TIME_WITH_SYS_TIME 1
14197 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 ac_res=`eval echo '${'$as_ac_Header'}'`
14207 { echo "$as_me:$LINENO: result: $ac_res" >&5
14208 echo "${ECHO_T}$ac_res" >&6; }
14210 # Is the header compilable?
14211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14213 cat >conftest.$ac_ext <<_ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 $ac_includes_default
14220 #include <$ac_header>
14222 rm -f conftest.$ac_objext
14223 if { (ac_try="$ac_compile"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_compile") 2>conftest.er1
14231 grep -v '^ *+' conftest.er1 >conftest.err
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 ac_header_compiler=yes
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_header_compiler=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14266 echo "${ECHO_T}$ac_header_compiler" >&6; }
14268 # Is the header present?
14269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <$ac_header>
14279 if { (ac_try="$ac_cpp conftest.$ac_ext"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14287 grep -v '^ *+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } >/dev/null; then
14292 if test -s conftest.err; then
14293 ac_cpp_err=$ac_c_preproc_warn_flag
14294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14301 if test -z "$ac_cpp_err"; then
14302 ac_header_preproc=yes
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 ac_header_preproc=no
14310 rm -f conftest.err conftest.$ac_ext
14311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14312 echo "${ECHO_T}$ac_header_preproc" >&6; }
14314 # So? What about this header?
14315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14321 ac_header_preproc=yes
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14337 ## ------------------------------ ##
14338 ## Report this to bugs@yourdomain ##
14339 ## ------------------------------ ##
14341 ) | sed "s/^/$as_me: WARNING: /" >&2
14344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 ac_res=`eval echo '${'$as_ac_Header'}'`
14352 { echo "$as_me:$LINENO: result: $ac_res" >&5
14353 echo "${ECHO_T}$ac_res" >&6; }
14356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14371 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_res=`eval echo '${'$as_ac_Header'}'`
14381 { echo "$as_me:$LINENO: result: $ac_res" >&5
14382 echo "${ECHO_T}$ac_res" >&6; }
14384 # Is the header compilable?
14385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <$ac_header>
14396 rm -f conftest.$ac_objext
14397 if { (ac_try="$ac_compile"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_compile") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_header_compiler=yes
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14435 ac_header_compiler=no
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14440 echo "${ECHO_T}$ac_header_compiler" >&6; }
14442 # Is the header present?
14443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #include <$ac_header>
14453 if { (ac_try="$ac_cpp conftest.$ac_ext"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14461 grep -v '^ *+' conftest.er1 >conftest.err
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } >/dev/null; then
14466 if test -s conftest.err; then
14467 ac_cpp_err=$ac_c_preproc_warn_flag
14468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14475 if test -z "$ac_cpp_err"; then
14476 ac_header_preproc=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_preproc=no
14484 rm -f conftest.err conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14486 echo "${ECHO_T}$ac_header_preproc" >&6; }
14488 # So? What about this header?
14489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14495 ac_header_preproc=yes
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14511 ## ------------------------------ ##
14512 ## Report this to bugs@yourdomain ##
14513 ## ------------------------------ ##
14515 ) | sed "s/^/$as_me: WARNING: /" >&2
14518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 eval "$as_ac_Header=\$ac_header_preproc"
14525 ac_res=`eval echo '${'$as_ac_Header'}'`
14526 { echo "$as_me:$LINENO: result: $ac_res" >&5
14527 echo "${ECHO_T}$ac_res" >&6; }
14530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14541 for ac_header in utime.h windows.h
14543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 ac_res=`eval echo '${'$as_ac_Header'}'`
14551 { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14554 # Is the header compilable?
14555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 $ac_includes_default
14564 #include <$ac_header>
14566 rm -f conftest.$ac_objext
14567 if { (ac_try="$ac_compile"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_compile") 2>conftest.er1
14575 grep -v '^ *+' conftest.er1 >conftest.err
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; } &&
14590 { ac_try='test -s conftest.$ac_objext'
14591 { (case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_try") 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_header_compiler=yes
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_header_compiler=no
14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14610 echo "${ECHO_T}$ac_header_compiler" >&6; }
14612 # Is the header present?
14613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <$ac_header>
14623 if { (ac_try="$ac_cpp conftest.$ac_ext"
14624 case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } >/dev/null; then
14636 if test -s conftest.err; then
14637 ac_cpp_err=$ac_c_preproc_warn_flag
14638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14645 if test -z "$ac_cpp_err"; then
14646 ac_header_preproc=yes
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_header_preproc=no
14654 rm -f conftest.err conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658 # So? What about this header?
14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14665 ac_header_preproc=yes
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14681 ## ------------------------------ ##
14682 ## Report this to bugs@yourdomain ##
14683 ## ------------------------------ ##
14685 ) | sed "s/^/$as_me: WARNING: /" >&2
14688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 eval "$as_ac_Header=\$ac_header_preproc"
14695 ac_res=`eval echo '${'$as_ac_Header'}'`
14696 { echo "$as_me:$LINENO: result: $ac_res" >&5
14697 echo "${ECHO_T}$ac_res" >&6; }
14700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14714 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 ac_res=`eval echo '${'$as_ac_Header'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14727 # Is the header compilable?
14728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 $ac_includes_default
14737 #include <$ac_header>
14739 rm -f conftest.$ac_objext
14740 if { (ac_try="$ac_compile"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_compile") 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14754 { (case "(($ac_try" in
14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756 *) ac_try_echo=$ac_try;;
14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759 (eval "$ac_try") 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; } &&
14763 { ac_try='test -s conftest.$ac_objext'
14764 { (case "(($ac_try" in
14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_try") 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_header_compiler=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_compiler=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14783 echo "${ECHO_T}$ac_header_compiler" >&6; }
14785 # Is the header present?
14786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <$ac_header>
14796 if { (ac_try="$ac_cpp conftest.$ac_ext"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } >/dev/null; then
14809 if test -s conftest.err; then
14810 ac_cpp_err=$ac_c_preproc_warn_flag
14811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14818 if test -z "$ac_cpp_err"; then
14819 ac_header_preproc=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_preproc=no
14827 rm -f conftest.err conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14829 echo "${ECHO_T}$ac_header_preproc" >&6; }
14831 # So? What about this header?
14832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14838 ac_header_preproc=yes
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14854 ## ------------------------------ ##
14855 ## Report this to bugs@yourdomain ##
14856 ## ------------------------------ ##
14858 ) | sed "s/^/$as_me: WARNING: /" >&2
14861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 eval "$as_ac_Header=\$ac_header_preproc"
14868 ac_res=`eval echo '${'$as_ac_Header'}'`
14869 { echo "$as_me:$LINENO: result: $ac_res" >&5
14870 echo "${ECHO_T}$ac_res" >&6; }
14873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14874 cat >>confdefs.h <<_ACEOF
14875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14886 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_res=`eval echo '${'$as_ac_Header'}'`
14896 { echo "$as_me:$LINENO: result: $ac_res" >&5
14897 echo "${ECHO_T}$ac_res" >&6; }
14899 # Is the header compilable?
14900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 $ac_includes_default
14909 #include <$ac_header>
14911 rm -f conftest.$ac_objext
14912 if { (ac_try="$ac_compile"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_compile") 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14926 { (case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_try") 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_try") 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_header_compiler=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_compiler=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14955 echo "${ECHO_T}$ac_header_compiler" >&6; }
14957 # Is the header present?
14958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <$ac_header>
14968 if { (ac_try="$ac_cpp conftest.$ac_ext"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } >/dev/null; then
14981 if test -s conftest.err; then
14982 ac_cpp_err=$ac_c_preproc_warn_flag
14983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14990 if test -z "$ac_cpp_err"; then
14991 ac_header_preproc=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_preproc=no
14999 rm -f conftest.err conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15001 echo "${ECHO_T}$ac_header_preproc" >&6; }
15003 # So? What about this header?
15004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15010 ac_header_preproc=yes
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15026 ## ------------------------------ ##
15027 ## Report this to bugs@yourdomain ##
15028 ## ------------------------------ ##
15030 ) | sed "s/^/$as_me: WARNING: /" >&2
15033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 eval "$as_ac_Header=\$ac_header_preproc"
15040 ac_res=`eval echo '${'$as_ac_Header'}'`
15041 { echo "$as_me:$LINENO: result: $ac_res" >&5
15042 echo "${ECHO_T}$ac_res" >&6; }
15045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15055 for ac_header in valgrind/valgrind.h
15057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 ac_res=`eval echo '${'$as_ac_Header'}'`
15065 { echo "$as_me:$LINENO: result: $ac_res" >&5
15066 echo "${ECHO_T}$ac_res" >&6; }
15068 # Is the header compilable?
15069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 $ac_includes_default
15078 #include <$ac_header>
15080 rm -f conftest.$ac_objext
15081 if { (ac_try="$ac_compile"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_compile") 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest.$ac_objext'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_try") 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_header_compiler=yes
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 ac_header_compiler=no
15122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15124 echo "${ECHO_T}$ac_header_compiler" >&6; }
15126 # Is the header present?
15127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <$ac_header>
15137 if { (ac_try="$ac_cpp conftest.$ac_ext"
15138 case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } >/dev/null; then
15150 if test -s conftest.err; then
15151 ac_cpp_err=$ac_c_preproc_warn_flag
15152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15159 if test -z "$ac_cpp_err"; then
15160 ac_header_preproc=yes
15162 echo "$as_me: failed program was:" >&5
15163 sed 's/^/| /' conftest.$ac_ext >&5
15165 ac_header_preproc=no
15168 rm -f conftest.err conftest.$ac_ext
15169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15170 echo "${ECHO_T}$ac_header_preproc" >&6; }
15172 # So? What about this header?
15173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15179 ac_header_preproc=yes
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15195 ## ------------------------------ ##
15196 ## Report this to bugs@yourdomain ##
15197 ## ------------------------------ ##
15199 ) | sed "s/^/$as_me: WARNING: /" >&2
15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 eval "$as_ac_Header=\$ac_header_preproc"
15209 ac_res=`eval echo '${'$as_ac_Header'}'`
15210 { echo "$as_me:$LINENO: result: $ac_res" >&5
15211 echo "${ECHO_T}$ac_res" >&6; }
15214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15215 cat >>confdefs.h <<_ACEOF
15216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15224 for ac_header in fenv.h
15226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 ac_res=`eval echo '${'$as_ac_Header'}'`
15234 { echo "$as_me:$LINENO: result: $ac_res" >&5
15235 echo "${ECHO_T}$ac_res" >&6; }
15237 # Is the header compilable?
15238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15240 cat >conftest.$ac_ext <<_ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 $ac_includes_default
15247 #include <$ac_header>
15249 rm -f conftest.$ac_objext
15250 if { (ac_try="$ac_compile"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_compile") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 ac_header_compiler=yes
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 ac_header_compiler=no
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15293 echo "${ECHO_T}$ac_header_compiler" >&6; }
15295 # Is the header present?
15296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <$ac_header>
15306 if { (ac_try="$ac_cpp conftest.$ac_ext"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } >/dev/null; then
15319 if test -s conftest.err; then
15320 ac_cpp_err=$ac_c_preproc_warn_flag
15321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15328 if test -z "$ac_cpp_err"; then
15329 ac_header_preproc=yes
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_header_preproc=no
15337 rm -f conftest.err conftest.$ac_ext
15338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15339 echo "${ECHO_T}$ac_header_preproc" >&6; }
15341 # So? What about this header?
15342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15348 ac_header_preproc=yes
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15364 ## ------------------------------ ##
15365 ## Report this to bugs@yourdomain ##
15366 ## ------------------------------ ##
15368 ) | sed "s/^/$as_me: WARNING: /" >&2
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 eval "$as_ac_Header=\$ac_header_preproc"
15378 ac_res=`eval echo '${'$as_ac_Header'}'`
15379 { echo "$as_me:$LINENO: result: $ac_res" >&5
15380 echo "${ECHO_T}$ac_res" >&6; }
15383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15384 cat >>confdefs.h <<_ACEOF
15385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15392 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15394 for ac_header in pthread.h
15396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 ac_res=`eval echo '${'$as_ac_Header'}'`
15404 { echo "$as_me:$LINENO: result: $ac_res" >&5
15405 echo "${ECHO_T}$ac_res" >&6; }
15407 # Is the header compilable?
15408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15410 cat >conftest.$ac_ext <<_ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 $ac_includes_default
15417 #include <$ac_header>
15419 rm -f conftest.$ac_objext
15420 if { (ac_try="$ac_compile"
15421 case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_compile") 2>conftest.er1
15428 grep -v '^ *+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_try") 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 ac_header_compiler=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_header_compiler=no
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15463 echo "${ECHO_T}$ac_header_compiler" >&6; }
15465 # Is the header present?
15466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <$ac_header>
15476 if { (ac_try="$ac_cpp conftest.$ac_ext"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15484 grep -v '^ *+' conftest.er1 >conftest.err
15486 cat conftest.err >&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } >/dev/null; then
15489 if test -s conftest.err; then
15490 ac_cpp_err=$ac_c_preproc_warn_flag
15491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15498 if test -z "$ac_cpp_err"; then
15499 ac_header_preproc=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_preproc=no
15507 rm -f conftest.err conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6; }
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15534 ## ------------------------------ ##
15535 ## Report this to bugs@yourdomain ##
15536 ## ------------------------------ ##
15538 ) | sed "s/^/$as_me: WARNING: /" >&2
15541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 eval "$as_ac_Header=\$ac_header_preproc"
15548 ac_res=`eval echo '${'$as_ac_Header'}'`
15549 { echo "$as_me:$LINENO: result: $ac_res" >&5
15550 echo "${ECHO_T}$ac_res" >&6; }
15553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15571 if test "$llvm_cv_enable_libffi" = "yes" ; then
15574 for ac_header in ffi.h ffi/ffi.h
15576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 ac_res=`eval echo '${'$as_ac_Header'}'`
15584 { echo "$as_me:$LINENO: result: $ac_res" >&5
15585 echo "${ECHO_T}$ac_res" >&6; }
15587 # Is the header compilable?
15588 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 $ac_includes_default
15597 #include <$ac_header>
15599 rm -f conftest.$ac_objext
15600 if { (ac_try="$ac_compile"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_compile") 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15614 { (case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_try") 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_try") 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_header_compiler=yes
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 ac_header_compiler=no
15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15643 echo "${ECHO_T}$ac_header_compiler" >&6; }
15645 # Is the header present?
15646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <$ac_header>
15656 if { (ac_try="$ac_cpp conftest.$ac_ext"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } >/dev/null; then
15669 if test -s conftest.err; then
15670 ac_cpp_err=$ac_c_preproc_warn_flag
15671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15678 if test -z "$ac_cpp_err"; then
15679 ac_header_preproc=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_preproc=no
15687 rm -f conftest.err conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15689 echo "${ECHO_T}$ac_header_preproc" >&6; }
15691 # So? What about this header?
15692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15698 ac_header_preproc=yes
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15714 ## ------------------------------ ##
15715 ## Report this to bugs@yourdomain ##
15716 ## ------------------------------ ##
15718 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
15728 ac_res=`eval echo '${'$as_ac_Header'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15734 cat >>confdefs.h <<_ACEOF
15735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15745 for ac_header in CrashReporterClient.h
15747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 ac_res=`eval echo '${'$as_ac_Header'}'`
15755 { echo "$as_me:$LINENO: result: $ac_res" >&5
15756 echo "${ECHO_T}$ac_res" >&6; }
15758 # Is the header compilable?
15759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 #include <$ac_header>
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_compile") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15785 { (case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_try") 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_try") 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <$ac_header>
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null; then
15840 if test -s conftest.err; then
15841 ac_cpp_err=$ac_c_preproc_warn_flag
15842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15849 if test -z "$ac_cpp_err"; then
15850 ac_header_preproc=yes
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_preproc=no
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15885 ## ------------------------------ ##
15886 ## Report this to bugs@yourdomain ##
15887 ## ------------------------------ ##
15889 ) | sed "s/^/$as_me: WARNING: /" >&2
15892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 eval "$as_ac_Header=\$ac_header_preproc"
15899 ac_res=`eval echo '${'$as_ac_Header'}'`
15900 { echo "$as_me:$LINENO: result: $ac_res" >&5
15901 echo "${ECHO_T}$ac_res" >&6; }
15904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15914 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15915 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 extern const char *__crashreporter_info__;
15924 __crashreporter_info__ = "test";
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15944 { (case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_try") 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_try") 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 { echo "$as_me:$LINENO: result: yes" >&5
15964 echo "${ECHO_T}yes" >&6; }
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE_CRASHREPORTER_INFO 1
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 { echo "$as_me:$LINENO: result: no" >&5
15975 echo "${ECHO_T}no" >&6; }
15977 cat >>confdefs.h <<\_ACEOF
15978 #define HAVE_CRASHREPORTER_INFO 0
15983 rm -f core conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15990 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15991 if test "${ac_cv_huge_val_sanity+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 ac_cpp='$CXXCPP $CPPFLAGS'
15997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16001 ac_save_CXXFLAGS=$CXXFLAGS
16002 CXXFLAGS="$CXXFLAGS -pedantic"
16003 if test "$cross_compiling" = yes; then
16004 ac_cv_huge_val_sanity=yes
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16016 double x = HUGE_VAL; return x != x;
16021 rm -f conftest$ac_exeext
16022 if { (ac_try="$ac_link"
16023 case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_link") 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_cv_huge_val_sanity=yes
16043 echo "$as_me: program exited with status $ac_status" >&5
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ( exit $ac_status )
16048 ac_cv_huge_val_sanity=no
16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16054 CXXFLAGS=$ac_save_CXXFLAGS
16056 ac_cpp='$CPP $CPPFLAGS'
16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16063 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16064 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16068 { echo "$as_me:$LINENO: checking for pid_t" >&5
16069 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16070 if test "${ac_cv_type_pid_t+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16080 typedef pid_t ac__type_new_;
16084 if ((ac__type_new_ *) 0)
16086 if (sizeof (ac__type_new_))
16092 rm -f conftest.$ac_objext
16093 if { (ac_try="$ac_compile"
16094 case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_compile") 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; } &&
16116 { ac_try='test -s conftest.$ac_objext'
16117 { (case "(($ac_try" in
16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119 *) ac_try_echo=$ac_try;;
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122 (eval "$ac_try") 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_type_pid_t=yes
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_type_pid_t=no
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16137 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16138 if test $ac_cv_type_pid_t = yes; then
16142 cat >>confdefs.h <<_ACEOF
16148 { echo "$as_me:$LINENO: checking for size_t" >&5
16149 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16150 if test "${ac_cv_type_size_t+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 cat >conftest.$ac_ext <<_ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $ac_includes_default
16160 typedef size_t ac__type_new_;
16164 if ((ac__type_new_ *) 0)
16166 if (sizeof (ac__type_new_))
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_type_size_t=yes
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_cv_type_size_t=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16218 if test $ac_cv_type_size_t = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define size_t unsigned int
16229 cat >>confdefs.h <<_ACEOF
16230 #define RETSIGTYPE void
16233 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16234 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16235 if test "${ac_cv_struct_tm+set}" = set; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 cat >conftest.$ac_ext <<_ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 #include <sys/types.h>
16250 struct tm *tp; tp->tm_sec;
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16270 { (case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_try") 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_cv_struct_tm=time.h
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16294 ac_cv_struct_tm=sys/time.h
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16300 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16301 if test $ac_cv_struct_tm = sys/time.h; then
16303 cat >>confdefs.h <<\_ACEOF
16304 #define TM_IN_SYS_TIME 1
16309 { echo "$as_me:$LINENO: checking for int64_t" >&5
16310 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16311 if test "${ac_cv_type_int64_t+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 cat >conftest.$ac_ext <<_ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16320 $ac_includes_default
16321 typedef int64_t ac__type_new_;
16325 if ((ac__type_new_ *) 0)
16327 if (sizeof (ac__type_new_))
16333 rm -f conftest.$ac_objext
16334 if { (ac_try="$ac_compile"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_compile") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
16347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16348 { (case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_try") 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_cv_type_int64_t=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_cv_type_int64_t=no
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16378 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16379 if test $ac_cv_type_int64_t = yes; then
16381 cat >>confdefs.h <<_ACEOF
16382 #define HAVE_INT64_T 1
16387 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16388 echo "$as_me: error: Type int64_t required but not found" >&2;}
16389 { (exit 1); exit 1; }; }
16392 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16393 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16394 if test "${ac_cv_type_uint64_t+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16404 typedef uint64_t ac__type_new_;
16408 if ((ac__type_new_ *) 0)
16410 if (sizeof (ac__type_new_))
16416 rm -f conftest.$ac_objext
16417 if { (ac_try="$ac_compile"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_compile") 2>conftest.er1
16425 grep -v '^ *+' conftest.er1 >conftest.err
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16431 { (case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_try") 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_try") 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_type_uint64_t=yes
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_cv_type_uint64_t=no
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16461 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16462 if test $ac_cv_type_uint64_t = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define HAVE_UINT64_T 1
16470 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16471 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16472 if test "${ac_cv_type_u_int64_t+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 $ac_includes_default
16482 typedef u_int64_t ac__type_new_;
16486 if ((ac__type_new_ *) 0)
16488 if (sizeof (ac__type_new_))
16494 rm -f conftest.$ac_objext
16495 if { (ac_try="$ac_compile"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_compile") 2>conftest.er1
16503 grep -v '^ *+' conftest.er1 >conftest.err
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_type_u_int64_t=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_cv_type_u_int64_t=no
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16539 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16540 if test $ac_cv_type_u_int64_t = yes; then
16542 cat >>confdefs.h <<_ACEOF
16543 #define HAVE_U_INT64_T 1
16548 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16549 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16550 { (exit 1); exit 1; }; }
16564 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16580 #define $ac_func innocuous_$ac_func
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func (); below.
16584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16585 <limits.h> exists even on freestanding compilers. */
16588 # include <limits.h>
16590 # include <assert.h>
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16602 /* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605 #if defined __stub_$ac_func || defined __stub___$ac_func
16612 return $ac_func ();
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_link") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest$ac_exeext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 eval "$as_ac_var=yes"
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 eval "$as_ac_var=no"
16659 rm -f core conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16662 ac_res=`eval echo '${'$as_ac_var'}'`
16663 { echo "$as_me:$LINENO: result: $ac_res" >&5
16664 echo "${ECHO_T}$ac_res" >&6; }
16665 if test `eval echo '${'$as_ac_var'}'` = yes; then
16666 cat >>confdefs.h <<_ACEOF
16667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677 for ac_func in powf fmodf strtof round
16679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 cat >conftest.$ac_ext <<_ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16693 #define $ac_func innocuous_$ac_func
16695 /* System header to define __stub macros and hopefully few prototypes,
16696 which can conflict with char $ac_func (); below.
16697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698 <limits.h> exists even on freestanding compilers. */
16701 # include <limits.h>
16703 # include <assert.h>
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined __stub_$ac_func || defined __stub___$ac_func
16725 return $ac_func ();
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (ac_try="$ac_link"
16732 case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_link") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745 { (case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_try") 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 eval "$as_ac_var=yes"
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 eval "$as_ac_var=no"
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16775 ac_res=`eval echo '${'$as_ac_var'}'`
16776 { echo "$as_me:$LINENO: result: $ac_res" >&5
16777 echo "${ECHO_T}$ac_res" >&6; }
16778 if test `eval echo '${'$as_ac_var'}'` = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16791 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16807 #define $ac_func innocuous_$ac_func
16809 /* System header to define __stub macros and hopefully few prototypes,
16810 which can conflict with char $ac_func (); below.
16811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16812 <limits.h> exists even on freestanding compilers. */
16815 # include <limits.h>
16817 # include <assert.h>
16822 /* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16829 /* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
16832 #if defined __stub_$ac_func || defined __stub___$ac_func
16839 return $ac_func ();
16844 rm -f conftest.$ac_objext conftest$ac_exeext
16845 if { (ac_try="$ac_link"
16846 case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_link") 2>conftest.er1
16853 grep -v '^ *+' conftest.er1 >conftest.err
16855 cat conftest.err >&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; } &&
16868 { ac_try='test -s conftest$ac_exeext'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 eval "$as_ac_var=yes"
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 eval "$as_ac_var=no"
16886 rm -f core conftest.err conftest.$ac_objext \
16887 conftest$ac_exeext conftest.$ac_ext
16889 ac_res=`eval echo '${'$as_ac_var'}'`
16890 { echo "$as_me:$LINENO: result: $ac_res" >&5
16891 echo "${ECHO_T}$ac_res" >&6; }
16892 if test `eval echo '${'$as_ac_var'}'` = yes; then
16893 cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16903 for ac_func in isatty mkdtemp mkstemp
16905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.$ac_ext <<_ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16919 #define $ac_func innocuous_$ac_func
16921 /* System header to define __stub macros and hopefully few prototypes,
16922 which can conflict with char $ac_func (); below.
16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16924 <limits.h> exists even on freestanding compilers. */
16927 # include <limits.h>
16929 # include <assert.h>
16934 /* Override any GCC internal prototype to avoid an error.
16935 Use char because int might match the return type of a GCC
16936 builtin and then its argument prototype would still apply. */
16941 /* The GNU C library defines this for functions which it implements
16942 to always fail with ENOSYS. Some functions are actually named
16943 something starting with __ and the normal name is an alias. */
16944 #if defined __stub_$ac_func || defined __stub___$ac_func
16951 return $ac_func ();
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_link") 2>conftest.er1
16965 grep -v '^ *+' conftest.er1 >conftest.err
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971 { (case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_try") 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; } &&
16980 { ac_try='test -s conftest$ac_exeext'
16981 { (case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_try") 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 eval "$as_ac_var=yes"
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 eval "$as_ac_var=no"
16998 rm -f core conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17001 ac_res=`eval echo '${'$as_ac_var'}'`
17002 { echo "$as_me:$LINENO: result: $ac_res" >&5
17003 echo "${ECHO_T}$ac_res" >&6; }
17004 if test `eval echo '${'$as_ac_var'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17018 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 cat >conftest.$ac_ext <<_ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17034 #define $ac_func innocuous_$ac_func
17036 /* System header to define __stub macros and hopefully few prototypes,
17037 which can conflict with char $ac_func (); below.
17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17039 <limits.h> exists even on freestanding compilers. */
17042 # include <limits.h>
17044 # include <assert.h>
17049 /* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined __stub_$ac_func || defined __stub___$ac_func
17066 return $ac_func ();
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (ac_try="$ac_link"
17073 case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 eval "$as_ac_var=yes"
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 eval "$as_ac_var=no"
17113 rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17116 ac_res=`eval echo '${'$as_ac_var'}'`
17117 { echo "$as_me:$LINENO: result: $ac_res" >&5
17118 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_var'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17130 for ac_func in strerror strerror_r setenv
17132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17146 #define $ac_func innocuous_$ac_func
17148 /* System header to define __stub macros and hopefully few prototypes,
17149 which can conflict with char $ac_func (); below.
17150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17151 <limits.h> exists even on freestanding compilers. */
17154 # include <limits.h>
17156 # include <assert.h>
17161 /* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
17168 /* The GNU C library defines this for functions which it implements
17169 to always fail with ENOSYS. Some functions are actually named
17170 something starting with __ and the normal name is an alias. */
17171 #if defined __stub_$ac_func || defined __stub___$ac_func
17178 return $ac_func ();
17183 rm -f conftest.$ac_objext conftest$ac_exeext
17184 if { (ac_try="$ac_link"
17185 case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_link") 2>conftest.er1
17192 grep -v '^ *+' conftest.er1 >conftest.err
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17198 { (case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_try") 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest$ac_exeext'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_try") 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 eval "$as_ac_var=yes"
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 eval "$as_ac_var=no"
17225 rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17228 ac_res=`eval echo '${'$as_ac_var'}'`
17229 { echo "$as_me:$LINENO: result: $ac_res" >&5
17230 echo "${ECHO_T}$ac_res" >&6; }
17231 if test `eval echo '${'$as_ac_var'}'` = yes; then
17232 cat >>confdefs.h <<_ACEOF
17233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17243 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17259 #define $ac_func innocuous_$ac_func
17261 /* System header to define __stub macros and hopefully few prototypes,
17262 which can conflict with char $ac_func (); below.
17263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17264 <limits.h> exists even on freestanding compilers. */
17267 # include <limits.h>
17269 # include <assert.h>
17274 /* Override any GCC internal prototype to avoid an error.
17275 Use char because int might match the return type of a GCC
17276 builtin and then its argument prototype would still apply. */
17281 /* The GNU C library defines this for functions which it implements
17282 to always fail with ENOSYS. Some functions are actually named
17283 something starting with __ and the normal name is an alias. */
17284 #if defined __stub_$ac_func || defined __stub___$ac_func
17291 return $ac_func ();
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (ac_try="$ac_link"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_link") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 eval "$as_ac_var=yes"
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 eval "$as_ac_var=no"
17338 rm -f core conftest.err conftest.$ac_objext \
17339 conftest$ac_exeext conftest.$ac_ext
17341 ac_res=`eval echo '${'$as_ac_var'}'`
17342 { echo "$as_me:$LINENO: result: $ac_res" >&5
17343 echo "${ECHO_T}$ac_res" >&6; }
17344 if test `eval echo '${'$as_ac_var'}'` = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17357 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define $ac_func innocuous_$ac_func
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char $ac_func (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17381 # include <limits.h>
17383 # include <assert.h>
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17395 /* The GNU C library defines this for functions which it implements
17396 to always fail with ENOSYS. Some functions are actually named
17397 something starting with __ and the normal name is an alias. */
17398 #if defined __stub_$ac_func || defined __stub___$ac_func
17405 return $ac_func ();
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17425 { (case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_try") 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 eval "$as_ac_var=yes"
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 eval "$as_ac_var=no"
17452 rm -f core conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
17455 ac_res=`eval echo '${'$as_ac_var'}'`
17456 { echo "$as_me:$LINENO: result: $ac_res" >&5
17457 echo "${ECHO_T}$ac_res" >&6; }
17458 if test `eval echo '${'$as_ac_var'}'` = yes; then
17459 cat >>confdefs.h <<_ACEOF
17460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17467 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17468 if test "${llvm_cv_c_printf_a+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 ac_cpp='$CPP $CPPFLAGS'
17473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17477 if test "$cross_compiling" = yes; then
17478 llvmac_cv_c_printf_a=no
17480 cat >conftest.$ac_ext <<_ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17489 #include <stdlib.h>
17495 volatile double A, B;
17499 sprintf(Buffer, "%a", A);
17503 if (A != 0x1.999999999999ap-4)
17510 rm -f conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 llvm_cv_c_printf_a=yes
17532 echo "$as_me: program exited with status $ac_status" >&5
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 ( exit $ac_status )
17537 llvmac_cv_c_printf_a=no
17539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17544 ac_cpp='$CPP $CPPFLAGS'
17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17550 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17551 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17552 if test "$llvm_cv_c_printf_a" = "yes"; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_PRINTF_A 1
17561 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17562 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17563 if test "${ac_cv_func_rand48+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_cpp='$CXXCPP $CPPFLAGS'
17568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 #include <stdlib.h>
17582 srand48(0);lrand48();drand48();
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_compile") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17602 { (case "(($ac_try" in
17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604 *) ac_try_echo=$ac_try;;
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607 (eval "$ac_try") 2>&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_try") 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_cv_func_rand48=yes
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_cv_func_rand48=no
17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 ac_cpp='$CPP $CPPFLAGS'
17632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17637 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17638 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17640 if test "$ac_cv_func_rand48" = "yes" ; then
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_RAND48 1
17649 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17650 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17651 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 $ac_includes_default
17665 char *p = (char *) strerror_s;
17673 rm -f conftest.$ac_objext
17674 if { (ac_try="$ac_compile"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_compile") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17688 { (case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_try") 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_have_decl_strerror_s=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_cv_have_decl_strerror_s=no
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17718 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17719 if test $ac_cv_have_decl_strerror_s = yes; then
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_DECL_STRERROR_S 1
17727 cat >>confdefs.h <<_ACEOF
17728 #define HAVE_DECL_STRERROR_S 0
17736 if test "$llvm_cv_os_type" = "MingW" ; then
17737 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17738 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17739 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 ac_check_lib_save_LIBS=$LIBS
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17766 rm -f conftest.$ac_objext conftest$ac_exeext
17767 if { (ac_try="$ac_link"
17768 case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_link") 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest$ac_exeext'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_cv_lib_gcc__alloca=yes
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_cv_lib_gcc__alloca=no
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17812 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17813 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17814 if test $ac_cv_lib_gcc__alloca = yes; then
17816 cat >>confdefs.h <<\_ACEOF
17817 #define HAVE__ALLOCA 1
17822 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17823 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17824 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 ac_check_lib_save_LIBS=$LIBS
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17836 /* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17846 return __alloca ();
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_link") 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest$ac_exeext'
17876 { (case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881 (eval "$ac_try") 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; }; then
17885 ac_cv_lib_gcc___alloca=yes
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 ac_cv_lib_gcc___alloca=no
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895 LIBS=$ac_check_lib_save_LIBS
17897 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17898 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17899 if test $ac_cv_lib_gcc___alloca = yes; then
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE___ALLOCA 1
17907 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17908 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17909 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 ac_check_lib_save_LIBS=$LIBS
17914 cat >conftest.$ac_ext <<_ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17931 return __chkstk ();
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_link") 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest$ac_exeext'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_lib_gcc___chkstk=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_cv_lib_gcc___chkstk=no
17978 rm -f core conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext conftest.$ac_ext
17980 LIBS=$ac_check_lib_save_LIBS
17982 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17983 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17984 if test $ac_cv_lib_gcc___chkstk = yes; then
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE___CHKSTK 1
17992 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17993 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17994 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 ac_check_lib_save_LIBS=$LIBS
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18006 /* Override any GCC internal prototype to avoid an error.
18007 Use char because int might match the return type of a GCC
18008 builtin and then its argument prototype would still apply. */
18016 return ___chkstk ();
18021 rm -f conftest.$ac_objext conftest$ac_exeext
18022 if { (ac_try="$ac_link"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_link") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } &&
18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest$ac_exeext'
18046 { (case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_try") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_lib_gcc____chkstk=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_lib_gcc____chkstk=no
18063 rm -f core conftest.err conftest.$ac_objext \
18064 conftest$ac_exeext conftest.$ac_ext
18065 LIBS=$ac_check_lib_save_LIBS
18067 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18068 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18069 if test $ac_cv_lib_gcc____chkstk = yes; then
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE____CHKSTK 1
18078 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18079 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18080 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 ac_check_lib_save_LIBS=$LIBS
18085 cat >conftest.$ac_ext <<_ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h. */
18092 /* Override any GCC internal prototype to avoid an error.
18093 Use char because int might match the return type of a GCC
18094 builtin and then its argument prototype would still apply. */
18102 return __ashldi3 ();
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_link") 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest$ac_exeext'
18132 { (case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_try") 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 ac_cv_lib_gcc___ashldi3=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_cv_lib_gcc___ashldi3=no
18149 rm -f core conftest.err conftest.$ac_objext \
18150 conftest$ac_exeext conftest.$ac_ext
18151 LIBS=$ac_check_lib_save_LIBS
18153 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18154 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18155 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18157 cat >>confdefs.h <<\_ACEOF
18158 #define HAVE___ASHLDI3 1
18163 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18164 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18165 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 ac_check_lib_save_LIBS=$LIBS
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18177 /* Override any GCC internal prototype to avoid an error.
18178 Use char because int might match the return type of a GCC
18179 builtin and then its argument prototype would still apply. */
18187 return __ashrdi3 ();
18192 rm -f conftest.$ac_objext conftest$ac_exeext
18193 if { (ac_try="$ac_link"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_link") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
18217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226 ac_cv_lib_gcc___ashrdi3=yes
18228 echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.$ac_ext >&5
18231 ac_cv_lib_gcc___ashrdi3=no
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18238 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18239 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18240 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18242 cat >>confdefs.h <<\_ACEOF
18243 #define HAVE___ASHRDI3 1
18248 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18249 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18250 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 ac_check_lib_save_LIBS=$LIBS
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18272 return __divdi3 ();
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (ac_try="$ac_link"
18279 case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18284 (eval "$ac_link") 2>conftest.er1
18286 grep -v '^ *+' conftest.er1 >conftest.err
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18292 { (case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297 (eval "$ac_try") 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest$ac_exeext'
18302 { (case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_try") 2>&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311 ac_cv_lib_gcc___divdi3=yes
18313 echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_cv_lib_gcc___divdi3=no
18319 rm -f core conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18324 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18325 if test $ac_cv_lib_gcc___divdi3 = yes; then
18327 cat >>confdefs.h <<\_ACEOF
18328 #define HAVE___DIVDI3 1
18333 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18334 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 ac_check_lib_save_LIBS=$LIBS
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 /* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18357 return __fixdfdi ();
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 ac_cv_lib_gcc___fixdfdi=yes
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18401 ac_cv_lib_gcc___fixdfdi=no
18404 rm -f core conftest.err conftest.$ac_objext \
18405 conftest$ac_exeext conftest.$ac_ext
18406 LIBS=$ac_check_lib_save_LIBS
18408 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18409 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18410 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18412 cat >>confdefs.h <<\_ACEOF
18413 #define HAVE___FIXDFDI 1
18418 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18419 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18420 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 ac_check_lib_save_LIBS=$LIBS
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18432 /* Override any GCC internal prototype to avoid an error.
18433 Use char because int might match the return type of a GCC
18434 builtin and then its argument prototype would still apply. */
18442 return __fixsfdi ();
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (ac_try="$ac_link"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_cv_lib_gcc___fixsfdi=yes
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 ac_cv_lib_gcc___fixsfdi=no
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18491 LIBS=$ac_check_lib_save_LIBS
18493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18494 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18495 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18497 cat >>confdefs.h <<\_ACEOF
18498 #define HAVE___FIXSFDI 1
18503 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18504 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18505 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 ac_check_lib_save_LIBS=$LIBS
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18523 char __floatdidf ();
18527 return __floatdidf ();
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (ac_try="$ac_link"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_link") 2>conftest.er1
18541 grep -v '^ *+' conftest.er1 >conftest.err
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
18546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; } &&
18556 { ac_try='test -s conftest$ac_exeext'
18557 { (case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_try") 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 ac_cv_lib_gcc___floatdidf=yes
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 ac_cv_lib_gcc___floatdidf=no
18574 rm -f core conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18579 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18580 if test $ac_cv_lib_gcc___floatdidf = yes; then
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE___FLOATDIDF 1
18588 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18589 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18590 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 ac_check_lib_save_LIBS=$LIBS
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18612 return __lshrdi3 ();
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_link") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest$ac_exeext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_lib_gcc___lshrdi3=yes
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 ac_cv_lib_gcc___lshrdi3=no
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 LIBS=$ac_check_lib_save_LIBS
18663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18664 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18665 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18667 cat >>confdefs.h <<\_ACEOF
18668 #define HAVE___LSHRDI3 1
18673 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18674 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18675 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 ac_check_lib_save_LIBS=$LIBS
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18687 /* Override any GCC internal prototype to avoid an error.
18688 Use char because int might match the return type of a GCC
18689 builtin and then its argument prototype would still apply. */
18697 return __moddi3 ();
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_link") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest$ac_exeext'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_cv_lib_gcc___moddi3=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_cv_lib_gcc___moddi3=no
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
18746 LIBS=$ac_check_lib_save_LIBS
18748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18749 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18750 if test $ac_cv_lib_gcc___moddi3 = yes; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE___MODDI3 1
18758 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18759 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18760 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 ac_check_lib_save_LIBS=$LIBS
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18772 /* Override any GCC internal prototype to avoid an error.
18773 Use char because int might match the return type of a GCC
18774 builtin and then its argument prototype would still apply. */
18782 return __udivdi3 ();
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (ac_try="$ac_link"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_link") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest$ac_exeext'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_lib_gcc___udivdi3=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_cv_lib_gcc___udivdi3=no
18829 rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
18831 LIBS=$ac_check_lib_save_LIBS
18833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18834 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18835 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18837 cat >>confdefs.h <<\_ACEOF
18838 #define HAVE___UDIVDI3 1
18843 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18844 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18845 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_check_lib_save_LIBS=$LIBS
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 /* Override any GCC internal prototype to avoid an error.
18858 Use char because int might match the return type of a GCC
18859 builtin and then its argument prototype would still apply. */
18867 return __umoddi3 ();
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_link") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18887 { (case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_try") 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; } &&
18896 { ac_try='test -s conftest$ac_exeext'
18897 { (case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_try") 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_lib_gcc___umoddi3=yes
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_cv_lib_gcc___umoddi3=no
18914 rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 LIBS=$ac_check_lib_save_LIBS
18918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18919 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18920 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE___UMODDI3 1
18929 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18930 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18931 if test "${ac_cv_lib_gcc___main+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 ac_check_lib_save_LIBS=$LIBS
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18943 /* Override any GCC internal prototype to avoid an error.
18944 Use char because int might match the return type of a GCC
18945 builtin and then its argument prototype would still apply. */
18958 rm -f conftest.$ac_objext conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_link") 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; } &&
18982 { ac_try='test -s conftest$ac_exeext'
18983 { (case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_try") 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 ac_cv_lib_gcc___main=yes
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_cv_lib_gcc___main=no
19000 rm -f core conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19004 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19005 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19006 if test $ac_cv_lib_gcc___main = yes; then
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE___MAIN 1
19014 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19015 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19016 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 ac_check_lib_save_LIBS=$LIBS
19021 cat >conftest.$ac_ext <<_ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19038 return __cmpdi2 ();
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_link") 2>conftest.er1
19052 grep -v '^ *+' conftest.er1 >conftest.err
19054 cat conftest.err >&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); } &&
19057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try='test -s conftest$ac_exeext'
19068 { (case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_try") 2>&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_lib_gcc___cmpdi2=yes
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19082 ac_cv_lib_gcc___cmpdi2=no
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087 LIBS=$ac_check_lib_save_LIBS
19089 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19090 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19091 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19093 cat >>confdefs.h <<\_ACEOF
19094 #define HAVE___CMPDI2 1
19101 if test "$llvm_cv_os_type" = "MingW" ; then
19102 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19103 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19104 cat >conftest.$ac_ext <<_ACEOF
19105 #include <windows.h>
19106 #include <imagehlp.h>
19107 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19108 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19110 rm -f conftest.$ac_objext
19111 if { (ac_try="$ac_compile"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_compile") 2>conftest.er1
19119 grep -v '^ *+' conftest.er1 >conftest.err
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19125 { (case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_try") 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19145 { echo "$as_me:$LINENO: result: yes" >&5
19146 echo "${ECHO_T}yes" >&6; }
19147 llvm_cv_win32_elmcb_pcstr="PCSTR"
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19154 { echo "$as_me:$LINENO: result: no" >&5
19155 echo "${ECHO_T}no" >&6; }
19156 llvm_cv_win32_elmcb_pcstr="PSTR"
19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162 cat >>confdefs.h <<_ACEOF
19163 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19169 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19170 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19171 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 ac_cpp='$CXXCPP $CPPFLAGS'
19176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19195 rm -f conftest.$ac_objext
19196 if { (ac_try="$ac_compile"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_compile") 2>conftest.er1
19204 grep -v '^ *+' conftest.er1 >conftest.err
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest.$ac_objext'
19220 { (case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_try") 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_func_isnan_in_math_h=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_func_isnan_in_math_h=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 ac_cpp='$CPP $CPPFLAGS'
19240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19245 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19246 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19249 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_ISNAN_IN_MATH_H 1
19257 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19258 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19259 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 ac_cpp='$CXXCPP $CPPFLAGS'
19264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19283 rm -f conftest.$ac_objext
19284 if { (ac_try="$ac_compile"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_compile") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest.$ac_objext'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_func_isnan_in_cmath=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_cv_func_isnan_in_cmath=no
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 ac_cpp='$CPP $CPPFLAGS'
19328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19333 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19334 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19336 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_ISNAN_IN_CMATH 1
19344 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19345 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19346 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_cpp='$CXXCPP $CPPFLAGS'
19351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19365 float f; std::isnan(f);
19370 rm -f conftest.$ac_objext
19371 if { (ac_try="$ac_compile"
19372 case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_compile") 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19385 { (case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_try") 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try='test -s conftest.$ac_objext'
19395 { (case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_try") 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
19404 ac_cv_func_std_isnan_in_cmath=yes
19406 echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19409 ac_cv_func_std_isnan_in_cmath=no
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 ac_cpp='$CPP $CPPFLAGS'
19415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19420 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19421 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19423 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE_STD_ISNAN_IN_CMATH 1
19432 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19433 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19434 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 ac_cpp='$CXXCPP $CPPFLAGS'
19439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19458 rm -f conftest.$ac_objext
19459 if { (ac_try="$ac_compile"
19460 case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_compile") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } &&
19472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_try") 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_func_isinf_in_math_h=yes
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_func_isinf_in_math_h=no
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 ac_cpp='$CPP $CPPFLAGS'
19503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19508 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19509 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19511 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_ISINF_IN_MATH_H 1
19519 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19520 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19521 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_cpp='$CXXCPP $CPPFLAGS'
19526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19530 cat >conftest.$ac_ext <<_ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19545 rm -f conftest.$ac_objext
19546 if { (ac_try="$ac_compile"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_compile") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19560 { (case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_try") 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_func_isinf_in_cmath=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_func_isinf_in_cmath=no
19587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19595 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19596 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19598 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_ISINF_IN_CMATH 1
19606 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19607 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19608 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_cpp='$CXXCPP $CPPFLAGS'
19613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19627 float f; std::isinf(f);
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_compile") 2>conftest.er1
19641 grep -v '^ *+' conftest.er1 >conftest.err
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_try") 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_func_std_isinf_in_cmath=yes
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_func_std_isinf_in_cmath=no
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676 ac_cpp='$CPP $CPPFLAGS'
19677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19682 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19683 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19685 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_STD_ISINF_IN_CMATH 1
19693 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19694 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19695 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 ac_cpp='$CXXCPP $CPPFLAGS'
19700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19710 #include <ieeefp.h>
19714 float f; finite(f);
19719 rm -f conftest.$ac_objext
19720 if { (ac_try="$ac_compile"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_compile") 2>conftest.er1
19728 grep -v '^ *+' conftest.er1 >conftest.err
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19734 { (case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_try") 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest.$ac_objext'
19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 ac_cv_func_finite_in_ieeefp_h=yes
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ac_cv_func_finite_in_ieeefp_h=no
19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19763 ac_cpp='$CPP $CPPFLAGS'
19764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19770 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19772 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_FINITE_IN_IEEEFP_H 1
19782 if test "$llvm_cv_platform_type" = "Unix" ; then
19785 for ac_header in stdlib.h unistd.h
19787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 ac_res=`eval echo '${'$as_ac_Header'}'`
19795 { echo "$as_me:$LINENO: result: $ac_res" >&5
19796 echo "${ECHO_T}$ac_res" >&6; }
19798 # Is the header compilable?
19799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 $ac_includes_default
19808 #include <$ac_header>
19810 rm -f conftest.$ac_objext
19811 if { (ac_try="$ac_compile"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_compile") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest.$ac_objext'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_header_compiler=yes
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_header_compiler=no
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19854 echo "${ECHO_T}$ac_header_compiler" >&6; }
19856 # Is the header present?
19857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19865 #include <$ac_header>
19867 if { (ac_try="$ac_cpp conftest.$ac_ext"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1 >conftest.err
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } >/dev/null; then
19880 if test -s conftest.err; then
19881 ac_cpp_err=$ac_c_preproc_warn_flag
19882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19889 if test -z "$ac_cpp_err"; then
19890 ac_header_preproc=yes
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_header_preproc=no
19898 rm -f conftest.err conftest.$ac_ext
19899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19900 echo "${ECHO_T}$ac_header_preproc" >&6; }
19902 # So? What about this header?
19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19909 ac_header_preproc=yes
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19925 ## ------------------------------ ##
19926 ## Report this to bugs@yourdomain ##
19927 ## ------------------------------ ##
19929 ) | sed "s/^/$as_me: WARNING: /" >&2
19932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 eval "$as_ac_Header=\$ac_header_preproc"
19939 ac_res=`eval echo '${'$as_ac_Header'}'`
19940 { echo "$as_me:$LINENO: result: $ac_res" >&5
19941 echo "${ECHO_T}$ac_res" >&6; }
19944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19954 for ac_func in getpagesize
19956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19970 #define $ac_func innocuous_$ac_func
19972 /* System header to define __stub macros and hopefully few prototypes,
19973 which can conflict with char $ac_func (); below.
19974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19975 <limits.h> exists even on freestanding compilers. */
19978 # include <limits.h>
19980 # include <assert.h>
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19992 /* The GNU C library defines this for functions which it implements
19993 to always fail with ENOSYS. Some functions are actually named
19994 something starting with __ and the normal name is an alias. */
19995 #if defined __stub_$ac_func || defined __stub___$ac_func
20002 return $ac_func ();
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (ac_try="$ac_link"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 eval "$as_ac_var=yes"
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 eval "$as_ac_var=no"
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20052 ac_res=`eval echo '${'$as_ac_var'}'`
20053 { echo "$as_me:$LINENO: result: $ac_res" >&5
20054 echo "${ECHO_T}$ac_res" >&6; }
20055 if test `eval echo '${'$as_ac_var'}'` = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20063 { echo "$as_me:$LINENO: checking for working mmap" >&5
20064 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20065 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 if test "$cross_compiling" = yes; then
20069 ac_cv_func_mmap_fixed_mapped=no
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 /* malloc might have been renamed as rpl_malloc. */
20081 /* Thanks to Mike Haertel and Jim Avera for this test.
20082 Here is a matrix of mmap possibilities:
20083 mmap private not fixed
20084 mmap private fixed at somewhere currently unmapped
20085 mmap private fixed at somewhere already mapped
20086 mmap shared not fixed
20087 mmap shared fixed at somewhere currently unmapped
20088 mmap shared fixed at somewhere already mapped
20089 For private mappings, we should verify that changes cannot be read()
20090 back from the file, nor mmap's back from the file at a different
20091 address. (There have been systems where private was not correctly
20092 implemented like the infamous i386 svr4.0, and systems where the
20093 VM page cache was not coherent with the file system buffer cache
20094 like early versions of FreeBSD and possibly contemporary NetBSD.)
20095 For shared mappings, we should conversely verify that changes get
20096 propagated back to all the places they're supposed to be.
20098 Grep wants private fixed already mapped.
20099 The main things grep needs to know about mmap are:
20100 * does it exist and is it safe to write into the mmap'd area
20101 * how to use it (BSD variants) */
20104 #include <sys/mman.h>
20106 #if !STDC_HEADERS && !HAVE_STDLIB_H
20110 /* This mess was copied from the GNU getpagesize.h. */
20111 #if !HAVE_GETPAGESIZE
20112 /* Assume that all systems that can run configure have sys/param.h. */
20113 # if !HAVE_SYS_PARAM_H
20114 # define HAVE_SYS_PARAM_H 1
20117 # ifdef _SC_PAGESIZE
20118 # define getpagesize() sysconf(_SC_PAGESIZE)
20119 # else /* no _SC_PAGESIZE */
20120 # if HAVE_SYS_PARAM_H
20121 # include <sys/param.h>
20122 # ifdef EXEC_PAGESIZE
20123 # define getpagesize() EXEC_PAGESIZE
20124 # else /* no EXEC_PAGESIZE */
20126 # define getpagesize() NBPG * CLSIZE
20129 # endif /* no CLSIZE */
20130 # else /* no NBPG */
20132 # define getpagesize() NBPC
20133 # else /* no NBPC */
20135 # define getpagesize() PAGESIZE
20136 # endif /* PAGESIZE */
20137 # endif /* no NBPC */
20138 # endif /* no NBPG */
20139 # endif /* no EXEC_PAGESIZE */
20140 # else /* no HAVE_SYS_PARAM_H */
20141 # define getpagesize() 8192 /* punt totally */
20142 # endif /* no HAVE_SYS_PARAM_H */
20143 # endif /* no _SC_PAGESIZE */
20145 #endif /* no HAVE_GETPAGESIZE */
20150 char *data, *data2, *data3;
20154 pagesize = getpagesize ();
20156 /* First, make a file with some known garbage in it. */
20157 data = (char *) malloc (pagesize);
20160 for (i = 0; i < pagesize; ++i)
20161 *(data + i) = rand ();
20163 fd = creat ("conftest.mmap", 0600);
20166 if (write (fd, data, pagesize) != pagesize)
20170 /* Next, try to mmap the file at a fixed address which already has
20171 something else allocated at it. If we can, also make sure that
20172 we see the same garbage. */
20173 fd = open ("conftest.mmap", O_RDWR);
20176 data2 = (char *) malloc (2 * pagesize);
20179 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20183 for (i = 0; i < pagesize; ++i)
20184 if (*(data + i) != *(data2 + i))
20187 /* Finally, make sure that changes to the mapped area do not
20188 percolate back to the file as seen by read(). (This is a bug on
20189 some variants of i386 svr4.0.) */
20190 for (i = 0; i < pagesize; ++i)
20191 *(data2 + i) = *(data2 + i) + 1;
20192 data3 = (char *) malloc (pagesize);
20195 if (read (fd, data3, pagesize) != pagesize)
20197 for (i = 0; i < pagesize; ++i)
20198 if (*(data + i) != *(data3 + i))
20204 rm -f conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215 { (case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_try") 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_func_mmap_fixed_mapped=yes
20226 echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ( exit $ac_status )
20231 ac_cv_func_mmap_fixed_mapped=no
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20239 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE_MMAP 1
20247 rm -f conftest.mmap
20249 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20250 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20251 if test "${ac_cv_func_mmap_file+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 ac_cpp='$CPP $CPPFLAGS'
20256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20260 if test "$cross_compiling" = yes; then
20261 ac_cv_func_mmap_file=no
20263 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20271 #include <sys/types.h>
20272 #include <sys/mman.h>
20280 fd = creat ("foo",0777);
20281 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20283 return (fd != (int) MAP_FAILED);
20288 rm -f conftest$ac_exeext
20289 if { (ac_try="$ac_link"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_link") 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20299 { (case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_try") 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_func_mmap_file=yes
20310 echo "$as_me: program exited with status $ac_status" >&5
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ( exit $ac_status )
20315 ac_cv_func_mmap_file=no
20317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20329 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20330 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20331 if test "$ac_cv_func_mmap_file" = yes; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_MMAP_FILE
20341 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20342 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20343 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 if test "$llvm_cv_os_type" = "Interix" ; then
20347 ac_cv_need_dev_zero_for_mmap=yes
20349 ac_cv_need_dev_zero_for_mmap=no
20353 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20354 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20355 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20357 cat >>confdefs.h <<\_ACEOF
20358 #define NEED_DEV_ZERO_FOR_MMAP 1
20363 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20365 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20366 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20368 if test "$ac_cv_func_mmap_file" = "no"
20370 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20371 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20375 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20376 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20378 ac_cpp='$CXXCPP $CPPFLAGS'
20379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20390 volatile unsigned long val = 1;
20391 __sync_synchronize();
20392 __sync_val_compare_and_swap(&val, 1, 0);
20393 __sync_add_and_fetch(&val, 1);
20394 __sync_sub_and_fetch(&val, 1);
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_link") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20434 ac_cpp='$CPP $CPPFLAGS'
20435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20439 { echo "$as_me:$LINENO: result: yes" >&5
20440 echo "${ECHO_T}yes" >&6; }
20442 cat >>confdefs.h <<\_ACEOF
20443 #define LLVM_HAS_ATOMICS 1
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 { echo "$as_me:$LINENO: result: no" >&5
20451 echo "${ECHO_T}no" >&6; }
20453 cat >>confdefs.h <<\_ACEOF
20454 #define LLVM_HAS_ATOMICS 0
20457 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20458 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20461 rm -f core conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20465 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20466 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20467 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20468 if test "${llvm_cv_linux_mixed+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 error: Not x86-64 even if uname says so!
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20510 { (case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_try") 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 llvm_cv_linux_mixed=no
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 llvm_cv_linux_mixed=yes
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539 ac_cpp='$CPP $CPPFLAGS'
20540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20547 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20549 if test "$llvm_cv_linux_mixed" = "yes"; then
20550 llvm_cv_target_arch="x86"
20556 for ac_func in __dso_handle
20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20572 #define $ac_func innocuous_$ac_func
20574 /* System header to define __stub macros and hopefully few prototypes,
20575 which can conflict with char $ac_func (); below.
20576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20577 <limits.h> exists even on freestanding compilers. */
20580 # include <limits.h>
20582 # include <assert.h>
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20594 /* The GNU C library defines this for functions which it implements
20595 to always fail with ENOSYS. Some functions are actually named
20596 something starting with __ and the normal name is an alias. */
20597 #if defined __stub_$ac_func || defined __stub___$ac_func
20604 return $ac_func ();
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (ac_try="$ac_link"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_link") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 eval "$as_ac_var=yes"
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 eval "$as_ac_var=no"
20651 rm -f core conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20654 ac_res=`eval echo '${'$as_ac_var'}'`
20655 { echo "$as_me:$LINENO: result: $ac_res" >&5
20656 echo "${ECHO_T}$ac_res" >&6; }
20657 if test `eval echo '${'$as_ac_var'}'` = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20666 SHLIBEXT=$libltdl_cv_shlibext
20669 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20672 # Translate the various configuration directories and other basic
20673 # information into substitutions that will end up in Makefile.config.in
20674 # that these configured values can be used by the makefiles
20675 if test "${prefix}" = "NONE" ; then
20676 prefix="/usr/local"
20678 eval LLVM_PREFIX="${prefix}";
20679 eval LLVM_BINDIR="${prefix}/bin";
20680 eval LLVM_DATADIR="${prefix}/share/llvm";
20681 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20682 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20683 eval LLVM_INCLUDEDIR="${prefix}/include";
20684 eval LLVM_INFODIR="${prefix}/info";
20685 eval LLVM_MANDIR="${prefix}/man";
20686 LLVM_CONFIGTIME=`date`
20697 # Place the various directores into the config.h file as #defines so that we
20698 # can know about the installation paths within LLVM.
20700 cat >>confdefs.h <<_ACEOF
20701 #define LLVM_PREFIX "$LLVM_PREFIX"
20705 cat >>confdefs.h <<_ACEOF
20706 #define LLVM_BINDIR "$LLVM_BINDIR"
20710 cat >>confdefs.h <<_ACEOF
20711 #define LLVM_DATADIR "$LLVM_DATADIR"
20715 cat >>confdefs.h <<_ACEOF
20716 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20720 cat >>confdefs.h <<_ACEOF
20721 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20725 cat >>confdefs.h <<_ACEOF
20726 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20730 cat >>confdefs.h <<_ACEOF
20731 #define LLVM_INFODIR "$LLVM_INFODIR"
20735 cat >>confdefs.h <<_ACEOF
20736 #define LLVM_MANDIR "$LLVM_MANDIR"
20740 cat >>confdefs.h <<_ACEOF
20741 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20745 cat >>confdefs.h <<_ACEOF
20746 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20750 # Determine which bindings to build.
20751 if test "$BINDINGS_TO_BUILD" = auto ; then
20752 BINDINGS_TO_BUILD=""
20753 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20754 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20757 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20760 # This isn't really configurey, but it avoids having to repeat the list in
20765 # Do any work necessary to ensure that bindings have what they need.
20766 binding_prereqs_failed=0
20767 for a_binding in $BINDINGS_TO_BUILD ; do
20768 case "$a_binding" in
20770 if test "x$OCAMLC" = x ; then
20771 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20772 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20773 binding_prereqs_failed=1
20775 if test "x$OCAMLDEP" = x ; then
20776 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20777 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20778 binding_prereqs_failed=1
20780 if test "x$OCAMLOPT" = x ; then
20781 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20782 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20784 if test "x$with_ocaml_libdir" != xauto ; then
20785 OCAML_LIBDIR=$with_ocaml_libdir
20788 ocaml_stdlib="`"$OCAMLC" -where`"
20789 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20791 # ocaml stdlib is beneath our prefix; use stdlib
20792 OCAML_LIBDIR=$ocaml_stdlib
20795 # ocaml stdlib is outside our prefix; use libdir/ocaml
20796 OCAML_LIBDIR=${prefix}/lib/ocaml
20803 if test "$binding_prereqs_failed" = 1 ; then
20804 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20805 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20806 { (exit 1); exit 1; }; }
20809 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20810 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20811 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 ac_cpp='$CXXCPP $CPPFLAGS'
20816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20820 oldcxxflags="$CXXFLAGS"
20821 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_compile") 2>conftest.er1
20846 grep -v '^ *+' conftest.er1 >conftest.err
20848 cat conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } &&
20851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20852 { (case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_try") 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 llvm_cv_cxx_visibility_inlines_hidden=yes
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 llvm_cv_cxx_visibility_inlines_hidden=no
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 CXXFLAGS="$oldcxxflags"
20882 ac_cpp='$CPP $CPPFLAGS'
20883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20889 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20890 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20891 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20892 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20895 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20900 if test "$llvm_cv_link_use_r" = "yes" ; then
20907 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20908 RDYNAMIC="-Wl,-export-dynamic"
20916 ac_config_files="$ac_config_files Makefile.common"
20918 ac_config_files="$ac_config_files Makefile.llvm.config"
20921 ac_config_commands="$ac_config_commands Makefile"
20924 ac_config_commands="$ac_config_commands lib/Makefile"
20927 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20930 ac_config_commands="$ac_config_commands tools/Makefile"
20933 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20937 cat >confcache <<\_ACEOF
20938 # This file is a shell script that caches the results of configure
20939 # tests run on this system so they can be shared between configure
20940 # scripts and configure runs, see configure's option --config-cache.
20941 # It is not useful on other systems. If it contains results you don't
20942 # want to keep, you may remove or edit it.
20944 # config.status only pays attention to the cache file if you give it
20945 # the --recheck option to rerun configure.
20947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20949 # following values.
20953 # The following way of writing the cache mishandles newlines in values,
20954 # but we know of no workaround that is simple, portable, and efficient.
20955 # So, we kill variables containing newlines.
20956 # Ultrix sh set writes to stderr and can't be redirected directly,
20957 # and sets the high bit in the cache file unless we assign to the vars.
20959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20960 eval ac_val=\$$ac_var
20964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20968 _ | IFS | as_nl) ;; #(
20969 *) $as_unset $ac_var ;;
20975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20976 *${as_nl}ac_space=\ *)
20977 # `set' does not quote correctly, so add quotes (double-quote
20978 # substitution turns \\\\ into \\, and sed turns \\ into \).
20981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20984 # `set' quotes correctly as required by POSIX, so do not add quotes.
20985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20999 if test -w "$cache_file"; then
21000 test "x$cache_file" != "x/dev/null" &&
21001 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21002 echo "$as_me: updating cache $cache_file" >&6;}
21003 cat confcache >$cache_file
21005 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21006 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21012 # Let make expand exec_prefix.
21013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21015 # Transform confdefs.h into DEFS.
21016 # Protect against shell expansion while executing Makefile rules.
21017 # Protect against Makefile macro expansion.
21019 # If the first sed substitution is executed (which looks for macros that
21020 # take arguments), then branch to the quote section. Otherwise,
21021 # look for a macro that doesn't take arguments.
21025 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21027 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21031 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21044 DEFS=`sed -n "$ac_script" confdefs.h`
21049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21050 # 1. Remove the extension, and $U if already installed.
21051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21052 ac_i=`echo "$ac_i" | sed "$ac_script"`
21053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21054 # will be set to the directory where LIBOBJS objects are built.
21055 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21056 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21058 LIBOBJS=$ac_libobjs
21060 LTLIBOBJS=$ac_ltlibobjs
21063 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21064 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21065 Usually this means the macro was only invoked conditionally." >&5
21066 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21067 Usually this means the macro was only invoked conditionally." >&2;}
21068 { (exit 1); exit 1; }; }
21070 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21071 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21072 Usually this means the macro was only invoked conditionally." >&5
21073 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21074 Usually this means the macro was only invoked conditionally." >&2;}
21075 { (exit 1); exit 1; }; }
21078 : ${CONFIG_STATUS=./config.status}
21079 ac_clean_files_save=$ac_clean_files
21080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21083 cat >$CONFIG_STATUS <<_ACEOF
21085 # Generated by $as_me.
21086 # Run this file to recreate the current configuration.
21087 # Compiler output produced by configure, useful for debugging
21088 # configure, is in config.log if it exists.
21091 ac_cs_recheck=false
21093 SHELL=\${CONFIG_SHELL-$SHELL}
21096 cat >>$CONFIG_STATUS <<\_ACEOF
21097 ## --------------------- ##
21098 ## M4sh Initialization. ##
21099 ## --------------------- ##
21101 # Be Bourne compatible
21102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21106 # is contrary to our usage. Disable this feature.
21107 alias -g '${1+"$@"}'='"$@"'
21108 setopt NO_GLOB_SUBST
21110 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21112 BIN_SH=xpg4; export BIN_SH # for Tru64
21113 DUALCASE=1; export DUALCASE # for MKS sh
21117 # Avoid depending upon Character Ranges.
21118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21121 as_cr_digits='0123456789'
21122 as_cr_alnum=$as_cr_Letters$as_cr_digits
21124 # The user is always right.
21125 if test "${PATH_SEPARATOR+set}" != set; then
21126 echo "#! /bin/sh" >conf$$.sh
21127 echo "exit 0" >>conf$$.sh
21129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21137 # Support unset when possible.
21138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21146 # We need space, tab and new line, in precisely that order. Quoting is
21147 # there to prevent editors from complaining about space-tab.
21148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21149 # splitting by setting IFS to empty value.)
21154 # Find who we are. Look in the path if we contain no directory separator.
21156 *[\\/]* ) as_myself=$0 ;;
21157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21158 for as_dir in $PATH
21161 test -z "$as_dir" && as_dir=.
21162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21168 # We did not find ourselves, most probably we were run as `sh COMMAND'
21169 # in which case we are not to be found in the path.
21170 if test "x$as_myself" = x; then
21173 if test ! -f "$as_myself"; then
21174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21175 { (exit 1); exit 1; }
21178 # Work around bugs in pre-3.0 UWIN ksh.
21179 for as_var in ENV MAIL MAILPATH
21180 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21190 LC_TELEPHONE LC_TIME
21192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21193 eval $as_var=C; export $as_var
21195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21199 # Required to use basename.
21200 if expr a : '\(a\)' >/dev/null 2>&1 &&
21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21208 as_basename=basename
21214 # Name of the executable.
21215 as_me=`$as_basename -- "$0" ||
21216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21217 X"$0" : 'X\(//\)$' \| \
21218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21220 sed '/^.*\/\([^/][^/]*\)\/*$/{
21239 as_lineno_1=$LINENO
21240 as_lineno_2=$LINENO
21241 test "x$as_lineno_1" != "x$as_lineno_2" &&
21242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21245 # uniformly replaced by the line number. The first 'sed' inserts a
21246 # line-number line after each line using $LINENO; the second 'sed'
21247 # does the real work. The second script uses 'N' to pair each
21248 # line-number line with the line containing $LINENO, and appends
21249 # trailing '-' during substitution so that $LINENO is not a special
21250 # case at line end.
21251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21252 # scripts with optimization help from Paolo Bonzini. Blame Lee
21253 # E. McMahon (1931-1989) for sed's syntax. :-)
21265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21268 ' >$as_me.lineno &&
21269 chmod +x "$as_me.lineno" ||
21270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21271 { (exit 1); exit 1; }; }
21273 # Don't try to exec as it changes $[0], causing all sort of problems
21274 # (the dirname of $[0] is not the place where we might find the
21275 # original and so on. Autoconf is especially sensitive to this).
21276 . "./$as_me.lineno"
21277 # Exit status is that of the last command.
21282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21288 ECHO_C= ECHO_N= ECHO_T=
21289 case `echo -n x` in
21291 case `echo 'x\c'` in
21292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21299 if expr a : '\(a\)' >/dev/null 2>&1 &&
21300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21306 rm -f conf$$ conf$$.exe conf$$.file
21307 if test -d conf$$.dir; then
21308 rm -f conf$$.dir/conf$$.file
21314 if ln -s conf$$.file conf$$ 2>/dev/null; then
21316 # ... but there are two gotchas:
21317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21319 # In both cases, we have to default to `cp -p'.
21320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21322 elif ln conf$$.file conf$$ 2>/dev/null; then
21327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21328 rmdir conf$$.dir 2>/dev/null
21330 if mkdir -p . 2>/dev/null; then
21333 test -d ./-p && rmdir ./-p
21337 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21338 # systems may use methods other than mode bits to determine executability.
21339 cat >conf$$.file <<_ASEOF
21343 chmod +x conf$$.file
21344 if test -x conf$$.file >/dev/null 2>&1; then
21345 as_executable_p="test -x"
21351 # Sed expression to map a string onto a valid CPP name.
21352 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21354 # Sed expression to map a string onto a valid variable name.
21355 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21360 # Save the log message, to keep $[0] and so on meaningful, and to
21361 # report actual input values of CONFIG_FILES etc. instead of their
21362 # values after options handling.
21364 This file was extended by [SAMPLE] $as_me [x.xx], which was
21365 generated by GNU Autoconf 2.60. Invocation command line was
21367 CONFIG_FILES = $CONFIG_FILES
21368 CONFIG_HEADERS = $CONFIG_HEADERS
21369 CONFIG_LINKS = $CONFIG_LINKS
21370 CONFIG_COMMANDS = $CONFIG_COMMANDS
21373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21378 cat >>$CONFIG_STATUS <<_ACEOF
21379 # Files that config.status was made for.
21380 config_files="$ac_config_files"
21381 config_commands="$ac_config_commands"
21385 cat >>$CONFIG_STATUS <<\_ACEOF
21387 \`$as_me' instantiates files from templates according to the
21388 current configuration.
21390 Usage: $0 [OPTIONS] [FILE]...
21392 -h, --help print this help, then exit
21393 -V, --version print version number, then exit
21394 -q, --quiet do not print progress messages
21395 -d, --debug don't remove temporary files
21396 --recheck update $as_me by reconfiguring in the same conditions
21397 --file=FILE[:TEMPLATE]
21398 instantiate the configuration file FILE
21400 Configuration files:
21403 Configuration commands:
21406 Report bugs to <bug-autoconf@gnu.org>."
21409 cat >>$CONFIG_STATUS <<_ACEOF
21411 [SAMPLE] config.status [x.xx]
21412 configured by $0, generated by GNU Autoconf 2.60,
21413 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21415 Copyright (C) 2006 Free Software Foundation, Inc.
21416 This config.status script is free software; the Free Software Foundation
21417 gives unlimited permission to copy, distribute and modify it."
21424 cat >>$CONFIG_STATUS <<\_ACEOF
21425 # If no file are specified by the user, then we need to provide default
21426 # value. By we need to know if files were specified by the user.
21432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21444 # Handling of the options.
21445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21448 echo "$ac_cs_version"; exit ;;
21449 --debug | --debu | --deb | --de | --d | -d )
21451 --file | --fil | --fi | --f )
21453 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21454 ac_need_defaults=false;;
21455 --he | --h | --help | --hel | -h )
21456 echo "$ac_cs_usage"; exit ;;
21457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21461 # This is an error.
21462 -*) { echo "$as_me: error: unrecognized option: $1
21463 Try \`$0 --help' for more information." >&2
21464 { (exit 1); exit 1; }; } ;;
21466 *) ac_config_targets="$ac_config_targets $1"
21467 ac_need_defaults=false ;;
21473 ac_configure_extra_args=
21475 if $ac_cs_silent; then
21477 ac_configure_extra_args="$ac_configure_extra_args --silent"
21481 cat >>$CONFIG_STATUS <<_ACEOF
21482 if \$ac_cs_recheck; then
21483 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21484 CONFIG_SHELL=$SHELL
21485 export CONFIG_SHELL
21486 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21490 cat >>$CONFIG_STATUS <<\_ACEOF
21494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21495 ## Running $as_me. ##
21501 cat >>$CONFIG_STATUS <<_ACEOF
21505 llvm_src="${LLVM_SRC}"
21509 cat >>$CONFIG_STATUS <<\_ACEOF
21511 # Handling of arguments.
21512 for ac_config_target in $ac_config_targets
21514 case $ac_config_target in
21515 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21516 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21517 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21518 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21519 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21520 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21521 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21522 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21524 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21525 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21526 { (exit 1); exit 1; }; };;
21531 # If the user did not use the arguments to specify the items to instantiate,
21532 # then the envvar interface is used. Set only those that are not.
21533 # We use the long form for the default assignment because of an extremely
21534 # bizarre bug on SunOS 4.1.3.
21535 if $ac_need_defaults; then
21536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21540 # Have a temporary directory for convenience. Make it in the build tree
21541 # simply because there is no reason against having it here, and in addition,
21542 # creating and moving files from /tmp can sometimes cause problems.
21543 # Hook for its removal unless debugging.
21544 # Note that there is a small window in which the directory will not be cleaned:
21545 # after its creation but before its name has been assigned to `$tmp'.
21549 trap 'exit_status=$?
21550 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21552 trap '{ (exit 1); exit 1; }' 1 2 13 15
21554 # Create a (secure) tmp directory for tmp files.
21557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21558 test -n "$tmp" && test -d "$tmp"
21561 tmp=./conf$$-$RANDOM
21562 (umask 077 && mkdir "$tmp")
21565 echo "$me: cannot create a temporary directory in ." >&2
21566 { (exit 1); exit 1; }
21570 # Set up the sed scripts for CONFIG_FILES section.
21573 # No need to generate the scripts if there are no CONFIG_FILES.
21574 # This happens for instance when ./config.status config.h
21575 if test -n "$CONFIG_FILES"; then
21582 for ac_last_try in false false false false false :; do
21583 cat >conf$$subs.sed <<_ACEOF
21584 SHELL!$SHELL$ac_delim
21585 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21586 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21587 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21588 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21589 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21590 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21591 exec_prefix!$exec_prefix$ac_delim
21592 prefix!$prefix$ac_delim
21593 program_transform_name!$program_transform_name$ac_delim
21594 bindir!$bindir$ac_delim
21595 sbindir!$sbindir$ac_delim
21596 libexecdir!$libexecdir$ac_delim
21597 datarootdir!$datarootdir$ac_delim
21598 datadir!$datadir$ac_delim
21599 sysconfdir!$sysconfdir$ac_delim
21600 sharedstatedir!$sharedstatedir$ac_delim
21601 localstatedir!$localstatedir$ac_delim
21602 includedir!$includedir$ac_delim
21603 oldincludedir!$oldincludedir$ac_delim
21604 docdir!$docdir$ac_delim
21605 infodir!$infodir$ac_delim
21606 htmldir!$htmldir$ac_delim
21607 dvidir!$dvidir$ac_delim
21608 pdfdir!$pdfdir$ac_delim
21609 psdir!$psdir$ac_delim
21610 libdir!$libdir$ac_delim
21611 localedir!$localedir$ac_delim
21612 mandir!$mandir$ac_delim
21613 DEFS!$DEFS$ac_delim
21614 ECHO_C!$ECHO_C$ac_delim
21615 ECHO_N!$ECHO_N$ac_delim
21616 ECHO_T!$ECHO_T$ac_delim
21617 LIBS!$LIBS$ac_delim
21618 build_alias!$build_alias$ac_delim
21619 host_alias!$host_alias$ac_delim
21620 target_alias!$target_alias$ac_delim
21621 LLVM_SRC!$LLVM_SRC$ac_delim
21622 LLVM_OBJ!$LLVM_OBJ$ac_delim
21623 LLVM_VERSION!$LLVM_VERSION$ac_delim
21625 CFLAGS!$CFLAGS$ac_delim
21626 LDFLAGS!$LDFLAGS$ac_delim
21627 CPPFLAGS!$CPPFLAGS$ac_delim
21628 ac_ct_CC!$ac_ct_CC$ac_delim
21629 EXEEXT!$EXEEXT$ac_delim
21630 OBJEXT!$OBJEXT$ac_delim
21632 CXXFLAGS!$CXXFLAGS$ac_delim
21633 ac_ct_CXX!$ac_ct_CXX$ac_delim
21635 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21636 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21637 subdirs!$subdirs$ac_delim
21638 build!$build$ac_delim
21639 build_cpu!$build_cpu$ac_delim
21640 build_vendor!$build_vendor$ac_delim
21641 build_os!$build_os$ac_delim
21642 host!$host$ac_delim
21643 host_cpu!$host_cpu$ac_delim
21644 host_vendor!$host_vendor$ac_delim
21645 host_os!$host_os$ac_delim
21646 target!$target$ac_delim
21647 target_cpu!$target_cpu$ac_delim
21648 target_vendor!$target_vendor$ac_delim
21649 target_os!$target_os$ac_delim
21651 HOST_OS!$HOST_OS$ac_delim
21652 TARGET_OS!$TARGET_OS$ac_delim
21653 LINKALL!$LINKALL$ac_delim
21654 NOLINKALL!$NOLINKALL$ac_delim
21655 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21656 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21657 ARCH!$ARCH$ac_delim
21658 ENDIAN!$ENDIAN$ac_delim
21659 GREP!$GREP$ac_delim
21660 EGREP!$EGREP$ac_delim
21661 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21662 BUILD_CC!$BUILD_CC$ac_delim
21663 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21664 BUILD_CXX!$BUILD_CXX$ac_delim
21665 CVSBUILD!$CVSBUILD$ac_delim
21666 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21667 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21668 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21669 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21670 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21671 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21672 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21673 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21674 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21675 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21677 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21678 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21679 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21680 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21683 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21685 elif $ac_last_try; then
21686 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21687 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21688 { (exit 1); exit 1; }; }
21690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21694 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21695 if test -n "$ac_eof"; then
21696 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21697 ac_eof=`expr $ac_eof + 1`
21700 cat >>$CONFIG_STATUS <<_ACEOF
21701 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21705 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21706 s/^/s,@/; s/!/@,|#_!!_#|/
21709 s/'"$ac_delim"'$/,g/; t
21711 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21712 ' >>$CONFIG_STATUS <conf$$subs.sed
21713 rm -f conf$$subs.sed
21714 cat >>$CONFIG_STATUS <<_ACEOF
21720 for ac_last_try in false false false false false :; do
21721 cat >conf$$subs.sed <<_ACEOF
21722 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21723 ENABLE_PIC!$ENABLE_PIC$ac_delim
21724 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21725 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21726 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21727 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21728 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21729 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21730 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21731 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21732 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21733 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21734 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21735 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21737 ifGNUmake!$ifGNUmake$ac_delim
21738 LN_S!$LN_S$ac_delim
21741 DATE!$DATE$ac_delim
21742 FIND!$FIND$ac_delim
21743 MKDIR!$MKDIR$ac_delim
21745 RANLIB!$RANLIB$ac_delim
21750 BINPWD!$BINPWD$ac_delim
21751 GRAPHVIZ!$GRAPHVIZ$ac_delim
21754 NEATO!$NEATO$ac_delim
21755 TWOPI!$TWOPI$ac_delim
21756 CIRCO!$CIRCO$ac_delim
21758 DOTTY!$DOTTY$ac_delim
21759 XDOT_PY!$XDOT_PY$ac_delim
21760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21762 INSTALL_DATA!$INSTALL_DATA$ac_delim
21763 BZIP2!$BZIP2$ac_delim
21765 DOXYGEN!$DOXYGEN$ac_delim
21766 GROFF!$GROFF$ac_delim
21767 GZIPBIN!$GZIPBIN$ac_delim
21768 POD2HTML!$POD2HTML$ac_delim
21769 POD2MAN!$POD2MAN$ac_delim
21770 PDFROFF!$PDFROFF$ac_delim
21771 RUNTEST!$RUNTEST$ac_delim
21772 TCLSH!$TCLSH$ac_delim
21774 OCAMLC!$OCAMLC$ac_delim
21775 OCAMLOPT!$OCAMLOPT$ac_delim
21776 OCAMLDEP!$OCAMLDEP$ac_delim
21777 OCAMLDOC!$OCAMLDOC$ac_delim
21779 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21780 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21781 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21782 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21783 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21784 LIBADD_DL!$LIBADD_DL$ac_delim
21785 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21786 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21787 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21788 USE_UDIS86!$USE_UDIS86$ac_delim
21789 USE_OPROFILE!$USE_OPROFILE$ac_delim
21790 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21791 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21792 MMAP_FILE!$MMAP_FILE$ac_delim
21793 SHLIBEXT!$SHLIBEXT$ac_delim
21794 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21795 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21796 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21797 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21798 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21799 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21800 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21801 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21802 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21803 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21804 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21805 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21806 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21807 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21808 RPATH!$RPATH$ac_delim
21809 RDYNAMIC!$RDYNAMIC$ac_delim
21810 LIBOBJS!$LIBOBJS$ac_delim
21811 LTLIBOBJS!$LTLIBOBJS$ac_delim
21814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21816 elif $ac_last_try; then
21817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21819 { (exit 1); exit 1; }; }
21821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21826 if test -n "$ac_eof"; then
21827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21828 ac_eof=`expr $ac_eof + 1`
21831 cat >>$CONFIG_STATUS <<_ACEOF
21832 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21837 s/^/s,@/; s/!/@,|#_!!_#|/
21840 s/'"$ac_delim"'$/,g/; t
21842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21843 ' >>$CONFIG_STATUS <conf$$subs.sed
21844 rm -f conf$$subs.sed
21845 cat >>$CONFIG_STATUS <<_ACEOF
21852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21854 # trailing colons and then remove the whole line if VPATH becomes empty
21855 # (actually we leave an empty line to preserve line numbers).
21856 if test "x$srcdir" = x.; then
21857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21858 s/:*\$(srcdir):*/:/
21859 s/:*\${srcdir}:*/:/
21861 s/^\([^=]*=[ ]*\):*/\1/
21867 cat >>$CONFIG_STATUS <<\_ACEOF
21868 fi # test -n "$CONFIG_FILES"
21871 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21874 :[FHLC]) ac_mode=$ac_tag; continue;;
21876 case $ac_mode$ac_tag in
21878 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21879 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21880 { (exit 1); exit 1; }; };;
21881 :[FH]-) ac_tag=-:-;;
21882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21899 -) ac_f="$tmp/stdin";;
21900 *) # Look for the file first in the build tree, then in the source tree
21901 # (if the path is not absolute). The absolute path cannot be DOS-style,
21902 # because $ac_f cannot contain `:'.
21906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21908 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21909 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21910 { (exit 1); exit 1; }; };;
21912 ac_file_inputs="$ac_file_inputs $ac_f"
21915 # Let's still pretend it is `configure' which instantiates (i.e., don't
21916 # use $as_me), people would be surprised to read:
21917 # /* config.h. Generated by config.status. */
21918 configure_input="Generated from "`IFS=:
21919 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21920 if test x"$ac_file" != x-; then
21921 configure_input="$ac_file. $configure_input"
21922 { echo "$as_me:$LINENO: creating $ac_file" >&5
21923 echo "$as_me: creating $ac_file" >&6;}
21927 *:-:* | *:-) cat >"$tmp/stdin";;
21932 ac_dir=`$as_dirname -- "$ac_file" ||
21933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934 X"$ac_file" : 'X\(//\)[^/]' \| \
21935 X"$ac_file" : 'X\(//\)$' \| \
21936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942 /^X\(\/\/\)[^/].*/{
21957 -*) as_dir=./$as_dir;;
21959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21964 *) as_qdir=$as_dir;;
21966 as_dirs="'$as_qdir' $as_dirs"
21967 as_dir=`$as_dirname -- "$as_dir" ||
21968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969 X"$as_dir" : 'X\(//\)[^/]' \| \
21970 X"$as_dir" : 'X\(//\)$' \| \
21971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21977 /^X\(\/\/\)[^/].*/{
21990 test -d "$as_dir" && break
21992 test -z "$as_dirs" || eval "mkdir $as_dirs"
21993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21994 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21995 { (exit 1); exit 1; }; }; }
21999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22002 # A ".." for each directory in $ac_dir_suffix.
22003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22004 case $ac_top_builddir_sub in
22005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22009 ac_abs_top_builddir=$ac_pwd
22010 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22011 # for backward compatibility:
22012 ac_top_builddir=$ac_top_build_prefix
22015 .) # We are building in place.
22017 ac_top_srcdir=$ac_top_builddir_sub
22018 ac_abs_top_srcdir=$ac_pwd ;;
22019 [\\/]* | ?:[\\/]* ) # Absolute name.
22020 ac_srcdir=$srcdir$ac_dir_suffix;
22021 ac_top_srcdir=$srcdir
22022 ac_abs_top_srcdir=$srcdir ;;
22023 *) # Relative name.
22024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22025 ac_top_srcdir=$ac_top_build_prefix$srcdir
22026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22043 cat >>$CONFIG_STATUS <<\_ACEOF
22044 # If the template does not know about datarootdir, expand it.
22045 # FIXME: This hack should be removed a few years after 2.60.
22046 ac_datarootdir_hack=; ac_datarootdir_seen=
22048 case `sed -n '/datarootdir/ {
22057 ' $ac_file_inputs` in
22058 *datarootdir*) ac_datarootdir_seen=yes;;
22059 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22060 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22061 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22063 cat >>$CONFIG_STATUS <<_ACEOF
22064 ac_datarootdir_hack='
22065 s&@datadir@&$datadir&g
22066 s&@docdir@&$docdir&g
22067 s&@infodir@&$infodir&g
22068 s&@localedir@&$localedir&g
22069 s&@mandir@&$mandir&g
22070 s&\\\${datarootdir}&$datarootdir&g' ;;
22074 # Neutralize VPATH when `$srcdir' = `.'.
22075 # Shell code in configure.ac might set extrasub.
22076 # FIXME: do we really want to maintain this feature?
22077 cat >>$CONFIG_STATUS <<_ACEOF
22081 cat >>$CONFIG_STATUS <<\_ACEOF
22083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22084 s&@configure_input@&$configure_input&;t t
22085 s&@top_builddir@&$ac_top_builddir_sub&;t t
22086 s&@srcdir@&$ac_srcdir&;t t
22087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22088 s&@top_srcdir@&$ac_top_srcdir&;t t
22089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22090 s&@builddir@&$ac_builddir&;t t
22091 s&@abs_builddir@&$ac_abs_builddir&;t t
22092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22093 s&@INSTALL@&$ac_INSTALL&;t t
22094 $ac_datarootdir_hack
22095 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22100 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22101 which seems to be undefined. Please make sure it is defined." >&5
22102 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22103 which seems to be undefined. Please make sure it is defined." >&2;}
22107 -) cat "$tmp/out"; rm -f "$tmp/out";;
22108 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22113 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22114 echo "$as_me: executing $ac_file commands" >&6;}
22119 case $ac_file$ac_mode in
22120 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22122 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22124 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22126 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22128 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22129 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22135 { (exit 0); exit 0; }
22137 chmod +x $CONFIG_STATUS
22138 ac_clean_files=$ac_clean_files_save
22141 # configure is writing to config.log, and then calls config.status.
22142 # config.status does its own redirection, appending to config.log.
22143 # Unfortunately, on DOS this fails, as config.log is still kept open
22144 # by configure, so config.status won't be able to write to it; its
22145 # output is simply discarded. So we exec the FD to /dev/null,
22146 # effectively closing config.log, so it can be properly (re)opened and
22147 # appended to by config.status. When coming back to configure, we
22148 # need to make the FD available again.
22149 if test "$no_create" != yes; then
22151 ac_config_status_args=
22152 test "$silent" = yes &&
22153 ac_config_status_args="$ac_config_status_args --quiet"
22155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22158 # would make configure fail if this is the last instruction.
22159 $ac_cs_success || { (exit 1); exit 1; }
22163 # CONFIG_SUBDIRS section.
22165 if test "$no_recursion" != yes; then
22167 # Remove --cache-file and --srcdir arguments so they do not pile up.
22168 ac_sub_configure_args=
22170 eval "set x $ac_configure_args"
22174 if test -n "$ac_prev"; then
22179 -cache-file | --cache-file | --cache-fil | --cache-fi \
22180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22181 ac_prev=cache_file ;;
22182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22186 --config-cache | -C)
22188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22198 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22200 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22204 # Always prepend --prefix to ensure using the same prefix
22205 # in subdir configurations.
22206 ac_arg="--prefix=$prefix"
22208 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22210 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22213 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22215 # Do not complain, so a configure script can configure whichever
22216 # parts of a large source tree are present.
22217 test -d "$srcdir/$ac_dir" || continue
22219 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22220 echo "$as_me:$LINENO: $ac_msg" >&5
22224 -*) as_dir=./$as_dir;;
22226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22231 *) as_qdir=$as_dir;;
22233 as_dirs="'$as_qdir' $as_dirs"
22234 as_dir=`$as_dirname -- "$as_dir" ||
22235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22236 X"$as_dir" : 'X\(//\)[^/]' \| \
22237 X"$as_dir" : 'X\(//\)$' \| \
22238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22244 /^X\(\/\/\)[^/].*/{
22257 test -d "$as_dir" && break
22259 test -z "$as_dirs" || eval "mkdir $as_dirs"
22260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22261 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22262 { (exit 1); exit 1; }; }; }
22266 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22269 # A ".." for each directory in $ac_dir_suffix.
22270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22271 case $ac_top_builddir_sub in
22272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22276 ac_abs_top_builddir=$ac_pwd
22277 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22278 # for backward compatibility:
22279 ac_top_builddir=$ac_top_build_prefix
22282 .) # We are building in place.
22284 ac_top_srcdir=$ac_top_builddir_sub
22285 ac_abs_top_srcdir=$ac_pwd ;;
22286 [\\/]* | ?:[\\/]* ) # Absolute name.
22287 ac_srcdir=$srcdir$ac_dir_suffix;
22288 ac_top_srcdir=$srcdir
22289 ac_abs_top_srcdir=$srcdir ;;
22290 *) # Relative name.
22291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22292 ac_top_srcdir=$ac_top_build_prefix$srcdir
22293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22295 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22300 # Check for guested configure; otherwise get Cygnus style configure.
22301 if test -f "$ac_srcdir/configure.gnu"; then
22302 ac_sub_configure=$ac_srcdir/configure.gnu
22303 elif test -f "$ac_srcdir/configure"; then
22304 ac_sub_configure=$ac_srcdir/configure
22305 elif test -f "$ac_srcdir/configure.in"; then
22306 # This should be Cygnus configure.
22307 ac_sub_configure=$ac_aux_dir/configure
22309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22314 # The recursion is here.
22315 if test -n "$ac_sub_configure"; then
22316 # Make the cache file name correct relative to the subdirectory.
22317 case $cache_file in
22318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22319 *) # Relative name.
22320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22323 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22324 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22325 # The eval makes quoting arguments work.
22326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22329 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22330 { (exit 1); exit 1; }; }