2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
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-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1396 --enable-shared Build a shared library and link tools against it
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405 xcore, msp430, ptx, cbe, and cpp
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
1419 --with-optimize-option Select the compiler options to use for optimized
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1428 --with-c-include-dirs Colon separated list of directories clang will
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 Report bugs to <bugs@yourdomain>.
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" || continue
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1487 .) # We are building in place.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1520 [SAMPLE] configure [x.xx]
1521 generated by GNU Autoconf 2.60
1523 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1534 It was created by [SAMPLE] $as_me [x.xx], which was
1535 generated by GNU Autoconf 2.60. Invocation command line was
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_must_keep_next=false
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
1613 ac_must_keep_next=false # Got value, back to normal.
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624 -* ) ac_must_keep_next=true ;;
1627 ac_configure_args="$ac_configure_args '$ac_arg'"
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log. We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1651 # The following way of writing the cache mishandles newlines in values,
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
1671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1688 for ac_var in $ac_subst_vars
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 echo "$ac_var='\''$ac_val'\''"
1698 if test -n "$ac_subst_files"; then
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1705 for ac_var in $ac_subst_files
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1716 if test -s confdefs.h; then
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734 for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1742 # Predefined preprocessor variables.
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
1782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1790 if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1807 # Check that the precious variables saved in the cache have kept the same
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
1813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
1815 case $ac_old_set,$ac_new_set in
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
1827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1830 echo "$as_me: former value: $ac_old_val" >&2;}
1831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1832 echo "$as_me: current value: $ac_new_val" >&2;}
1833 ac_cache_corrupted=:
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 *) ac_arg=$ac_var=$ac_new_val ;;
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848 if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 LLVM_SRC_ROOT="../.."
1889 LLVM_OBJ_ROOT="../.."
1891 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1895 # Check whether --with-llvmsrc was given.
1896 if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1905 # Check whether --with-llvmobj was given.
1906 if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1914 ac_config_commands="$ac_config_commands setup"
1918 { echo "$as_me:$LINENO: checking llvm-config" >&5
1919 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921 if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1924 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925 echo "${ECHO_T}$llvm_config_path" >&6; }
1927 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1928 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929 if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1932 llvm_package_version="unknown";
1934 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935 echo "${ECHO_T}$llvm_package_version" >&6; }
1936 LLVM_VERSION=$llvm_package_version
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2014 { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in clang llvm-gcc gcc
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2063 test -n "$ac_ct_CC" && break
2066 if test "x$ac_ct_CC" = x; then
2069 case $cross_compiling:$ac_tool_warned in
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort. b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions. Remove them first so a
2155 # subsequent execution test works.
2157 for ac_file in $ac_files
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2166 if { (ac_try="$ac_link_default"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2181 for ac_file in $ac_files
2183 test -f "$ac_file" || continue
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188 # We found the default executable, but exeext='' is most
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209 echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2223 # Check that the compiler produces executables we can run. If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2395 grep -v '^ *+' conftest.er1 >conftest.err
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2446 cat >conftest.$ac_ext <<_ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2525 grep -v '^ *+' conftest.er1 >conftest.err
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2634 if test "$GCC" = yes; then
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 ac_cv_prog_cc_c89=no
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2671 s = g (p, va_arg (v,int));
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2717 grep -v '^ *+' conftest.er1 >conftest.err
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2750 rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 rm -f conftest.$ac_ext
2758 case "x$ac_cv_prog_cc_c89" in
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2822 { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2827 test -n "$CXX" && break
2830 if test -z "$CXX"; then
2832 for ac_prog in clang++ llvm-g++ g++
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2871 test -n "$ac_ct_CXX" && break
2874 if test "x$ac_ct_CXX" = x; then
2877 case $cross_compiling:$ac_tool_warned in
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet. If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3198 if test "$GXX" = yes; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272 if test -z "$ac_cpp_err"; then
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3323 # Passes both tests.
3328 rm -f conftest.err conftest.$ac_ext
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 # Check whether --enable-polly was given.
3472 if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3478 case "$enableval" in
3483 default) ENABLE_POLLY=1
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3491 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3494 subdirs="$subdirs tools/polly"
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3505 { echo "$as_me:$LINENO: checking build system type" >&5
3506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507 if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524 echo "${ECHO_T}$ac_cv_build" >&6; }
3525 case $ac_cv_build in
3527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528 echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3532 ac_save_IFS=$IFS; IFS='-'
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545 { echo "$as_me:$LINENO: checking host system type" >&5
3546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547 if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561 echo "${ECHO_T}$ac_cv_host" >&6; }
3564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565 echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3569 ac_save_IFS=$IFS; IFS='-'
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3582 { echo "$as_me:$LINENO: checking target system type" >&5
3583 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584 if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3597 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598 echo "${ECHO_T}$ac_cv_target" >&6; }
3599 case $ac_cv_target in
3601 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602 echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3605 target=$ac_cv_target
3606 ac_save_IFS=$IFS; IFS='-'
3612 # Remember, the first character of IFS is used to create $*,
3613 # except with old shells:
3616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619 # The aliases save the names the user supplied, while $host etc.
3620 # will get canonicalized.
3621 test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3624 program_prefix=${target_alias}-
3626 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628 if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 llvm_cv_target_os_type="AIX" ;;
3746 llvm_cv_target_os_type="IRIX" ;;
3748 llvm_cv_target_os_type="Cygwin" ;;
3750 llvm_cv_target_os_type="Darwin" ;;
3752 llvm_cv_target_os_type="Minix" ;;
3754 llvm_cv_target_os_type="FreeBSD" ;;
3756 llvm_cv_target_os_type="OpenBSD" ;;
3758 llvm_cv_target_os_type="NetBSD" ;;
3760 llvm_cv_target_os_type="DragonFly" ;;
3762 llvm_cv_target_os_type="HP-UX" ;;
3764 llvm_cv_target_os_type="Interix" ;;
3766 llvm_cv_target_os_type="Linux" ;;
3768 llvm_cv_target_os_type="SunOS" ;;
3770 llvm_cv_target_os_type="AuroraUX" ;;
3772 llvm_cv_target_os_type="Win32" ;;
3774 llvm_cv_target_os_type="MingW" ;;
3776 llvm_cv_target_os_type="Haiku" ;;
3778 llvm_cv_target_os_type="RTEMS" ;;
3780 llvm_cv_target_os_type="NativeClient" ;;
3782 llvm_cv_target_os_type="Freestanding" ;;
3784 llvm_cv_target_os_type="Unknown" ;;
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3798 HOST_OS=$llvm_cv_os_type
3800 TARGET_OS=$llvm_cv_target_os_type
3803 LINKALL=$llvm_cv_link_all_option
3805 NOLINKALL=$llvm_cv_no_link_all_option
3808 case $llvm_cv_platform_type in
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3844 arm*-*) llvm_cv_target_arch="ARM" ;;
3845 mips-*) llvm_cv_target_arch="Mips" ;;
3846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
3848 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3849 ptx-*) llvm_cv_target_arch="PTX" ;;
3850 *) llvm_cv_target_arch="Unknown" ;;
3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3854 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856 if test "$llvm_cv_target_arch" = "Unknown" ; then
3857 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3858 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3861 # Determine the LLVM native architecture for the target
3862 case "$llvm_cv_target_arch" in
3863 x86) LLVM_NATIVE_ARCH="X86" ;;
3864 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3865 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3868 ARCH=$llvm_cv_target_arch
3873 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3874 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 # Extract the first word of "grep ggrep" to use in msg output
3879 if test -z "$GREP"; then
3880 set dummy grep ggrep; ac_prog_name=$2
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_path_GREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in grep ggrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896 # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 echo 'GREP' >> "conftest.nl"
3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 ac_count=`expr $ac_count + 1`
3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_GREP="$ac_path_GREP"
3915 ac_path_GREP_max=$ac_count
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 $ac_path_GREP_found && break 3
3934 GREP="$ac_cv_path_GREP"
3935 if test -z "$GREP"; then
3936 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3937 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3938 { (exit 1); exit 1; }; }
3942 ac_cv_path_GREP=$GREP
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3949 GREP="$ac_cv_path_GREP"
3952 { echo "$as_me:$LINENO: checking for egrep" >&5
3953 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_EGREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3958 then ac_cv_path_EGREP="$GREP -E"
3960 # Extract the first word of "egrep" to use in msg output
3961 if test -z "$EGREP"; then
3962 set dummy egrep; ac_prog_name=$2
3963 if test "${ac_cv_path_EGREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 ac_path_EGREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in egrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3977 # Check for GNU ac_path_EGREP and select it if it is found.
3978 # Check for GNU $ac_path_EGREP
3979 case `"$ac_path_EGREP" --version 2>&1` in
3981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3984 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 echo 'EGREP' >> "conftest.nl"
3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 ac_count=`expr $ac_count + 1`
3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_EGREP="$ac_path_EGREP"
3997 ac_path_EGREP_max=$ac_count
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 $ac_path_EGREP_found && break 3
4016 EGREP="$ac_cv_path_EGREP"
4017 if test -z "$EGREP"; then
4018 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4019 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4020 { (exit 1); exit 1; }; }
4024 ac_cv_path_EGREP=$EGREP
4030 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4031 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4032 EGREP="$ac_cv_path_EGREP"
4035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4037 if test "${ac_cv_header_stdc+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4059 rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_compile") 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest.$ac_objext'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_cv_header_stdc=yes
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_cv_header_stdc=no
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 if test $ac_cv_header_stdc = yes; then
4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "memchr" >/dev/null 2>&1; then
4118 ac_cv_header_stdc=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "free" >/dev/null 2>&1; then
4139 ac_cv_header_stdc=no
4145 if test $ac_cv_header_stdc = yes; then
4146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4147 if test "$cross_compiling" = yes; then
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4158 #if ((' ' & 0x0FF) == 0x020)
4159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162 # define ISLOWER(c) \
4163 (('a' <= (c) && (c) <= 'i') \
4164 || ('j' <= (c) && (c) <= 'r') \
4165 || ('s' <= (c) && (c) <= 'z'))
4166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174 for (i = 0; i < 256; i++)
4175 if (XOR (islower (i), ISLOWER (i))
4176 || toupper (i) != TOUPPER (i))
4181 rm -f conftest$ac_exeext
4182 if { (ac_try="$ac_link"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_link") 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4203 echo "$as_me: program exited with status $ac_status" >&5
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_header_stdc=no
4210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4218 if test $ac_cv_header_stdc = yes; then
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 $ac_includes_default
4253 #include <$ac_header>
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 eval "$as_ac_Header=yes"
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 eval "$as_ac_Header=no"
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_res=`eval echo '${'$as_ac_Header'}'`
4300 { echo "$as_me:$LINENO: result: $ac_res" >&5
4301 echo "${ECHO_T}$ac_res" >&6; }
4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303 cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4313 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4314 if test "${ac_cv_c_bigendian+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 # See if sys/param.h defines the BYTE_ORDER macro.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <sys/types.h>
4325 #include <sys/param.h>
4330 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 # It does; now see whether it defined to BIG_ENDIAN or not.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4385 #if BYTE_ORDER != BIG_ENDIAN
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_c_bigendian=yes
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4432 ac_cv_c_bigendian=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 # It does not; compile a test program.
4441 if test "$cross_compiling" = yes; then
4442 # try to guess the endianness by grepping values into an object file
4443 ac_cv_c_bigendian=unknown
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4451 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4453 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4454 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4459 _ascii (); _ebcdic ();
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4473 grep -v '^ *+' conftest.er1 >conftest.err
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4499 ac_cv_c_bigendian=yes
4501 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4502 if test "$ac_cv_c_bigendian" = unknown; then
4503 ac_cv_c_bigendian=no
4505 # finding both strings is unlikely to happen, but who knows?
4506 ac_cv_c_bigendian=unknown
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 $ac_includes_default
4529 /* Are we little or big endian? From Harbison&Steele. */
4533 char c[sizeof (long int)];
4536 return u.c[sizeof (long int) - 1] == 1;
4542 rm -f conftest$ac_exeext
4543 if { (ac_try="$ac_link"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_link") 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4553 { (case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_try") 2>&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; }; then
4562 ac_cv_c_bigendian=no
4564 echo "$as_me: program exited with status $ac_status" >&5
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4569 ac_cv_c_bigendian=yes
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4581 case $ac_cv_c_bigendian in
4589 { { echo "$as_me:$LINENO: error: unknown endianness
4590 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4591 echo "$as_me: error: unknown endianness
4592 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4593 { (exit 1); exit 1; }; } ;;
4597 if test "$cross_compiling" = yes; then
4598 LLVM_CROSS_COMPILING=1
4601 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4602 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4603 if test "${ac_cv_build_exeext+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4607 ac_cv_build_exeext=.exe
4609 ac_build_prefix=${build_alias}-
4611 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4612 set dummy ${ac_build_prefix}gcc; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 if test -n "$BUILD_CC"; then
4619 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 BUILD_CC=$ac_cv_prog_BUILD_CC
4639 if test -n "$BUILD_CC"; then
4640 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4641 echo "${ECHO_T}$BUILD_CC" >&6; }
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4648 if test -z "$BUILD_CC"; then
4649 # Extract the first word of "gcc", so it can be a program name with args.
4650 set dummy gcc; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 if test -n "$BUILD_CC"; then
4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_BUILD_CC="gcc"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 BUILD_CC=$ac_cv_prog_BUILD_CC
4677 if test -n "$BUILD_CC"; then
4678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4679 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 if test -z "$BUILD_CC"; then
4687 # Extract the first word of "cc", so it can be a program name with args.
4688 set dummy cc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$BUILD_CC"; then
4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4706 ac_prog_rejected=yes
4709 ac_cv_prog_BUILD_CC="cc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 if test $ac_prog_rejected = yes; then
4718 # We found a bogon in the path, so make sure we never use it.
4719 set dummy $ac_cv_prog_BUILD_CC
4721 if test $# != 0; then
4722 # We chose a different compiler from the bogus one.
4723 # However, it has the same basename, so the bogon will be chosen
4724 # first if we set BUILD_CC to just the basename; use the full file name.
4726 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4743 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4745 { (exit 1); exit 1; }; }
4746 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748 echo 'int main () { return 0; }' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4751 (eval $ac_build_link) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 for file in conftest.*; do
4757 *.c | *.o | *.obj | *.dSYM) ;;
4758 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4762 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4763 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4764 { (exit 1); exit 1; }; }
4767 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4772 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4773 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4774 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4775 ac_build_exeext=$BUILD_EXEEXT
4777 ac_build_prefix=${build_alias}-
4778 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4779 set dummy ${ac_build_prefix}g++; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$BUILD_CXX"; then
4786 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4806 if test -n "$BUILD_CXX"; then
4807 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4808 echo "${ECHO_T}$BUILD_CXX" >&6; }
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 if test -z "$BUILD_CXX"; then
4816 # Extract the first word of "g++", so it can be a program name with args.
4817 set dummy g++; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$BUILD_CXX"; then
4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_BUILD_CXX="g++"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4844 if test -n "$BUILD_CXX"; then
4845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4846 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 if test -z "$BUILD_CXX"; then
4854 # Extract the first word of "c++", so it can be a program name with args.
4855 set dummy c++; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$BUILD_CXX"; then
4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4873 ac_prog_rejected=yes
4876 ac_cv_prog_BUILD_CXX="c++"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 if test $ac_prog_rejected = yes; then
4885 # We found a bogon in the path, so make sure we never use it.
4886 set dummy $ac_cv_prog_BUILD_CXX
4888 if test $# != 0; then
4889 # We chose a different compiler from the bogus one.
4890 # However, it has the same basename, so the bogon will be chosen
4891 # first if we set BUILD_CXX to just the basename; use the full file name.
4893 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4911 LLVM_CROSS_COMPILING=0
4915 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4926 # Check whether --enable-optimized was given.
4927 if test "${enable_optimized+set}" = set; then
4928 enableval=$enable_optimized;
4933 if test ${enableval} = "no" ; then
4937 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4941 # Check whether --enable-profiling was given.
4942 if test "${enable_profiling+set}" = set; then
4943 enableval=$enable_profiling;
4948 if test ${enableval} = "no" ; then
4952 ENABLE_PROFILING=ENABLE_PROFILING=1
4956 # Check whether --enable-assertions was given.
4957 if test "${enable_assertions+set}" = set; then
4958 enableval=$enable_assertions;
4963 if test ${enableval} = "yes" ; then
4967 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4971 # Check whether --enable-expensive-checks was given.
4972 if test "${enable_expensive_checks+set}" = set; then
4973 enableval=$enable_expensive_checks;
4978 if test ${enableval} = "yes" ; then
4979 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981 EXPENSIVE_CHECKS=yes
4984 ENABLE_EXPENSIVE_CHECKS=
4990 # Check whether --enable-debug-runtime was given.
4991 if test "${enable_debug_runtime+set}" = set; then
4992 enableval=$enable_debug_runtime;
4997 if test ${enableval} = "no" ; then
5001 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5005 # Check whether --enable-debug-symbols was given.
5006 if test "${enable_debug_symbols+set}" = set; then
5007 enableval=$enable_debug_symbols;
5012 if test ${enableval} = "no" ; then
5016 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5020 # Check whether --enable-jit was given.
5021 if test "${enable_jit+set}" = set; then
5022 enableval=$enable_jit;
5027 if test ${enableval} = "no"
5032 case "$llvm_cv_target_arch" in
5033 x86) TARGET_HAS_JIT=1
5035 Sparc) TARGET_HAS_JIT=0
5037 PowerPC) TARGET_HAS_JIT=1
5039 x86_64) TARGET_HAS_JIT=1
5041 Alpha) TARGET_HAS_JIT=0
5043 ARM) TARGET_HAS_JIT=1
5045 Mips) TARGET_HAS_JIT=1
5047 XCore) TARGET_HAS_JIT=0
5049 MSP430) TARGET_HAS_JIT=0
5051 MBlaze) TARGET_HAS_JIT=0
5053 PTX) TARGET_HAS_JIT=0
5060 # Check whether --enable-docs was given.
5061 if test "${enable_docs+set}" = set; then
5062 enableval=$enable_docs;
5067 case "$enableval" in
5072 default) ENABLE_DOCS=1
5074 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5075 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5076 { (exit 1); exit 1; }; } ;;
5079 # Check whether --enable-doxygen was given.
5080 if test "${enable_doxygen+set}" = set; then
5081 enableval=$enable_doxygen;
5086 case "$enableval" in
5087 yes) ENABLE_DOXYGEN=1
5089 no) ENABLE_DOXYGEN=0
5091 default) ENABLE_DOXYGEN=0
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5098 # Check whether --enable-threads was given.
5099 if test "${enable_threads+set}" = set; then
5100 enableval=$enable_threads;
5105 case "$enableval" in
5106 yes) ENABLE_THREADS=1
5108 no) ENABLE_THREADS=0
5110 default) ENABLE_THREADS=1
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 cat >>confdefs.h <<_ACEOF
5118 #define ENABLE_THREADS $ENABLE_THREADS
5122 # Check whether --enable-pthreads was given.
5123 if test "${enable_pthreads+set}" = set; then
5124 enableval=$enable_pthreads;
5129 case "$enableval" in
5130 yes) ENABLE_PTHREADS=1
5132 no) ENABLE_PTHREADS=0
5134 default) ENABLE_PTHREADS=1
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 # Check whether --enable-pic was given.
5142 if test "${enable_pic+set}" = set; then
5143 enableval=$enable_pic;
5148 case "$enableval" in
5153 default) ENABLE_PIC=1
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5160 cat >>confdefs.h <<_ACEOF
5161 #define ENABLE_PIC $ENABLE_PIC
5165 # Check whether --enable-shared was given.
5166 if test "${enable_shared+set}" = set; then
5167 enableval=$enable_shared;
5172 case "$enableval" in
5173 yes) ENABLE_SHARED=1
5177 default) ENABLE_SHARED=0
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 # Check whether --enable-embed-stdcxx was given.
5185 if test "${enable_embed_stdcxx+set}" = set; then
5186 enableval=$enable_embed_stdcxx;
5191 case "$enableval" in
5192 yes) ENABLE_EMBED_STDCXX=1
5194 no) ENABLE_EMBED_STDCXX=0
5196 default) ENABLE_EMBED_STDCXX=1
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 # Check whether --enable-timestamps was given.
5204 if test "${enable_timestamps+set}" = set; then
5205 enableval=$enable_timestamps;
5210 case "$enableval" in
5211 yes) ENABLE_TIMESTAMPS=1
5213 no) ENABLE_TIMESTAMPS=0
5215 default) ENABLE_TIMESTAMPS=1
5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5219 { (exit 1); exit 1; }; } ;;
5222 cat >>confdefs.h <<_ACEOF
5223 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5228 # Check whether --enable-targets was given.
5229 if test "${enable_targets+set}" = set; then
5230 enableval=$enable_targets;
5235 if test "$enableval" = host-only ; then
5238 case "$enableval" in
5239 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
5240 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5242 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5244 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5245 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5246 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5247 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5248 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5249 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5250 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5251 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5252 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5253 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5254 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5255 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5256 host) case "$llvm_cv_target_arch" in
5257 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5259 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5260 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5261 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5262 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5263 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5264 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5265 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5266 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5267 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5268 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5269 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5270 echo "$as_me: error: Can not set target to build" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5273 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5274 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5280 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5283 # Determine whether we are building LLVM support for the native architecture.
5284 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5285 for a_target in $TARGETS_TO_BUILD; do
5286 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5288 cat >>confdefs.h <<_ACEOF
5289 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5292 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5293 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5294 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5295 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5296 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5297 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5319 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5321 cat >>confdefs.h <<_ACEOF
5322 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5329 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5330 # target feature def files.
5331 LLVM_ENUM_TARGETS=""
5332 LLVM_ENUM_ASM_PRINTERS=""
5333 LLVM_ENUM_ASM_PARSERS=""
5334 LLVM_ENUM_DISASSEMBLERS=""
5335 for target_to_build in $TARGETS_TO_BUILD; do
5336 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5337 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5338 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5340 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5341 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5343 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5344 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5352 # Check whether --enable-cbe-printf-a was given.
5353 if test "${enable_cbe_printf_a+set}" = set; then
5354 enableval=$enable_cbe_printf_a;
5359 case "$enableval" in
5360 yes) ENABLE_CBE_PRINTF_A=1
5362 no) ENABLE_CBE_PRINTF_A=0
5364 default) ENABLE_CBE_PRINTF_A=1
5366 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5367 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5371 cat >>confdefs.h <<_ACEOF
5372 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5377 # Check whether --with-optimize-option was given.
5378 if test "${with_optimize_option+set}" = set; then
5379 withval=$with_optimize_option;
5384 { echo "$as_me:$LINENO: checking optimization flags" >&5
5385 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5388 case "$llvm_cv_os_type" in
5389 FreeBSD) optimize_option=-O2 ;;
5390 MingW) optimize_option=-O2 ;;
5391 *) optimize_option=-O3 ;;
5393 *) optimize_option="$withval" ;;
5395 OPTIMIZE_OPTION=$optimize_option
5397 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5398 echo "${ECHO_T}$optimize_option" >&6; }
5401 # Check whether --with-extra-options was given.
5402 if test "${with_extra_options+set}" = set; then
5403 withval=$with_extra_options;
5409 default) EXTRA_OPTIONS= ;;
5410 *) EXTRA_OPTIONS=$withval ;;
5412 EXTRA_OPTIONS=$EXTRA_OPTIONS
5416 # Check whether --with-extra-ld-options was given.
5417 if test "${with_extra_ld_options+set}" = set; then
5418 withval=$with_extra_ld_options;
5424 default) EXTRA_LD_OPTIONS= ;;
5425 *) EXTRA_LD_OPTIONS=$withval ;;
5427 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5430 # Check whether --enable-bindings was given.
5431 if test "${enable_bindings+set}" = set; then
5432 enableval=$enable_bindings;
5437 BINDINGS_TO_BUILD=""
5438 case "$enableval" in
5439 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5440 all ) BINDINGS_TO_BUILD="ocaml" ;;
5441 none | no) BINDINGS_TO_BUILD="" ;;
5442 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5443 case "$a_binding" in
5444 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5445 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5446 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5447 { (exit 1); exit 1; }; } ;;
5454 # Check whether --with-ocaml-libdir was given.
5455 if test "${with_ocaml_libdir+set}" = set; then
5456 withval=$with_ocaml_libdir;
5462 auto) with_ocaml_libdir="$withval" ;;
5463 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5464 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5465 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5466 { (exit 1); exit 1; }; } ;;
5470 # Check whether --with-clang-resource-dir was given.
5471 if test "${with_clang_resource_dir+set}" = set; then
5472 withval=$with_clang_resource_dir;
5478 cat >>confdefs.h <<_ACEOF
5479 #define CLANG_RESOURCE_DIR "$withval"
5484 # Check whether --with-c-include-dirs was given.
5485 if test "${with_c_include_dirs+set}" = set; then
5486 withval=$with_c_include_dirs;
5492 cat >>confdefs.h <<_ACEOF
5493 #define C_INCLUDE_DIRS "$withval"
5498 # Check whether --with-cxx-include-root was given.
5499 if test "${with_cxx_include_root+set}" = set; then
5500 withval=$with_cxx_include_root;
5506 cat >>confdefs.h <<_ACEOF
5507 #define CXX_INCLUDE_ROOT "$withval"
5512 # Check whether --with-cxx-include-arch was given.
5513 if test "${with_cxx_include_arch+set}" = set; then
5514 withval=$with_cxx_include_arch;
5520 cat >>confdefs.h <<_ACEOF
5521 #define CXX_INCLUDE_ARCH "$withval"
5526 # Check whether --with-cxx-include-32bit-dir was given.
5527 if test "${with_cxx_include_32bit_dir+set}" = set; then
5528 withval=$with_cxx_include_32bit_dir;
5534 cat >>confdefs.h <<_ACEOF
5535 #define CXX_INCLUDE_32BIT_DIR "$withval"
5540 # Check whether --with-cxx-include-64bit-dir was given.
5541 if test "${with_cxx_include_64bit_dir+set}" = set; then
5542 withval=$with_cxx_include_64bit_dir;
5548 cat >>confdefs.h <<_ACEOF
5549 #define CXX_INCLUDE_64BIT_DIR "$withval"
5554 # Check whether --with-binutils-include was given.
5555 if test "${with_binutils_include+set}" = set; then
5556 withval=$with_binutils_include;
5562 default) WITH_BINUTILS_INCDIR=default ;;
5563 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5564 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5565 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5566 { (exit 1); exit 1; }; } ;;
5568 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5569 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5571 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5572 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5573 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5574 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5575 { (exit 1); exit 1; }; };
5580 # Check whether --with-bug-report-url was given.
5581 if test "${with_bug_report_url+set}" = set; then
5582 withval=$with_bug_report_url;
5584 withval="http://llvm.org/bugs/"
5588 cat >>confdefs.h <<_ACEOF
5589 #define BUG_REPORT_URL "$withval"
5593 # Check whether --enable-libffi was given.
5594 if test "${enable_libffi+set}" = set; then
5595 enableval=$enable_libffi; case "$enableval" in
5596 yes) llvm_cv_enable_libffi="yes" ;;
5597 no) llvm_cv_enable_libffi="no" ;;
5598 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5599 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5600 { (exit 1); exit 1; }; } ;;
5603 llvm_cv_enable_libffi=no
5608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5610 if test "${lt_cv_path_NM+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 if test -n "$NM"; then
5614 # Let the user override the test.
5617 lt_nm_to_check="${ac_tool_prefix}nm"
5618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5619 lt_nm_to_check="$lt_nm_to_check nm"
5621 for lt_tmp_nm in $lt_nm_to_check; do
5622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5625 test -z "$ac_dir" && ac_dir=.
5626 tmp_nm="$ac_dir/$lt_tmp_nm"
5627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5628 # Check to see if the nm accepts a BSD-compat flag.
5629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5630 # nm: unknown option "B" ignored
5631 # Tru64's nm complains that /dev/null is an invalid object file
5632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5633 */dev/null* | *'Invalid file or object type'*)
5634 lt_cv_path_NM="$tmp_nm -B"
5638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5640 lt_cv_path_NM="$tmp_nm -p"
5644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5645 continue # so that we can try to find one that supports BSD flags
5654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5663 { echo "$as_me:$LINENO: checking for GNU make" >&5
5664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5665 if test "${llvm_cv_gnu_make_command+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 llvm_cv_gnu_make_command=''
5669 for a in "$MAKE" make gmake gnumake ; do
5670 if test -z "$a" ; then continue ; fi ;
5671 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5673 llvm_cv_gnu_make_command=$a ;
5678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5680 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5684 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5685 echo "${ECHO_T}\"Not found\"" >&6; };
5689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5692 if test "$LN_S" = "ln -s"; then
5693 { echo "$as_me:$LINENO: result: yes" >&5
5694 echo "${ECHO_T}yes" >&6; }
5696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5697 echo "${ECHO_T}no, using $LN_S" >&6; }
5700 # Extract the first word of "cmp", so it can be a program name with args.
5701 set dummy cmp; ac_word=$2
5702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5704 if test "${ac_cv_path_CMP+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5732 if test -n "$CMP"; then
5733 { echo "$as_me:$LINENO: result: $CMP" >&5
5734 echo "${ECHO_T}$CMP" >&6; }
5736 { echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6; }
5741 # Extract the first word of "cp", so it can be a program name with args.
5742 set dummy cp; ac_word=$2
5743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745 if test "${ac_cv_path_CP+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5773 if test -n "$CP"; then
5774 { echo "$as_me:$LINENO: result: $CP" >&5
5775 echo "${ECHO_T}$CP" >&6; }
5777 { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5782 # Extract the first word of "date", so it can be a program name with args.
5783 set dummy date; ac_word=$2
5784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_DATE+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5813 DATE=$ac_cv_path_DATE
5814 if test -n "$DATE"; then
5815 { echo "$as_me:$LINENO: result: $DATE" >&5
5816 echo "${ECHO_T}$DATE" >&6; }
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5823 # Extract the first word of "find", so it can be a program name with args.
5824 set dummy find; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_path_FIND+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5854 FIND=$ac_cv_path_FIND
5855 if test -n "$FIND"; then
5856 { echo "$as_me:$LINENO: result: $FIND" >&5
5857 echo "${ECHO_T}$FIND" >&6; }
5859 { echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6; }
5864 # Extract the first word of "grep", so it can be a program name with args.
5865 set dummy grep; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_path_GREP+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5895 GREP=$ac_cv_path_GREP
5896 if test -n "$GREP"; then
5897 { echo "$as_me:$LINENO: result: $GREP" >&5
5898 echo "${ECHO_T}$GREP" >&6; }
5900 { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5905 # Extract the first word of "mkdir", so it can be a program name with args.
5906 set dummy mkdir; ac_word=$2
5907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909 if test "${ac_cv_path_MKDIR+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5936 MKDIR=$ac_cv_path_MKDIR
5937 if test -n "$MKDIR"; then
5938 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5939 echo "${ECHO_T}$MKDIR" >&6; }
5941 { echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6; }
5946 # Extract the first word of "mv", so it can be a program name with args.
5947 set dummy mv; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_MV+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5978 if test -n "$MV"; then
5979 { echo "$as_me:$LINENO: result: $MV" >&5
5980 echo "${ECHO_T}$MV" >&6; }
5982 { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992 if test "${ac_cv_prog_RANLIB+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 if test -n "$RANLIB"; then
5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 RANLIB=$ac_cv_prog_RANLIB
6016 if test -n "$RANLIB"; then
6017 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6018 echo "${ECHO_T}$RANLIB" >&6; }
6020 { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6026 if test -z "$ac_cv_prog_RANLIB"; then
6027 ac_ct_RANLIB=$RANLIB
6028 # Extract the first word of "ranlib", so it can be a program name with args.
6029 set dummy ranlib; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_RANLIB="ranlib"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056 if test -n "$ac_ct_RANLIB"; then
6057 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6060 { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6064 if test "x$ac_ct_RANLIB" = x; then
6067 case $cross_compiling:$ac_tool_warned in
6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6070 whose name does not start with the host triplet. If you think this
6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6073 whose name does not start with the host triplet. If you think this
6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6075 ac_tool_warned=yes ;;
6077 RANLIB=$ac_ct_RANLIB
6080 RANLIB="$ac_cv_prog_RANLIB"
6083 if test -n "$ac_tool_prefix"; then
6084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6085 set dummy ${ac_tool_prefix}ar; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_AR+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 if test -n "$AR"; then
6092 ac_cv_prog_AR="$AR" # Let the user override the test.
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_AR="${ac_tool_prefix}ar"
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 if test -n "$AR"; then
6113 { echo "$as_me:$LINENO: result: $AR" >&5
6114 echo "${ECHO_T}$AR" >&6; }
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6122 if test -z "$ac_cv_prog_AR"; then
6124 # Extract the first word of "ar", so it can be a program name with args.
6125 set dummy ar; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test -n "$ac_ct_AR"; then
6132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_AR="ar"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152 if test -n "$ac_ct_AR"; then
6153 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6154 echo "${ECHO_T}$ac_ct_AR" >&6; }
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6160 if test "x$ac_ct_AR" = x; then
6163 case $cross_compiling:$ac_tool_warned in
6165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6166 whose name does not start with the host triplet. If you think this
6167 configuration is useful to you, please write to autoconf@gnu.org." >&5
6168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6169 whose name does not start with the host triplet. If you think this
6170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6171 ac_tool_warned=yes ;;
6179 # Extract the first word of "rm", so it can be a program name with args.
6180 set dummy rm; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_RM+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6211 if test -n "$RM"; then
6212 { echo "$as_me:$LINENO: result: $RM" >&5
6213 echo "${ECHO_T}$RM" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6220 # Extract the first word of "sed", so it can be a program name with args.
6221 set dummy sed; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_SED+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6252 if test -n "$SED"; then
6253 { echo "$as_me:$LINENO: result: $SED" >&5
6254 echo "${ECHO_T}$SED" >&6; }
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6261 # Extract the first word of "tar", so it can be a program name with args.
6262 set dummy tar; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_TAR+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6293 if test -n "$TAR"; then
6294 { echo "$as_me:$LINENO: result: $TAR" >&5
6295 echo "${ECHO_T}$TAR" >&6; }
6297 { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6302 # Extract the first word of "pwd", so it can be a program name with args.
6303 set dummy pwd; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_BINPWD+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6333 BINPWD=$ac_cv_path_BINPWD
6334 if test -n "$BINPWD"; then
6335 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6336 echo "${ECHO_T}$BINPWD" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6344 # Extract the first word of "Graphviz", so it can be a program name with args.
6345 set dummy Graphviz; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6375 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6376 if test -n "$GRAPHVIZ"; then
6377 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6378 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6380 { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6385 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_GRAPHVIZ 1
6391 if test "$llvm_cv_os_type" = "MingW" ; then
6392 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6395 cat >>confdefs.h <<_ACEOF
6396 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6400 # Extract the first word of "dot", so it can be a program name with args.
6401 set dummy dot; ac_word=$2
6402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404 if test "${ac_cv_path_DOT+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6432 if test -n "$DOT"; then
6433 { echo "$as_me:$LINENO: result: $DOT" >&5
6434 echo "${ECHO_T}$DOT" >&6; }
6436 { echo "$as_me:$LINENO: result: no" >&5
6437 echo "${ECHO_T}no" >&6; }
6441 if test "$DOT" != "echo dot" ; then
6443 cat >>confdefs.h <<\_ACEOF
6447 if test "$llvm_cv_os_type" = "MingW" ; then
6448 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6451 cat >>confdefs.h <<_ACEOF
6452 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6456 # Extract the first word of "fdp", so it can be a program name with args.
6457 set dummy fdp; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_FDP+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6488 if test -n "$FDP"; then
6489 { echo "$as_me:$LINENO: result: $FDP" >&5
6490 echo "${ECHO_T}$FDP" >&6; }
6492 { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6497 if test "$FDP" != "echo fdp" ; then
6499 cat >>confdefs.h <<\_ACEOF
6503 if test "$llvm_cv_os_type" = "MingW" ; then
6504 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6507 cat >>confdefs.h <<_ACEOF
6508 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6512 # Extract the first word of "neato", so it can be a program name with args.
6513 set dummy neato; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_path_NEATO+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6543 NEATO=$ac_cv_path_NEATO
6544 if test -n "$NEATO"; then
6545 { echo "$as_me:$LINENO: result: $NEATO" >&5
6546 echo "${ECHO_T}$NEATO" >&6; }
6548 { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6553 if test "$NEATO" != "echo neato" ; then
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_NEATO 1
6559 if test "$llvm_cv_os_type" = "MingW" ; then
6560 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6563 cat >>confdefs.h <<_ACEOF
6564 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6568 # Extract the first word of "twopi", so it can be a program name with args.
6569 set dummy twopi; ac_word=$2
6570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572 if test "${ac_cv_path_TWOPI+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6599 TWOPI=$ac_cv_path_TWOPI
6600 if test -n "$TWOPI"; then
6601 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6602 echo "${ECHO_T}$TWOPI" >&6; }
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6609 if test "$TWOPI" != "echo twopi" ; then
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_TWOPI 1
6615 if test "$llvm_cv_os_type" = "MingW" ; then
6616 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6619 cat >>confdefs.h <<_ACEOF
6620 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6624 # Extract the first word of "circo", so it can be a program name with args.
6625 set dummy circo; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_CIRCO+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6655 CIRCO=$ac_cv_path_CIRCO
6656 if test -n "$CIRCO"; then
6657 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6658 echo "${ECHO_T}$CIRCO" >&6; }
6660 { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6665 if test "$CIRCO" != "echo circo" ; then
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_CIRCO 1
6671 if test "$llvm_cv_os_type" = "MingW" ; then
6672 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6675 cat >>confdefs.h <<_ACEOF
6676 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6680 for ac_prog in gv gsview32
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy $ac_prog; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_GV+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 if test -n "$GV"; then
6714 { echo "$as_me:$LINENO: result: $GV" >&5
6715 echo "${ECHO_T}$GV" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 test -n "$GV" && break
6724 test -n "$GV" || GV="echo gv"
6726 if test "$GV" != "echo gv" ; then
6728 cat >>confdefs.h <<\_ACEOF
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_GV "$GV${EXEEXT}"
6741 # Extract the first word of "dotty", so it can be a program name with args.
6742 set dummy dotty; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_DOTTY+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6772 DOTTY=$ac_cv_path_DOTTY
6773 if test -n "$DOTTY"; then
6774 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6775 echo "${ECHO_T}$DOTTY" >&6; }
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 if test "$DOTTY" != "echo dotty" ; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_DOTTY 1
6788 if test "$llvm_cv_os_type" = "MingW" ; then
6789 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6792 cat >>confdefs.h <<_ACEOF
6793 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6797 # Extract the first word of "xdot.py", so it can be a program name with args.
6798 set dummy xdot.py; ac_word=$2
6799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6828 XDOT_PY=$ac_cv_path_XDOT_PY
6829 if test -n "$XDOT_PY"; then
6830 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6831 echo "${ECHO_T}$XDOT_PY" >&6; }
6833 { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6838 if test "$XDOT_PY" != "echo xdot.py" ; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_XDOT_PY 1
6844 if test "$llvm_cv_os_type" = "MingW" ; then
6845 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6848 cat >>confdefs.h <<_ACEOF
6849 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6855 # Extract the first word of "perl", so it can be a program name with args.
6856 set dummy perl; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_PERL+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6886 PERL=$ac_cv_path_PERL
6887 if test -n "$PERL"; then
6888 { echo "$as_me:$LINENO: result: $PERL" >&5
6889 echo "${ECHO_T}$PERL" >&6; }
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 if test "$PERL" != "none"; then
6897 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6898 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6899 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6900 { echo "$as_me:$LINENO: result: yes" >&5
6901 echo "${ECHO_T}yes" >&6; }
6904 { echo "$as_me:$LINENO: result: not found" >&5
6905 echo "${ECHO_T}not found" >&6; }
6910 if test x"$PERL" = xnone; then
6913 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6914 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6915 { (exit 1); exit 1; }; }
6921 # Find a good install program. We prefer a C program (faster),
6922 # so one script is as good as another. But avoid the broken or
6923 # incompatible versions:
6924 # SysV /etc/install, /usr/sbin/install
6925 # SunOS /usr/etc/install
6926 # IRIX /sbin/install
6928 # AmigaOS /C/install, which installs bootblocks on floppy discs
6929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6932 # OS/2's system install, which has a completely different semantic
6933 # ./install, which can be erroneously created by make from ./install.sh.
6934 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6936 if test -z "$INSTALL"; then
6937 if test "${ac_cv_path_install+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 # Account for people who put trailing slashes in PATH elements.
6947 ./ | .// | /cC/* | \
6948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6952 # OSF1 and SCO ODT 3.0 have their own names for install.
6953 # Don't use installbsd from OSF since it installs stuff as root
6955 for ac_prog in ginstall scoinst install; do
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6958 if test $ac_prog = install &&
6959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6960 # AIX install. It has an incompatible calling convention.
6962 elif test $ac_prog = install &&
6963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6964 # program-specific install script used by HP pwplus--don't use.
6967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6980 if test "${ac_cv_path_install+set}" = set; then
6981 INSTALL=$ac_cv_path_install
6983 # As a last resort, use the slow shell script. Don't cache a
6984 # value for INSTALL within a source directory, because that will
6985 # break other packages using the cache if that directory is
6986 # removed, or if the value is a relative name.
6987 INSTALL=$ac_install_sh
6990 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6991 echo "${ECHO_T}$INSTALL" >&6; }
6993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6994 # It thinks the first close brace ends the variable substitution.
6995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7002 [\\/$]* | ?:[\\/]* ) ;;
7003 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7006 # Extract the first word of "bzip2", so it can be a program name with args.
7007 set dummy bzip2; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_path_BZIP2+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 BZIP2=$ac_cv_path_BZIP2
7037 if test -n "$BZIP2"; then
7038 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7039 echo "${ECHO_T}$BZIP2" >&6; }
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "cat", so it can be a program name with args.
7047 set dummy cat; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_CAT+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 if test -n "$CAT"; then
7078 { echo "$as_me:$LINENO: result: $CAT" >&5
7079 echo "${ECHO_T}$CAT" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 # Extract the first word of "doxygen", so it can be a program name with args.
7087 set dummy doxygen; ac_word=$2
7088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7090 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 DOXYGEN=$ac_cv_path_DOXYGEN
7117 if test -n "$DOXYGEN"; then
7118 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7119 echo "${ECHO_T}$DOXYGEN" >&6; }
7121 { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7126 # Extract the first word of "groff", so it can be a program name with args.
7127 set dummy groff; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_path_GROFF+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 GROFF=$ac_cv_path_GROFF
7157 if test -n "$GROFF"; then
7158 { echo "$as_me:$LINENO: result: $GROFF" >&5
7159 echo "${ECHO_T}$GROFF" >&6; }
7161 { echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6; }
7166 # Extract the first word of "gzip", so it can be a program name with args.
7167 set dummy gzip; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 GZIPBIN=$ac_cv_path_GZIPBIN
7197 if test -n "$GZIPBIN"; then
7198 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7199 echo "${ECHO_T}$GZIPBIN" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7206 # Extract the first word of "pod2html", so it can be a program name with args.
7207 set dummy pod2html; ac_word=$2
7208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210 if test "${ac_cv_path_POD2HTML+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 POD2HTML=$ac_cv_path_POD2HTML
7237 if test -n "$POD2HTML"; then
7238 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7239 echo "${ECHO_T}$POD2HTML" >&6; }
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7246 # Extract the first word of "pod2man", so it can be a program name with args.
7247 set dummy pod2man; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_POD2MAN+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 POD2MAN=$ac_cv_path_POD2MAN
7277 if test -n "$POD2MAN"; then
7278 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7279 echo "${ECHO_T}$POD2MAN" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 # Extract the first word of "pdfroff", so it can be a program name with args.
7287 set dummy pdfroff; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_PDFROFF+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 PDFROFF=$ac_cv_path_PDFROFF
7317 if test -n "$PDFROFF"; then
7318 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7319 echo "${ECHO_T}$PDFROFF" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "runtest", so it can be a program name with args.
7327 set dummy runtest; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_RUNTEST+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 RUNTEST=$ac_cv_path_RUNTEST
7357 if test -n "$RUNTEST"; then
7358 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7359 echo "${ECHO_T}$RUNTEST" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7368 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7369 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7371 # Check whether --with-tclinclude was given.
7372 if test "${with_tclinclude+set}" = set; then
7373 withval=$with_tclinclude; with_tclinclude=${withval}
7378 if test "${ac_cv_path_tclsh+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 if test x"${with_tclinclude}" != x ; then
7383 if test -f ${with_tclinclude}/tclsh ; then
7384 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7385 elif test -f ${with_tclinclude}/src/tclsh ; then
7386 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7388 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7389 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7390 { (exit 1); exit 1; }; }
7396 if test x"${ac_cv_path_tclsh}" = x ; then
7397 { echo "$as_me:$LINENO: result: none" >&5
7398 echo "${ECHO_T}none" >&6; }
7399 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
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_TCLSH+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 TCLSH=$ac_cv_path_TCLSH
7432 if test -n "$TCLSH"; then
7433 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7434 echo "${ECHO_T}$TCLSH" >&6; }
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7441 test -n "$TCLSH" && break
7444 if test x"${TCLSH}" = x ; then
7445 ac_cv_path_tclsh='';
7447 ac_cv_path_tclsh="${TCLSH}";
7450 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7451 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7452 TCLSH="${ac_cv_path_tclsh}"
7456 # Extract the first word of "zip", so it can be a program name with args.
7457 set dummy zip; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_ZIP+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 if test -n "$ZIP"; then
7488 { echo "$as_me:$LINENO: result: $ZIP" >&5
7489 echo "${ECHO_T}$ZIP" >&6; }
7491 { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7496 for ac_prog in ocamlc
7498 # Extract the first word of "$ac_prog", so it can be a program name with args.
7499 set dummy $ac_prog; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_path_OCAMLC+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 OCAMLC=$ac_cv_path_OCAMLC
7529 if test -n "$OCAMLC"; then
7530 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7531 echo "${ECHO_T}$OCAMLC" >&6; }
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7538 test -n "$OCAMLC" && break
7541 for ac_prog in ocamlopt
7543 # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 OCAMLOPT=$ac_cv_path_OCAMLOPT
7574 if test -n "$OCAMLOPT"; then
7575 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7576 echo "${ECHO_T}$OCAMLOPT" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 test -n "$OCAMLOPT" && break
7586 for ac_prog in ocamldep
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 OCAMLDEP=$ac_cv_path_OCAMLDEP
7619 if test -n "$OCAMLDEP"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7621 echo "${ECHO_T}$OCAMLDEP" >&6; }
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 test -n "$OCAMLDEP" && break
7631 for ac_prog in ocamldoc
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 OCAMLDOC=$ac_cv_path_OCAMLDOC
7664 if test -n "$OCAMLDOC"; then
7665 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7666 echo "${ECHO_T}$OCAMLDOC" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$OCAMLDOC" && break
7676 for ac_prog in gas as
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_GAS+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 if test -n "$GAS"; then
7710 { echo "$as_me:$LINENO: result: $GAS" >&5
7711 echo "${ECHO_T}$GAS" >&6; }
7713 { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7718 test -n "$GAS" && break
7722 { echo "$as_me:$LINENO: checking for linker version" >&5
7723 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7724 if test "${llvm_cv_link_version+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 version_string="$(ld -v 2>&1 | head -1)"
7731 if (echo "$version_string" | grep -q "ld64"); then
7732 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7734 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7738 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7739 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7741 cat >>confdefs.h <<_ACEOF
7742 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7747 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7748 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7749 if test "${llvm_cv_link_use_r+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759 CFLAGS="$CFLAGS -Wl,-R."
7760 cat >conftest.$ac_ext <<_ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (ac_try="$ac_link"
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782 (eval "$ac_link") 2>conftest.er1
7784 grep -v '^ *+' conftest.er1 >conftest.err
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7790 { (case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_try") 2>&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_try") 2>&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 llvm_cv_link_use_r=yes
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 llvm_cv_link_use_r=no
7817 rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7829 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7830 if test "$llvm_cv_link_use_r" = yes ; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_LINK_R 1
7839 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7840 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7841 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; } &&
7891 { ac_try='test -s conftest$ac_exeext'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 llvm_cv_link_use_export_dynamic=yes
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 llvm_cv_link_use_export_dynamic=no
7909 rm -f core conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7921 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7922 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7924 cat >>confdefs.h <<\_ACEOF
7925 #define HAVE_LINK_EXPORT_DYNAMIC 1
7931 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7932 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7933 if test "${llvm_cv_link_use_version_script+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944 # The following code is from the autoconf manual,
7945 # "11.13: Limitations of Usual Tools".
7946 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7947 # Use mktemp if possible; otherwise fall back on mkdir,
7948 # with $RANDOM to make collisions less likely.
7952 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7954 test -n "$tmp" && test -d "$tmp"
7956 tmp=$TMPDIR/foo$$-$RANDOM
7957 (umask 077 && mkdir "$tmp")
7960 echo "{" > "$tmp/export.map"
7961 echo " global: main;" >> "$tmp/export.map"
7962 echo " local: *;" >> "$tmp/export.map"
7963 echo "};" >> "$tmp/export.map"
7965 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7966 cat >conftest.$ac_ext <<_ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985 *) ac_try_echo=$ac_try;;
7987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988 (eval "$ac_link") 2>conftest.er1
7990 grep -v '^ *+' conftest.er1 >conftest.err
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 llvm_cv_link_use_version_script=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 llvm_cv_link_use_version_script=no
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 rm "$tmp/export.map"
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8038 if test "$llvm_cv_link_use_version_script" = yes ; then
8039 HAVE_LINK_VERSION_SCRIPT=1
8046 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8047 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8048 if test "${ac_cv_c_const+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8061 /* FIXME: Include the comments suggested by Paul. */
8063 /* Ultrix mips cc rejects this. */
8064 typedef int charset[2];
8066 /* SunOS 4.1.1 cc rejects this. */
8067 char const *const *ccp;
8069 /* NEC SVR4.0.2 mips cc rejects this. */
8070 struct point {int x, y;};
8071 static struct point const zero = {0,0};
8072 /* AIX XL C 1.02.0.0 rejects this.
8073 It does not let you subtract one const X* pointer from another in
8074 an arm of an if-expression whose if-part is not a constant
8076 const char *g = "string";
8077 ccp = &g + (g ? g-g : 0);
8078 /* HPUX 7.0 cc rejects these. */
8081 ccp = (char const *const *) p;
8082 { /* SCO 3.2v4 cc rejects this. */
8084 char const *s = 0 ? (char *) 0 : (char const *) 0;
8089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8091 const int *foo = &x[0];
8094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8095 typedef const int *iptr;
8099 { /* AIX XL C 1.02.0.0 rejects this saying
8100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8101 struct s { int j; const int *ap[3]; };
8102 struct s *b; b->j = 5;
8104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8108 return !x[0] && !zero.x;
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest.$ac_objext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8160 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8161 if test $ac_cv_c_const = no; then
8163 cat >>confdefs.h <<\_ACEOF
8175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8176 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8177 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8178 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <sys/types.h>
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 eval "$as_ac_Header=yes"
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 eval "$as_ac_Header=no"
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 ac_res=`eval echo '${'$as_ac_Header'}'`
8245 { echo "$as_me:$LINENO: result: $ac_res" >&5
8246 echo "${ECHO_T}$ac_res" >&6; }
8247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8248 cat >>confdefs.h <<_ACEOF
8249 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8252 ac_header_dirent=$ac_hdr; break
8256 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8257 if test $ac_header_dirent = dirent.h; then
8258 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8260 if test "${ac_cv_search_opendir+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8271 /* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8286 for ac_lib in '' dir; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_link") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 ac_cv_search_opendir=$ac_res
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8335 rm -f core conftest.err conftest.$ac_objext \
8337 if test "${ac_cv_search_opendir+set}" = set; then
8341 if test "${ac_cv_search_opendir+set}" = set; then
8344 ac_cv_search_opendir=no
8347 LIBS=$ac_func_search_save_LIBS
8349 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8351 ac_res=$ac_cv_search_opendir
8352 if test "$ac_res" != no; then
8353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8358 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8359 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8360 if test "${ac_cv_search_opendir+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 ac_func_search_save_LIBS=$LIBS
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8386 for ac_lib in '' x; do
8387 if test -z "$ac_lib"; then
8388 ac_res="none required"
8391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_search_opendir=$ac_res
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8435 rm -f core conftest.err conftest.$ac_objext \
8437 if test "${ac_cv_search_opendir+set}" = set; then
8441 if test "${ac_cv_search_opendir+set}" = set; then
8444 ac_cv_search_opendir=no
8447 LIBS=$ac_func_search_save_LIBS
8449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8451 ac_res=$ac_cv_search_opendir
8452 if test "$ac_res" != no; then
8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8460 for ac_header in dlfcn.h
8462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 ac_res=`eval echo '${'$as_ac_Header'}'`
8470 { echo "$as_me:$LINENO: result: $ac_res" >&5
8471 echo "${ECHO_T}$ac_res" >&6; }
8473 # Is the header compilable?
8474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8476 cat >conftest.$ac_ext <<_ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 $ac_includes_default
8483 #include <$ac_header>
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1 >conftest.err
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest.$ac_objext'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_header_compiler=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_header_compiler=no
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8529 echo "${ECHO_T}$ac_header_compiler" >&6; }
8531 # Is the header present?
8532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 #include <$ac_header>
8542 if { (ac_try="$ac_cpp conftest.$ac_ext"
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } >/dev/null; then
8555 if test -s conftest.err; then
8556 ac_cpp_err=$ac_c_preproc_warn_flag
8557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8564 if test -z "$ac_cpp_err"; then
8565 ac_header_preproc=yes
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_header_preproc=no
8573 rm -f conftest.err conftest.$ac_ext
8574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6; }
8577 # So? What about this header?
8578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8584 ac_header_preproc=yes
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8600 ## ------------------------------ ##
8601 ## Report this to bugs@yourdomain ##
8602 ## ------------------------------ ##
8604 ) | sed "s/^/$as_me: WARNING: /" >&2
8607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 eval "$as_ac_Header=\$ac_header_preproc"
8614 ac_res=`eval echo '${'$as_ac_Header'}'`
8615 { echo "$as_me:$LINENO: result: $ac_res" >&5
8616 echo "${ECHO_T}$ac_res" >&6; }
8619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8620 cat >>confdefs.h <<_ACEOF
8621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 # Check whether --enable-ltdl-install was given.
8629 if test "${enable_ltdl_install+set}" = set; then
8630 enableval=$enable_ltdl_install;
8636 if test x"${enable_ltdl_install-no}" != xno; then
8638 INSTALL_LTDL_FALSE='#'
8640 INSTALL_LTDL_TRUE='#'
8646 if test x"${enable_ltdl_convenience-no}" != xno; then
8647 CONVENIENCE_LTDL_TRUE=
8648 CONVENIENCE_LTDL_FALSE='#'
8650 CONVENIENCE_LTDL_TRUE='#'
8651 CONVENIENCE_LTDL_FALSE=
8655 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8658 libname_spec='lib$name'
8666 shlibpath_overrides_runpath=unknown
8668 dynamic_linker="$host_os ld.so"
8669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8670 if test "$GCC" = yes; then
8671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8673 # if the path contains ";" then we assume it to be the separator
8674 # otherwise default to the standard path separator (i.e. ":") - it is
8675 # assumed that no part of a normal pathname contains ";" but that should
8676 # okay in the real world where ";" in dirpaths is itself problematic.
8677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8684 need_lib_prefix=unknown
8685 hardcode_into_libs=no
8687 # when you set need_version to no, make sure it does not cause -set_version
8688 # flags to be left without arguments
8689 need_version=unknown
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8695 shlibpath_var=LIBPATH
8697 # AIX 3 has no versioning support, so we append a major version to the name.
8698 soname_spec='${libname}${release}${shared_ext}$major'
8705 hardcode_into_libs=yes
8706 if test "$host_cpu" = ia64; then
8707 # AIX 5 supports IA64
8708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8709 shlibpath_var=LD_LIBRARY_PATH
8711 # With GCC up to 2.95.x, collect2 would create an import file
8712 # for dependence libraries. The import file would start with
8713 # the line `#! .'. This would cause the generated library to
8714 # depend on `.', always an invalid library. This was fixed in
8715 # development snapshots of GCC prior to 3.0.
8717 aix4 | aix4.[01] | aix4.[01].*)
8718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8728 # soname into executable. Probably we can add versioning support to
8729 # collect2, so additional links can be useful in future.
8730 if test "$aix_use_runtimelinking" = yes; then
8731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8732 # instead of lib<name>.a to let people know that these are not
8733 # typical AIX shared libraries.
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736 # We preserve .a as extension for shared libraries through AIX4.2
8737 # and later when we are not doing run time linking.
8738 library_names_spec='${libname}${release}.a $libname.a'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8741 shlibpath_var=LIBPATH
8746 library_names_spec='$libname.ixlibrary $libname.a'
8747 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8748 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'
8752 library_names_spec='${libname}${shared_ext}'
8753 dynamic_linker="$host_os ld.so"
8754 shlibpath_var=LIBRARY_PATH
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8763 shlibpath_var=LD_LIBRARY_PATH
8764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8766 # the default ld.so.conf also contains /usr/contrib/lib and
8767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8768 # libtool to hard-code these into programs
8771 cygwin* | mingw* | pw32*)
8772 version_type=windows
8777 case $GCC,$host_os in
8778 yes,cygwin* | yes,mingw* | yes,pw32*)
8779 library_names_spec='$libname.dll.a'
8780 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8781 postinstall_cmds='base_file=`basename \${file}`~
8782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8783 dldir=$destdir/`dirname \$dlpath`~
8784 test -d \$dldir || mkdir -p \$dldir~
8785 $install_prog $dir/$dlname \$dldir/$dlname~
8786 chmod a+x \$dldir/$dlname'
8787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8788 dlpath=$dir/\$dldll~
8790 shlibpath_overrides_runpath=yes
8794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8799 # MinGW DLLs use traditional 'lib' prefix
8800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8802 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8803 # It is most probably a Windows format PATH printed by
8804 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8805 # path with ; separators, and with drive letters. We can handle the
8806 # drive letters (cygwin fileutils understands them), so leave them,
8807 # especially as we might pass files found there to a mingw objdump,
8808 # which wouldn't understand a cygwinified path. Ahh.
8809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8815 # pw32 DLLs use 'pw' prefix rather than 'lib'
8816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8825 dynamic_linker='Win32 ld.exe'
8826 # FIXME: first we should search . and the directory the executable is in
8830 darwin* | rhapsody*)
8831 dynamic_linker="$host_os dyld"
8835 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8836 soname_spec='${libname}${release}${major}$shared_ext'
8837 shlibpath_overrides_runpath=yes
8838 shlibpath_var=DYLD_LIBRARY_PATH
8839 shrext_cmds='.dylib'
8840 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8841 if test "$GCC" = yes; then
8842 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"`
8844 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 shlibpath_var=LD_LIBRARY_PATH
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 shlibpath_overrides_runpath=no
8870 hardcode_into_libs=yes
8871 dynamic_linker='GNU ld.so'
8874 freebsd* | dragonfly*)
8875 # DragonFly does not have aout. When/if they implement a new
8876 # versioning mechanism, adjust this.
8877 if test -x /usr/bin/objformat; then
8878 objformat=`/usr/bin/objformat`
8881 freebsd[123]*) objformat=aout ;;
8885 version_type=freebsd-$objformat
8886 case $version_type in
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8897 shlibpath_var=LD_LIBRARY_PATH
8900 shlibpath_overrides_runpath=yes
8902 freebsd3.[01]* | freebsdelf3.[01]*)
8903 shlibpath_overrides_runpath=yes
8904 hardcode_into_libs=yes
8906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8908 shlibpath_overrides_runpath=no
8909 hardcode_into_libs=yes
8911 freebsd*) # from 4.6 on
8912 shlibpath_overrides_runpath=yes
8913 hardcode_into_libs=yes
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 hardcode_into_libs=yes
8928 hpux9* | hpux10* | hpux11*)
8929 # Give a soname corresponding to the major version so that dld.sl refuses to
8930 # link against other versions.
8937 hardcode_into_libs=yes
8938 dynamic_linker="$host_os dld.so"
8939 shlibpath_var=LD_LIBRARY_PATH
8940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 if test "X$HPUX_IA64_MODE" = X32; then
8944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8952 hardcode_into_libs=yes
8953 dynamic_linker="$host_os dld.sl"
8954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8963 dynamic_linker="$host_os dld.sl"
8964 shlibpath_var=SHLIB_PATH
8965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8971 postinstall_cmds='chmod 555 $lib'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=no
8983 hardcode_into_libs=yes
8986 irix5* | irix6* | nonstopux*)
8988 nonstopux*) version_type=nonstopux ;;
8990 if test "$lt_cv_prog_gnu_ld" = yes; then
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9001 irix5* | nonstopux*)
9005 case $LD in # libtool.m4 will add one of these switches to LD
9006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9007 libsuff= shlibsuff= libmagic=32-bit;;
9008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9009 libsuff=32 shlibsuff=N32 libmagic=N32;;
9010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9012 *) libsuff= shlibsuff= libmagic=never-match;;
9016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9017 shlibpath_overrides_runpath=no
9018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9020 hardcode_into_libs=yes
9023 # No shared lib support for Linux oldld, aout, or coff.
9024 linux*oldld* | linux*aout* | linux*coff*)
9028 # This must be Linux ELF.
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=no
9038 # This implies no fast_install, which is unacceptable.
9039 # Some rework will be needed to allow for fast_install
9040 # before this can be enabled.
9041 hardcode_into_libs=yes
9043 # Append ld.so.conf contents to the search path
9044 if test -f /etc/ld.so.conf; then
9045 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' ' '`
9046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9049 # We used to test for /lib/ld.so.1 and disable shared libraries on
9050 # powerpc, because MkLinux only supported shared libraries with the
9051 # GNU dynamic linker. Since this was broken with cross compilers,
9052 # most powerpc-linux boxes support dynamic linking these days and
9053 # people can always --disable-shared, the test was removed, and we
9054 # assume the GNU/Linux dynamic linker is in use.
9055 dynamic_linker='GNU/Linux ld.so'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=no
9066 hardcode_into_libs=yes
9067 dynamic_linker='GNU ld.so'
9074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077 dynamic_linker='NetBSD (a.out) ld.so'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 dynamic_linker='NetBSD ld.elf_so'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 hardcode_into_libs=yes
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9107 sys_lib_dlsearch_path_spec="/usr/lib"
9109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9112 *) need_version=no ;;
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9119 openbsd2.[89] | openbsd2.[89].*)
9120 shlibpath_overrides_runpath=no
9123 shlibpath_overrides_runpath=yes
9127 shlibpath_overrides_runpath=yes
9132 libname_spec='$name'
9135 library_names_spec='$libname${shared_ext} $libname.a'
9136 dynamic_linker='OS/2 ld.exe'
9137 shlibpath_var=LIBPATH
9140 osf3* | osf4* | osf5*)
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 hardcode_into_libs=yes
9160 # ldd complains unless libraries are executable
9161 postinstall_cmds='chmod +x $lib'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9170 if test "$with_gnu_ld" = yes; then
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 case $host_vendor in
9183 shlibpath_overrides_runpath=no
9185 export_dynamic_flag_spec='${wl}-Blargedynsym'
9186 runpath_var=LD_RUN_PATH
9194 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9201 if test -d /usr/nec ;then
9203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9204 soname_spec='$libname${shared_ext}.$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9210 version_type=freebsd-elf
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 hardcode_into_libs=yes
9217 if test "$with_gnu_ld" = yes; then
9218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9219 shlibpath_overrides_runpath=no
9221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9222 shlibpath_overrides_runpath=yes
9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9229 sys_lib_dlsearch_path_spec='/usr/lib'
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9236 shlibpath_var=LD_LIBRARY_PATH
9243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9244 echo "${ECHO_T}$dynamic_linker" >&6; }
9245 test "$dynamic_linker" = no && can_build_shared=no
9247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9248 if test "$GCC" = yes; then
9249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9253 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9254 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9255 if test "${libltdl_cv_shlibext+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 eval libltdl_cv_shlibext=$shrext_cmds
9263 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9264 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9265 if test -n "$libltdl_cv_shlibext"; then
9267 cat >>confdefs.h <<_ACEOF
9268 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9274 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9275 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9276 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 libltdl_cv_shlibpath_var="$shlibpath_var"
9281 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9282 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9283 if test -n "$libltdl_cv_shlibpath_var"; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9292 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9293 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9294 if test "${libltdl_cv_sys_search_path+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9299 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9300 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9301 if test -n "$libltdl_cv_sys_search_path"; then
9303 for dir in $libltdl_cv_sys_search_path; do
9304 if test -z "$sys_search_path"; then
9305 sys_search_path="$dir"
9307 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9311 cat >>confdefs.h <<_ACEOF
9312 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9317 { echo "$as_me:$LINENO: checking for objdir" >&5
9318 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9319 if test "${libltdl_cv_objdir+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 libltdl_cv_objdir="$objdir"
9323 if test -n "$objdir"; then
9326 rm -f .libs 2>/dev/null
9327 mkdir .libs 2>/dev/null
9328 if test -d .libs; then
9329 libltdl_cv_objdir=.libs
9331 # MS-DOS does not allow filenames that begin with a dot.
9332 libltdl_cv_objdir=_libs
9334 rmdir .libs 2>/dev/null
9338 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9339 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9341 cat >>confdefs.h <<_ACEOF
9342 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9350 # Check for command to grab the raw symbol name followed by C symbol from nm.
9351 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9352 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9353 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 # These are sane defaults that work on at least a few old systems.
9358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9360 # Character class describing NM global symbol codes.
9361 symcode='[BCDEGRST]'
9363 # Regexp to match symbols that can be accessed directly from C.
9364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9366 # Transform an extracted symbol line into a proper C declaration
9367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9369 # Transform an extracted symbol line into symbol name and symbol address
9370 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'"
9372 # Define system-specific variables.
9377 cygwin* | mingw* | pw32*)
9378 symcode='[ABCDGISTW]'
9380 hpux*) # Its linker distinguishes data from code symbols
9381 if test "$host_cpu" = ia64; then
9382 symcode='[ABCDEGRST]'
9384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9385 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'"
9388 if test "$host_cpu" = ia64; then
9389 symcode='[ABCDGIRSTW]'
9390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9391 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'"
9395 symcode='[BCDEGRST]'
9398 symcode='[BCDEGQRST]'
9409 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9417 # Handle CRLF in mingw tool chain
9421 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9425 # If we're using GNU nm, then use its standard symbol codes.
9426 case `$NM -V 2>&1` in
9427 *GNU* | *'with BFD'*)
9428 symcode='[ABCDGIRSTW]' ;;
9431 # Try without a prefix undercore, then with it.
9432 for ac_symprfx in "" "_"; do
9434 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9435 symxfrm="\\1 $ac_symprfx\\2 \\2"
9437 # Write the raw and C identifiers.
9438 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9440 # Check to see that the pipe works correctly.
9444 cat > conftest.$ac_ext <<EOF
9449 void nm_test_func(){}
9453 int main(){nm_test_var='a';nm_test_func();return(0);}
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; then
9461 # Now try to grab the symbols.
9463 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9464 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && test -s "$nlist"; then
9468 # Try sorting and uniquifying the output.
9469 if sort "$nlist" | uniq > "$nlist"T; then
9470 mv -f "$nlist"T "$nlist"
9475 # Make sure that we snagged all the symbols we need.
9476 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9477 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9478 cat <<EOF > conftest.$ac_ext
9484 # Now generate the symbol file.
9485 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9487 cat <<EOF >> conftest.$ac_ext
9488 #if defined (__STDC__) && __STDC__
9489 # define lt_ptr_t void *
9491 # define lt_ptr_t char *
9495 /* The mapping between symbol names and symbols. */
9500 lt_preloaded_symbols[] =
9503 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9504 cat <<\EOF >> conftest.$ac_ext
9512 # Now try linking the two files.
9513 mv conftest.$ac_objext conftstm.$ac_objext
9514 lt_save_LIBS="$LIBS"
9515 lt_save_CFLAGS="$CFLAGS"
9516 LIBS="conftstm.$ac_objext"
9517 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9525 LIBS="$lt_save_LIBS"
9526 CFLAGS="$lt_save_CFLAGS"
9528 echo "cannot find nm_test_func in $nlist" >&5
9531 echo "cannot find nm_test_var in $nlist" >&5
9534 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9537 echo "$progname: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9540 rm -f conftest* conftst*
9542 # Do not use the global_symbol_pipe unless it works.
9543 if test "$pipe_works" = yes; then
9546 lt_cv_sys_global_symbol_pipe=
9552 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9553 lt_cv_sys_global_symbol_to_cdecl=
9555 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9556 { echo "$as_me:$LINENO: result: failed" >&5
9557 echo "${ECHO_T}failed" >&6; }
9559 { echo "$as_me:$LINENO: result: ok" >&5
9560 echo "${ECHO_T}ok" >&6; }
9564 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9565 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9566 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9570 libltdl_cv_preloaded_symbols=yes
9572 libltdl_cv_preloaded_symbols=no
9576 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9577 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9578 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_PRELOADED_SYMBOLS 1
9589 ac_cpp='$CPP $CPPFLAGS'
9590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9595 { echo "$as_me:$LINENO: checking for shl_load" >&5
9596 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9597 if test "${ac_cv_func_shl_load+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608 #define shl_load innocuous_shl_load
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char shl_load (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9616 # include <limits.h>
9618 # include <assert.h>
9623 /* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined __stub_shl_load || defined __stub___shl_load
9645 rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1 >conftest.err
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_func_shl_load=yes
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_func_shl_load=no
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9690 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9692 if test $ac_cv_func_shl_load = yes; then
9694 cat >>confdefs.h <<\_ACEOF
9695 #define HAVE_SHL_LOAD 1
9699 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_check_lib_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9743 { (case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_try") 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_try") 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_dld_shl_load=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_lib_dld_shl_load=no
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9774 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9775 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9776 if test $ac_cv_lib_dld_shl_load = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_SHL_LOAD 1
9782 LIBADD_DL="$LIBADD_DL -ldld"
9784 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9785 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9786 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 ac_check_lib_save_LIBS=$LIBS
9791 cat >conftest.$ac_ext <<_ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9822 grep -v '^ *+' conftest.er1 >conftest.err
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest$ac_exeext'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_lib_dl_dlopen=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_lib_dl_dlopen=no
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9861 if test $ac_cv_lib_dl_dlopen = yes; then
9863 cat >>confdefs.h <<\_ACEOF
9864 #define HAVE_LIBDL 1
9867 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_LIBDL 1
9925 libltdl_cv_func_dlopen="yes"
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9931 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9932 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 ac_check_lib_save_LIBS=$LIBS
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9974 { (case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_try") 2>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_lib_svld_dlopen=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_lib_svld_dlopen=no
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10006 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10007 if test $ac_cv_lib_svld_dlopen = yes; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10013 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10015 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10016 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_check_lib_save_LIBS=$LIBS
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10039 return dld_link ();
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059 { (case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064 (eval "$ac_try") 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; }; then
10078 ac_cv_lib_dld_dld_link=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_lib_dld_dld_link=no
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10092 if test $ac_cv_lib_dld_dld_link = yes; then
10094 cat >>confdefs.h <<\_ACEOF
10098 LIBADD_DL="$LIBADD_DL -ldld"
10100 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10101 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10102 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10113 #define _dyld_func_lookup innocuous__dyld_func_lookup
10115 /* System header to define __stub macros and hopefully few prototypes,
10116 which can conflict with char _dyld_func_lookup (); below.
10117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10118 <limits.h> exists even on freestanding compilers. */
10121 # include <limits.h>
10123 # include <assert.h>
10126 #undef _dyld_func_lookup
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10134 char _dyld_func_lookup ();
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10145 return _dyld_func_lookup ();
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
10159 grep -v '^ *+' conftest.er1 >conftest.err
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165 { (case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_try") 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_func__dyld_func_lookup=yes
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10189 ac_cv_func__dyld_func_lookup=no
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10195 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10196 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10197 if test $ac_cv_func__dyld_func_lookup = yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_DYLD 1
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10226 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10228 lt_save_LIBS="$LIBS"
10229 LIBS="$LIBS $LIBADD_DL"
10231 for ac_func in dlerror
10233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 cat >conftest.$ac_ext <<_ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h. */
10245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10247 #define $ac_func innocuous_$ac_func
10249 /* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char $ac_func (); below.
10251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252 <limits.h> exists even on freestanding compilers. */
10255 # include <limits.h>
10257 # include <assert.h>
10262 /* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10269 /* The GNU C library defines this for functions which it implements
10270 to always fail with ENOSYS. Some functions are actually named
10271 something starting with __ and the normal name is an alias. */
10272 #if defined __stub_$ac_func || defined __stub___$ac_func
10279 return $ac_func ();
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (ac_try="$ac_link"
10286 case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 eval "$as_ac_var=no"
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10329 ac_res=`eval echo '${'$as_ac_var'}'`
10330 { echo "$as_me:$LINENO: result: $ac_res" >&5
10331 echo "${ECHO_T}$ac_res" >&6; }
10332 if test `eval echo '${'$as_ac_var'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10340 LIBS="$lt_save_LIBS"
10343 ac_cpp='$CPP $CPPFLAGS'
10344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10350 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10351 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10352 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 ac_cv_sys_symbol_underscore=no
10356 cat > conftest.$ac_ext <<EOF
10357 void nm_test_func(){}
10358 int main(){nm_test_func;return 0;}
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; then
10365 # Now try to grab the symbols.
10366 ac_nlist=conftest.nm
10367 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10368 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && test -s "$ac_nlist"; then
10372 # See whether the symbols have a leading underscore.
10373 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10374 ac_cv_sys_symbol_underscore=yes
10376 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10379 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10383 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10386 echo "configure: failed program was:" >&5
10392 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10393 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10396 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10397 if test x"$libltdl_cv_func_dlopen" = xyes ||
10398 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10399 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10400 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10401 if test "${libltdl_cv_need_uscore+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 libltdl_cv_need_uscore=unknown
10406 LIBS="$LIBS $LIBADD_DL"
10407 if test "$cross_compiling" = yes; then :
10408 libltdl_cv_need_uscore=cross
10410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10411 lt_status=$lt_dlunknown
10412 cat > conftest.$ac_ext <<EOF
10413 #line 10423 "configure"
10414 #include "confdefs.h"
10423 # define LT_DLGLOBAL RTLD_GLOBAL
10426 # define LT_DLGLOBAL DL_GLOBAL
10428 # define LT_DLGLOBAL 0
10432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10433 find out it does not work in some platform. */
10434 #ifndef LT_DLLAZY_OR_NOW
10436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10439 # define LT_DLLAZY_OR_NOW DL_LAZY
10442 # define LT_DLLAZY_OR_NOW RTLD_NOW
10445 # define LT_DLLAZY_OR_NOW DL_NOW
10447 # define LT_DLLAZY_OR_NOW 0
10455 extern "C" void exit (int);
10458 void fnord() { int i=42;}
10461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10462 int status = $lt_dlunknown;
10466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 /* dlclose (self); */
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10481 (./conftest; exit; ) >&5 2>/dev/null
10483 case x$lt_status in
10484 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10485 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10486 x$lt_dlunknown|x*) ;;
10489 # compilation failed
10498 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10499 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10503 if test x"$libltdl_cv_need_uscore" = xyes; then
10505 cat >>confdefs.h <<\_ACEOF
10506 #define NEED_USCORE 1
10512 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10513 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10514 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 # PORTME does your system automatically load deplibs for dlopen?
10518 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10519 # For now, we just catch OSes we know something about -- in the
10520 # future, we'll try test this programmatically.
10521 libltdl_cv_sys_dlopen_deplibs=unknown
10523 aix3*|aix4.1.*|aix4.2.*)
10524 # Unknown whether this is true for these versions of AIX, but
10525 # we want this `case' here to explicitly catch those versions.
10526 libltdl_cv_sys_dlopen_deplibs=unknown
10529 libltdl_cv_sys_dlopen_deplibs=yes
10532 # Assuming the user has installed a libdl from somewhere, this is true
10533 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10534 libltdl_cv_sys_dlopen_deplibs=yes
10536 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10537 # GNU and its variants, using gnu ld.so (Glibc)
10538 libltdl_cv_sys_dlopen_deplibs=yes
10541 libltdl_cv_sys_dlopen_deplibs=yes
10544 libltdl_cv_sys_dlopen_deplibs=yes
10546 irix[12345]*|irix6.[01]*)
10547 # Catch all versions of IRIX before 6.2, and indicate that we don't
10548 # know how it worked for any of those versions.
10549 libltdl_cv_sys_dlopen_deplibs=unknown
10552 # The case above catches anything before 6.2, and it's known that
10553 # at 6.2 and later dlopen does load deplibs.
10554 libltdl_cv_sys_dlopen_deplibs=yes
10557 libltdl_cv_sys_dlopen_deplibs=yes
10560 libltdl_cv_sys_dlopen_deplibs=yes
10563 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10564 # it did *not* use an RPATH in a shared library to find objects the
10565 # library depends on, so we explicitly say `no'.
10566 libltdl_cv_sys_dlopen_deplibs=no
10568 osf5.0|osf5.0a|osf5.1)
10569 # dlopen *does* load deplibs and with the right loader patch applied
10570 # it even uses RPATH in a shared library to search for shared objects
10571 # that the library depends on, but there's no easy way to know if that
10572 # patch is installed. Since this is the case, all we can really
10573 # say is unknown -- it depends on the patch being installed. If
10574 # it is, this changes to `yes'. Without it, it would be `no'.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10578 # the two cases above should catch all versions of osf <= 5.1. Read
10579 # the comments above for what we know about them.
10580 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10581 # is used to find them so we can finally say `yes'.
10582 libltdl_cv_sys_dlopen_deplibs=yes
10585 libltdl_cv_sys_dlopen_deplibs=yes
10587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10588 libltdl_cv_sys_dlopen_deplibs=yes
10593 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10594 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10595 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10597 cat >>confdefs.h <<\_ACEOF
10598 #define LTDL_DLOPEN_DEPLIBS 1
10604 for ac_header in argz.h
10606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 ac_res=`eval echo '${'$as_ac_Header'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615 echo "${ECHO_T}$ac_res" >&6; }
10617 # Is the header compilable?
10618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 $ac_includes_default
10627 #include <$ac_header>
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_compile") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_header_compiler=yes
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_header_compiler=no
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10673 echo "${ECHO_T}$ac_header_compiler" >&6; }
10675 # Is the header present?
10676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <$ac_header>
10686 if { (ac_try="$ac_cpp conftest.$ac_ext"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } >/dev/null; then
10699 if test -s conftest.err; then
10700 ac_cpp_err=$ac_c_preproc_warn_flag
10701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10708 if test -z "$ac_cpp_err"; then
10709 ac_header_preproc=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_header_preproc=no
10717 rm -f conftest.err conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10719 echo "${ECHO_T}$ac_header_preproc" >&6; }
10721 # So? What about this header?
10722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10728 ac_header_preproc=yes
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10744 ## ------------------------------ ##
10745 ## Report this to bugs@yourdomain ##
10746 ## ------------------------------ ##
10748 ) | sed "s/^/$as_me: WARNING: /" >&2
10751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 eval "$as_ac_Header=\$ac_header_preproc"
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10773 { echo "$as_me:$LINENO: checking for error_t" >&5
10774 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10775 if test "${ac_cv_type_error_t+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10788 typedef error_t ac__type_new_;
10792 if ((ac__type_new_ *) 0)
10794 if (sizeof (ac__type_new_))
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_compile") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815 { (case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820 (eval "$ac_try") 2>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest.$ac_objext'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_cv_type_error_t=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_type_error_t=no
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10845 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10846 if test $ac_cv_type_error_t = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define HAVE_ERROR_T 1
10855 cat >>confdefs.h <<\_ACEOF
10856 #define error_t int
10867 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883 #define $ac_func innocuous_$ac_func
10885 /* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char $ac_func (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10891 # include <limits.h>
10893 # include <assert.h>
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined __stub_$ac_func || defined __stub___$ac_func
10915 return $ac_func ();
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10935 { (case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_try") 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest$ac_exeext'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 eval "$as_ac_var=yes"
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 eval "$as_ac_var=no"
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10965 ac_res=`eval echo '${'$as_ac_var'}'`
10966 { echo "$as_me:$LINENO: result: $ac_res" >&5
10967 echo "${ECHO_T}$ac_res" >&6; }
10968 if test `eval echo '${'$as_ac_var'}'` = yes; then
10969 cat >>confdefs.h <<_ACEOF
10970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11003 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 ac_res=`eval echo '${'$as_ac_Header'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11017 # Is the header compilable?
11018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 $ac_includes_default
11027 #include <$ac_header>
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_header_compiler=yes
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_header_compiler=no
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11073 echo "${ECHO_T}$ac_header_compiler" >&6; }
11075 # Is the header present?
11076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11084 #include <$ac_header>
11086 if { (ac_try="$ac_cpp conftest.$ac_ext"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11094 grep -v '^ *+' conftest.er1 >conftest.err
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } >/dev/null; then
11099 if test -s conftest.err; then
11100 ac_cpp_err=$ac_c_preproc_warn_flag
11101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11108 if test -z "$ac_cpp_err"; then
11109 ac_header_preproc=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_header_preproc=no
11117 rm -f conftest.err conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119 echo "${ECHO_T}$ac_header_preproc" >&6; }
11121 # So? What about this header?
11122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128 ac_header_preproc=yes
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11144 ## ------------------------------ ##
11145 ## Report this to bugs@yourdomain ##
11146 ## ------------------------------ ##
11148 ) | sed "s/^/$as_me: WARNING: /" >&2
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 eval "$as_ac_Header=\$ac_header_preproc"
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11176 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 ac_res=`eval echo '${'$as_ac_Header'}'`
11186 { echo "$as_me:$LINENO: result: $ac_res" >&5
11187 echo "${ECHO_T}$ac_res" >&6; }
11189 # Is the header compilable?
11190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 $ac_includes_default
11199 #include <$ac_header>
11201 rm -f conftest.$ac_objext
11202 if { (ac_try="$ac_compile"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_compile") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; } &&
11225 { ac_try='test -s conftest.$ac_objext'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_header_compiler=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_header_compiler=no
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245 echo "${ECHO_T}$ac_header_compiler" >&6; }
11247 # Is the header present?
11248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <$ac_header>
11258 if { (ac_try="$ac_cpp conftest.$ac_ext"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } >/dev/null; then
11271 if test -s conftest.err; then
11272 ac_cpp_err=$ac_c_preproc_warn_flag
11273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11280 if test -z "$ac_cpp_err"; then
11281 ac_header_preproc=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_header_preproc=no
11289 rm -f conftest.err conftest.$ac_ext
11290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11291 echo "${ECHO_T}$ac_header_preproc" >&6; }
11293 # So? What about this header?
11294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11300 ac_header_preproc=yes
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11316 ## ------------------------------ ##
11317 ## Report this to bugs@yourdomain ##
11318 ## ------------------------------ ##
11320 ) | sed "s/^/$as_me: WARNING: /" >&2
11323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 eval "$as_ac_Header=\$ac_header_preproc"
11330 ac_res=`eval echo '${'$as_ac_Header'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11346 for ac_header in string.h strings.h
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_res=`eval echo '${'$as_ac_Header'}'`
11356 { echo "$as_me:$LINENO: result: $ac_res" >&5
11357 echo "${ECHO_T}$ac_res" >&6; }
11359 # Is the header compilable?
11360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11369 #include <$ac_header>
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_header_compiler=yes
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_compiler=no
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415 echo "${ECHO_T}$ac_header_compiler" >&6; }
11417 # Is the header present?
11418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <$ac_header>
11428 if { (ac_try="$ac_cpp conftest.$ac_ext"
11429 case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11436 grep -v '^ *+' conftest.er1 >conftest.err
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null; then
11441 if test -s conftest.err; then
11442 ac_cpp_err=$ac_c_preproc_warn_flag
11443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11450 if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_header_preproc=no
11459 rm -f conftest.err conftest.$ac_ext
11460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461 echo "${ECHO_T}$ac_header_preproc" >&6; }
11463 # So? What about this header?
11464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486 ## ------------------------------ ##
11487 ## Report this to bugs@yourdomain ##
11488 ## ------------------------------ ##
11490 ) | sed "s/^/$as_me: WARNING: /" >&2
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 eval "$as_ac_Header=\$ac_header_preproc"
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501 { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 for ac_func in strchr index
11519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 cat >conftest.$ac_ext <<_ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11533 #define $ac_func innocuous_$ac_func
11535 /* System header to define __stub macros and hopefully few prototypes,
11536 which can conflict with char $ac_func (); below.
11537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 <limits.h> exists even on freestanding compilers. */
11541 # include <limits.h>
11543 # include <assert.h>
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined __stub_$ac_func || defined __stub___$ac_func
11565 return $ac_func ();
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_link") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest$ac_exeext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 eval "$as_ac_var=no"
11612 rm -f core conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11615 ac_res=`eval echo '${'$as_ac_var'}'`
11616 { echo "$as_me:$LINENO: result: $ac_res" >&5
11617 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_var'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 for ac_func in strrchr rindex
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11652 # include <limits.h>
11654 # include <assert.h>
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11676 return $ac_func ();
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 eval "$as_ac_var=yes"
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11720 eval "$as_ac_var=no"
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11726 ac_res=`eval echo '${'$as_ac_var'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_var'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 for ac_func in memcpy bcopy
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11755 #define $ac_func innocuous_$ac_func
11757 /* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func (); below.
11759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760 <limits.h> exists even on freestanding compilers. */
11763 # include <limits.h>
11765 # include <assert.h>
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined __stub_$ac_func || defined __stub___$ac_func
11787 return $ac_func ();
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (ac_try="$ac_link"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_link") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1 >conftest.err
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_var=yes"
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 eval "$as_ac_var=no"
11834 rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11837 ac_res=`eval echo '${'$as_ac_var'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_var'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 for ac_func in memmove strcmp
11852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866 #define $ac_func innocuous_$ac_func
11868 /* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11874 # include <limits.h>
11876 # include <assert.h>
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11888 /* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined __stub_$ac_func || defined __stub___$ac_func
11898 return $ac_func ();
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 eval "$as_ac_var=yes"
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11948 ac_res=`eval echo '${'$as_ac_var'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 for ac_func in closedir opendir readdir
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define $ac_func innocuous_$ac_func
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
12000 /* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003 #if defined __stub_$ac_func || defined __stub___$ac_func
12010 return $ac_func ();
12015 rm -f conftest.$ac_objext conftest$ac_exeext
12016 if { (ac_try="$ac_link"
12017 case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 eval "$as_ac_var=yes"
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 eval "$as_ac_var=no"
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12060 ac_res=`eval echo '${'$as_ac_var'}'`
12061 { echo "$as_me:$LINENO: result: $ac_res" >&5
12062 echo "${ECHO_T}$ac_res" >&6; }
12063 if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12074 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12087 if test "$GCC" != "yes" && test "$ICC" != "yes"
12089 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12090 echo "$as_me: error: gcc|icc required but not found" >&2;}
12091 { (exit 1); exit 1; }; }
12094 if test "$GXX" != "yes" && test "$IXX" != "yes"
12096 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12097 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12098 { (exit 1); exit 1; }; }
12101 if test "$GCC" = "yes"
12103 cat >conftest.$ac_ext <<_ACEOF
12104 #if !defined(__GNUC__) || __GNUC__ < 3
12105 #error Unsupported GCC version
12109 rm -f conftest.$ac_objext
12110 if { (ac_try="$ac_compile"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1 >conftest.err
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12124 { (case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_try") 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; } &&
12133 { ac_try='test -s conftest.$ac_objext'
12134 { (case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_try") 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12149 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12150 { (exit 1); exit 1; }; }
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 if test -z "$llvm_cv_gnu_make_command"
12158 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12159 echo "$as_me: error: GNU Make required but not found" >&2;}
12160 { (exit 1); exit 1; }; }
12163 { echo "$as_me:$LINENO: result: ok" >&5
12164 echo "${ECHO_T}ok" >&6; }
12166 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12167 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12168 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12170 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12172 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12173 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12177 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12178 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12179 if test "${ac_cv_lib_m_sin+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 ac_check_lib_save_LIBS=$LIBS
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_lib_m_sin=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12253 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12254 if test $ac_cv_lib_m_sin = yes; then
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_LIBM 1
12263 if test "$llvm_cv_os_type" = "MingW" ; then
12265 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12266 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12267 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 ac_check_lib_save_LIBS=$LIBS
12271 LIBS="-limagehlp $LIBS"
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_link") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12303 { (case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_try") 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_lib_imagehlp_main=yes
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_cv_lib_imagehlp_main=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12335 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12336 if test $ac_cv_lib_imagehlp_main = yes; then
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_LIBIMAGEHLP 1
12341 LIBS="-limagehlp $LIBS"
12346 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12347 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12348 if test "${ac_cv_lib_psapi_main+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lpsapi $LIBS"
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (ac_try="$ac_link"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_link") 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_lib_psapi_main=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_lib_psapi_main=no
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12415 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12416 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12417 if test $ac_cv_lib_psapi_main = yes; then
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_LIBPSAPI 1
12422 LIBS="-lpsapi $LIBS"
12428 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12429 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12430 if test "${ac_cv_search_dlopen+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 ac_func_search_save_LIBS=$LIBS
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12456 for ac_lib in '' dl; do
12457 if test -z "$ac_lib"; then
12458 ac_res="none required"
12461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (ac_try="$ac_link"
12465 case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_link") 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12478 { (case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_try") 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest$ac_exeext'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 ac_cv_search_dlopen=$ac_res
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12505 rm -f core conftest.err conftest.$ac_objext \
12507 if test "${ac_cv_search_dlopen+set}" = set; then
12511 if test "${ac_cv_search_dlopen+set}" = set; then
12514 ac_cv_search_dlopen=no
12516 rm conftest.$ac_ext
12517 LIBS=$ac_func_search_save_LIBS
12519 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12521 ac_res=$ac_cv_search_dlopen
12522 if test "$ac_res" != no; then
12523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_DLOPEN 1
12530 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12531 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12535 if test "$llvm_cv_enable_libffi" = "yes" ; then
12536 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12537 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12538 if test "${ac_cv_search_ffi_call+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 ac_func_search_save_LIBS=$LIBS
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12559 return ffi_call ();
12564 for ac_lib in '' ffi; do
12565 if test -z "$ac_lib"; then
12566 ac_res="none required"
12569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_link") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12586 { (case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_try") 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest$ac_exeext'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_search_ffi_call=$ac_res
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12613 rm -f core conftest.err conftest.$ac_objext \
12615 if test "${ac_cv_search_ffi_call+set}" = set; then
12619 if test "${ac_cv_search_ffi_call+set}" = set; then
12622 ac_cv_search_ffi_call=no
12624 rm conftest.$ac_ext
12625 LIBS=$ac_func_search_save_LIBS
12627 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12628 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12629 ac_res=$ac_cv_search_ffi_call
12630 if test "$ac_res" != no; then
12631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_FFI_CALL 1
12638 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12639 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12640 { (exit 1); exit 1; }; }
12645 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12646 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12647 if test "${ac_cv_search_mallinfo+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 ac_func_search_save_LIBS=$LIBS
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12668 return mallinfo ();
12673 for ac_lib in '' malloc; do
12674 if test -z "$ac_lib"; then
12675 ac_res="none required"
12678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
12694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695 { (case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_try") 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_search_mallinfo=$ac_res
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12722 rm -f core conftest.err conftest.$ac_objext \
12724 if test "${ac_cv_search_mallinfo+set}" = set; then
12728 if test "${ac_cv_search_mallinfo+set}" = set; then
12731 ac_cv_search_mallinfo=no
12733 rm conftest.$ac_ext
12734 LIBS=$ac_func_search_save_LIBS
12736 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12737 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12738 ac_res=$ac_cv_search_mallinfo
12739 if test "$ac_res" != no; then
12740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12742 cat >>confdefs.h <<\_ACEOF
12743 #define HAVE_MALLINFO 1
12749 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12751 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12752 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12753 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lpthread $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 /* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12771 char pthread_mutex_init ();
12775 return pthread_mutex_init ();
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (ac_try="$ac_link"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_link") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_lib_pthread_pthread_mutex_init=yes
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_cv_lib_pthread_pthread_mutex_init=no
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12826 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12827 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12828 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_LIBPTHREAD 1
12833 LIBS="-lpthread $LIBS"
12837 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12838 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12839 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 ac_func_search_save_LIBS=$LIBS
12843 cat >conftest.$ac_ext <<_ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12856 char pthread_mutex_lock ();
12860 return pthread_mutex_lock ();
12865 for ac_lib in '' pthread; do
12866 if test -z "$ac_lib"; then
12867 ac_res="none required"
12870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887 { (case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_try") 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_cv_search_pthread_mutex_lock=$ac_res
12908 echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -f core conftest.err conftest.$ac_objext \
12916 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12920 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12923 ac_cv_search_pthread_mutex_lock=no
12925 rm conftest.$ac_ext
12926 LIBS=$ac_func_search_save_LIBS
12928 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12929 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12930 ac_res=$ac_cv_search_pthread_mutex_lock
12931 if test "$ac_res" != no; then
12932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12934 cat >>confdefs.h <<\_ACEOF
12935 #define HAVE_PTHREAD_MUTEX_LOCK 1
12940 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12941 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12942 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_func_search_save_LIBS=$LIBS
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12959 char pthread_rwlock_init ();
12963 return pthread_rwlock_init ();
12968 for ac_lib in '' pthread; do
12969 if test -z "$ac_lib"; then
12970 ac_res="none required"
12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest$ac_exeext'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_search_pthread_rwlock_init=$ac_res
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13017 rm -f core conftest.err conftest.$ac_objext \
13019 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13023 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13026 ac_cv_search_pthread_rwlock_init=no
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13031 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13032 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13033 ac_res=$ac_cv_search_pthread_rwlock_init
13034 if test "$ac_res" != no; then
13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_PTHREAD_RWLOCK_INIT 1
13043 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13044 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13045 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 ac_func_search_save_LIBS=$LIBS
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13062 char pthread_getspecific ();
13066 return pthread_getspecific ();
13071 for ac_lib in '' pthread; do
13072 if test -z "$ac_lib"; then
13073 ac_res="none required"
13076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (ac_try="$ac_link"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_search_pthread_getspecific=$ac_res
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13120 rm -f core conftest.err conftest.$ac_objext \
13122 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13126 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13129 ac_cv_search_pthread_getspecific=no
13131 rm conftest.$ac_ext
13132 LIBS=$ac_func_search_save_LIBS
13134 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13135 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13136 ac_res=$ac_cv_search_pthread_getspecific
13137 if test "$ac_res" != no; then
13138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_PTHREAD_GETSPECIFIC 1
13149 # Check whether --with-udis86 was given.
13150 if test "${with_udis86+set}" = set; then
13151 withval=$with_udis86;
13156 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13159 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13160 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13161 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 ac_check_lib_save_LIBS=$LIBS
13165 LIBS="-ludis86 $LIBS"
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203 { (case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_try") 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_lib_udis86_ud_init=yes
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 ac_cv_lib_udis86_ud_init=no
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13235 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13236 if test $ac_cv_lib_udis86_ud_init = yes; then
13237 cat >>confdefs.h <<_ACEOF
13238 #define HAVE_LIBUDIS86 1
13241 LIBS="-ludis86 $LIBS"
13245 echo "Error! You need to have libudis86 around."
13257 cat >>confdefs.h <<_ACEOF
13258 #define USE_UDIS86 $USE_UDIS86
13263 # Check whether --with-oprofile was given.
13264 if test "${with_oprofile+set}" = set; then
13265 withval=$with_oprofile;
13269 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13270 no) llvm_cv_oppath=
13273 *) llvm_cv_oppath="${withval}/lib/oprofile"
13274 CPPFLAGS="-I${withval}/include";;
13276 if test -n "$llvm_cv_oppath" ; then
13277 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13278 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13279 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13280 if test "${ac_cv_search_bfd_init+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_func_search_save_LIBS=$LIBS
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13301 return bfd_init ();
13306 for ac_lib in '' bfd; do
13307 if test -z "$ac_lib"; then
13308 ac_res="none required"
13311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_link") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } &&
13337 { ac_try='test -s conftest$ac_exeext'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_search_bfd_init=$ac_res
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13355 rm -f core conftest.err conftest.$ac_objext \
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
13361 if test "${ac_cv_search_bfd_init+set}" = set; then
13364 ac_cv_search_bfd_init=no
13366 rm conftest.$ac_ext
13367 LIBS=$ac_func_search_save_LIBS
13369 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13370 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13371 ac_res=$ac_cv_search_bfd_init
13372 if test "$ac_res" != no; then
13373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13377 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13378 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13379 if test "${ac_cv_search_op_open_agent+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 ac_func_search_save_LIBS=$LIBS
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13396 char op_open_agent ();
13400 return op_open_agent ();
13405 for ac_lib in '' opagent; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_search_op_open_agent=$ac_res
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13454 rm -f core conftest.err conftest.$ac_objext \
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
13460 if test "${ac_cv_search_op_open_agent+set}" = set; then
13463 ac_cv_search_op_open_agent=no
13465 rm conftest.$ac_ext
13466 LIBS=$ac_func_search_save_LIBS
13468 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13469 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13470 ac_res=$ac_cv_search_op_open_agent
13471 if test "$ac_res" != no; then
13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13476 echo "Error! You need to have libopagent around."
13481 if test "${ac_cv_header_opagent_h+set}" = set; then
13482 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13483 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13484 if test "${ac_cv_header_opagent_h+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13490 # Is the header compilable?
13491 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13492 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 $ac_includes_default
13500 #include <opagent.h>
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13511 grep -v '^ *+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_header_compiler=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_header_compiler=no
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6; }
13548 # Is the header present?
13549 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13550 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13551 cat >conftest.$ac_ext <<_ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 #include <opagent.h>
13559 if { (ac_try="$ac_cpp conftest.$ac_ext"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581 if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_header_preproc=no
13590 rm -f conftest.err conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13592 echo "${ECHO_T}$ac_header_preproc" >&6; }
13594 # So? What about this header?
13595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13597 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13598 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13601 ac_header_preproc=yes
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13605 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13607 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13609 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13611 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13613 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13615 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13617 ## ------------------------------ ##
13618 ## Report this to bugs@yourdomain ##
13619 ## ------------------------------ ##
13621 ) | sed "s/^/$as_me: WARNING: /" >&2
13624 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13625 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 ac_cv_header_opagent_h=$ac_header_preproc
13631 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13632 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13635 if test $ac_cv_header_opagent_h = yes; then
13639 echo "Error! You need to have opagent.h around."
13655 cat >>confdefs.h <<_ACEOF
13656 #define USE_OPROFILE $USE_OPROFILE
13666 ac_header_dirent=no
13667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_compile") 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 eval "$as_ac_Header=yes"
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 eval "$as_ac_Header=no"
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 ac_res=`eval echo '${'$as_ac_Header'}'`
13737 { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13744 ac_header_dirent=$ac_hdr; break
13748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13749 if test $ac_header_dirent = dirent.h; then
13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13752 if test "${ac_cv_search_opendir+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_func_search_save_LIBS=$LIBS
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13778 for ac_lib in '' dir; do
13779 if test -z "$ac_lib"; then
13780 ac_res="none required"
13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13785 rm -f conftest.$ac_objext conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800 { (case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_try") 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest$ac_exeext'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_search_opendir=$ac_res
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13827 rm -f core conftest.err conftest.$ac_objext \
13829 if test "${ac_cv_search_opendir+set}" = set; then
13833 if test "${ac_cv_search_opendir+set}" = set; then
13836 ac_cv_search_opendir=no
13838 rm conftest.$ac_ext
13839 LIBS=$ac_func_search_save_LIBS
13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13843 ac_res=$ac_cv_search_opendir
13844 if test "$ac_res" != no; then
13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13852 if test "${ac_cv_search_opendir+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 ac_func_search_save_LIBS=$LIBS
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13863 /* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13878 for ac_lib in '' x; do
13879 if test -z "$ac_lib"; then
13880 ac_res="none required"
13883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (ac_try="$ac_link"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_link") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_search_opendir=$ac_res
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13927 rm -f core conftest.err conftest.$ac_objext \
13929 if test "${ac_cv_search_opendir+set}" = set; then
13933 if test "${ac_cv_search_opendir+set}" = set; then
13936 ac_cv_search_opendir=no
13938 rm conftest.$ac_ext
13939 LIBS=$ac_func_search_save_LIBS
13941 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13942 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13943 ac_res=$ac_cv_search_opendir
13944 if test "$ac_res" != no; then
13945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13952 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_mmap_anon+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 ac_cpp='$CPP $CPPFLAGS'
13958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <sys/mman.h>
13969 #include <unistd.h>
13974 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1 >conftest.err
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest.$ac_objext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_header_mmap_anon=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_cv_header_mmap_anon=no
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14030 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14031 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14032 if test "$ac_cv_header_mmap_anon" = yes; then
14034 cat >>confdefs.h <<\_ACEOF
14035 #define HAVE_MMAP_ANONYMOUS 1
14040 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14041 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14042 if test "${ac_cv_header_stat_broken+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <sys/types.h>
14052 #include <sys/stat.h>
14054 #if defined S_ISBLK && defined S_IFDIR
14055 # if S_ISBLK (S_IFDIR)
14060 #if defined S_ISBLK && defined S_IFCHR
14061 # if S_ISBLK (S_IFCHR)
14066 #if defined S_ISLNK && defined S_IFREG
14067 # if S_ISLNK (S_IFREG)
14072 #if defined S_ISSOCK && defined S_IFREG
14073 # if S_ISSOCK (S_IFREG)
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "You lose" >/dev/null 2>&1; then
14081 ac_cv_header_stat_broken=yes
14083 ac_cv_header_stat_broken=no
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14089 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14090 if test $ac_cv_header_stat_broken = yes; then
14092 cat >>confdefs.h <<\_ACEOF
14093 #define STAT_MACROS_BROKEN 1
14098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 cat >conftest.$ac_ext <<_ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14109 #include <sys/types.h>
14110 #include <sys/wait.h>
14111 #ifndef WEXITSTATUS
14112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14143 { (case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_try") 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_header_sys_wait_h=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_header_sys_wait_h=no
14170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14173 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14174 if test $ac_cv_header_sys_wait_h = yes; then
14176 cat >>confdefs.h <<\_ACEOF
14177 #define HAVE_SYS_WAIT_H 1
14182 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14183 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14184 if test "${ac_cv_header_time+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #include <sys/time.h>
14200 if ((struct tm *) 0)
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_header_time=yes
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14245 ac_cv_header_time=no
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14251 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14252 if test $ac_cv_header_time = yes; then
14254 cat >>confdefs.h <<\_ACEOF
14255 #define TIME_WITH_SYS_TIME 1
14267 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277 { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14280 # Is the header compilable?
14281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14290 #include <$ac_header>
14292 rm -f conftest.$ac_objext
14293 if { (ac_try="$ac_compile"
14294 case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_compile") 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } &&
14316 { ac_try='test -s conftest.$ac_objext'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_header_compiler=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_header_compiler=no
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14336 echo "${ECHO_T}$ac_header_compiler" >&6; }
14338 # Is the header present?
14339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14341 cat >conftest.$ac_ext <<_ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 #include <$ac_header>
14349 if { (ac_try="$ac_cpp conftest.$ac_ext"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } >/dev/null; then
14362 if test -s conftest.err; then
14363 ac_cpp_err=$ac_c_preproc_warn_flag
14364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14371 if test -z "$ac_cpp_err"; then
14372 ac_header_preproc=yes
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_header_preproc=no
14380 rm -f conftest.err conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382 echo "${ECHO_T}$ac_header_preproc" >&6; }
14384 # So? What about this header?
14385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc=yes
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14407 ## ------------------------------ ##
14408 ## Report this to bugs@yourdomain ##
14409 ## ------------------------------ ##
14411 ) | sed "s/^/$as_me: WARNING: /" >&2
14414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 eval "$as_ac_Header=\$ac_header_preproc"
14421 ac_res=`eval echo '${'$as_ac_Header'}'`
14422 { echo "$as_me:$LINENO: result: $ac_res" >&5
14423 echo "${ECHO_T}$ac_res" >&6; }
14426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14441 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 ac_res=`eval echo '${'$as_ac_Header'}'`
14451 { echo "$as_me:$LINENO: result: $ac_res" >&5
14452 echo "${ECHO_T}$ac_res" >&6; }
14454 # Is the header compilable?
14455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 $ac_includes_default
14464 #include <$ac_header>
14466 rm -f conftest.$ac_objext
14467 if { (ac_try="$ac_compile"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481 { (case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_try") 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest.$ac_objext'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_header_compiler=yes
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_header_compiler=no
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 echo "${ECHO_T}$ac_header_compiler" >&6; }
14512 # Is the header present?
14513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <$ac_header>
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14531 grep -v '^ *+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } >/dev/null; then
14536 if test -s conftest.err; then
14537 ac_cpp_err=$ac_c_preproc_warn_flag
14538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14545 if test -z "$ac_cpp_err"; then
14546 ac_header_preproc=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_header_preproc=no
14554 rm -f conftest.err conftest.$ac_ext
14555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14556 echo "${ECHO_T}$ac_header_preproc" >&6; }
14558 # So? What about this header?
14559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14565 ac_header_preproc=yes
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14581 ## ------------------------------ ##
14582 ## Report this to bugs@yourdomain ##
14583 ## ------------------------------ ##
14585 ) | sed "s/^/$as_me: WARNING: /" >&2
14588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 eval "$as_ac_Header=\$ac_header_preproc"
14595 ac_res=`eval echo '${'$as_ac_Header'}'`
14596 { echo "$as_me:$LINENO: result: $ac_res" >&5
14597 echo "${ECHO_T}$ac_res" >&6; }
14600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14601 cat >>confdefs.h <<_ACEOF
14602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14611 for ac_header in utime.h windows.h
14613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 ac_res=`eval echo '${'$as_ac_Header'}'`
14621 { echo "$as_me:$LINENO: result: $ac_res" >&5
14622 echo "${ECHO_T}$ac_res" >&6; }
14624 # Is the header compilable?
14625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 $ac_includes_default
14634 #include <$ac_header>
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14645 grep -v '^ *+' conftest.er1 >conftest.err
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_header_compiler=yes
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14675 ac_header_compiler=no
14678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14680 echo "${ECHO_T}$ac_header_compiler" >&6; }
14682 # Is the header present?
14683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <$ac_header>
14693 if { (ac_try="$ac_cpp conftest.$ac_ext"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } >/dev/null; then
14706 if test -s conftest.err; then
14707 ac_cpp_err=$ac_c_preproc_warn_flag
14708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14715 if test -z "$ac_cpp_err"; then
14716 ac_header_preproc=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_preproc=no
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14728 # So? What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14751 ## ------------------------------ ##
14752 ## Report this to bugs@yourdomain ##
14753 ## ------------------------------ ##
14755 ) | sed "s/^/$as_me: WARNING: /" >&2
14758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 eval "$as_ac_Header=\$ac_header_preproc"
14765 ac_res=`eval echo '${'$as_ac_Header'}'`
14766 { echo "$as_me:$LINENO: result: $ac_res" >&5
14767 echo "${ECHO_T}$ac_res" >&6; }
14770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14784 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_res=`eval echo '${'$as_ac_Header'}'`
14794 { echo "$as_me:$LINENO: result: $ac_res" >&5
14795 echo "${ECHO_T}$ac_res" >&6; }
14797 # Is the header compilable?
14798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 #include <$ac_header>
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_header_compiler=yes
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_compiler=no
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14853 echo "${ECHO_T}$ac_header_compiler" >&6; }
14855 # Is the header present?
14856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <$ac_header>
14866 if { (ac_try="$ac_cpp conftest.$ac_ext"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } >/dev/null; then
14879 if test -s conftest.err; then
14880 ac_cpp_err=$ac_c_preproc_warn_flag
14881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14888 if test -z "$ac_cpp_err"; then
14889 ac_header_preproc=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_header_preproc=no
14897 rm -f conftest.err conftest.$ac_ext
14898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 echo "${ECHO_T}$ac_header_preproc" >&6; }
14901 # So? What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14924 ## ------------------------------ ##
14925 ## Report this to bugs@yourdomain ##
14926 ## ------------------------------ ##
14928 ) | sed "s/^/$as_me: WARNING: /" >&2
14931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 eval "$as_ac_Header=\$ac_header_preproc"
14938 ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940 echo "${ECHO_T}$ac_res" >&6; }
14943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14944 cat >>confdefs.h <<_ACEOF
14945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14956 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 ac_res=`eval echo '${'$as_ac_Header'}'`
14966 { echo "$as_me:$LINENO: result: $ac_res" >&5
14967 echo "${ECHO_T}$ac_res" >&6; }
14969 # Is the header compilable?
14970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14972 cat >conftest.$ac_ext <<_ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14979 #include <$ac_header>
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14996 { (case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest.$ac_objext'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_header_compiler=yes
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 ac_header_compiler=no
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15025 echo "${ECHO_T}$ac_header_compiler" >&6; }
15027 # Is the header present?
15028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15030 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 #include <$ac_header>
15038 if { (ac_try="$ac_cpp conftest.$ac_ext"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } >/dev/null; then
15051 if test -s conftest.err; then
15052 ac_cpp_err=$ac_c_preproc_warn_flag
15053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15060 if test -z "$ac_cpp_err"; then
15061 ac_header_preproc=yes
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_header_preproc=no
15069 rm -f conftest.err conftest.$ac_ext
15070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15071 echo "${ECHO_T}$ac_header_preproc" >&6; }
15073 # So? What about this header?
15074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15080 ac_header_preproc=yes
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15096 ## ------------------------------ ##
15097 ## Report this to bugs@yourdomain ##
15098 ## ------------------------------ ##
15100 ) | sed "s/^/$as_me: WARNING: /" >&2
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 eval "$as_ac_Header=\$ac_header_preproc"
15110 ac_res=`eval echo '${'$as_ac_Header'}'`
15111 { echo "$as_me:$LINENO: result: $ac_res" >&5
15112 echo "${ECHO_T}$ac_res" >&6; }
15115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15125 for ac_header in valgrind/valgrind.h
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 ac_res=`eval echo '${'$as_ac_Header'}'`
15135 { echo "$as_me:$LINENO: result: $ac_res" >&5
15136 echo "${ECHO_T}$ac_res" >&6; }
15138 # Is the header compilable?
15139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 $ac_includes_default
15148 #include <$ac_header>
15150 rm -f conftest.$ac_objext
15151 if { (ac_try="$ac_compile"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_header_compiler=yes
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_header_compiler=no
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6; }
15196 # Is the header present?
15197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #include <$ac_header>
15207 if { (ac_try="$ac_cpp conftest.$ac_ext"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15229 if test -z "$ac_cpp_err"; then
15230 ac_header_preproc=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_preproc=no
15238 rm -f conftest.err conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6; }
15242 # So? What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15265 ## ------------------------------ ##
15266 ## Report this to bugs@yourdomain ##
15267 ## ------------------------------ ##
15269 ) | sed "s/^/$as_me: WARNING: /" >&2
15272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 eval "$as_ac_Header=\$ac_header_preproc"
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280 { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15294 for ac_header in fenv.h
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 ac_res=`eval echo '${'$as_ac_Header'}'`
15304 { echo "$as_me:$LINENO: result: $ac_res" >&5
15305 echo "${ECHO_T}$ac_res" >&6; }
15307 # Is the header compilable?
15308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15317 #include <$ac_header>
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_compile") 2>conftest.er1
15328 grep -v '^ *+' conftest.er1 >conftest.err
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_header_compiler=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 ac_header_compiler=no
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15363 echo "${ECHO_T}$ac_header_compiler" >&6; }
15365 # Is the header present?
15366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 #include <$ac_header>
15376 if { (ac_try="$ac_cpp conftest.$ac_ext"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } >/dev/null; then
15389 if test -s conftest.err; then
15390 ac_cpp_err=$ac_c_preproc_warn_flag
15391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15398 if test -z "$ac_cpp_err"; then
15399 ac_header_preproc=yes
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 ac_header_preproc=no
15407 rm -f conftest.err conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409 echo "${ECHO_T}$ac_header_preproc" >&6; }
15411 # So? What about this header?
15412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15418 ac_header_preproc=yes
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15434 ## ------------------------------ ##
15435 ## Report this to bugs@yourdomain ##
15436 ## ------------------------------ ##
15438 ) | sed "s/^/$as_me: WARNING: /" >&2
15441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 eval "$as_ac_Header=\$ac_header_preproc"
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449 { echo "$as_me:$LINENO: result: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15462 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15464 for ac_header in pthread.h
15466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474 { echo "$as_me:$LINENO: result: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15477 # Is the header compilable?
15478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 $ac_includes_default
15487 #include <$ac_header>
15489 rm -f conftest.$ac_objext
15490 if { (ac_try="$ac_compile"
15491 case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_compile") 2>conftest.er1
15498 grep -v '^ *+' conftest.er1 >conftest.err
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_header_compiler=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_header_compiler=no
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15533 echo "${ECHO_T}$ac_header_compiler" >&6; }
15535 # Is the header present?
15536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 #include <$ac_header>
15546 if { (ac_try="$ac_cpp conftest.$ac_ext"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } >/dev/null; then
15559 if test -s conftest.err; then
15560 ac_cpp_err=$ac_c_preproc_warn_flag
15561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15568 if test -z "$ac_cpp_err"; then
15569 ac_header_preproc=yes
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 ac_header_preproc=no
15577 rm -f conftest.err conftest.$ac_ext
15578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15579 echo "${ECHO_T}$ac_header_preproc" >&6; }
15581 # So? What about this header?
15582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15588 ac_header_preproc=yes
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15604 ## ------------------------------ ##
15605 ## Report this to bugs@yourdomain ##
15606 ## ------------------------------ ##
15608 ) | sed "s/^/$as_me: WARNING: /" >&2
15611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 eval "$as_ac_Header=\$ac_header_preproc"
15618 ac_res=`eval echo '${'$as_ac_Header'}'`
15619 { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15624 cat >>confdefs.h <<_ACEOF
15625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 if test "$llvm_cv_enable_libffi" = "yes" ; then
15644 for ac_header in ffi.h ffi/ffi.h
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15657 # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 #include <$ac_header>
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest.$ac_objext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_header_compiler=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_compiler=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <$ac_header>
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev/null; then
15739 if test -s conftest.err; then
15740 ac_cpp_err=$ac_c_preproc_warn_flag
15741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15748 if test -z "$ac_cpp_err"; then
15749 ac_header_preproc=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_header_preproc=no
15757 rm -f conftest.err conftest.$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15761 # So? What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc=yes
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784 ## ------------------------------ ##
15785 ## Report this to bugs@yourdomain ##
15786 ## ------------------------------ ##
15788 ) | sed "s/^/$as_me: WARNING: /" >&2
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 eval "$as_ac_Header=\$ac_header_preproc"
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15815 for ac_header in CrashReporterClient.h
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15828 # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 $ac_includes_default
15838 #include <$ac_header>
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855 { (case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860 (eval "$ac_try") 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 ac_header_compiler=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_header_compiler=no
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <$ac_header>
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 grep -v '^ *+' conftest.er1 >conftest.err
15907 cat conftest.err >&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } >/dev/null; then
15910 if test -s conftest.err; then
15911 ac_cpp_err=$ac_c_preproc_warn_flag
15912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15919 if test -z "$ac_cpp_err"; then
15920 ac_header_preproc=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_preproc=no
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15932 # So? What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939 ac_header_preproc=yes
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15955 ## ------------------------------ ##
15956 ## Report this to bugs@yourdomain ##
15957 ## ------------------------------ ##
15959 ) | sed "s/^/$as_me: WARNING: /" >&2
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 eval "$as_ac_Header=\$ac_header_preproc"
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970 { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975 cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15984 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15985 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 extern const char *__crashreporter_info__;
15994 __crashreporter_info__ = "test";
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_link") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 { echo "$as_me:$LINENO: result: yes" >&5
16034 echo "${ECHO_T}yes" >&6; }
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_CRASHREPORTER_INFO 1
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 { echo "$as_me:$LINENO: result: no" >&5
16045 echo "${ECHO_T}no" >&6; }
16047 cat >>confdefs.h <<\_ACEOF
16048 #define HAVE_CRASHREPORTER_INFO 0
16053 rm -f core conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16059 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16060 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16061 if test "${ac_cv_huge_val_sanity+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 ac_cpp='$CXXCPP $CPPFLAGS'
16067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16071 ac_save_CXXFLAGS=$CXXFLAGS
16073 if test "$cross_compiling" = yes; then
16074 ac_cv_huge_val_sanity=yes
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16086 double x = HUGE_VAL; return x != x;
16091 rm -f conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16102 { (case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_try") 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_huge_val_sanity=yes
16113 echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 ( exit $ac_status )
16118 ac_cv_huge_val_sanity=no
16120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16124 CXXFLAGS=$ac_save_CXXFLAGS
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16134 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16135 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16138 { echo "$as_me:$LINENO: checking for pid_t" >&5
16139 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16140 if test "${ac_cv_type_pid_t+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 cat >conftest.$ac_ext <<_ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 $ac_includes_default
16150 typedef pid_t ac__type_new_;
16154 if ((ac__type_new_ *) 0)
16156 if (sizeof (ac__type_new_))
16162 rm -f conftest.$ac_objext
16163 if { (ac_try="$ac_compile"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_compile") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16177 { (case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_try") 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16196 ac_cv_type_pid_t=yes
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_cv_type_pid_t=no
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16207 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16208 if test $ac_cv_type_pid_t = yes; then
16212 cat >>confdefs.h <<_ACEOF
16218 { echo "$as_me:$LINENO: checking for size_t" >&5
16219 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16220 if test "${ac_cv_type_size_t+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 $ac_includes_default
16230 typedef size_t ac__type_new_;
16234 if ((ac__type_new_ *) 0)
16236 if (sizeof (ac__type_new_))
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16251 grep -v '^ *+' conftest.er1 >conftest.err
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; }; then
16276 ac_cv_type_size_t=yes
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_cv_type_size_t=no
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16287 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16288 if test $ac_cv_type_size_t = yes; then
16292 cat >>confdefs.h <<_ACEOF
16293 #define size_t unsigned int
16299 cat >>confdefs.h <<_ACEOF
16300 #define RETSIGTYPE void
16303 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16304 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16305 if test "${ac_cv_struct_tm+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 cat >conftest.$ac_ext <<_ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 #include <sys/types.h>
16320 struct tm *tp; tp->tm_sec;
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_compile") 2>conftest.er1
16334 grep -v '^ *+' conftest.er1 >conftest.err
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16340 { (case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_try") 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; } &&
16349 { ac_try='test -s conftest.$ac_objext'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; }; then
16359 ac_cv_struct_tm=time.h
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_cv_struct_tm=sys/time.h
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16370 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16371 if test $ac_cv_struct_tm = sys/time.h; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define TM_IN_SYS_TIME 1
16379 { echo "$as_me:$LINENO: checking for int64_t" >&5
16380 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16381 if test "${ac_cv_type_int64_t+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 $ac_includes_default
16391 typedef int64_t ac__type_new_;
16395 if ((ac__type_new_ *) 0)
16397 if (sizeof (ac__type_new_))
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_cv_type_int64_t=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ac_cv_type_int64_t=no
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16448 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16449 if test $ac_cv_type_int64_t = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE_INT64_T 1
16457 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16458 echo "$as_me: error: Type int64_t required but not found" >&2;}
16459 { (exit 1); exit 1; }; }
16462 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16463 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16464 if test "${ac_cv_type_uint64_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 $ac_includes_default
16474 typedef uint64_t ac__type_new_;
16478 if ((ac__type_new_ *) 0)
16480 if (sizeof (ac__type_new_))
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16495 grep -v '^ *+' conftest.er1 >conftest.err
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501 { (case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_try") 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_type_uint64_t=yes
16522 echo "$as_me: failed program was:" >&5
16523 sed 's/^/| /' conftest.$ac_ext >&5
16525 ac_cv_type_uint64_t=no
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16531 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16532 if test $ac_cv_type_uint64_t = yes; then
16534 cat >>confdefs.h <<_ACEOF
16535 #define HAVE_UINT64_T 1
16540 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16541 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16542 if test "${ac_cv_type_u_int64_t+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551 $ac_includes_default
16552 typedef u_int64_t ac__type_new_;
16556 if ((ac__type_new_ *) 0)
16558 if (sizeof (ac__type_new_))
16564 rm -f conftest.$ac_objext
16565 if { (ac_try="$ac_compile"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_compile") 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16579 { (case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_try") 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } &&
16588 { ac_try='test -s conftest.$ac_objext'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ac_cv_type_u_int64_t=yes
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ac_cv_type_u_int64_t=no
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16609 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16610 if test $ac_cv_type_u_int64_t = yes; then
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_U_INT64_T 1
16618 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16619 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16620 { (exit 1); exit 1; }; }
16634 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.$ac_ext <<_ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16650 #define $ac_func innocuous_$ac_func
16652 /* System header to define __stub macros and hopefully few prototypes,
16653 which can conflict with char $ac_func (); below.
16654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655 <limits.h> exists even on freestanding compilers. */
16658 # include <limits.h>
16660 # include <assert.h>
16665 /* Override any GCC internal prototype to avoid an error.
16666 Use char because int might match the return type of a GCC
16667 builtin and then its argument prototype would still apply. */
16672 /* The GNU C library defines this for functions which it implements
16673 to always fail with ENOSYS. Some functions are actually named
16674 something starting with __ and the normal name is an alias. */
16675 #if defined __stub_$ac_func || defined __stub___$ac_func
16682 return $ac_func ();
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_link") 2>conftest.er1
16696 grep -v '^ *+' conftest.er1 >conftest.err
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702 { (case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_try") 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try='test -s conftest$ac_exeext'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 eval "$as_ac_var=yes"
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 eval "$as_ac_var=no"
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16747 for ac_func in powf fmodf strtof round
16749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763 #define $ac_func innocuous_$ac_func
16765 /* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char $ac_func (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16771 # include <limits.h>
16773 # include <assert.h>
16778 /* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
16785 /* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
16788 #if defined __stub_$ac_func || defined __stub___$ac_func
16795 return $ac_func ();
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 eval "$as_ac_var=yes"
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 eval "$as_ac_var=no"
16842 rm -f core conftest.err conftest.$ac_objext \
16843 conftest$ac_exeext conftest.$ac_ext
16845 ac_res=`eval echo '${'$as_ac_var'}'`
16846 { echo "$as_me:$LINENO: result: $ac_res" >&5
16847 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_var'}'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16861 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16877 #define $ac_func innocuous_$ac_func
16879 /* System header to define __stub macros and hopefully few prototypes,
16880 which can conflict with char $ac_func (); below.
16881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16882 <limits.h> exists even on freestanding compilers. */
16885 # include <limits.h>
16887 # include <assert.h>
16892 /* Override any GCC internal prototype to avoid an error.
16893 Use char because int might match the return type of a GCC
16894 builtin and then its argument prototype would still apply. */
16899 /* The GNU C library defines this for functions which it implements
16900 to always fail with ENOSYS. Some functions are actually named
16901 something starting with __ and the normal name is an alias. */
16902 #if defined __stub_$ac_func || defined __stub___$ac_func
16909 return $ac_func ();
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1 >conftest.err
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 eval "$as_ac_var=yes"
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 eval "$as_ac_var=no"
16956 rm -f core conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16959 ac_res=`eval echo '${'$as_ac_var'}'`
16960 { echo "$as_me:$LINENO: result: $ac_res" >&5
16961 echo "${ECHO_T}$ac_res" >&6; }
16962 if test `eval echo '${'$as_ac_var'}'` = yes; then
16963 cat >>confdefs.h <<_ACEOF
16964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16973 for ac_func in isatty mkdtemp mkstemp
16975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 cat >conftest.$ac_ext <<_ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16989 #define $ac_func innocuous_$ac_func
16991 /* System header to define __stub macros and hopefully few prototypes,
16992 which can conflict with char $ac_func (); below.
16993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16994 <limits.h> exists even on freestanding compilers. */
16997 # include <limits.h>
16999 # include <assert.h>
17004 /* Override any GCC internal prototype to avoid an error.
17005 Use char because int might match the return type of a GCC
17006 builtin and then its argument prototype would still apply. */
17011 /* The GNU C library defines this for functions which it implements
17012 to always fail with ENOSYS. Some functions are actually named
17013 something starting with __ and the normal name is an alias. */
17014 #if defined __stub_$ac_func || defined __stub___$ac_func
17021 return $ac_func ();
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (ac_try="$ac_link"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17041 { (case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_try") 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest$ac_exeext'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 eval "$as_ac_var=yes"
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 eval "$as_ac_var=no"
17068 rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17071 ac_res=`eval echo '${'$as_ac_var'}'`
17072 { echo "$as_me:$LINENO: result: $ac_res" >&5
17073 echo "${ECHO_T}$ac_res" >&6; }
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075 cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17088 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17104 #define $ac_func innocuous_$ac_func
17106 /* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func (); below.
17108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 <limits.h> exists even on freestanding compilers. */
17112 # include <limits.h>
17114 # include <assert.h>
17119 /* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17126 /* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129 #if defined __stub_$ac_func || defined __stub___$ac_func
17136 return $ac_func ();
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 eval "$as_ac_var=yes"
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 eval "$as_ac_var=no"
17183 rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17186 ac_res=`eval echo '${'$as_ac_var'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 if test `eval echo '${'$as_ac_var'}'` = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17200 for ac_func in strerror strerror_r setenv
17202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17216 #define $ac_func innocuous_$ac_func
17218 /* System header to define __stub macros and hopefully few prototypes,
17219 which can conflict with char $ac_func (); below.
17220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17221 <limits.h> exists even on freestanding compilers. */
17224 # include <limits.h>
17226 # include <assert.h>
17231 /* Override any GCC internal prototype to avoid an error.
17232 Use char because int might match the return type of a GCC
17233 builtin and then its argument prototype would still apply. */
17238 /* The GNU C library defines this for functions which it implements
17239 to always fail with ENOSYS. Some functions are actually named
17240 something starting with __ and the normal name is an alias. */
17241 #if defined __stub_$ac_func || defined __stub___$ac_func
17248 return $ac_func ();
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (ac_try="$ac_link"
17255 case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_link") 2>conftest.er1
17262 grep -v '^ *+' conftest.er1 >conftest.err
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17268 { (case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_try") 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 eval "$as_ac_var=yes"
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 eval "$as_ac_var=no"
17295 rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17298 ac_res=`eval echo '${'$as_ac_var'}'`
17299 { echo "$as_me:$LINENO: result: $ac_res" >&5
17300 echo "${ECHO_T}$ac_res" >&6; }
17301 if test `eval echo '${'$as_ac_var'}'` = yes; then
17302 cat >>confdefs.h <<_ACEOF
17303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329 #define $ac_func innocuous_$ac_func
17331 /* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17337 # include <limits.h>
17339 # include <assert.h>
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17351 /* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354 #if defined __stub_$ac_func || defined __stub___$ac_func
17361 return $ac_func ();
17366 rm -f conftest.$ac_objext conftest$ac_exeext
17367 if { (ac_try="$ac_link"
17368 case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 eval "$as_ac_var=yes"
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 eval "$as_ac_var=no"
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17411 ac_res=`eval echo '${'$as_ac_var'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413 echo "${ECHO_T}$ac_res" >&6; }
17414 if test `eval echo '${'$as_ac_var'}'` = yes; then
17415 cat >>confdefs.h <<_ACEOF
17416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17427 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443 #define $ac_func innocuous_$ac_func
17445 /* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17451 # include <limits.h>
17453 # include <assert.h>
17458 /* Override any GCC internal prototype to avoid an error.
17459 Use char because int might match the return type of a GCC
17460 builtin and then its argument prototype would still apply. */
17465 /* The GNU C library defines this for functions which it implements
17466 to always fail with ENOSYS. Some functions are actually named
17467 something starting with __ and the normal name is an alias. */
17468 #if defined __stub_$ac_func || defined __stub___$ac_func
17475 return $ac_func ();
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (ac_try="$ac_link"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 eval "$as_ac_var=yes"
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17537 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17538 if test "${llvm_cv_c_printf_a+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 ac_cpp='$CPP $CPPFLAGS'
17543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17547 if test "$cross_compiling" = yes; then
17548 llvmac_cv_c_printf_a=no
17550 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17559 #include <stdlib.h>
17565 volatile double A, B;
17569 sprintf(Buffer, "%a", A);
17573 if (A != 0x1.999999999999ap-4)
17580 rm -f conftest$ac_exeext
17581 if { (ac_try="$ac_link"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_link") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 llvm_cv_c_printf_a=yes
17602 echo "$as_me: program exited with status $ac_status" >&5
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ( exit $ac_status )
17607 llvmac_cv_c_printf_a=no
17609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17614 ac_cpp='$CPP $CPPFLAGS'
17615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17621 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17622 if test "$llvm_cv_c_printf_a" = "yes"; then
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_PRINTF_A 1
17631 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17632 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17633 if test "${ac_cv_func_rand48+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 ac_cpp='$CXXCPP $CPPFLAGS'
17638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17642 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 #include <stdlib.h>
17652 srand48(0);lrand48();drand48();
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_compile") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_func_rand48=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_func_rand48=no
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 ac_cpp='$CPP $CPPFLAGS'
17702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17707 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17708 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17710 if test "$ac_cv_func_rand48" = "yes" ; then
17712 cat >>confdefs.h <<\_ACEOF
17713 #define HAVE_RAND48 1
17719 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17720 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17721 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 $ac_includes_default
17735 char *p = (char *) strerror_s;
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17758 { (case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_try") 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17777 ac_cv_have_decl_strerror_s=yes
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_cv_have_decl_strerror_s=no
17785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17788 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17789 if test $ac_cv_have_decl_strerror_s = yes; then
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_DECL_STRERROR_S 1
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_DECL_STRERROR_S 0
17806 if test "$llvm_cv_os_type" = "MingW" ; then
17807 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17808 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17809 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 ac_check_lib_save_LIBS=$LIBS
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (ac_try="$ac_link"
17838 case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_link") 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851 { (case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_try") 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_cv_lib_gcc__alloca=yes
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_cv_lib_gcc__alloca=no
17878 rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17882 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17883 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17884 if test $ac_cv_lib_gcc__alloca = yes; then
17886 cat >>confdefs.h <<\_ACEOF
17887 #define HAVE__ALLOCA 1
17892 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17893 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17894 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 ac_check_lib_save_LIBS=$LIBS
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17916 return __alloca ();
17921 rm -f conftest.$ac_objext conftest$ac_exeext
17922 if { (ac_try="$ac_link"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_link") 2>conftest.er1
17930 grep -v '^ *+' conftest.er1 >conftest.err
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17936 { (case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_try") 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_gcc___alloca=yes
17957 echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_lib_gcc___alloca=no
17963 rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17968 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17969 if test $ac_cv_lib_gcc___alloca = yes; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE___ALLOCA 1
17977 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17978 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17979 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 ac_check_lib_save_LIBS=$LIBS
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17991 /* Override any GCC internal prototype to avoid an error.
17992 Use char because int might match the return type of a GCC
17993 builtin and then its argument prototype would still apply. */
18001 return __chkstk ();
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 ac_cv_lib_gcc___chkstk=yes
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 ac_cv_lib_gcc___chkstk=no
18048 rm -f core conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18050 LIBS=$ac_check_lib_save_LIBS
18052 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18053 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18054 if test $ac_cv_lib_gcc___chkstk = yes; then
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE___CHKSTK 1
18062 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18063 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18064 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 ac_check_lib_save_LIBS=$LIBS
18069 cat >conftest.$ac_ext <<_ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18086 return ___chkstk ();
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (ac_try="$ac_link"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_link") 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18106 { (case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_try") 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; } &&
18115 { ac_try='test -s conftest$ac_exeext'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_gcc____chkstk=yes
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_cv_lib_gcc____chkstk=no
18133 rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 LIBS=$ac_check_lib_save_LIBS
18137 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18138 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18139 if test $ac_cv_lib_gcc____chkstk = yes; then
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE____CHKSTK 1
18148 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18149 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18150 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 ac_check_lib_save_LIBS=$LIBS
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18162 /* Override any GCC internal prototype to avoid an error.
18163 Use char because int might match the return type of a GCC
18164 builtin and then its argument prototype would still apply. */
18172 return __ashldi3 ();
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } &&
18191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18192 { (case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_try") 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest$ac_exeext'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_cv_lib_gcc___ashldi3=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_cv_lib_gcc___ashldi3=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18223 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18224 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18225 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE___ASHLDI3 1
18233 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18234 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18235 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 ac_check_lib_save_LIBS=$LIBS
18240 cat >conftest.$ac_ext <<_ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18257 return __ashrdi3 ();
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_link") 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_lib_gcc___ashrdi3=yes
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18301 ac_cv_lib_gcc___ashrdi3=no
18304 rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18308 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18309 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18310 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE___ASHRDI3 1
18318 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18319 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18320 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 ac_check_lib_save_LIBS=$LIBS
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 /* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18342 return __divdi3 ();
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_link") 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest$ac_exeext'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_cv_lib_gcc___divdi3=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_cv_lib_gcc___divdi3=no
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18394 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18395 if test $ac_cv_lib_gcc___divdi3 = yes; then
18397 cat >>confdefs.h <<\_ACEOF
18398 #define HAVE___DIVDI3 1
18403 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18404 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18405 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 ac_check_lib_save_LIBS=$LIBS
18410 cat >conftest.$ac_ext <<_ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18427 return __fixdfdi ();
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_lib_gcc___fixdfdi=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_lib_gcc___fixdfdi=no
18474 rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext conftest.$ac_ext
18476 LIBS=$ac_check_lib_save_LIBS
18478 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18479 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18480 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18482 cat >>confdefs.h <<\_ACEOF
18483 #define HAVE___FIXDFDI 1
18488 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18489 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18490 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 ac_check_lib_save_LIBS=$LIBS
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18502 /* Override any GCC internal prototype to avoid an error.
18503 Use char because int might match the return type of a GCC
18504 builtin and then its argument prototype would still apply. */
18512 return __fixsfdi ();
18517 rm -f conftest.$ac_objext conftest$ac_exeext
18518 if { (ac_try="$ac_link"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_link") 2>conftest.er1
18526 grep -v '^ *+' conftest.er1 >conftest.err
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18532 { (case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_try") 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_cv_lib_gcc___fixsfdi=yes
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_cv_lib_gcc___fixsfdi=no
18559 rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18561 LIBS=$ac_check_lib_save_LIBS
18563 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18564 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18565 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18567 cat >>confdefs.h <<\_ACEOF
18568 #define HAVE___FIXSFDI 1
18573 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18574 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18575 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 ac_check_lib_save_LIBS=$LIBS
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18593 char __floatdidf ();
18597 return __floatdidf ();
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_link") 2>conftest.er1
18611 grep -v '^ *+' conftest.er1 >conftest.err
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest$ac_exeext'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_cv_lib_gcc___floatdidf=yes
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_cv_lib_gcc___floatdidf=no
18644 rm -f core conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
18646 LIBS=$ac_check_lib_save_LIBS
18648 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18649 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18650 if test $ac_cv_lib_gcc___floatdidf = yes; then
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE___FLOATDIDF 1
18658 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18659 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18660 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 ac_check_lib_save_LIBS=$LIBS
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18672 /* Override any GCC internal prototype to avoid an error.
18673 Use char because int might match the return type of a GCC
18674 builtin and then its argument prototype would still apply. */
18682 return __lshrdi3 ();
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_link") 2>conftest.er1
18696 grep -v '^ *+' conftest.er1 >conftest.err
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest$ac_exeext'
18712 { (case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_try") 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_gcc___lshrdi3=yes
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_cv_lib_gcc___lshrdi3=no
18729 rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731 LIBS=$ac_check_lib_save_LIBS
18733 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18734 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18735 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE___LSHRDI3 1
18743 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18744 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18745 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 ac_check_lib_save_LIBS=$LIBS
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 /* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18767 return __moddi3 ();
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_link") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18787 { (case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_try") 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest$ac_exeext'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_lib_gcc___moddi3=yes
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_lib_gcc___moddi3=no
18814 rm -f core conftest.err conftest.$ac_objext \
18815 conftest$ac_exeext conftest.$ac_ext
18816 LIBS=$ac_check_lib_save_LIBS
18818 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18819 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18820 if test $ac_cv_lib_gcc___moddi3 = yes; then
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE___MODDI3 1
18828 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18829 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18830 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18833 ac_check_lib_save_LIBS=$LIBS
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18842 /* Override any GCC internal prototype to avoid an error.
18843 Use char because int might match the return type of a GCC
18844 builtin and then its argument prototype would still apply. */
18852 return __udivdi3 ();
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_lib_gcc___udivdi3=yes
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_lib_gcc___udivdi3=no
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18903 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18904 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18905 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18907 cat >>confdefs.h <<\_ACEOF
18908 #define HAVE___UDIVDI3 1
18913 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18914 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18915 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18916 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 ac_check_lib_save_LIBS=$LIBS
18920 cat >conftest.$ac_ext <<_ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18927 /* Override any GCC internal prototype to avoid an error.
18928 Use char because int might match the return type of a GCC
18929 builtin and then its argument prototype would still apply. */
18937 return __umoddi3 ();
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18957 { (case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_try") 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest$ac_exeext'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_lib_gcc___umoddi3=yes
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 ac_cv_lib_gcc___umoddi3=no
18984 rm -f core conftest.err conftest.$ac_objext \
18985 conftest$ac_exeext conftest.$ac_ext
18986 LIBS=$ac_check_lib_save_LIBS
18988 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18989 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18990 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18992 cat >>confdefs.h <<\_ACEOF
18993 #define HAVE___UMODDI3 1
18999 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19000 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19001 if test "${ac_cv_lib_gcc___main+set}" = set; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 ac_check_lib_save_LIBS=$LIBS
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_gcc___main=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_lib_gcc___main=no
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19074 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19075 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19076 if test $ac_cv_lib_gcc___main = yes; then
19078 cat >>confdefs.h <<\_ACEOF
19079 #define HAVE___MAIN 1
19084 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19085 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19086 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19089 ac_check_lib_save_LIBS=$LIBS
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19098 /* Override any GCC internal prototype to avoid an error.
19099 Use char because int might match the return type of a GCC
19100 builtin and then its argument prototype would still apply. */
19108 return __cmpdi2 ();
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_lib_gcc___cmpdi2=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 ac_cv_lib_gcc___cmpdi2=no
19155 rm -f core conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19157 LIBS=$ac_check_lib_save_LIBS
19159 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19160 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19161 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE___CMPDI2 1
19171 if test "$llvm_cv_os_type" = "MingW" ; then
19172 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19173 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19174 cat >conftest.$ac_ext <<_ACEOF
19175 #include <windows.h>
19176 #include <imagehlp.h>
19177 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19178 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19215 { echo "$as_me:$LINENO: result: yes" >&5
19216 echo "${ECHO_T}yes" >&6; }
19217 llvm_cv_win32_elmcb_pcstr="PCSTR"
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19224 { echo "$as_me:$LINENO: result: no" >&5
19225 echo "${ECHO_T}no" >&6; }
19226 llvm_cv_win32_elmcb_pcstr="PSTR"
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 cat >>confdefs.h <<_ACEOF
19233 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19239 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19240 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19241 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_compile") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_try") 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_func_isnan_in_math_h=yes
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_cv_func_isnan_in_math_h=no
19307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309 ac_cpp='$CPP $CPPFLAGS'
19310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19315 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19316 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19319 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19321 cat >>confdefs.h <<\_ACEOF
19322 #define HAVE_ISNAN_IN_MATH_H 1
19327 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19328 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19329 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_cpp='$CXXCPP $CPPFLAGS'
19334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_compile") 2>conftest.er1
19362 grep -v '^ *+' conftest.er1 >conftest.err
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } &&
19367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest.$ac_objext'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_func_isnan_in_cmath=yes
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_func_isnan_in_cmath=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19404 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19406 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE_ISNAN_IN_CMATH 1
19414 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19415 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19416 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_cpp='$CXXCPP $CPPFLAGS'
19421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19435 float f; std::isnan(f);
19440 rm -f conftest.$ac_objext
19441 if { (ac_try="$ac_compile"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } &&
19454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest.$ac_objext'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_func_std_isnan_in_cmath=yes
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_cv_func_std_isnan_in_cmath=no
19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484 ac_cpp='$CPP $CPPFLAGS'
19485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19490 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19491 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19493 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define HAVE_STD_ISNAN_IN_CMATH 1
19502 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19503 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_compile") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543 { (case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_try") 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_cv_func_isinf_in_math_h=yes
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_func_isinf_in_math_h=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19579 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19581 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_ISINF_IN_MATH_H 1
19589 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19590 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19591 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 ac_cpp='$CXXCPP $CPPFLAGS'
19596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19615 rm -f conftest.$ac_objext
19616 if { (ac_try="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 ac_cv_func_isinf_in_cmath=yes
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_cv_func_isinf_in_cmath=no
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659 ac_cpp='$CPP $CPPFLAGS'
19660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19665 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19666 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19668 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_ISINF_IN_CMATH 1
19676 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19677 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19678 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 ac_cpp='$CXXCPP $CPPFLAGS'
19683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19697 float f; std::isinf(f)}
19702 rm -f conftest.$ac_objext
19703 if { (ac_try="$ac_compile"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_compile") 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_func_std_isinf_in_cmath=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_func_std_isinf_in_cmath=no
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746 ac_cpp='$CPP $CPPFLAGS'
19747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19752 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19753 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19755 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_STD_ISINF_IN_CMATH 1
19763 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19764 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19765 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 ac_cpp='$CXXCPP $CPPFLAGS'
19770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <ieeefp.h>
19784 float f; finite(f);
19789 rm -f conftest.$ac_objext
19790 if { (ac_try="$ac_compile"
19791 case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_compile") 2>conftest.er1
19798 grep -v '^ *+' conftest.er1 >conftest.err
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19804 { (case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_try") 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_cv_func_finite_in_ieeefp_h=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ac_cv_func_finite_in_ieeefp_h=no
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 ac_cpp='$CPP $CPPFLAGS'
19834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19839 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19840 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19842 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19844 cat >>confdefs.h <<\_ACEOF
19845 #define HAVE_FINITE_IN_IEEEFP_H 1
19852 if test "$llvm_cv_platform_type" = "Unix" ; then
19855 for ac_header in stdlib.h unistd.h
19857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_res=`eval echo '${'$as_ac_Header'}'`
19865 { echo "$as_me:$LINENO: result: $ac_res" >&5
19866 echo "${ECHO_T}$ac_res" >&6; }
19868 # Is the header compilable?
19869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 $ac_includes_default
19878 #include <$ac_header>
19880 rm -f conftest.$ac_objext
19881 if { (ac_try="$ac_compile"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_header_compiler=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_header_compiler=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <$ac_header>
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } >/dev/null; then
19950 if test -s conftest.err; then
19951 ac_cpp_err=$ac_c_preproc_warn_flag
19952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19959 if test -z "$ac_cpp_err"; then
19960 ac_header_preproc=yes
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 ac_header_preproc=no
19968 rm -f conftest.err conftest.$ac_ext
19969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19970 echo "${ECHO_T}$ac_header_preproc" >&6; }
19972 # So? What about this header?
19973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19979 ac_header_preproc=yes
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19995 ## ------------------------------ ##
19996 ## Report this to bugs@yourdomain ##
19997 ## ------------------------------ ##
19999 ) | sed "s/^/$as_me: WARNING: /" >&2
20002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 eval "$as_ac_Header=\$ac_header_preproc"
20009 ac_res=`eval echo '${'$as_ac_Header'}'`
20010 { echo "$as_me:$LINENO: result: $ac_res" >&5
20011 echo "${ECHO_T}$ac_res" >&6; }
20014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 for ac_func in getpagesize
20026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20040 #define $ac_func innocuous_$ac_func
20042 /* System header to define __stub macros and hopefully few prototypes,
20043 which can conflict with char $ac_func (); below.
20044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045 <limits.h> exists even on freestanding compilers. */
20048 # include <limits.h>
20050 # include <assert.h>
20055 /* Override any GCC internal prototype to avoid an error.
20056 Use char because int might match the return type of a GCC
20057 builtin and then its argument prototype would still apply. */
20062 /* The GNU C library defines this for functions which it implements
20063 to always fail with ENOSYS. Some functions are actually named
20064 something starting with __ and the normal name is an alias. */
20065 #if defined __stub_$ac_func || defined __stub___$ac_func
20072 return $ac_func ();
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest$ac_exeext'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 eval "$as_ac_var=yes"
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 eval "$as_ac_var=no"
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123 { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 if test "$cross_compiling" = yes; then
20139 ac_cv_func_mmap_fixed_mapped=no
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152 Here is a matrix of mmap possibilities:
20153 mmap private not fixed
20154 mmap private fixed at somewhere currently unmapped
20155 mmap private fixed at somewhere already mapped
20156 mmap shared not fixed
20157 mmap shared fixed at somewhere currently unmapped
20158 mmap shared fixed at somewhere already mapped
20159 For private mappings, we should verify that changes cannot be read()
20160 back from the file, nor mmap's back from the file at a different
20161 address. (There have been systems where private was not correctly
20162 implemented like the infamous i386 svr4.0, and systems where the
20163 VM page cache was not coherent with the file system buffer cache
20164 like early versions of FreeBSD and possibly contemporary NetBSD.)
20165 For shared mappings, we should conversely verify that changes get
20166 propagated back to all the places they're supposed to be.
20168 Grep wants private fixed already mapped.
20169 The main things grep needs to know about mmap are:
20170 * does it exist and is it safe to write into the mmap'd area
20171 * how to use it (BSD variants) */
20174 #include <sys/mman.h>
20176 #if !STDC_HEADERS && !HAVE_STDLIB_H
20180 /* This mess was copied from the GNU getpagesize.h. */
20181 #if !HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h. */
20183 # if !HAVE_SYS_PARAM_H
20184 # define HAVE_SYS_PARAM_H 1
20187 # ifdef _SC_PAGESIZE
20188 # define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 # if HAVE_SYS_PARAM_H
20191 # include <sys/param.h>
20192 # ifdef EXEC_PAGESIZE
20193 # define getpagesize() EXEC_PAGESIZE
20194 # else /* no EXEC_PAGESIZE */
20196 # define getpagesize() NBPG * CLSIZE
20199 # endif /* no CLSIZE */
20200 # else /* no NBPG */
20202 # define getpagesize() NBPC
20203 # else /* no NBPC */
20205 # define getpagesize() PAGESIZE
20206 # endif /* PAGESIZE */
20207 # endif /* no NBPC */
20208 # endif /* no NBPG */
20209 # endif /* no EXEC_PAGESIZE */
20210 # else /* no HAVE_SYS_PARAM_H */
20211 # define getpagesize() 8192 /* punt totally */
20212 # endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20215 #endif /* no HAVE_GETPAGESIZE */
20220 char *data, *data2, *data3;
20224 pagesize = getpagesize ();
20226 /* First, make a file with some known garbage in it. */
20227 data = (char *) malloc (pagesize);
20230 for (i = 0; i < pagesize; ++i)
20231 *(data + i) = rand ();
20233 fd = creat ("conftest.mmap", 0600);
20236 if (write (fd, data, pagesize) != pagesize)
20240 /* Next, try to mmap the file at a fixed address which already has
20241 something else allocated at it. If we can, also make sure that
20242 we see the same garbage. */
20243 fd = open ("conftest.mmap", O_RDWR);
20246 data2 = (char *) malloc (2 * pagesize);
20249 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20253 for (i = 0; i < pagesize; ++i)
20254 if (*(data + i) != *(data2 + i))
20257 /* Finally, make sure that changes to the mapped area do not
20258 percolate back to the file as seen by read(). (This is a bug on
20259 some variants of i386 svr4.0.) */
20260 for (i = 0; i < pagesize; ++i)
20261 *(data2 + i) = *(data2 + i) + 1;
20262 data3 = (char *) malloc (pagesize);
20265 if (read (fd, data3, pagesize) != pagesize)
20267 for (i = 0; i < pagesize; ++i)
20268 if (*(data + i) != *(data3 + i))
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_mmap_fixed_mapped=yes
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20317 rm -f conftest.mmap
20319 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20320 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20321 if test "${ac_cv_func_mmap_file+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 ac_cpp='$CPP $CPPFLAGS'
20326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20330 if test "$cross_compiling" = yes; then
20331 ac_cv_func_mmap_file=no
20333 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 #include <sys/types.h>
20342 #include <sys/mman.h>
20350 fd = creat ("foo",0777);
20351 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20353 return (fd != (int) MAP_FAILED);
20358 rm -f conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20369 { (case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_try") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_func_mmap_file=yes
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ( exit $ac_status )
20385 ac_cv_func_mmap_file=no
20387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20392 ac_cpp='$CPP $CPPFLAGS'
20393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20399 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20400 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20401 if test "$ac_cv_func_mmap_file" = yes; then
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_MMAP_FILE
20411 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20412 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20413 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 if test "$llvm_cv_os_type" = "Interix" ; then
20417 ac_cv_need_dev_zero_for_mmap=yes
20419 ac_cv_need_dev_zero_for_mmap=no
20423 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20424 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20425 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20427 cat >>confdefs.h <<\_ACEOF
20428 #define NEED_DEV_ZERO_FOR_MMAP 1
20433 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20435 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20436 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20438 if test "$ac_cv_func_mmap_file" = "no"
20440 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20441 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20445 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20446 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20448 ac_cpp='$CXXCPP $CPPFLAGS'
20449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20460 volatile unsigned long val = 1;
20461 __sync_synchronize();
20462 __sync_val_compare_and_swap(&val, 1, 0);
20463 __sync_add_and_fetch(&val, 1);
20464 __sync_sub_and_fetch(&val, 1);
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (ac_try="$ac_link"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_link") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest$ac_exeext'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20509 { echo "$as_me:$LINENO: result: yes" >&5
20510 echo "${ECHO_T}yes" >&6; }
20512 cat >>confdefs.h <<\_ACEOF
20513 #define LLVM_HAS_ATOMICS 1
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 { echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6; }
20523 cat >>confdefs.h <<\_ACEOF
20524 #define LLVM_HAS_ATOMICS 0
20527 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20528 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20535 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20536 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20537 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20538 if test "${llvm_cv_linux_mixed+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 ac_cpp='$CPP $CPPFLAGS'
20543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20554 error: Not x86-64 even if uname says so!
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_compile") 2>conftest.er1
20574 grep -v '^ *+' conftest.er1 >conftest.err
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } &&
20579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; } &&
20589 { ac_try='test -s conftest.$ac_objext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 llvm_cv_linux_mixed=no
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 llvm_cv_linux_mixed=yes
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 ac_cpp='$CPP $CPPFLAGS'
20610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20616 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20617 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20619 if test "$llvm_cv_linux_mixed" = "yes"; then
20620 llvm_cv_target_arch="x86"
20626 for ac_func in __dso_handle
20628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20642 #define $ac_func innocuous_$ac_func
20644 /* System header to define __stub macros and hopefully few prototypes,
20645 which can conflict with char $ac_func (); below.
20646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20647 <limits.h> exists even on freestanding compilers. */
20650 # include <limits.h>
20652 # include <assert.h>
20657 /* Override any GCC internal prototype to avoid an error.
20658 Use char because int might match the return type of a GCC
20659 builtin and then its argument prototype would still apply. */
20664 /* The GNU C library defines this for functions which it implements
20665 to always fail with ENOSYS. Some functions are actually named
20666 something starting with __ and the normal name is an alias. */
20667 #if defined __stub_$ac_func || defined __stub___$ac_func
20674 return $ac_func ();
20679 rm -f conftest.$ac_objext conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
20693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20694 { (case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_try") 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest$ac_exeext'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 eval "$as_ac_var=yes"
20715 echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718 eval "$as_ac_var=no"
20721 rm -f core conftest.err conftest.$ac_objext \
20722 conftest$ac_exeext conftest.$ac_ext
20724 ac_res=`eval echo '${'$as_ac_var'}'`
20725 { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728 cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20736 SHLIBEXT=$libltdl_cv_shlibext
20739 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20742 # Translate the various configuration directories and other basic
20743 # information into substitutions that will end up in Makefile.config.in
20744 # that these configured values can be used by the makefiles
20745 if test "${prefix}" = "NONE" ; then
20746 prefix="/usr/local"
20748 eval LLVM_PREFIX="${prefix}";
20749 eval LLVM_BINDIR="${prefix}/bin";
20750 eval LLVM_LIBDIR="${prefix}/lib";
20751 eval LLVM_DATADIR="${prefix}/share/llvm";
20752 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20753 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20754 eval LLVM_INCLUDEDIR="${prefix}/include";
20755 eval LLVM_INFODIR="${prefix}/info";
20756 eval LLVM_MANDIR="${prefix}/man";
20757 LLVM_CONFIGTIME=`date`
20769 # Place the various directores into the config.h file as #defines so that we
20770 # can know about the installation paths within LLVM.
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_PREFIX "$LLVM_PREFIX"
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_BINDIR "$LLVM_BINDIR"
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_DATADIR "$LLVM_DATADIR"
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_INFODIR "$LLVM_INFODIR"
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_MANDIR "$LLVM_MANDIR"
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_HOSTTRIPLE "$host"
20827 # Determine which bindings to build.
20828 if test "$BINDINGS_TO_BUILD" = auto ; then
20829 BINDINGS_TO_BUILD=""
20830 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20831 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20834 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20837 # This isn't really configurey, but it avoids having to repeat the list in
20842 # Do any work necessary to ensure that bindings have what they need.
20843 binding_prereqs_failed=0
20844 for a_binding in $BINDINGS_TO_BUILD ; do
20845 case "$a_binding" in
20847 if test "x$OCAMLC" = x ; then
20848 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20849 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20850 binding_prereqs_failed=1
20852 if test "x$OCAMLDEP" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20854 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20855 binding_prereqs_failed=1
20857 if test "x$OCAMLOPT" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20859 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20861 if test "x$with_ocaml_libdir" != xauto ; then
20862 OCAML_LIBDIR=$with_ocaml_libdir
20865 ocaml_stdlib="`"$OCAMLC" -where`"
20866 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20868 # ocaml stdlib is beneath our prefix; use stdlib
20869 OCAML_LIBDIR=$ocaml_stdlib
20872 # ocaml stdlib is outside our prefix; use libdir/ocaml
20873 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20880 if test "$binding_prereqs_failed" = 1 ; then
20881 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20882 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20883 { (exit 1); exit 1; }; }
20886 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20887 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20888 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 ac_cpp='$CXXCPP $CPPFLAGS'
20893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20897 oldcxxflags="$CXXFLAGS"
20898 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
20928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20929 { (case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_try") 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 llvm_cv_cxx_visibility_inlines_hidden=yes
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 llvm_cv_cxx_visibility_inlines_hidden=no
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 CXXFLAGS="$oldcxxflags"
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20966 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20967 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20968 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20969 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20972 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20977 if test "$llvm_cv_link_use_r" = "yes" ; then
20984 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20985 RDYNAMIC="-Wl,-export-dynamic"
20993 ac_config_files="$ac_config_files Makefile.common"
20995 ac_config_files="$ac_config_files Makefile.llvm.config"
20998 ac_config_commands="$ac_config_commands Makefile"
21001 ac_config_commands="$ac_config_commands lib/Makefile"
21004 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21007 ac_config_commands="$ac_config_commands tools/Makefile"
21010 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21014 cat >confcache <<\_ACEOF
21015 # This file is a shell script that caches the results of configure
21016 # tests run on this system so they can be shared between configure
21017 # scripts and configure runs, see configure's option --config-cache.
21018 # It is not useful on other systems. If it contains results you don't
21019 # want to keep, you may remove or edit it.
21021 # config.status only pays attention to the cache file if you give it
21022 # the --recheck option to rerun configure.
21024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21026 # following values.
21030 # The following way of writing the cache mishandles newlines in values,
21031 # but we know of no workaround that is simple, portable, and efficient.
21032 # So, we kill variables containing newlines.
21033 # Ultrix sh set writes to stderr and can't be redirected directly,
21034 # and sets the high bit in the cache file unless we assign to the vars.
21036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21037 eval ac_val=\$$ac_var
21041 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21042 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21045 _ | IFS | as_nl) ;; #(
21046 *) $as_unset $ac_var ;;
21052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21053 *${as_nl}ac_space=\ *)
21054 # `set' does not quote correctly, so add quotes (double-quote
21055 # substitution turns \\\\ into \\, and sed turns \\ into \).
21058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21061 # `set' quotes correctly as required by POSIX, so do not add quotes.
21062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21076 if test -w "$cache_file"; then
21077 test "x$cache_file" != "x/dev/null" &&
21078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21079 echo "$as_me: updating cache $cache_file" >&6;}
21080 cat confcache >$cache_file
21082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21083 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21089 # Let make expand exec_prefix.
21090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21092 # Transform confdefs.h into DEFS.
21093 # Protect against shell expansion while executing Makefile rules.
21094 # Protect against Makefile macro expansion.
21096 # If the first sed substitution is executed (which looks for macros that
21097 # take arguments), then branch to the quote section. Otherwise,
21098 # look for a macro that doesn't take arguments.
21102 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21104 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21108 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21121 DEFS=`sed -n "$ac_script" confdefs.h`
21126 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21127 # 1. Remove the extension, and $U if already installed.
21128 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21129 ac_i=`echo "$ac_i" | sed "$ac_script"`
21130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21131 # will be set to the directory where LIBOBJS objects are built.
21132 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21133 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21135 LIBOBJS=$ac_libobjs
21137 LTLIBOBJS=$ac_ltlibobjs
21140 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21141 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21142 Usually this means the macro was only invoked conditionally." >&5
21143 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21144 Usually this means the macro was only invoked conditionally." >&2;}
21145 { (exit 1); exit 1; }; }
21147 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21148 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21149 Usually this means the macro was only invoked conditionally." >&5
21150 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21151 Usually this means the macro was only invoked conditionally." >&2;}
21152 { (exit 1); exit 1; }; }
21155 : ${CONFIG_STATUS=./config.status}
21156 ac_clean_files_save=$ac_clean_files
21157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21160 cat >$CONFIG_STATUS <<_ACEOF
21162 # Generated by $as_me.
21163 # Run this file to recreate the current configuration.
21164 # Compiler output produced by configure, useful for debugging
21165 # configure, is in config.log if it exists.
21168 ac_cs_recheck=false
21170 SHELL=\${CONFIG_SHELL-$SHELL}
21173 cat >>$CONFIG_STATUS <<\_ACEOF
21174 ## --------------------- ##
21175 ## M4sh Initialization. ##
21176 ## --------------------- ##
21178 # Be Bourne compatible
21179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21182 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21183 # is contrary to our usage. Disable this feature.
21184 alias -g '${1+"$@"}'='"$@"'
21185 setopt NO_GLOB_SUBST
21187 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21189 BIN_SH=xpg4; export BIN_SH # for Tru64
21190 DUALCASE=1; export DUALCASE # for MKS sh
21194 # Avoid depending upon Character Ranges.
21195 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21198 as_cr_digits='0123456789'
21199 as_cr_alnum=$as_cr_Letters$as_cr_digits
21201 # The user is always right.
21202 if test "${PATH_SEPARATOR+set}" != set; then
21203 echo "#! /bin/sh" >conf$$.sh
21204 echo "exit 0" >>conf$$.sh
21206 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21214 # Support unset when possible.
21215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21223 # We need space, tab and new line, in precisely that order. Quoting is
21224 # there to prevent editors from complaining about space-tab.
21225 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21226 # splitting by setting IFS to empty value.)
21231 # Find who we are. Look in the path if we contain no directory separator.
21233 *[\\/]* ) as_myself=$0 ;;
21234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21238 test -z "$as_dir" && as_dir=.
21239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21245 # We did not find ourselves, most probably we were run as `sh COMMAND'
21246 # in which case we are not to be found in the path.
21247 if test "x$as_myself" = x; then
21250 if test ! -f "$as_myself"; then
21251 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21252 { (exit 1); exit 1; }
21255 # Work around bugs in pre-3.0 UWIN ksh.
21256 for as_var in ENV MAIL MAILPATH
21257 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21265 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21266 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21267 LC_TELEPHONE LC_TIME
21269 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21270 eval $as_var=C; export $as_var
21272 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21276 # Required to use basename.
21277 if expr a : '\(a\)' >/dev/null 2>&1 &&
21278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21285 as_basename=basename
21291 # Name of the executable.
21292 as_me=`$as_basename -- "$0" ||
21293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21294 X"$0" : 'X\(//\)$' \| \
21295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21297 sed '/^.*\/\([^/][^/]*\)\/*$/{
21316 as_lineno_1=$LINENO
21317 as_lineno_2=$LINENO
21318 test "x$as_lineno_1" != "x$as_lineno_2" &&
21319 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21322 # uniformly replaced by the line number. The first 'sed' inserts a
21323 # line-number line after each line using $LINENO; the second 'sed'
21324 # does the real work. The second script uses 'N' to pair each
21325 # line-number line with the line containing $LINENO, and appends
21326 # trailing '-' during substitution so that $LINENO is not a special
21327 # case at line end.
21328 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21329 # scripts with optimization help from Paolo Bonzini. Blame Lee
21330 # E. McMahon (1931-1989) for sed's syntax. :-)
21342 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21345 ' >$as_me.lineno &&
21346 chmod +x "$as_me.lineno" ||
21347 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21348 { (exit 1); exit 1; }; }
21350 # Don't try to exec as it changes $[0], causing all sort of problems
21351 # (the dirname of $[0] is not the place where we might find the
21352 # original and so on. Autoconf is especially sensitive to this).
21353 . "./$as_me.lineno"
21354 # Exit status is that of the last command.
21359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21365 ECHO_C= ECHO_N= ECHO_T=
21366 case `echo -n x` in
21368 case `echo 'x\c'` in
21369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21376 if expr a : '\(a\)' >/dev/null 2>&1 &&
21377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21383 rm -f conf$$ conf$$.exe conf$$.file
21384 if test -d conf$$.dir; then
21385 rm -f conf$$.dir/conf$$.file
21391 if ln -s conf$$.file conf$$ 2>/dev/null; then
21393 # ... but there are two gotchas:
21394 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21395 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21396 # In both cases, we have to default to `cp -p'.
21397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21399 elif ln conf$$.file conf$$ 2>/dev/null; then
21404 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21405 rmdir conf$$.dir 2>/dev/null
21407 if mkdir -p . 2>/dev/null; then
21410 test -d ./-p && rmdir ./-p
21414 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21415 # systems may use methods other than mode bits to determine executability.
21416 cat >conf$$.file <<_ASEOF
21420 chmod +x conf$$.file
21421 if test -x conf$$.file >/dev/null 2>&1; then
21422 as_executable_p="test -x"
21428 # Sed expression to map a string onto a valid CPP name.
21429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21431 # Sed expression to map a string onto a valid variable name.
21432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21437 # Save the log message, to keep $[0] and so on meaningful, and to
21438 # report actual input values of CONFIG_FILES etc. instead of their
21439 # values after options handling.
21441 This file was extended by [SAMPLE] $as_me [x.xx], which was
21442 generated by GNU Autoconf 2.60. Invocation command line was
21444 CONFIG_FILES = $CONFIG_FILES
21445 CONFIG_HEADERS = $CONFIG_HEADERS
21446 CONFIG_LINKS = $CONFIG_LINKS
21447 CONFIG_COMMANDS = $CONFIG_COMMANDS
21450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21455 cat >>$CONFIG_STATUS <<_ACEOF
21456 # Files that config.status was made for.
21457 config_files="$ac_config_files"
21458 config_commands="$ac_config_commands"
21462 cat >>$CONFIG_STATUS <<\_ACEOF
21464 \`$as_me' instantiates files from templates according to the
21465 current configuration.
21467 Usage: $0 [OPTIONS] [FILE]...
21469 -h, --help print this help, then exit
21470 -V, --version print version number, then exit
21471 -q, --quiet do not print progress messages
21472 -d, --debug don't remove temporary files
21473 --recheck update $as_me by reconfiguring in the same conditions
21474 --file=FILE[:TEMPLATE]
21475 instantiate the configuration file FILE
21477 Configuration files:
21480 Configuration commands:
21483 Report bugs to <bug-autoconf@gnu.org>."
21486 cat >>$CONFIG_STATUS <<_ACEOF
21488 [SAMPLE] config.status [x.xx]
21489 configured by $0, generated by GNU Autoconf 2.60,
21490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21492 Copyright (C) 2006 Free Software Foundation, Inc.
21493 This config.status script is free software; the Free Software Foundation
21494 gives unlimited permission to copy, distribute and modify it."
21501 cat >>$CONFIG_STATUS <<\_ACEOF
21502 # If no file are specified by the user, then we need to provide default
21503 # value. By we need to know if files were specified by the user.
21509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21521 # Handling of the options.
21522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21525 echo "$ac_cs_version"; exit ;;
21526 --debug | --debu | --deb | --de | --d | -d )
21528 --file | --fil | --fi | --f )
21530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21531 ac_need_defaults=false;;
21532 --he | --h | --help | --hel | -h )
21533 echo "$ac_cs_usage"; exit ;;
21534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21535 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21538 # This is an error.
21539 -*) { echo "$as_me: error: unrecognized option: $1
21540 Try \`$0 --help' for more information." >&2
21541 { (exit 1); exit 1; }; } ;;
21543 *) ac_config_targets="$ac_config_targets $1"
21544 ac_need_defaults=false ;;
21550 ac_configure_extra_args=
21552 if $ac_cs_silent; then
21554 ac_configure_extra_args="$ac_configure_extra_args --silent"
21558 cat >>$CONFIG_STATUS <<_ACEOF
21559 if \$ac_cs_recheck; then
21560 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21561 CONFIG_SHELL=$SHELL
21562 export CONFIG_SHELL
21563 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21567 cat >>$CONFIG_STATUS <<\_ACEOF
21571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21572 ## Running $as_me. ##
21578 cat >>$CONFIG_STATUS <<_ACEOF
21582 llvm_src="${LLVM_SRC}"
21586 cat >>$CONFIG_STATUS <<\_ACEOF
21588 # Handling of arguments.
21589 for ac_config_target in $ac_config_targets
21591 case $ac_config_target in
21592 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21593 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21594 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21595 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21596 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21597 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21598 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21599 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603 { (exit 1); exit 1; }; };;
21608 # If the user did not use the arguments to specify the items to instantiate,
21609 # then the envvar interface is used. Set only those that are not.
21610 # We use the long form for the default assignment because of an extremely
21611 # bizarre bug on SunOS 4.1.3.
21612 if $ac_need_defaults; then
21613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21617 # Have a temporary directory for convenience. Make it in the build tree
21618 # simply because there is no reason against having it here, and in addition,
21619 # creating and moving files from /tmp can sometimes cause problems.
21620 # Hook for its removal unless debugging.
21621 # Note that there is a small window in which the directory will not be cleaned:
21622 # after its creation but before its name has been assigned to `$tmp'.
21626 trap 'exit_status=$?
21627 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21629 trap '{ (exit 1); exit 1; }' 1 2 13 15
21631 # Create a (secure) tmp directory for tmp files.
21634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21635 test -n "$tmp" && test -d "$tmp"
21638 tmp=./conf$$-$RANDOM
21639 (umask 077 && mkdir "$tmp")
21642 echo "$me: cannot create a temporary directory in ." >&2
21643 { (exit 1); exit 1; }
21647 # Set up the sed scripts for CONFIG_FILES section.
21650 # No need to generate the scripts if there are no CONFIG_FILES.
21651 # This happens for instance when ./config.status config.h
21652 if test -n "$CONFIG_FILES"; then
21659 for ac_last_try in false false false false false :; do
21660 cat >conf$$subs.sed <<_ACEOF
21661 SHELL!$SHELL$ac_delim
21662 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21663 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21664 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21665 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21666 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21667 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21668 exec_prefix!$exec_prefix$ac_delim
21669 prefix!$prefix$ac_delim
21670 program_transform_name!$program_transform_name$ac_delim
21671 bindir!$bindir$ac_delim
21672 sbindir!$sbindir$ac_delim
21673 libexecdir!$libexecdir$ac_delim
21674 datarootdir!$datarootdir$ac_delim
21675 datadir!$datadir$ac_delim
21676 sysconfdir!$sysconfdir$ac_delim
21677 sharedstatedir!$sharedstatedir$ac_delim
21678 localstatedir!$localstatedir$ac_delim
21679 includedir!$includedir$ac_delim
21680 oldincludedir!$oldincludedir$ac_delim
21681 docdir!$docdir$ac_delim
21682 infodir!$infodir$ac_delim
21683 htmldir!$htmldir$ac_delim
21684 dvidir!$dvidir$ac_delim
21685 pdfdir!$pdfdir$ac_delim
21686 psdir!$psdir$ac_delim
21687 libdir!$libdir$ac_delim
21688 localedir!$localedir$ac_delim
21689 mandir!$mandir$ac_delim
21690 DEFS!$DEFS$ac_delim
21691 ECHO_C!$ECHO_C$ac_delim
21692 ECHO_N!$ECHO_N$ac_delim
21693 ECHO_T!$ECHO_T$ac_delim
21694 LIBS!$LIBS$ac_delim
21695 build_alias!$build_alias$ac_delim
21696 host_alias!$host_alias$ac_delim
21697 target_alias!$target_alias$ac_delim
21698 LLVM_SRC!$LLVM_SRC$ac_delim
21699 LLVM_OBJ!$LLVM_OBJ$ac_delim
21700 LLVM_VERSION!$LLVM_VERSION$ac_delim
21702 CFLAGS!$CFLAGS$ac_delim
21703 LDFLAGS!$LDFLAGS$ac_delim
21704 CPPFLAGS!$CPPFLAGS$ac_delim
21705 ac_ct_CC!$ac_ct_CC$ac_delim
21706 EXEEXT!$EXEEXT$ac_delim
21707 OBJEXT!$OBJEXT$ac_delim
21709 CXXFLAGS!$CXXFLAGS$ac_delim
21710 ac_ct_CXX!$ac_ct_CXX$ac_delim
21712 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21713 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21714 subdirs!$subdirs$ac_delim
21715 build!$build$ac_delim
21716 build_cpu!$build_cpu$ac_delim
21717 build_vendor!$build_vendor$ac_delim
21718 build_os!$build_os$ac_delim
21719 host!$host$ac_delim
21720 host_cpu!$host_cpu$ac_delim
21721 host_vendor!$host_vendor$ac_delim
21722 host_os!$host_os$ac_delim
21723 target!$target$ac_delim
21724 target_cpu!$target_cpu$ac_delim
21725 target_vendor!$target_vendor$ac_delim
21726 target_os!$target_os$ac_delim
21728 HOST_OS!$HOST_OS$ac_delim
21729 TARGET_OS!$TARGET_OS$ac_delim
21730 LINKALL!$LINKALL$ac_delim
21731 NOLINKALL!$NOLINKALL$ac_delim
21732 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21733 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21734 ARCH!$ARCH$ac_delim
21735 ENDIAN!$ENDIAN$ac_delim
21736 GREP!$GREP$ac_delim
21737 EGREP!$EGREP$ac_delim
21738 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21739 BUILD_CC!$BUILD_CC$ac_delim
21740 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21741 BUILD_CXX!$BUILD_CXX$ac_delim
21742 CVSBUILD!$CVSBUILD$ac_delim
21743 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21744 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21745 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21746 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21747 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21748 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21749 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21751 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21752 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21753 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21754 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21755 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21756 ENABLE_PIC!$ENABLE_PIC$ac_delim
21757 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21760 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21762 elif $ac_last_try; then
21763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21764 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21765 { (exit 1); exit 1; }; }
21767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21771 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21772 if test -n "$ac_eof"; then
21773 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21774 ac_eof=`expr $ac_eof + 1`
21777 cat >>$CONFIG_STATUS <<_ACEOF
21778 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21782 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21783 s/^/s,@/; s/!/@,|#_!!_#|/
21786 s/'"$ac_delim"'$/,g/; t
21788 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21789 ' >>$CONFIG_STATUS <conf$$subs.sed
21790 rm -f conf$$subs.sed
21791 cat >>$CONFIG_STATUS <<_ACEOF
21797 for ac_last_try in false false false false false :; do
21798 cat >conf$$subs.sed <<_ACEOF
21799 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21800 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21801 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21802 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21803 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21804 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21805 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21806 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21807 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21808 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21809 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21810 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21812 ifGNUmake!$ifGNUmake$ac_delim
21813 LN_S!$LN_S$ac_delim
21816 DATE!$DATE$ac_delim
21817 FIND!$FIND$ac_delim
21818 MKDIR!$MKDIR$ac_delim
21820 RANLIB!$RANLIB$ac_delim
21825 BINPWD!$BINPWD$ac_delim
21826 GRAPHVIZ!$GRAPHVIZ$ac_delim
21829 NEATO!$NEATO$ac_delim
21830 TWOPI!$TWOPI$ac_delim
21831 CIRCO!$CIRCO$ac_delim
21833 DOTTY!$DOTTY$ac_delim
21834 XDOT_PY!$XDOT_PY$ac_delim
21835 PERL!$PERL$ac_delim
21836 HAVE_PERL!$HAVE_PERL$ac_delim
21837 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21838 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21839 INSTALL_DATA!$INSTALL_DATA$ac_delim
21840 BZIP2!$BZIP2$ac_delim
21842 DOXYGEN!$DOXYGEN$ac_delim
21843 GROFF!$GROFF$ac_delim
21844 GZIPBIN!$GZIPBIN$ac_delim
21845 POD2HTML!$POD2HTML$ac_delim
21846 POD2MAN!$POD2MAN$ac_delim
21847 PDFROFF!$PDFROFF$ac_delim
21848 RUNTEST!$RUNTEST$ac_delim
21849 TCLSH!$TCLSH$ac_delim
21851 OCAMLC!$OCAMLC$ac_delim
21852 OCAMLOPT!$OCAMLOPT$ac_delim
21853 OCAMLDEP!$OCAMLDEP$ac_delim
21854 OCAMLDOC!$OCAMLDOC$ac_delim
21856 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21857 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21858 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21859 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21860 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21861 LIBADD_DL!$LIBADD_DL$ac_delim
21862 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21863 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21864 USE_UDIS86!$USE_UDIS86$ac_delim
21865 USE_OPROFILE!$USE_OPROFILE$ac_delim
21866 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21867 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21868 MMAP_FILE!$MMAP_FILE$ac_delim
21869 SHLIBEXT!$SHLIBEXT$ac_delim
21870 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21871 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21872 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21873 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21874 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21875 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21876 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21877 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21878 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21879 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21880 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21881 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21882 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21883 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21884 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21885 RPATH!$RPATH$ac_delim
21886 RDYNAMIC!$RDYNAMIC$ac_delim
21887 LIBOBJS!$LIBOBJS$ac_delim
21888 LTLIBOBJS!$LTLIBOBJS$ac_delim
21891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21893 elif $ac_last_try; then
21894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21895 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21896 { (exit 1); exit 1; }; }
21898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21902 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21903 if test -n "$ac_eof"; then
21904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21905 ac_eof=`expr $ac_eof + 1`
21908 cat >>$CONFIG_STATUS <<_ACEOF
21909 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21913 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21914 s/^/s,@/; s/!/@,|#_!!_#|/
21917 s/'"$ac_delim"'$/,g/; t
21919 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21920 ' >>$CONFIG_STATUS <conf$$subs.sed
21921 rm -f conf$$subs.sed
21922 cat >>$CONFIG_STATUS <<_ACEOF
21929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21931 # trailing colons and then remove the whole line if VPATH becomes empty
21932 # (actually we leave an empty line to preserve line numbers).
21933 if test "x$srcdir" = x.; then
21934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21935 s/:*\$(srcdir):*/:/
21936 s/:*\${srcdir}:*/:/
21938 s/^\([^=]*=[ ]*\):*/\1/
21944 cat >>$CONFIG_STATUS <<\_ACEOF
21945 fi # test -n "$CONFIG_FILES"
21948 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21951 :[FHLC]) ac_mode=$ac_tag; continue;;
21953 case $ac_mode$ac_tag in
21955 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21956 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21957 { (exit 1); exit 1; }; };;
21958 :[FH]-) ac_tag=-:-;;
21959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21976 -) ac_f="$tmp/stdin";;
21977 *) # Look for the file first in the build tree, then in the source tree
21978 # (if the path is not absolute). The absolute path cannot be DOS-style,
21979 # because $ac_f cannot contain `:'.
21983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21985 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21986 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21987 { (exit 1); exit 1; }; };;
21989 ac_file_inputs="$ac_file_inputs $ac_f"
21992 # Let's still pretend it is `configure' which instantiates (i.e., don't
21993 # use $as_me), people would be surprised to read:
21994 # /* config.h. Generated by config.status. */
21995 configure_input="Generated from "`IFS=:
21996 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21997 if test x"$ac_file" != x-; then
21998 configure_input="$ac_file. $configure_input"
21999 { echo "$as_me:$LINENO: creating $ac_file" >&5
22000 echo "$as_me: creating $ac_file" >&6;}
22004 *:-:* | *:-) cat >"$tmp/stdin";;
22009 ac_dir=`$as_dirname -- "$ac_file" ||
22010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22011 X"$ac_file" : 'X\(//\)[^/]' \| \
22012 X"$ac_file" : 'X\(//\)$' \| \
22013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22019 /^X\(\/\/\)[^/].*/{
22034 -*) as_dir=./$as_dir;;
22036 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22040 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22041 *) as_qdir=$as_dir;;
22043 as_dirs="'$as_qdir' $as_dirs"
22044 as_dir=`$as_dirname -- "$as_dir" ||
22045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22046 X"$as_dir" : 'X\(//\)[^/]' \| \
22047 X"$as_dir" : 'X\(//\)$' \| \
22048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22054 /^X\(\/\/\)[^/].*/{
22067 test -d "$as_dir" && break
22069 test -z "$as_dirs" || eval "mkdir $as_dirs"
22070 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22071 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22072 { (exit 1); exit 1; }; }; }
22076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22079 # A ".." for each directory in $ac_dir_suffix.
22080 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22081 case $ac_top_builddir_sub in
22082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22086 ac_abs_top_builddir=$ac_pwd
22087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22088 # for backward compatibility:
22089 ac_top_builddir=$ac_top_build_prefix
22092 .) # We are building in place.
22094 ac_top_srcdir=$ac_top_builddir_sub
22095 ac_abs_top_srcdir=$ac_pwd ;;
22096 [\\/]* | ?:[\\/]* ) # Absolute name.
22097 ac_srcdir=$srcdir$ac_dir_suffix;
22098 ac_top_srcdir=$srcdir
22099 ac_abs_top_srcdir=$srcdir ;;
22100 *) # Relative name.
22101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22102 ac_top_srcdir=$ac_top_build_prefix$srcdir
22103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # If the template does not know about datarootdir, expand it.
22122 # FIXME: This hack should be removed a few years after 2.60.
22123 ac_datarootdir_hack=; ac_datarootdir_seen=
22125 case `sed -n '/datarootdir/ {
22134 ' $ac_file_inputs` in
22135 *datarootdir*) ac_datarootdir_seen=yes;;
22136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22137 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22138 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 ac_datarootdir_hack='
22142 s&@datadir@&$datadir&g
22143 s&@docdir@&$docdir&g
22144 s&@infodir@&$infodir&g
22145 s&@localedir@&$localedir&g
22146 s&@mandir@&$mandir&g
22147 s&\\\${datarootdir}&$datarootdir&g' ;;
22151 # Neutralize VPATH when `$srcdir' = `.'.
22152 # Shell code in configure.ac might set extrasub.
22153 # FIXME: do we really want to maintain this feature?
22154 cat >>$CONFIG_STATUS <<_ACEOF
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22161 s&@configure_input@&$configure_input&;t t
22162 s&@top_builddir@&$ac_top_builddir_sub&;t t
22163 s&@srcdir@&$ac_srcdir&;t t
22164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22165 s&@top_srcdir@&$ac_top_srcdir&;t t
22166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22167 s&@builddir@&$ac_builddir&;t t
22168 s&@abs_builddir@&$ac_abs_builddir&;t t
22169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22170 s&@INSTALL@&$ac_INSTALL&;t t
22171 $ac_datarootdir_hack
22172 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22177 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22178 which seems to be undefined. Please make sure it is defined." >&5
22179 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22180 which seems to be undefined. Please make sure it is defined." >&2;}
22184 -) cat "$tmp/out"; rm -f "$tmp/out";;
22185 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22190 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22191 echo "$as_me: executing $ac_file commands" >&6;}
22196 case $ac_file$ac_mode in
22197 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22198 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22199 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22200 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22201 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22202 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22203 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22204 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22205 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22206 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22212 { (exit 0); exit 0; }
22214 chmod +x $CONFIG_STATUS
22215 ac_clean_files=$ac_clean_files_save
22218 # configure is writing to config.log, and then calls config.status.
22219 # config.status does its own redirection, appending to config.log.
22220 # Unfortunately, on DOS this fails, as config.log is still kept open
22221 # by configure, so config.status won't be able to write to it; its
22222 # output is simply discarded. So we exec the FD to /dev/null,
22223 # effectively closing config.log, so it can be properly (re)opened and
22224 # appended to by config.status. When coming back to configure, we
22225 # need to make the FD available again.
22226 if test "$no_create" != yes; then
22228 ac_config_status_args=
22229 test "$silent" = yes &&
22230 ac_config_status_args="$ac_config_status_args --quiet"
22232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22235 # would make configure fail if this is the last instruction.
22236 $ac_cs_success || { (exit 1); exit 1; }
22240 # CONFIG_SUBDIRS section.
22242 if test "$no_recursion" != yes; then
22244 # Remove --cache-file and --srcdir arguments so they do not pile up.
22245 ac_sub_configure_args=
22247 eval "set x $ac_configure_args"
22251 if test -n "$ac_prev"; then
22256 -cache-file | --cache-file | --cache-fil | --cache-fi \
22257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22258 ac_prev=cache_file ;;
22259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22263 --config-cache | -C)
22265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22275 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22277 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22281 # Always prepend --prefix to ensure using the same prefix
22282 # in subdir configurations.
22283 ac_arg="--prefix=$prefix"
22285 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22287 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22290 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22292 # Do not complain, so a configure script can configure whichever
22293 # parts of a large source tree are present.
22294 test -d "$srcdir/$ac_dir" || continue
22296 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22297 echo "$as_me:$LINENO: $ac_msg" >&5
22301 -*) as_dir=./$as_dir;;
22303 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22307 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22308 *) as_qdir=$as_dir;;
22310 as_dirs="'$as_qdir' $as_dirs"
22311 as_dir=`$as_dirname -- "$as_dir" ||
22312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22313 X"$as_dir" : 'X\(//\)[^/]' \| \
22314 X"$as_dir" : 'X\(//\)$' \| \
22315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22321 /^X\(\/\/\)[^/].*/{
22334 test -d "$as_dir" && break
22336 test -z "$as_dirs" || eval "mkdir $as_dirs"
22337 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22338 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22339 { (exit 1); exit 1; }; }; }
22343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22346 # A ".." for each directory in $ac_dir_suffix.
22347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22348 case $ac_top_builddir_sub in
22349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22353 ac_abs_top_builddir=$ac_pwd
22354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22355 # for backward compatibility:
22356 ac_top_builddir=$ac_top_build_prefix
22359 .) # We are building in place.
22361 ac_top_srcdir=$ac_top_builddir_sub
22362 ac_abs_top_srcdir=$ac_pwd ;;
22363 [\\/]* | ?:[\\/]* ) # Absolute name.
22364 ac_srcdir=$srcdir$ac_dir_suffix;
22365 ac_top_srcdir=$srcdir
22366 ac_abs_top_srcdir=$srcdir ;;
22367 *) # Relative name.
22368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22369 ac_top_srcdir=$ac_top_build_prefix$srcdir
22370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22377 # Check for guested configure; otherwise get Cygnus style configure.
22378 if test -f "$ac_srcdir/configure.gnu"; then
22379 ac_sub_configure=$ac_srcdir/configure.gnu
22380 elif test -f "$ac_srcdir/configure"; then
22381 ac_sub_configure=$ac_srcdir/configure
22382 elif test -f "$ac_srcdir/configure.in"; then
22383 # This should be Cygnus configure.
22384 ac_sub_configure=$ac_aux_dir/configure
22386 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22387 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22391 # The recursion is here.
22392 if test -n "$ac_sub_configure"; then
22393 # Make the cache file name correct relative to the subdirectory.
22394 case $cache_file in
22395 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22396 *) # Relative name.
22397 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22400 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22401 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22402 # The eval makes quoting arguments work.
22403 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22404 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22405 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22406 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22407 { (exit 1); exit 1; }; }