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, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
1406 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-libffi Check for the presence of libffi (default is NO)
1411 --enable-ltdl-install install libltdl
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-llvmsrc Location of LLVM Source Code
1417 --with-llvmobj Location of LLVM Object Code
1418 --with-optimize-option Select the compiler options to use for optimized
1420 --with-extra-options Specify additional options to compile LLVM with
1421 --with-extra-ld-options Specify additional options to link LLVM with
1422 --with-ocaml-libdir Specify install location for ocaml bindings (default
1424 --with-clang-resource-dir
1425 Relative directory from the Clang binary for
1427 --with-c-include-dirs Colon separated list of directories clang will
1429 --with-gcc-toolchain Directory where gcc is installed.
1430 --with-binutils-include Specify path to binutils/include/ containing
1431 plugin-api.h file for gold plugin.
1432 --with-bug-report-url Specify the URL where bug reports should be
1433 submitted (default=http://llvm.org/bugs/)
1434 --with-tclinclude directory where tcl headers are
1435 --with-udis86=<path> Use udis86 external x86 disassembler library
1436 --with-oprofile=<prefix>
1437 Tell OProfile >= 0.9.4 how to symbolize JIT output
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to <bugs@yourdomain>.
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" || continue
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1481 .) # We are building in place.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1505 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1514 [SAMPLE] configure [x.xx]
1515 generated by GNU Autoconf 2.60
1517 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1518 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1524 cat >config.log <<_ACEOF
1525 This file contains any messages produced by compilers while
1526 running configure, to aid debugging if configure makes a mistake.
1528 It was created by [SAMPLE] $as_me [x.xx], which was
1529 generated by GNU Autoconf 2.60. Invocation command line was
1541 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1542 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1543 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1544 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1545 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1547 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1548 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1550 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1551 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1552 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1553 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1554 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1555 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1556 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 echo "PATH: $as_dir"
1581 # Keep a trace of the command line.
1582 # Strip out --no-create and --no-recursion so they do not pile up.
1583 # Strip out --silent because we don't want to record it for future runs.
1584 # Also quote any args containing shell meta-characters.
1585 # Make two passes to allow for proper duplicate-argument suppression.
1589 ac_must_keep_next=false
1595 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1597 | -silent | --silent | --silen | --sile | --sil)
1600 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1605 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1606 if test $ac_must_keep_next = true; then
1607 ac_must_keep_next=false # Got value, back to normal.
1610 *=* | --config-cache | -C | -disable-* | --disable-* \
1611 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1612 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1613 | -with-* | --with-* | -without-* | --without-* | --x)
1614 case "$ac_configure_args0 " in
1615 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 -* ) ac_must_keep_next=true ;;
1621 ac_configure_args="$ac_configure_args '$ac_arg'"
1626 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1627 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1629 # When interrupted or exit'd, cleanup temporary files, and complete
1630 # config.log. We remove comments because anyway the quotes in there
1631 # would cause problems or look ugly.
1632 # WARNING: Use '\'' to represent an apostrophe within the trap.
1633 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1634 trap 'exit_status=$?
1635 # Save into config.log some information that might help in debugging.
1640 ## ---------------- ##
1641 ## Cache variables. ##
1642 ## ---------------- ##
1645 # The following way of writing the cache mishandles newlines in values,
1647 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1648 eval ac_val=\$$ac_var
1652 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1653 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 _ | IFS | as_nl) ;; #(
1657 *) $as_unset $ac_var ;;
1662 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1663 *${as_nl}ac_space=\ *)
1665 "s/'\''/'\''\\\\'\'''\''/g;
1666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1677 ## ----------------- ##
1678 ## Output variables. ##
1679 ## ----------------- ##
1682 for ac_var in $ac_subst_vars
1684 eval ac_val=\$$ac_var
1686 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 echo "$ac_var='\''$ac_val'\''"
1692 if test -n "$ac_subst_files"; then
1694 ## ------------------- ##
1695 ## File substitutions. ##
1696 ## ------------------- ##
1699 for ac_var in $ac_subst_files
1701 eval ac_val=\$$ac_var
1703 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 echo "$ac_var='\''$ac_val'\''"
1710 if test -s confdefs.h; then
1720 test "$ac_signal" != 0 &&
1721 echo "$as_me: caught signal $ac_signal"
1722 echo "$as_me: exit $exit_status"
1724 rm -f core *.core core.conftest.* &&
1725 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728 for ac_signal in 1 2 13 15; do
1729 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1733 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1734 rm -f -r conftest* confdefs.h
1736 # Predefined preprocessor variables.
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_NAME "$PACKAGE_NAME"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_STRING "$PACKAGE_STRING"
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1763 # Let the site file select an alternate cache file if it wants to.
1764 # Prefer explicitly selected file to automatically selected ones.
1765 if test -n "$CONFIG_SITE"; then
1766 set x "$CONFIG_SITE"
1767 elif test "x$prefix" != xNONE; then
1768 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770 set x "$ac_default_prefix/share/config.site" \
1771 "$ac_default_prefix/etc/config.site"
1776 if test -r "$ac_site_file"; then
1777 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1778 echo "$as_me: loading site script $ac_site_file" >&6;}
1779 sed 's/^/| /' "$ac_site_file" >&5
1784 if test -r "$cache_file"; then
1785 # Some versions of bash will fail to source /dev/null (special
1786 # files actually), so we avoid doing that.
1787 if test -f "$cache_file"; then
1788 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1789 echo "$as_me: loading cache $cache_file" >&6;}
1791 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1792 *) . "./$cache_file";;
1796 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1797 echo "$as_me: creating cache $cache_file" >&6;}
1801 # Check that the precious variables saved in the cache have kept the same
1803 ac_cache_corrupted=false
1804 for ac_var in $ac_precious_vars; do
1805 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1806 eval ac_new_set=\$ac_env_${ac_var}_set
1807 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1808 eval ac_new_val=\$ac_env_${ac_var}_value
1809 case $ac_old_set,$ac_new_set in
1811 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1812 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1815 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1816 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1817 ac_cache_corrupted=: ;;
1820 if test "x$ac_old_val" != "x$ac_new_val"; then
1821 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1822 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1823 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1824 echo "$as_me: former value: $ac_old_val" >&2;}
1825 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1826 echo "$as_me: current value: $ac_new_val" >&2;}
1827 ac_cache_corrupted=:
1830 # Pass precious variables to config.status.
1831 if test "$ac_new_set" = set; then
1833 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1834 *) ac_arg=$ac_var=$ac_new_val ;;
1836 case " $ac_configure_args " in
1837 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1838 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1842 if $ac_cache_corrupted; then
1843 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1844 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1845 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1846 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1847 { (exit 1); exit 1; }; }
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1882 LLVM_SRC_ROOT="../.."
1883 LLVM_OBJ_ROOT="../.."
1885 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1886 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1889 # Check whether --with-llvmsrc was given.
1890 if test "${with_llvmsrc+set}" = set; then
1891 withval=$with_llvmsrc; llvm_src="$withval"
1893 llvm_src="$LLVM_ABS_SRC_ROOT"
1899 # Check whether --with-llvmobj was given.
1900 if test "${with_llvmobj+set}" = set; then
1901 withval=$with_llvmobj; llvm_obj="$withval"
1903 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1908 ac_config_commands="$ac_config_commands setup"
1912 { echo "$as_me:$LINENO: checking llvm-config" >&5
1913 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1914 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1915 if ! test -f "$llvm_config_path" ; then
1916 llvm_config_path="no"
1918 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1919 echo "${ECHO_T}$llvm_config_path" >&6; }
1921 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1922 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1923 if test "$llvm_config_path" != no ; then
1924 llvm_package_version=`$llvm_config_path --version`
1926 llvm_package_version="unknown";
1928 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1929 echo "${ECHO_T}$llvm_package_version" >&6; }
1930 LLVM_VERSION=$llvm_package_version
1936 for ac_dir in autoconf "$srcdir"/autoconf; do
1937 if test -f "$ac_dir/install-sh"; then
1939 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 elif test -f "$ac_dir/install.sh"; then
1943 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 elif test -f "$ac_dir/shtool"; then
1947 ac_install_sh="$ac_aux_dir/shtool install -c"
1951 if test -z "$ac_aux_dir"; then
1952 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1953 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # These three variables are undocumented and unsupported,
1958 # and are intended to be withdrawn in a future Autoconf release.
1959 # They can cause serious problems if a builder's source tree is in a directory
1960 # whose full name contains unusual characters.
1961 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1962 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1963 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973 if test -n "$ac_tool_prefix"; then
1974 for ac_prog in clang llvm-gcc gcc
1976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$CC"; then
2005 { echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6; }
2008 { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2013 test -n "$CC" && break
2016 if test -z "$CC"; then
2018 for ac_prog in clang llvm-gcc gcc
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_ac_ct_CC="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048 if test -n "$ac_ct_CC"; then
2049 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 { echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6; }
2057 test -n "$ac_ct_CC" && break
2060 if test "x$ac_ct_CC" = x; then
2063 case $cross_compiling:$ac_tool_warned in
2065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2066 whose name does not start with the host triplet. If you think this
2067 configuration is useful to you, please write to autoconf@gnu.org." >&5
2068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet. If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2071 ac_tool_warned=yes ;;
2078 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&2;}
2082 { (exit 1); exit 1; }; }
2084 # Provide some information about the compiler.
2085 echo "$as_me:$LINENO: checking for C compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (ac_try="$ac_compiler --version >&5"
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093 (eval "$ac_compiler --version >&5") 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (ac_try="$ac_compiler -v >&5"
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103 (eval "$ac_compiler -v >&5") 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107 { (ac_try="$ac_compiler -V >&5"
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2113 (eval "$ac_compiler -V >&5") 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2118 cat >conftest.$ac_ext <<_ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2133 ac_clean_files_save=$ac_clean_files
2134 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135 # Try to create an executable without -o first, disregard a.out.
2136 # It will help us diagnose broken compilers, and finding out an intuition
2138 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2140 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142 # List of possible output files, starting from the most likely.
2143 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2144 # only as a last resort. b.out is created by i960 compilers.
2145 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147 # The IRIX 6 linker writes into existing files which may not be
2148 # executable, retaining their permissions. Remove them first so a
2149 # subsequent execution test works.
2151 for ac_file in $ac_files
2154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2155 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2160 if { (ac_try="$ac_link_default"
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2166 (eval "$ac_link_default") 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2173 # so that the user can short-circuit this test for compilers unknown to
2175 for ac_file in $ac_files
2177 test -f "$ac_file" || continue
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182 # We found the default executable, but exeext='' is most
2186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 # We set ac_cv_exeext here because the later test for it is not
2191 # safe: cross compilers may not add the suffix if given an `-o'
2192 # argument, so we may need to know it at that point already.
2193 # Even if this section looks crufty: it has the advantage of
2200 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2213 ac_exeext=$ac_cv_exeext
2214 { echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6; }
2217 # Check that the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_try") 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2236 if test "$cross_compiling" = maybe; then
2239 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245 { (exit 1); exit 1; }; }
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6; }
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check that the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2258 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6; }
2261 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2263 if { (ac_try="$ac_link"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_link") 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2275 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 for ac_file in conftest.exe conftest conftest.*; do
2278 test -f "$ac_file" || continue
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2294 rm -f conftest$ac_cv_exeext
2295 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2296 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298 rm -f conftest.$ac_ext
2299 EXEEXT=$ac_cv_exeext
2301 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2302 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2303 if test "${ac_cv_objext+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 cat >conftest.$ac_ext <<_ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2321 rm -f conftest.o conftest.obj
2322 if { (ac_try="$ac_compile"
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_compile") 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; then
2332 for ac_file in conftest.o conftest.obj conftest.*; do
2333 test -f "$ac_file" || continue;
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2344 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2351 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354 echo "${ECHO_T}$ac_cv_objext" >&6; }
2355 OBJEXT=$ac_cv_objext
2357 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2359 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2380 rm -f conftest.$ac_objext
2381 if { (ac_try="$ac_compile"
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387 (eval "$ac_compile") 2>conftest.er1
2389 grep -v '^ *+' conftest.er1 >conftest.err
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2395 { (case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_try") 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_try") 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2428 GCC=`test $ac_compiler_gnu = yes && echo yes`
2429 ac_test_CFLAGS=${CFLAGS+set}
2430 ac_save_CFLAGS=$CFLAGS
2431 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_cc_g+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 ac_save_c_werror_flag=$ac_c_werror_flag
2437 ac_c_werror_flag=yes
2440 cat >conftest.$ac_ext <<_ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2455 rm -f conftest.$ac_objext
2456 if { (ac_try="$ac_compile"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_compile") 2>conftest.er1
2464 grep -v '^ *+' conftest.er1 >conftest.err
2466 cat conftest.err >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2470 { (case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475 (eval "$ac_try") 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_try") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.$ac_objext
2511 if { (ac_try="$ac_compile"
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compile") 2>conftest.er1
2519 grep -v '^ *+' conftest.er1 >conftest.err
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2525 { (case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_try") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_try") 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2549 ac_c_werror_flag=$ac_save_c_werror_flag
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2566 rm -f conftest.$ac_objext
2567 if { (ac_try="$ac_compile"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_compile") 2>conftest.er1
2575 grep -v '^ *+' conftest.er1 >conftest.err
2577 cat conftest.err >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581 { (case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_try") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_try") 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_c_werror_flag=$ac_save_c_werror_flag
2617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2618 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2619 if test "$ac_test_CFLAGS" = set; then
2620 CFLAGS=$ac_save_CFLAGS
2621 elif test $ac_cv_prog_cc_g = yes; then
2622 if test "$GCC" = yes; then
2628 if test "$GCC" = yes; then
2634 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2635 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_cc_c89+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 ac_cv_prog_cc_c89=no
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2649 #include <sys/types.h>
2650 #include <sys/stat.h>
2651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2652 struct buf { int x; };
2653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2654 static char *e (p, i)
2660 static char *f (char * (*g) (char **, int), char **p, ...)
2665 s = g (p, va_arg (v,int));
2670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2671 function prototypes and stuff, but not '\xHH' hex character constants.
2672 These don't provoke an error unfortunately, instead are silently treated
2673 as 'x'. The following induces an error, until -std is added to get
2674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2675 array size at least. It's necessary to write '\x00'==0 to get something
2676 that's true only with -std. */
2677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2680 inside strings and character constants. */
2682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 CC="$ac_save_CC $ac_arg"
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2717 { (case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_try") 2>&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_try") 2>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_c89=$ac_arg
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2744 rm -f core conftest.err conftest.$ac_objext
2745 test "x$ac_cv_prog_cc_c89" != "xno" && break
2747 rm -f conftest.$ac_ext
2752 case "x$ac_cv_prog_cc_c89" in
2754 { echo "$as_me:$LINENO: result: none needed" >&5
2755 echo "${ECHO_T}none needed" >&6; } ;;
2757 { echo "$as_me:$LINENO: result: unsupported" >&5
2758 echo "${ECHO_T}unsupported" >&6; } ;;
2760 CC="$CC $ac_cv_prog_cc_c89"
2761 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2762 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 ac_cpp='$CXXCPP $CPPFLAGS'
2774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2777 if test -z "$CXX"; then
2778 if test -n "$CCC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 for ac_prog in clang++ llvm-g++ g++
2784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_CXX+set}" = set; then
2789 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 if test -n "$CXX"; then
2792 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CXX"; then
2813 { echo "$as_me:$LINENO: result: $CXX" >&5
2814 echo "${ECHO_T}$CXX" >&6; }
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2821 test -n "$CXX" && break
2824 if test -z "$CXX"; then
2826 for ac_prog in clang++ llvm-g++ g++
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$ac_ct_CXX"; then
2836 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_CXX="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2856 if test -n "$ac_ct_CXX"; then
2857 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2858 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860 { echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6; }
2865 test -n "$ac_ct_CXX" && break
2868 if test "x$ac_ct_CXX" = x; then
2871 case $cross_compiling:$ac_tool_warned in
2873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2874 whose name does not start with the host triplet. If you think this
2875 configuration is useful to you, please write to autoconf@gnu.org." >&5
2876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2879 ac_tool_warned=yes ;;
2887 # Provide some information about the compiler.
2888 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2889 ac_compiler=`set X $ac_compile; echo $2`
2890 { (ac_try="$ac_compiler --version >&5"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compiler --version >&5") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900 { (ac_try="$ac_compiler -v >&5"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compiler -v >&5") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910 { (ac_try="$ac_compiler -V >&5"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compiler -V >&5") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2922 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2923 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_try") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2991 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2992 GXX=`test $ac_compiler_gnu = yes && echo yes`
2993 ac_test_CXXFLAGS=${CXXFLAGS+set}
2994 ac_save_CXXFLAGS=$CXXFLAGS
2995 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2996 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2997 if test "${ac_cv_prog_cxx_g+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3001 ac_cxx_werror_flag=yes
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cxx_g=yes
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 ac_cv_prog_cxx_g=yes
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3182 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3183 if test "$ac_test_CXXFLAGS" = set; then
3184 CXXFLAGS=$ac_save_CXXFLAGS
3185 elif test $ac_cv_prog_cxx_g = yes; then
3186 if test "$GXX" = yes; then
3192 if test "$GXX" = yes; then
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3209 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3210 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3211 # On Suns, sometimes $CPP names a directory.
3212 if test -n "$CPP" && test -d "$CPP"; then
3215 if test -z "$CPP"; then
3216 if test "${ac_cv_prog_CPP+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 # Double quotes because CPP needs to be expanded
3220 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 for ac_c_preproc_warn_flag in '' yes
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3238 # include <limits.h>
3240 # include <assert.h>
3244 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } >/dev/null; then
3257 if test -s conftest.err; then
3258 ac_cpp_err=$ac_c_preproc_warn_flag
3259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 if test -z "$ac_cpp_err"; then
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3272 # Broken: fails on valid input.
3276 rm -f conftest.err conftest.$ac_ext
3278 # OK, works on sane cases. Now check whether nonexistent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <ac_nonexistent.h>
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 if test -z "$ac_cpp_err"; then
3311 # Broken: success on invalid input.
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 # Passes both tests.
3322 rm -f conftest.err conftest.$ac_ext
3325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326 rm -f conftest.err conftest.$ac_ext
3327 if $ac_preproc_ok; then
3339 { echo "$as_me:$LINENO: result: $CPP" >&5
3340 echo "${ECHO_T}$CPP" >&6; }
3342 for ac_c_preproc_warn_flag in '' yes
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3357 # include <limits.h>
3359 # include <assert.h>
3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 grep -v '^ *+' conftest.er1 >conftest.err
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_c_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 if test -z "$ac_cpp_err"; then
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 # Broken: fails on valid input.
3395 rm -f conftest.err conftest.$ac_ext
3397 # OK, works on sane cases. Now check whether nonexistent headers
3398 # can be detected and how.
3399 cat >conftest.$ac_ext <<_ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h. */
3405 #include <ac_nonexistent.h>
3407 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null; then
3420 if test -s conftest.err; then
3421 ac_cpp_err=$ac_c_preproc_warn_flag
3422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 if test -z "$ac_cpp_err"; then
3430 # Broken: success on invalid input.
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Passes both tests.
3441 rm -f conftest.err conftest.$ac_ext
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&2;}
3453 { (exit 1); exit 1; }; }
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 # Check whether --enable-polly was given.
3466 if test "${enable_polly+set}" = set; then
3467 enableval=$enable_polly;
3472 case "$enableval" in
3477 default) ENABLE_POLLY=1
3479 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3480 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3481 { (exit 1); exit 1; }; } ;;
3485 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488 subdirs="$subdirs tools/polly"
3493 # Make sure we can run config.sub.
3494 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3495 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3496 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3497 { (exit 1); exit 1; }; }
3499 { echo "$as_me:$LINENO: checking build system type" >&5
3500 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3501 if test "${ac_cv_build+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 ac_build_alias=$build_alias
3505 test "x$ac_build_alias" = x &&
3506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3507 test "x$ac_build_alias" = x &&
3508 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3510 { (exit 1); exit 1; }; }
3511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3512 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3514 { (exit 1); exit 1; }; }
3517 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3518 echo "${ECHO_T}$ac_cv_build" >&6; }
3519 case $ac_cv_build in
3521 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3522 echo "$as_me: error: invalid value of canonical build" >&2;}
3523 { (exit 1); exit 1; }; };;
3526 ac_save_IFS=$IFS; IFS='-'
3532 # Remember, the first character of IFS is used to create $*,
3533 # except with old shells:
3536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539 { echo "$as_me:$LINENO: checking host system type" >&5
3540 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3541 if test "${ac_cv_host+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test "x$host_alias" = x; then
3545 ac_cv_host=$ac_cv_build
3547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3548 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3549 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3550 { (exit 1); exit 1; }; }
3554 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3555 echo "${ECHO_T}$ac_cv_host" >&6; }
3558 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3559 echo "$as_me: error: invalid value of canonical host" >&2;}
3560 { (exit 1); exit 1; }; };;
3563 ac_save_IFS=$IFS; IFS='-'
3569 # Remember, the first character of IFS is used to create $*,
3570 # except with old shells:
3573 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576 { echo "$as_me:$LINENO: checking target system type" >&5
3577 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3578 if test "${ac_cv_target+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 if test "x$target_alias" = x; then
3582 ac_cv_target=$ac_cv_host
3584 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3585 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3586 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3587 { (exit 1); exit 1; }; }
3591 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3592 echo "${ECHO_T}$ac_cv_target" >&6; }
3593 case $ac_cv_target in
3595 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3596 echo "$as_me: error: invalid value of canonical target" >&2;}
3597 { (exit 1); exit 1; }; };;
3599 target=$ac_cv_target
3600 ac_save_IFS=$IFS; IFS='-'
3606 # Remember, the first character of IFS is used to create $*,
3607 # except with old shells:
3610 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613 # The aliases save the names the user supplied, while $host etc.
3614 # will get canonicalized.
3615 test -n "$target_alias" &&
3616 test "$program_prefix$program_suffix$program_transform_name" = \
3618 program_prefix=${target_alias}-
3620 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3621 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3622 if test "${llvm_cv_os_type+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 llvm_cv_link_all_option="-Wl,--whole-archive"
3628 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3629 llvm_cv_os_type="AIX"
3630 llvm_cv_platform_type="Unix" ;;
3632 llvm_cv_link_all_option="-Wl,--whole-archive"
3633 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634 llvm_cv_os_type="IRIX"
3635 llvm_cv_platform_type="Unix" ;;
3637 llvm_cv_link_all_option="-Wl,--whole-archive"
3638 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639 llvm_cv_os_type="Cygwin"
3640 llvm_cv_platform_type="Unix" ;;
3642 llvm_cv_link_all_option="-Wl,-all_load"
3643 llvm_cv_no_link_all_option="-Wl,-noall_load"
3644 llvm_cv_os_type="Darwin"
3645 llvm_cv_platform_type="Unix" ;;
3647 llvm_cv_link_all_option="-Wl,-all_load"
3648 llvm_cv_no_link_all_option="-Wl,-noall_load"
3649 llvm_cv_os_type="Minix"
3650 llvm_cv_platform_type="Unix" ;;
3652 llvm_cv_link_all_option="-Wl,--whole-archive"
3653 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3654 llvm_cv_os_type="FreeBSD"
3655 llvm_cv_platform_type="Unix" ;;
3657 llvm_cv_link_all_option="-Wl,--whole-archive"
3658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659 llvm_cv_os_type="OpenBSD"
3660 llvm_cv_platform_type="Unix" ;;
3662 llvm_cv_link_all_option="-Wl,--whole-archive"
3663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664 llvm_cv_os_type="NetBSD"
3665 llvm_cv_platform_type="Unix" ;;
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="DragonFly"
3670 llvm_cv_platform_type="Unix" ;;
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="HP-UX"
3675 llvm_cv_platform_type="Unix" ;;
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="Interix"
3680 llvm_cv_platform_type="Unix" ;;
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Linux"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,-z,allextract"
3688 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3689 llvm_cv_os_type="SunOS"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,-z,allextract"
3693 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3694 llvm_cv_os_type="AuroraUX"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Win32"
3700 llvm_cv_platform_type="Win32" ;;
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="MingW"
3705 llvm_cv_platform_type="Win32" ;;
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="Haiku"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="Freestanding"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Freestanding"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option=""
3723 llvm_cv_no_link_all_option=""
3724 llvm_cv_os_type="Unknown"
3725 llvm_cv_platform_type="Unknown" ;;
3728 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3729 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3731 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3732 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3733 if test "${llvm_cv_target_os_type+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 llvm_cv_target_os_type="AIX" ;;
3740 llvm_cv_target_os_type="IRIX" ;;
3742 llvm_cv_target_os_type="Cygwin" ;;
3744 llvm_cv_target_os_type="Darwin" ;;
3746 llvm_cv_target_os_type="Minix" ;;
3748 llvm_cv_target_os_type="FreeBSD" ;;
3750 llvm_cv_target_os_type="OpenBSD" ;;
3752 llvm_cv_target_os_type="NetBSD" ;;
3754 llvm_cv_target_os_type="DragonFly" ;;
3756 llvm_cv_target_os_type="HP-UX" ;;
3758 llvm_cv_target_os_type="Interix" ;;
3760 llvm_cv_target_os_type="Linux" ;;
3762 llvm_cv_target_os_type="SunOS" ;;
3764 llvm_cv_target_os_type="AuroraUX" ;;
3766 llvm_cv_target_os_type="Win32" ;;
3768 llvm_cv_target_os_type="MingW" ;;
3770 llvm_cv_target_os_type="Haiku" ;;
3772 llvm_cv_target_os_type="RTEMS" ;;
3774 llvm_cv_target_os_type="NativeClient" ;;
3776 llvm_cv_target_os_type="Freestanding" ;;
3778 llvm_cv_target_os_type="Unknown" ;;
3781 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3782 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3784 if test "$llvm_cv_os_type" = "Unknown" ; then
3785 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3786 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3787 { (exit 1); exit 1; }; }
3792 HOST_OS=$llvm_cv_os_type
3794 TARGET_OS=$llvm_cv_target_os_type
3797 LINKALL=$llvm_cv_link_all_option
3799 NOLINKALL=$llvm_cv_no_link_all_option
3802 case $llvm_cv_platform_type in
3805 cat >>confdefs.h <<\_ACEOF
3806 #define LLVM_ON_UNIX 1
3816 cat >>confdefs.h <<\_ACEOF
3817 #define LLVM_ON_WIN32 1
3827 { echo "$as_me:$LINENO: checking target architecture" >&5
3828 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3829 if test "${llvm_cv_target_arch+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 i?86-*) llvm_cv_target_arch="x86" ;;
3834 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3835 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3836 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3837 arm*-*) llvm_cv_target_arch="ARM" ;;
3838 mips-*) llvm_cv_target_arch="Mips" ;;
3839 xcore-*) llvm_cv_target_arch="XCore" ;;
3840 msp430-*) llvm_cv_target_arch="MSP430" ;;
3841 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3842 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3843 ptx-*) llvm_cv_target_arch="PTX" ;;
3844 *) llvm_cv_target_arch="Unknown" ;;
3847 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3848 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3850 if test "$llvm_cv_target_arch" = "Unknown" ; then
3851 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3852 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3855 # Determine the LLVM native architecture for the target
3856 case "$llvm_cv_target_arch" in
3857 x86) LLVM_NATIVE_ARCH="X86" ;;
3858 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3859 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3862 ARCH=$llvm_cv_target_arch
3867 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3868 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3869 if test "${ac_cv_path_GREP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 # Extract the first word of "grep ggrep" to use in msg output
3873 if test -z "$GREP"; then
3874 set dummy grep ggrep; ac_prog_name=$2
3875 if test "${ac_cv_path_GREP+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 ac_path_GREP_found=false
3879 # Loop through the user's path and test for each of PROGNAME-LIST
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884 test -z "$as_dir" && as_dir=.
3885 for ac_prog in grep ggrep; do
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3888 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3889 # Check for GNU ac_path_GREP and select it if it is found.
3890 # Check for GNU $ac_path_GREP
3891 case `"$ac_path_GREP" --version 2>&1` in
3893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3896 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3899 cat "conftest.in" "conftest.in" >"conftest.tmp"
3900 mv "conftest.tmp" "conftest.in"
3901 cp "conftest.in" "conftest.nl"
3902 echo 'GREP' >> "conftest.nl"
3903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3905 ac_count=`expr $ac_count + 1`
3906 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3907 # Best one so far, save it but keep looking for a better one
3908 ac_cv_path_GREP="$ac_path_GREP"
3909 ac_path_GREP_max=$ac_count
3911 # 10*(2^10) chars as input seems more than enough
3912 test $ac_count -gt 10 && break
3914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 $ac_path_GREP_found && break 3
3928 GREP="$ac_cv_path_GREP"
3929 if test -z "$GREP"; then
3930 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3931 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3932 { (exit 1); exit 1; }; }
3936 ac_cv_path_GREP=$GREP
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3943 GREP="$ac_cv_path_GREP"
3946 { echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3948 if test "${ac_cv_path_EGREP+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3952 then ac_cv_path_EGREP="$GREP -E"
3954 # Extract the first word of "egrep" to use in msg output
3955 if test -z "$EGREP"; then
3956 set dummy egrep; ac_prog_name=$2
3957 if test "${ac_cv_path_EGREP+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 ac_path_EGREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in egrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3971 # Check for GNU ac_path_EGREP and select it if it is found.
3972 # Check for GNU $ac_path_EGREP
3973 case `"$ac_path_EGREP" --version 2>&1` in
3975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3978 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 echo 'EGREP' >> "conftest.nl"
3985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 ac_count=`expr $ac_count + 1`
3988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_EGREP="$ac_path_EGREP"
3991 ac_path_EGREP_max=$ac_count
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 $ac_path_EGREP_found && break 3
4010 EGREP="$ac_cv_path_EGREP"
4011 if test -z "$EGREP"; then
4012 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4014 { (exit 1); exit 1; }; }
4018 ac_cv_path_EGREP=$EGREP
4024 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4025 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
4029 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4031 if test "${ac_cv_header_stdc+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_header_stdc=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_header_stdc=no
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 if test $ac_cv_header_stdc = yes; then
4098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "memchr" >/dev/null 2>&1; then
4112 ac_cv_header_stdc=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "free" >/dev/null 2>&1; then
4133 ac_cv_header_stdc=no
4139 if test $ac_cv_header_stdc = yes; then
4140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141 if test "$cross_compiling" = yes; then
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4152 #if ((' ' & 0x0FF) == 0x020)
4153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4156 # define ISLOWER(c) \
4157 (('a' <= (c) && (c) <= 'i') \
4158 || ('j' <= (c) && (c) <= 'r') \
4159 || ('s' <= (c) && (c) <= 'z'))
4160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4168 for (i = 0; i < 256; i++)
4169 if (XOR (islower (i), ISLOWER (i))
4170 || toupper (i) != TOUPPER (i))
4175 rm -f conftest$ac_exeext
4176 if { (ac_try="$ac_link"
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_link") 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4197 echo "$as_me: program exited with status $ac_status" >&5
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4202 ac_cv_header_stdc=no
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4210 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4211 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4214 cat >>confdefs.h <<\_ACEOF
4215 #define STDC_HEADERS 1
4220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231 inttypes.h stdint.h unistd.h
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4247 #include <$ac_header>
4249 rm -f conftest.$ac_objext
4250 if { (ac_try="$ac_compile"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 eval "$as_ac_Header=yes"
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 eval "$as_ac_Header=no"
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 ac_res=`eval echo '${'$as_ac_Header'}'`
4294 { echo "$as_me:$LINENO: result: $ac_res" >&5
4295 echo "${ECHO_T}$ac_res" >&6; }
4296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4297 cat >>confdefs.h <<_ACEOF
4298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4307 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4308 if test "${ac_cv_c_bigendian+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 # See if sys/param.h defines the BYTE_ORDER macro.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 #include <sys/param.h>
4324 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_compile") 2>conftest.er1
4341 grep -v '^ *+' conftest.er1 >conftest.err
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 # It does; now see whether it defined to BIG_ENDIAN or not.
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 #include <sys/param.h>
4379 #if BYTE_ORDER != BIG_ENDIAN
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402 { (case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_try") 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417 (eval "$ac_try") 2>&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_cv_c_bigendian=yes
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 ac_cv_c_bigendian=no
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 # It does not; compile a test program.
4435 if test "$cross_compiling" = yes; then
4436 # try to guess the endianness by grepping values into an object file
4437 ac_cv_c_bigendian=unknown
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4445 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4446 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4447 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4448 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4449 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4453 _ascii (); _ebcdic ();
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; } &&
4482 { ac_try='test -s conftest.$ac_objext'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4493 ac_cv_c_bigendian=yes
4495 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4496 if test "$ac_cv_c_bigendian" = unknown; then
4497 ac_cv_c_bigendian=no
4499 # finding both strings is unlikely to happen, but who knows?
4500 ac_cv_c_bigendian=unknown
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4523 /* Are we little or big endian? From Harbison&Steele. */
4527 char c[sizeof (long int)];
4530 return u.c[sizeof (long int) - 1] == 1;
4536 rm -f conftest$ac_exeext
4537 if { (ac_try="$ac_link"
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_link") 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547 { (case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_try") 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_c_bigendian=no
4558 echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_c_bigendian=yes
4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4574 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4575 case $ac_cv_c_bigendian in
4583 { { echo "$as_me:$LINENO: error: unknown endianness
4584 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4585 echo "$as_me: error: unknown endianness
4586 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4587 { (exit 1); exit 1; }; } ;;
4591 if test "$cross_compiling" = yes; then
4592 LLVM_CROSS_COMPILING=1
4595 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4596 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4597 if test "${ac_cv_build_exeext+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4601 ac_cv_build_exeext=.exe
4603 ac_build_prefix=${build_alias}-
4605 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4606 set dummy ${ac_build_prefix}gcc; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 if test -n "$BUILD_CC"; then
4613 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 BUILD_CC=$ac_cv_prog_BUILD_CC
4633 if test -n "$BUILD_CC"; then
4634 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4635 echo "${ECHO_T}$BUILD_CC" >&6; }
4637 { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4642 if test -z "$BUILD_CC"; then
4643 # Extract the first word of "gcc", so it can be a program name with args.
4644 set dummy gcc; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 if test -n "$BUILD_CC"; then
4651 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_BUILD_CC="gcc"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 BUILD_CC=$ac_cv_prog_BUILD_CC
4671 if test -n "$BUILD_CC"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4673 echo "${ECHO_T}$BUILD_CC" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4680 if test -z "$BUILD_CC"; then
4681 # Extract the first word of "cc", so it can be a program name with args.
4682 set dummy cc; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 if test -n "$BUILD_CC"; then
4689 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4700 ac_prog_rejected=yes
4703 ac_cv_prog_BUILD_CC="cc"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 if test $ac_prog_rejected = yes; then
4712 # We found a bogon in the path, so make sure we never use it.
4713 set dummy $ac_cv_prog_BUILD_CC
4715 if test $# != 0; then
4716 # We chose a different compiler from the bogus one.
4717 # However, it has the same basename, so the bogon will be chosen
4718 # first if we set BUILD_CC to just the basename; use the full file name.
4720 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4725 BUILD_CC=$ac_cv_prog_BUILD_CC
4726 if test -n "$BUILD_CC"; then
4727 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728 echo "${ECHO_T}$BUILD_CC" >&6; }
4730 { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4737 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4738 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4739 { (exit 1); exit 1; }; }
4740 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4742 echo 'int main () { return 0; }' > conftest.$ac_ext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4745 (eval $ac_build_link) 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; then
4749 for file in conftest.*; do
4751 *.c | *.o | *.obj | *.dSYM) ;;
4752 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4756 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4757 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4758 { (exit 1); exit 1; }; }
4761 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4766 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4767 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4768 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4769 ac_build_exeext=$BUILD_EXEEXT
4771 ac_build_prefix=${build_alias}-
4772 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4773 set dummy ${ac_build_prefix}g++; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$BUILD_CXX"; then
4780 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4800 if test -n "$BUILD_CXX"; then
4801 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4802 echo "${ECHO_T}$BUILD_CXX" >&6; }
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4809 if test -z "$BUILD_CXX"; then
4810 # Extract the first word of "g++", so it can be a program name with args.
4811 set dummy g++; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 if test -n "$BUILD_CXX"; then
4818 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_BUILD_CXX="g++"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4838 if test -n "$BUILD_CXX"; then
4839 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4840 echo "${ECHO_T}$BUILD_CXX" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 if test -z "$BUILD_CXX"; then
4848 # Extract the first word of "c++", so it can be a program name with args.
4849 set dummy c++; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 if test -n "$BUILD_CXX"; then
4856 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4867 ac_prog_rejected=yes
4870 ac_cv_prog_BUILD_CXX="c++"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 if test $ac_prog_rejected = yes; then
4879 # We found a bogon in the path, so make sure we never use it.
4880 set dummy $ac_cv_prog_BUILD_CXX
4882 if test $# != 0; then
4883 # We chose a different compiler from the bogus one.
4884 # However, it has the same basename, so the bogon will be chosen
4885 # first if we set BUILD_CXX to just the basename; use the full file name.
4887 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4892 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893 if test -n "$BUILD_CXX"; then
4894 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895 echo "${ECHO_T}$BUILD_CXX" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4905 LLVM_CROSS_COMPILING=0
4909 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4920 # Check whether --enable-optimized was given.
4921 if test "${enable_optimized+set}" = set; then
4922 enableval=$enable_optimized;
4927 if test ${enableval} = "no" ; then
4931 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4935 # Check whether --enable-profiling was given.
4936 if test "${enable_profiling+set}" = set; then
4937 enableval=$enable_profiling;
4942 if test ${enableval} = "no" ; then
4946 ENABLE_PROFILING=ENABLE_PROFILING=1
4950 # Check whether --enable-assertions was given.
4951 if test "${enable_assertions+set}" = set; then
4952 enableval=$enable_assertions;
4957 if test ${enableval} = "yes" ; then
4961 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4965 # Check whether --enable-expensive-checks was given.
4966 if test "${enable_expensive_checks+set}" = set; then
4967 enableval=$enable_expensive_checks;
4972 if test ${enableval} = "yes" ; then
4973 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975 EXPENSIVE_CHECKS=yes
4978 ENABLE_EXPENSIVE_CHECKS=
4984 # Check whether --enable-debug-runtime was given.
4985 if test "${enable_debug_runtime+set}" = set; then
4986 enableval=$enable_debug_runtime;
4991 if test ${enableval} = "no" ; then
4995 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4999 # Check whether --enable-debug-symbols was given.
5000 if test "${enable_debug_symbols+set}" = set; then
5001 enableval=$enable_debug_symbols;
5006 if test ${enableval} = "no" ; then
5010 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5014 # Check whether --enable-jit was given.
5015 if test "${enable_jit+set}" = set; then
5016 enableval=$enable_jit;
5021 if test ${enableval} = "no"
5026 case "$llvm_cv_target_arch" in
5027 x86) TARGET_HAS_JIT=1
5029 Sparc) TARGET_HAS_JIT=0
5031 PowerPC) TARGET_HAS_JIT=1
5033 x86_64) TARGET_HAS_JIT=1
5035 ARM) TARGET_HAS_JIT=1
5037 Mips) TARGET_HAS_JIT=1
5039 XCore) TARGET_HAS_JIT=0
5041 MSP430) TARGET_HAS_JIT=0
5043 Hexagon) TARGET_HAS_JIT=0
5045 MBlaze) TARGET_HAS_JIT=0
5047 PTX) TARGET_HAS_JIT=0
5054 # Check whether --enable-docs was given.
5055 if test "${enable_docs+set}" = set; then
5056 enableval=$enable_docs;
5061 case "$enableval" in
5066 default) ENABLE_DOCS=1
5068 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5069 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5073 # Check whether --enable-doxygen was given.
5074 if test "${enable_doxygen+set}" = set; then
5075 enableval=$enable_doxygen;
5080 case "$enableval" in
5081 yes) ENABLE_DOXYGEN=1
5083 no) ENABLE_DOXYGEN=0
5085 default) ENABLE_DOXYGEN=0
5087 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5088 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5089 { (exit 1); exit 1; }; } ;;
5092 # Check whether --enable-threads was given.
5093 if test "${enable_threads+set}" = set; then
5094 enableval=$enable_threads;
5099 case "$enableval" in
5100 yes) ENABLE_THREADS=1
5102 no) ENABLE_THREADS=0
5104 default) ENABLE_THREADS=1
5106 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5107 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5108 { (exit 1); exit 1; }; } ;;
5111 cat >>confdefs.h <<_ACEOF
5112 #define ENABLE_THREADS $ENABLE_THREADS
5116 # Check whether --enable-pthreads was given.
5117 if test "${enable_pthreads+set}" = set; then
5118 enableval=$enable_pthreads;
5123 case "$enableval" in
5124 yes) ENABLE_PTHREADS=1
5126 no) ENABLE_PTHREADS=0
5128 default) ENABLE_PTHREADS=1
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 # Check whether --enable-pic was given.
5136 if test "${enable_pic+set}" = set; then
5137 enableval=$enable_pic;
5142 case "$enableval" in
5147 default) ENABLE_PIC=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_PIC $ENABLE_PIC
5159 # Check whether --enable-shared was given.
5160 if test "${enable_shared+set}" = set; then
5161 enableval=$enable_shared;
5166 case "$enableval" in
5167 yes) ENABLE_SHARED=1
5171 default) ENABLE_SHARED=0
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 # Check whether --enable-embed-stdcxx was given.
5179 if test "${enable_embed_stdcxx+set}" = set; then
5180 enableval=$enable_embed_stdcxx;
5185 case "$enableval" in
5186 yes) ENABLE_EMBED_STDCXX=1
5188 no) ENABLE_EMBED_STDCXX=0
5190 default) ENABLE_EMBED_STDCXX=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-timestamps was given.
5198 if test "${enable_timestamps+set}" = set; then
5199 enableval=$enable_timestamps;
5204 case "$enableval" in
5205 yes) ENABLE_TIMESTAMPS=1
5207 no) ENABLE_TIMESTAMPS=0
5209 default) ENABLE_TIMESTAMPS=1
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 cat >>confdefs.h <<_ACEOF
5217 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5222 # Check whether --enable-targets was given.
5223 if test "${enable_targets+set}" = set; then
5224 enableval=$enable_targets;
5229 if test "$enableval" = host-only ; then
5232 case "$enableval" in
5233 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5234 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5236 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5239 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5240 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5241 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5242 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5243 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5244 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5245 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5246 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5247 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5248 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5249 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5250 host) case "$llvm_cv_target_arch" in
5251 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5254 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5255 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5256 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5257 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5258 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5259 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5260 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5261 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5262 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5263 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5264 echo "$as_me: error: Can not set target to build" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5267 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5268 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5269 { (exit 1); exit 1; }; } ;;
5274 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5277 # Determine whether we are building LLVM support for the native architecture.
5278 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5279 for a_target in $TARGETS_TO_BUILD; do
5280 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5282 cat >>confdefs.h <<_ACEOF
5283 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5286 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5287 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5288 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5289 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5290 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5291 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5294 cat >>confdefs.h <<_ACEOF
5295 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5309 cat >>confdefs.h <<_ACEOF
5310 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5313 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5323 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5324 # target feature def files.
5325 LLVM_ENUM_TARGETS=""
5326 LLVM_ENUM_ASM_PRINTERS=""
5327 LLVM_ENUM_ASM_PARSERS=""
5328 LLVM_ENUM_DISASSEMBLERS=""
5329 for target_to_build in $TARGETS_TO_BUILD; do
5330 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5331 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5332 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5334 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5335 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5337 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5338 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5346 # Check whether --enable-cbe-printf-a was given.
5347 if test "${enable_cbe_printf_a+set}" = set; then
5348 enableval=$enable_cbe_printf_a;
5353 case "$enableval" in
5354 yes) ENABLE_CBE_PRINTF_A=1
5356 no) ENABLE_CBE_PRINTF_A=0
5358 default) ENABLE_CBE_PRINTF_A=1
5360 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5361 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5365 cat >>confdefs.h <<_ACEOF
5366 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5371 # Check whether --with-optimize-option was given.
5372 if test "${with_optimize_option+set}" = set; then
5373 withval=$with_optimize_option;
5378 { echo "$as_me:$LINENO: checking optimization flags" >&5
5379 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5382 case "$llvm_cv_os_type" in
5383 FreeBSD) optimize_option=-O2 ;;
5384 MingW) optimize_option=-O2 ;;
5385 *) optimize_option=-O3 ;;
5387 *) optimize_option="$withval" ;;
5389 OPTIMIZE_OPTION=$optimize_option
5391 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5392 echo "${ECHO_T}$optimize_option" >&6; }
5395 # Check whether --with-extra-options was given.
5396 if test "${with_extra_options+set}" = set; then
5397 withval=$with_extra_options;
5403 default) EXTRA_OPTIONS= ;;
5404 *) EXTRA_OPTIONS=$withval ;;
5406 EXTRA_OPTIONS=$EXTRA_OPTIONS
5410 # Check whether --with-extra-ld-options was given.
5411 if test "${with_extra_ld_options+set}" = set; then
5412 withval=$with_extra_ld_options;
5418 default) EXTRA_LD_OPTIONS= ;;
5419 *) EXTRA_LD_OPTIONS=$withval ;;
5421 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5424 # Check whether --enable-bindings was given.
5425 if test "${enable_bindings+set}" = set; then
5426 enableval=$enable_bindings;
5431 BINDINGS_TO_BUILD=""
5432 case "$enableval" in
5433 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5434 all ) BINDINGS_TO_BUILD="ocaml" ;;
5435 none | no) BINDINGS_TO_BUILD="" ;;
5436 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5437 case "$a_binding" in
5438 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5439 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5440 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5441 { (exit 1); exit 1; }; } ;;
5448 # Check whether --with-ocaml-libdir was given.
5449 if test "${with_ocaml_libdir+set}" = set; then
5450 withval=$with_ocaml_libdir;
5456 auto) with_ocaml_libdir="$withval" ;;
5457 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5458 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5459 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5460 { (exit 1); exit 1; }; } ;;
5464 # Check whether --with-clang-resource-dir was given.
5465 if test "${with_clang_resource_dir+set}" = set; then
5466 withval=$with_clang_resource_dir;
5472 cat >>confdefs.h <<_ACEOF
5473 #define CLANG_RESOURCE_DIR "$withval"
5478 # Check whether --with-c-include-dirs was given.
5479 if test "${with_c_include_dirs+set}" = set; then
5480 withval=$with_c_include_dirs;
5486 cat >>confdefs.h <<_ACEOF
5487 #define C_INCLUDE_DIRS "$withval"
5491 # Clang normally uses the system c++ headers and libraries. With this option,
5492 # clang will use the ones provided by a gcc installation instead. This option should
5493 # be passed the same value that was used with --prefix when configuring gcc.
5495 # Check whether --with-gcc-toolchain was given.
5496 if test "${with_gcc_toolchain+set}" = set; then
5497 withval=$with_gcc_toolchain;
5503 cat >>confdefs.h <<_ACEOF
5504 #define GCC_INSTALL_PREFIX "$withval"
5509 # Check whether --with-binutils-include was given.
5510 if test "${with_binutils_include+set}" = set; then
5511 withval=$with_binutils_include;
5517 default) WITH_BINUTILS_INCDIR=default ;;
5518 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5523 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5524 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5526 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5527 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5528 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5529 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5530 { (exit 1); exit 1; }; };
5535 # Check whether --with-bug-report-url was given.
5536 if test "${with_bug_report_url+set}" = set; then
5537 withval=$with_bug_report_url;
5539 withval="http://llvm.org/bugs/"
5543 cat >>confdefs.h <<_ACEOF
5544 #define BUG_REPORT_URL "$withval"
5548 # Check whether --enable-libffi was given.
5549 if test "${enable_libffi+set}" = set; then
5550 enableval=$enable_libffi; case "$enableval" in
5551 yes) llvm_cv_enable_libffi="yes" ;;
5552 no) llvm_cv_enable_libffi="no" ;;
5553 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5554 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5555 { (exit 1); exit 1; }; } ;;
5558 llvm_cv_enable_libffi=no
5563 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5564 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5565 if test "${lt_cv_path_NM+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 if test -n "$NM"; then
5569 # Let the user override the test.
5572 lt_nm_to_check="${ac_tool_prefix}nm"
5573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5574 lt_nm_to_check="$lt_nm_to_check nm"
5576 for lt_tmp_nm in $lt_nm_to_check; do
5577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580 test -z "$ac_dir" && ac_dir=.
5581 tmp_nm="$ac_dir/$lt_tmp_nm"
5582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5583 # Check to see if the nm accepts a BSD-compat flag.
5584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5585 # nm: unknown option "B" ignored
5586 # Tru64's nm complains that /dev/null is an invalid object file
5587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5588 */dev/null* | *'Invalid file or object type'*)
5589 lt_cv_path_NM="$tmp_nm -B"
5593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595 lt_cv_path_NM="$tmp_nm -p"
5599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5600 continue # so that we can try to find one that supports BSD flags
5609 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5612 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5613 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5618 { echo "$as_me:$LINENO: checking for GNU make" >&5
5619 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5620 if test "${llvm_cv_gnu_make_command+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 llvm_cv_gnu_make_command=''
5624 for a in "$MAKE" make gmake gnumake ; do
5625 if test -z "$a" ; then continue ; fi ;
5626 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5628 llvm_cv_gnu_make_command=$a ;
5633 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5634 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5635 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5639 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5640 echo "${ECHO_T}\"Not found\"" >&6; };
5644 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5647 if test "$LN_S" = "ln -s"; then
5648 { echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6; }
5651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5652 echo "${ECHO_T}no, using $LN_S" >&6; }
5655 # Extract the first word of "cmp", so it can be a program name with args.
5656 set dummy cmp; ac_word=$2
5657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5659 if test "${ac_cv_path_CMP+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5687 if test -n "$CMP"; then
5688 { echo "$as_me:$LINENO: result: $CMP" >&5
5689 echo "${ECHO_T}$CMP" >&6; }
5691 { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5696 # Extract the first word of "cp", so it can be a program name with args.
5697 set dummy cp; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_path_CP+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5728 if test -n "$CP"; then
5729 { echo "$as_me:$LINENO: result: $CP" >&5
5730 echo "${ECHO_T}$CP" >&6; }
5732 { echo "$as_me:$LINENO: result: no" >&5
5733 echo "${ECHO_T}no" >&6; }
5737 # Extract the first word of "date", so it can be a program name with args.
5738 set dummy date; ac_word=$2
5739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5741 if test "${ac_cv_path_DATE+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5768 DATE=$ac_cv_path_DATE
5769 if test -n "$DATE"; then
5770 { echo "$as_me:$LINENO: result: $DATE" >&5
5771 echo "${ECHO_T}$DATE" >&6; }
5773 { echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6; }
5778 # Extract the first word of "find", so it can be a program name with args.
5779 set dummy find; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_FIND+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5809 FIND=$ac_cv_path_FIND
5810 if test -n "$FIND"; then
5811 { echo "$as_me:$LINENO: result: $FIND" >&5
5812 echo "${ECHO_T}$FIND" >&6; }
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5819 # Extract the first word of "grep", so it can be a program name with args.
5820 set dummy grep; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_GREP+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5850 GREP=$ac_cv_path_GREP
5851 if test -n "$GREP"; then
5852 { echo "$as_me:$LINENO: result: $GREP" >&5
5853 echo "${ECHO_T}$GREP" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5860 # Extract the first word of "mkdir", so it can be a program name with args.
5861 set dummy mkdir; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_MKDIR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5891 MKDIR=$ac_cv_path_MKDIR
5892 if test -n "$MKDIR"; then
5893 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5894 echo "${ECHO_T}$MKDIR" >&6; }
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5901 # Extract the first word of "mv", so it can be a program name with args.
5902 set dummy mv; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_MV+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5933 if test -n "$MV"; then
5934 { echo "$as_me:$LINENO: result: $MV" >&5
5935 echo "${ECHO_T}$MV" >&6; }
5937 { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$RANLIB"; then
5951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 RANLIB=$ac_cv_prog_RANLIB
5971 if test -n "$RANLIB"; then
5972 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5973 echo "${ECHO_T}$RANLIB" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5981 if test -z "$ac_cv_prog_RANLIB"; then
5982 ac_ct_RANLIB=$RANLIB
5983 # Extract the first word of "ranlib", so it can be a program name with args.
5984 set dummy ranlib; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$ac_ct_RANLIB"; then
5991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_RANLIB="ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6011 if test -n "$ac_ct_RANLIB"; then
6012 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6013 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6015 { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6019 if test "x$ac_ct_RANLIB" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025 whose name does not start with the host triplet. If you think this
6026 configuration is useful to you, please write to autoconf@gnu.org." >&5
6027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet. If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030 ac_tool_warned=yes ;;
6032 RANLIB=$ac_ct_RANLIB
6035 RANLIB="$ac_cv_prog_RANLIB"
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ar; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_AR+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$AR"; then
6047 ac_cv_prog_AR="$AR" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_AR="${ac_tool_prefix}ar"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 if test -n "$AR"; then
6068 { echo "$as_me:$LINENO: result: $AR" >&5
6069 echo "${ECHO_T}$AR" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6077 if test -z "$ac_cv_prog_AR"; then
6079 # Extract the first word of "ar", so it can be a program name with args.
6080 set dummy ar; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 if test -n "$ac_ct_AR"; then
6087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_AR="ar"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107 if test -n "$ac_ct_AR"; then
6108 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6109 echo "${ECHO_T}$ac_ct_AR" >&6; }
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6115 if test "x$ac_ct_AR" = x; then
6118 case $cross_compiling:$ac_tool_warned in
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6134 # Extract the first word of "rm", so it can be a program name with args.
6135 set dummy rm; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_path_RM+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6166 if test -n "$RM"; then
6167 { echo "$as_me:$LINENO: result: $RM" >&5
6168 echo "${ECHO_T}$RM" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6175 # Extract the first word of "sed", so it can be a program name with args.
6176 set dummy sed; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_path_SED+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6207 if test -n "$SED"; then
6208 { echo "$as_me:$LINENO: result: $SED" >&5
6209 echo "${ECHO_T}$SED" >&6; }
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6216 # Extract the first word of "tar", so it can be a program name with args.
6217 set dummy tar; ac_word=$2
6218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6220 if test "${ac_cv_path_TAR+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6248 if test -n "$TAR"; then
6249 { echo "$as_me:$LINENO: result: $TAR" >&5
6250 echo "${ECHO_T}$TAR" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 # Extract the first word of "pwd", so it can be a program name with args.
6258 set dummy pwd; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_BINPWD+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6288 BINPWD=$ac_cv_path_BINPWD
6289 if test -n "$BINPWD"; then
6290 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6291 echo "${ECHO_T}$BINPWD" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6299 # Extract the first word of "Graphviz", so it can be a program name with args.
6300 set dummy Graphviz; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6330 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6331 if test -n "$GRAPHVIZ"; then
6332 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6333 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6340 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6342 cat >>confdefs.h <<\_ACEOF
6343 #define HAVE_GRAPHVIZ 1
6346 if test "$llvm_cv_os_type" = "MingW" ; then
6347 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6350 cat >>confdefs.h <<_ACEOF
6351 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6355 # Extract the first word of "dot", so it can be a program name with args.
6356 set dummy dot; ac_word=$2
6357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359 if test "${ac_cv_path_DOT+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6387 if test -n "$DOT"; then
6388 { echo "$as_me:$LINENO: result: $DOT" >&5
6389 echo "${ECHO_T}$DOT" >&6; }
6391 { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6396 if test "$DOT" != "echo dot" ; then
6398 cat >>confdefs.h <<\_ACEOF
6402 if test "$llvm_cv_os_type" = "MingW" ; then
6403 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6406 cat >>confdefs.h <<_ACEOF
6407 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6411 # Extract the first word of "fdp", so it can be a program name with args.
6412 set dummy fdp; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_FDP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6443 if test -n "$FDP"; then
6444 { echo "$as_me:$LINENO: result: $FDP" >&5
6445 echo "${ECHO_T}$FDP" >&6; }
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6452 if test "$FDP" != "echo fdp" ; then
6454 cat >>confdefs.h <<\_ACEOF
6458 if test "$llvm_cv_os_type" = "MingW" ; then
6459 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6462 cat >>confdefs.h <<_ACEOF
6463 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6467 # Extract the first word of "neato", so it can be a program name with args.
6468 set dummy neato; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_path_NEATO+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6498 NEATO=$ac_cv_path_NEATO
6499 if test -n "$NEATO"; then
6500 { echo "$as_me:$LINENO: result: $NEATO" >&5
6501 echo "${ECHO_T}$NEATO" >&6; }
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6508 if test "$NEATO" != "echo neato" ; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define HAVE_NEATO 1
6514 if test "$llvm_cv_os_type" = "MingW" ; then
6515 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6518 cat >>confdefs.h <<_ACEOF
6519 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6523 # Extract the first word of "twopi", so it can be a program name with args.
6524 set dummy twopi; ac_word=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_TWOPI+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6554 TWOPI=$ac_cv_path_TWOPI
6555 if test -n "$TWOPI"; then
6556 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6557 echo "${ECHO_T}$TWOPI" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 if test "$TWOPI" != "echo twopi" ; then
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_TWOPI 1
6570 if test "$llvm_cv_os_type" = "MingW" ; then
6571 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6574 cat >>confdefs.h <<_ACEOF
6575 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6579 # Extract the first word of "circo", so it can be a program name with args.
6580 set dummy circo; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_CIRCO+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6610 CIRCO=$ac_cv_path_CIRCO
6611 if test -n "$CIRCO"; then
6612 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6613 echo "${ECHO_T}$CIRCO" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6620 if test "$CIRCO" != "echo circo" ; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_CIRCO 1
6626 if test "$llvm_cv_os_type" = "MingW" ; then
6627 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6630 cat >>confdefs.h <<_ACEOF
6631 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6635 for ac_prog in gv gsview32
6637 # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_GV+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 if test -n "$GV"; then
6669 { echo "$as_me:$LINENO: result: $GV" >&5
6670 echo "${ECHO_T}$GV" >&6; }
6672 { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6677 test -n "$GV" && break
6679 test -n "$GV" || GV="echo gv"
6681 if test "$GV" != "echo gv" ; then
6683 cat >>confdefs.h <<\_ACEOF
6687 if test "$llvm_cv_os_type" = "MingW" ; then
6688 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6691 cat >>confdefs.h <<_ACEOF
6692 #define LLVM_PATH_GV "$GV${EXEEXT}"
6696 # Extract the first word of "dotty", so it can be a program name with args.
6697 set dummy dotty; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_DOTTY+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6727 DOTTY=$ac_cv_path_DOTTY
6728 if test -n "$DOTTY"; then
6729 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6730 echo "${ECHO_T}$DOTTY" >&6; }
6732 { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6737 if test "$DOTTY" != "echo dotty" ; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_DOTTY 1
6743 if test "$llvm_cv_os_type" = "MingW" ; then
6744 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6747 cat >>confdefs.h <<_ACEOF
6748 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6752 # Extract the first word of "xdot.py", so it can be a program name with args.
6753 set dummy xdot.py; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6783 XDOT_PY=$ac_cv_path_XDOT_PY
6784 if test -n "$XDOT_PY"; then
6785 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6786 echo "${ECHO_T}$XDOT_PY" >&6; }
6788 { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6793 if test "$XDOT_PY" != "echo xdot.py" ; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_XDOT_PY 1
6799 if test "$llvm_cv_os_type" = "MingW" ; then
6800 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6803 cat >>confdefs.h <<_ACEOF
6804 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6810 # Extract the first word of "perl", so it can be a program name with args.
6811 set dummy perl; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_PERL+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6841 PERL=$ac_cv_path_PERL
6842 if test -n "$PERL"; then
6843 { echo "$as_me:$LINENO: result: $PERL" >&5
6844 echo "${ECHO_T}$PERL" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 if test "$PERL" != "none"; then
6852 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6853 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6854 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6855 { echo "$as_me:$LINENO: result: yes" >&5
6856 echo "${ECHO_T}yes" >&6; }
6859 { echo "$as_me:$LINENO: result: not found" >&5
6860 echo "${ECHO_T}not found" >&6; }
6865 if test x"$PERL" = xnone; then
6868 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6869 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6870 { (exit 1); exit 1; }; }
6876 # Find a good install program. We prefer a C program (faster),
6877 # so one script is as good as another. But avoid the broken or
6878 # incompatible versions:
6879 # SysV /etc/install, /usr/sbin/install
6880 # SunOS /usr/etc/install
6881 # IRIX /sbin/install
6883 # AmigaOS /C/install, which installs bootblocks on floppy discs
6884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6887 # OS/2's system install, which has a completely different semantic
6888 # ./install, which can be erroneously created by make from ./install.sh.
6889 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6890 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6891 if test -z "$INSTALL"; then
6892 if test "${ac_cv_path_install+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 # Account for people who put trailing slashes in PATH elements.
6902 ./ | .// | /cC/* | \
6903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6904 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6907 # OSF1 and SCO ODT 3.0 have their own names for install.
6908 # Don't use installbsd from OSF since it installs stuff as root
6910 for ac_prog in ginstall scoinst install; do
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6913 if test $ac_prog = install &&
6914 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6915 # AIX install. It has an incompatible calling convention.
6917 elif test $ac_prog = install &&
6918 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6919 # program-specific install script used by HP pwplus--don't use.
6922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6935 if test "${ac_cv_path_install+set}" = set; then
6936 INSTALL=$ac_cv_path_install
6938 # As a last resort, use the slow shell script. Don't cache a
6939 # value for INSTALL within a source directory, because that will
6940 # break other packages using the cache if that directory is
6941 # removed, or if the value is a relative name.
6942 INSTALL=$ac_install_sh
6945 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6946 echo "${ECHO_T}$INSTALL" >&6; }
6948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6949 # It thinks the first close brace ends the variable substitution.
6950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6957 [\\/$]* | ?:[\\/]* ) ;;
6958 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6961 # Extract the first word of "bzip2", so it can be a program name with args.
6962 set dummy bzip2; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_path_BZIP2+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 BZIP2=$ac_cv_path_BZIP2
6992 if test -n "$BZIP2"; then
6993 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6994 echo "${ECHO_T}$BZIP2" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 # Extract the first word of "cat", so it can be a program name with args.
7002 set dummy cat; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_path_CAT+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 if test -n "$CAT"; then
7033 { echo "$as_me:$LINENO: result: $CAT" >&5
7034 echo "${ECHO_T}$CAT" >&6; }
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7041 # Extract the first word of "doxygen", so it can be a program name with args.
7042 set dummy doxygen; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 DOXYGEN=$ac_cv_path_DOXYGEN
7072 if test -n "$DOXYGEN"; then
7073 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7074 echo "${ECHO_T}$DOXYGEN" >&6; }
7076 { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7081 # Extract the first word of "groff", so it can be a program name with args.
7082 set dummy groff; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_path_GROFF+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 GROFF=$ac_cv_path_GROFF
7112 if test -n "$GROFF"; then
7113 { echo "$as_me:$LINENO: result: $GROFF" >&5
7114 echo "${ECHO_T}$GROFF" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "gzip", so it can be a program name with args.
7122 set dummy gzip; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 GZIPBIN=$ac_cv_path_GZIPBIN
7152 if test -n "$GZIPBIN"; then
7153 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7154 echo "${ECHO_T}$GZIPBIN" >&6; }
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7161 # Extract the first word of "pod2html", so it can be a program name with args.
7162 set dummy pod2html; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_POD2HTML+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 POD2HTML=$ac_cv_path_POD2HTML
7192 if test -n "$POD2HTML"; then
7193 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7194 echo "${ECHO_T}$POD2HTML" >&6; }
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7201 # Extract the first word of "pod2man", so it can be a program name with args.
7202 set dummy pod2man; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_POD2MAN+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 POD2MAN=$ac_cv_path_POD2MAN
7232 if test -n "$POD2MAN"; then
7233 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7234 echo "${ECHO_T}$POD2MAN" >&6; }
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7241 # Extract the first word of "pdfroff", so it can be a program name with args.
7242 set dummy pdfroff; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PDFROFF+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PDFROFF=$ac_cv_path_PDFROFF
7272 if test -n "$PDFROFF"; then
7273 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7274 echo "${ECHO_T}$PDFROFF" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7281 # Extract the first word of "runtest", so it can be a program name with args.
7282 set dummy runtest; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_RUNTEST+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 RUNTEST=$ac_cv_path_RUNTEST
7312 if test -n "$RUNTEST"; then
7313 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7314 echo "${ECHO_T}$RUNTEST" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7323 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7324 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7326 # Check whether --with-tclinclude was given.
7327 if test "${with_tclinclude+set}" = set; then
7328 withval=$with_tclinclude; with_tclinclude=${withval}
7333 if test "${ac_cv_path_tclsh+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 if test x"${with_tclinclude}" != x ; then
7338 if test -f ${with_tclinclude}/tclsh ; then
7339 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7340 elif test -f ${with_tclinclude}/src/tclsh ; then
7341 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7343 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7344 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7345 { (exit 1); exit 1; }; }
7351 if test x"${ac_cv_path_tclsh}" = x ; then
7352 { echo "$as_me:$LINENO: result: none" >&5
7353 echo "${ECHO_T}none" >&6; }
7354 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
7356 # Extract the first word of "$ac_prog", so it can be a program name with args.
7357 set dummy $ac_prog; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_path_TCLSH+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 TCLSH=$ac_cv_path_TCLSH
7387 if test -n "$TCLSH"; then
7388 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7389 echo "${ECHO_T}$TCLSH" >&6; }
7391 { echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6; }
7396 test -n "$TCLSH" && break
7399 if test x"${TCLSH}" = x ; then
7400 ac_cv_path_tclsh='';
7402 ac_cv_path_tclsh="${TCLSH}";
7405 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7406 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7407 TCLSH="${ac_cv_path_tclsh}"
7411 # Extract the first word of "zip", so it can be a program name with args.
7412 set dummy zip; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_ZIP+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 if test -n "$ZIP"; then
7443 { echo "$as_me:$LINENO: result: $ZIP" >&5
7444 echo "${ECHO_T}$ZIP" >&6; }
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7451 for ac_prog in ocamlc
7453 # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_OCAMLC+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 OCAMLC=$ac_cv_path_OCAMLC
7484 if test -n "$OCAMLC"; then
7485 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7486 echo "${ECHO_T}$OCAMLC" >&6; }
7488 { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7493 test -n "$OCAMLC" && break
7496 for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 OCAMLOPT=$ac_cv_path_OCAMLOPT
7529 if test -n "$OCAMLOPT"; then
7530 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7531 echo "${ECHO_T}$OCAMLOPT" >&6; }
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7538 test -n "$OCAMLOPT" && break
7541 for ac_prog in ocamldep
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_OCAMLDEP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 OCAMLDEP=$ac_cv_path_OCAMLDEP
7574 if test -n "$OCAMLDEP"; then
7575 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7576 echo "${ECHO_T}$OCAMLDEP" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 test -n "$OCAMLDEP" && break
7586 for ac_prog in ocamldoc
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_OCAMLDOC+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 OCAMLDOC=$ac_cv_path_OCAMLDOC
7619 if test -n "$OCAMLDOC"; then
7620 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7621 echo "${ECHO_T}$OCAMLDOC" >&6; }
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 test -n "$OCAMLDOC" && break
7631 for ac_prog in gas as
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_GAS+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 ac_cv_path_GAS="$GAS" # 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_GAS="$as_dir/$ac_word$ac_exec_ext"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 if test -n "$GAS"; then
7665 { echo "$as_me:$LINENO: result: $GAS" >&5
7666 echo "${ECHO_T}$GAS" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$GAS" && break
7677 { echo "$as_me:$LINENO: checking for linker version" >&5
7678 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7679 if test "${llvm_cv_link_version+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 version_string="$(ld -v 2>&1 | head -1)"
7686 if (echo "$version_string" | grep -q "ld64"); then
7687 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7689 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7693 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7694 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7696 cat >>confdefs.h <<_ACEOF
7697 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7702 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7703 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7704 if test "${llvm_cv_link_use_r+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714 CFLAGS="$CFLAGS -Wl,-R."
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (ac_try="$ac_link"
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_try") 2>&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 llvm_cv_link_use_r=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 llvm_cv_link_use_r=no
7772 rm -f core conftest.err conftest.$ac_objext \
7773 conftest$ac_exeext conftest.$ac_ext
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7784 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7785 if test "$llvm_cv_link_use_r" = yes ; then
7787 cat >>confdefs.h <<\_ACEOF
7788 #define HAVE_LINK_R 1
7794 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7795 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7796 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_link") 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_try") 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 llvm_cv_link_use_export_dynamic=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 llvm_cv_link_use_export_dynamic=no
7864 rm -f core conftest.err conftest.$ac_objext \
7865 conftest$ac_exeext conftest.$ac_ext
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7876 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7877 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_LINK_EXPORT_DYNAMIC 1
7886 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7887 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7888 if test "${llvm_cv_link_use_version_script+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7899 # The following code is from the autoconf manual,
7900 # "11.13: Limitations of Usual Tools".
7901 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7902 # Use mktemp if possible; otherwise fall back on mkdir,
7903 # with $RANDOM to make collisions less likely.
7907 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7909 test -n "$tmp" && test -d "$tmp"
7911 tmp=$TMPDIR/foo$$-$RANDOM
7912 (umask 077 && mkdir "$tmp")
7915 echo "{" > "$tmp/export.map"
7916 echo " global: main;" >> "$tmp/export.map"
7917 echo " local: *;" >> "$tmp/export.map"
7918 echo "};" >> "$tmp/export.map"
7920 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (ac_try="$ac_link"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 llvm_cv_link_use_version_script=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 llvm_cv_link_use_version_script=no
7978 rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980 rm "$tmp/export.map"
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7991 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7992 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7993 if test "$llvm_cv_link_use_version_script" = yes ; then
7994 HAVE_LINK_VERSION_SCRIPT=1
8001 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8003 if test "${ac_cv_c_const+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8016 /* FIXME: Include the comments suggested by Paul. */
8018 /* Ultrix mips cc rejects this. */
8019 typedef int charset[2];
8021 /* SunOS 4.1.1 cc rejects this. */
8022 char const *const *ccp;
8024 /* NEC SVR4.0.2 mips cc rejects this. */
8025 struct point {int x, y;};
8026 static struct point const zero = {0,0};
8027 /* AIX XL C 1.02.0.0 rejects this.
8028 It does not let you subtract one const X* pointer from another in
8029 an arm of an if-expression whose if-part is not a constant
8031 const char *g = "string";
8032 ccp = &g + (g ? g-g : 0);
8033 /* HPUX 7.0 cc rejects these. */
8036 ccp = (char const *const *) p;
8037 { /* SCO 3.2v4 cc rejects this. */
8039 char const *s = 0 ? (char *) 0 : (char const *) 0;
8044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8046 const int *foo = &x[0];
8049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8050 typedef const int *iptr;
8054 { /* AIX XL C 1.02.0.0 rejects this saying
8055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8056 struct s { int j; const int *ap[3]; };
8057 struct s *b; b->j = 5;
8059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8063 return !x[0] && !zero.x;
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8085 { (case "(($ac_try" in
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_try") 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest.$ac_objext'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8115 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8116 if test $ac_cv_c_const = no; then
8118 cat >>confdefs.h <<\_ACEOF
8130 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8131 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8132 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8133 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 #include <sys/types.h>
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 eval "$as_ac_Header=yes"
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 eval "$as_ac_Header=no"
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 ac_res=`eval echo '${'$as_ac_Header'}'`
8200 { echo "$as_me:$LINENO: result: $ac_res" >&5
8201 echo "${ECHO_T}$ac_res" >&6; }
8202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8203 cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8207 ac_header_dirent=$ac_hdr; break
8211 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8212 if test $ac_header_dirent = dirent.h; then
8213 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8214 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8215 if test "${ac_cv_search_opendir+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 ac_func_search_save_LIBS=$LIBS
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8226 /* Override any GCC internal prototype to avoid an error.
8227 Use char because int might match the return type of a GCC
8228 builtin and then its argument prototype would still apply. */
8241 for ac_lib in '' dir; do
8242 if test -z "$ac_lib"; then
8243 ac_res="none required"
8246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_link") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_try") 2>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_search_opendir=$ac_res
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8290 rm -f core conftest.err conftest.$ac_objext \
8292 if test "${ac_cv_search_opendir+set}" = set; then
8296 if test "${ac_cv_search_opendir+set}" = set; then
8299 ac_cv_search_opendir=no
8302 LIBS=$ac_func_search_save_LIBS
8304 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8305 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8306 ac_res=$ac_cv_search_opendir
8307 if test "$ac_res" != no; then
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8315 if test "${ac_cv_search_opendir+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_func_search_save_LIBS=$LIBS
8319 cat >conftest.$ac_ext <<_ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8341 for ac_lib in '' x; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (ac_try="$ac_link"
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_link") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_try") 2>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_search_opendir=$ac_res
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8390 rm -f core conftest.err conftest.$ac_objext \
8392 if test "${ac_cv_search_opendir+set}" = set; then
8396 if test "${ac_cv_search_opendir+set}" = set; then
8399 ac_cv_search_opendir=no
8402 LIBS=$ac_func_search_save_LIBS
8404 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8405 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8406 ac_res=$ac_cv_search_opendir
8407 if test "$ac_res" != no; then
8408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8415 for ac_header in dlfcn.h
8417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_res=`eval echo '${'$as_ac_Header'}'`
8425 { echo "$as_me:$LINENO: result: $ac_res" >&5
8426 echo "${ECHO_T}$ac_res" >&6; }
8428 # Is the header compilable?
8429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8438 #include <$ac_header>
8440 rm -f conftest.$ac_objext
8441 if { (ac_try="$ac_compile"
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
8454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_try") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_header_compiler=no
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6; }
8486 # Is the header present?
8487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <$ac_header>
8497 if { (ac_try="$ac_cpp conftest.$ac_ext"
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } >/dev/null; then
8510 if test -s conftest.err; then
8511 ac_cpp_err=$ac_c_preproc_warn_flag
8512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8519 if test -z "$ac_cpp_err"; then
8520 ac_header_preproc=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 ac_header_preproc=no
8528 rm -f conftest.err conftest.$ac_ext
8529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8530 echo "${ECHO_T}$ac_header_preproc" >&6; }
8532 # So? What about this header?
8533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8539 ac_header_preproc=yes
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555 ## ------------------------------ ##
8556 ## Report this to bugs@yourdomain ##
8557 ## ------------------------------ ##
8559 ) | sed "s/^/$as_me: WARNING: /" >&2
8562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 eval "$as_ac_Header=\$ac_header_preproc"
8569 ac_res=`eval echo '${'$as_ac_Header'}'`
8570 { echo "$as_me:$LINENO: result: $ac_res" >&5
8571 echo "${ECHO_T}$ac_res" >&6; }
8574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8583 # Check whether --enable-ltdl-install was given.
8584 if test "${enable_ltdl_install+set}" = set; then
8585 enableval=$enable_ltdl_install;
8591 if test x"${enable_ltdl_install-no}" != xno; then
8593 INSTALL_LTDL_FALSE='#'
8595 INSTALL_LTDL_TRUE='#'
8601 if test x"${enable_ltdl_convenience-no}" != xno; then
8602 CONVENIENCE_LTDL_TRUE=
8603 CONVENIENCE_LTDL_FALSE='#'
8605 CONVENIENCE_LTDL_TRUE='#'
8606 CONVENIENCE_LTDL_FALSE=
8610 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8611 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613 libname_spec='lib$name'
8621 shlibpath_overrides_runpath=unknown
8623 dynamic_linker="$host_os ld.so"
8624 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8625 if test "$GCC" = yes; then
8626 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8627 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8628 # if the path contains ";" then we assume it to be the separator
8629 # otherwise default to the standard path separator (i.e. ":") - it is
8630 # assumed that no part of a normal pathname contains ";" but that should
8631 # okay in the real world where ";" in dirpaths is itself problematic.
8632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639 need_lib_prefix=unknown
8640 hardcode_into_libs=no
8642 # when you set need_version to no, make sure it does not cause -set_version
8643 # flags to be left without arguments
8644 need_version=unknown
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8650 shlibpath_var=LIBPATH
8652 # AIX 3 has no versioning support, so we append a major version to the name.
8653 soname_spec='${libname}${release}${shared_ext}$major'
8660 hardcode_into_libs=yes
8661 if test "$host_cpu" = ia64; then
8662 # AIX 5 supports IA64
8663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8664 shlibpath_var=LD_LIBRARY_PATH
8666 # With GCC up to 2.95.x, collect2 would create an import file
8667 # for dependence libraries. The import file would start with
8668 # the line `#! .'. This would cause the generated library to
8669 # depend on `.', always an invalid library. This was fixed in
8670 # development snapshots of GCC prior to 3.0.
8672 aix4 | aix4.[01] | aix4.[01].*)
8673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8683 # soname into executable. Probably we can add versioning support to
8684 # collect2, so additional links can be useful in future.
8685 if test "$aix_use_runtimelinking" = yes; then
8686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8687 # instead of lib<name>.a to let people know that these are not
8688 # typical AIX shared libraries.
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 # We preserve .a as extension for shared libraries through AIX4.2
8692 # and later when we are not doing run time linking.
8693 library_names_spec='${libname}${release}.a $libname.a'
8694 soname_spec='${libname}${release}${shared_ext}$major'
8696 shlibpath_var=LIBPATH
8701 library_names_spec='$libname.ixlibrary $libname.a'
8702 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8703 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'
8707 library_names_spec='${libname}${shared_ext}'
8708 dynamic_linker="$host_os ld.so"
8709 shlibpath_var=LIBRARY_PATH
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8718 shlibpath_var=LD_LIBRARY_PATH
8719 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8720 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8721 # the default ld.so.conf also contains /usr/contrib/lib and
8722 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8723 # libtool to hard-code these into programs
8726 cygwin* | mingw* | pw32*)
8727 version_type=windows
8732 case $GCC,$host_os in
8733 yes,cygwin* | yes,mingw* | yes,pw32*)
8734 library_names_spec='$libname.dll.a'
8735 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8736 postinstall_cmds='base_file=`basename \${file}`~
8737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8738 dldir=$destdir/`dirname \$dlpath`~
8739 test -d \$dldir || mkdir -p \$dldir~
8740 $install_prog $dir/$dlname \$dldir/$dlname~
8741 chmod a+x \$dldir/$dlname'
8742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8743 dlpath=$dir/\$dldll~
8745 shlibpath_overrides_runpath=yes
8749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8751 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8754 # MinGW DLLs use traditional 'lib' prefix
8755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8756 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8757 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8758 # It is most probably a Windows format PATH printed by
8759 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8760 # path with ; separators, and with drive letters. We can handle the
8761 # drive letters (cygwin fileutils understands them), so leave them,
8762 # especially as we might pass files found there to a mingw objdump,
8763 # which wouldn't understand a cygwinified path. Ahh.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770 # pw32 DLLs use 'pw' prefix rather than 'lib'
8771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8780 dynamic_linker='Win32 ld.exe'
8781 # FIXME: first we should search . and the directory the executable is in
8785 darwin* | rhapsody*)
8786 dynamic_linker="$host_os dyld"
8790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8791 soname_spec='${libname}${release}${major}$shared_ext'
8792 shlibpath_overrides_runpath=yes
8793 shlibpath_var=DYLD_LIBRARY_PATH
8794 shrext_cmds='.dylib'
8795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8796 if test "$GCC" = yes; then
8797 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"`
8799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 shlibpath_overrides_runpath=no
8825 hardcode_into_libs=yes
8826 dynamic_linker='GNU ld.so'
8829 freebsd* | dragonfly*)
8830 # DragonFly does not have aout. When/if they implement a new
8831 # versioning mechanism, adjust this.
8832 if test -x /usr/bin/objformat; then
8833 objformat=`/usr/bin/objformat`
8836 freebsd[123].*) objformat=aout ;;
8840 version_type=freebsd-$objformat
8841 case $version_type in
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8852 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=yes
8857 freebsd3.[01]* | freebsdelf3.[01]*)
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8863 shlibpath_overrides_runpath=no
8864 hardcode_into_libs=yes
8866 freebsd*) # from 4.6 on
8867 shlibpath_overrides_runpath=yes
8868 hardcode_into_libs=yes
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 hardcode_into_libs=yes
8883 hpux9* | hpux10* | hpux11*)
8884 # Give a soname corresponding to the major version so that dld.sl refuses to
8885 # link against other versions.
8892 hardcode_into_libs=yes
8893 dynamic_linker="$host_os dld.so"
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 if test "X$HPUX_IA64_MODE" = X32; then
8899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8907 hardcode_into_libs=yes
8908 dynamic_linker="$host_os dld.sl"
8909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8918 dynamic_linker="$host_os dld.sl"
8919 shlibpath_var=SHLIB_PATH
8920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8925 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8926 postinstall_cmds='chmod 555 $lib'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=no
8938 hardcode_into_libs=yes
8941 irix5* | irix6* | nonstopux*)
8943 nonstopux*) version_type=nonstopux ;;
8945 if test "$lt_cv_prog_gnu_ld" = yes; then
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956 irix5* | nonstopux*)
8960 case $LD in # libtool.m4 will add one of these switches to LD
8961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8962 libsuff= shlibsuff= libmagic=32-bit;;
8963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8964 libsuff=32 shlibsuff=N32 libmagic=N32;;
8965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8967 *) libsuff= shlibsuff= libmagic=never-match;;
8971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8972 shlibpath_overrides_runpath=no
8973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8975 hardcode_into_libs=yes
8978 # No shared lib support for Linux oldld, aout, or coff.
8979 linux*oldld* | linux*aout* | linux*coff*)
8983 # This must be Linux ELF.
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 # This implies no fast_install, which is unacceptable.
8994 # Some rework will be needed to allow for fast_install
8995 # before this can be enabled.
8996 hardcode_into_libs=yes
8998 # Append ld.so.conf contents to the search path
8999 if test -f /etc/ld.so.conf; then
9000 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' ' '`
9001 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9004 # We used to test for /lib/ld.so.1 and disable shared libraries on
9005 # powerpc, because MkLinux only supported shared libraries with the
9006 # GNU dynamic linker. Since this was broken with cross compilers,
9007 # most powerpc-linux boxes support dynamic linking these days and
9008 # people can always --disable-shared, the test was removed, and we
9009 # assume the GNU/Linux dynamic linker is in use.
9010 dynamic_linker='GNU/Linux ld.so'
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 shlibpath_overrides_runpath=no
9021 hardcode_into_libs=yes
9022 dynamic_linker='GNU ld.so'
9029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9032 dynamic_linker='NetBSD (a.out) ld.so'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 dynamic_linker='NetBSD ld.elf_so'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes
9062 sys_lib_dlsearch_path_spec="/usr/lib"
9064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9067 *) need_version=no ;;
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074 openbsd2.[89] | openbsd2.[89].*)
9075 shlibpath_overrides_runpath=no
9078 shlibpath_overrides_runpath=yes
9082 shlibpath_overrides_runpath=yes
9087 libname_spec='$name'
9090 library_names_spec='$libname${shared_ext} $libname.a'
9091 dynamic_linker='OS/2 ld.exe'
9092 shlibpath_var=LIBPATH
9095 osf3* | osf4* | osf5*)
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9114 hardcode_into_libs=yes
9115 # ldd complains unless libraries are executable
9116 postinstall_cmds='chmod +x $lib'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 if test "$with_gnu_ld" = yes; then
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9136 case $host_vendor in
9138 shlibpath_overrides_runpath=no
9140 export_dynamic_flag_spec='${wl}-Blargedynsym'
9141 runpath_var=LD_RUN_PATH
9149 shlibpath_overrides_runpath=no
9150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9156 if test -d /usr/nec ;then
9158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9159 soname_spec='$libname${shared_ext}.$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9165 version_type=freebsd-elf
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 hardcode_into_libs=yes
9172 if test "$with_gnu_ld" = yes; then
9173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9174 shlibpath_overrides_runpath=no
9176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9177 shlibpath_overrides_runpath=yes
9180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9184 sys_lib_dlsearch_path_spec='/usr/lib'
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9198 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9199 echo "${ECHO_T}$dynamic_linker" >&6; }
9200 test "$dynamic_linker" = no && can_build_shared=no
9202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9203 if test "$GCC" = yes; then
9204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9208 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9209 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9210 if test "${libltdl_cv_shlibext+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 eval libltdl_cv_shlibext=$shrext_cmds
9218 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9219 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9220 if test -n "$libltdl_cv_shlibext"; then
9222 cat >>confdefs.h <<_ACEOF
9223 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9229 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9230 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9231 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 libltdl_cv_shlibpath_var="$shlibpath_var"
9236 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9237 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9238 if test -n "$libltdl_cv_shlibpath_var"; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9247 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9248 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9249 if test "${libltdl_cv_sys_search_path+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9255 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9256 if test -n "$libltdl_cv_sys_search_path"; then
9258 for dir in $libltdl_cv_sys_search_path; do
9259 if test -z "$sys_search_path"; then
9260 sys_search_path="$dir"
9262 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9266 cat >>confdefs.h <<_ACEOF
9267 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9272 { echo "$as_me:$LINENO: checking for objdir" >&5
9273 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9274 if test "${libltdl_cv_objdir+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 libltdl_cv_objdir="$objdir"
9278 if test -n "$objdir"; then
9281 rm -f .libs 2>/dev/null
9282 mkdir .libs 2>/dev/null
9283 if test -d .libs; then
9284 libltdl_cv_objdir=.libs
9286 # MS-DOS does not allow filenames that begin with a dot.
9287 libltdl_cv_objdir=_libs
9289 rmdir .libs 2>/dev/null
9293 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9294 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9296 cat >>confdefs.h <<_ACEOF
9297 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9305 # Check for command to grab the raw symbol name followed by C symbol from nm.
9306 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9307 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 # These are sane defaults that work on at least a few old systems.
9313 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9315 # Character class describing NM global symbol codes.
9316 symcode='[BCDEGRST]'
9318 # Regexp to match symbols that can be accessed directly from C.
9319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321 # Transform an extracted symbol line into a proper C declaration
9322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324 # Transform an extracted symbol line into symbol name and symbol address
9325 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'"
9327 # Define system-specific variables.
9332 cygwin* | mingw* | pw32*)
9333 symcode='[ABCDGISTW]'
9335 hpux*) # Its linker distinguishes data from code symbols
9336 if test "$host_cpu" = ia64; then
9337 symcode='[ABCDEGRST]'
9339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9340 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'"
9343 if test "$host_cpu" = ia64; then
9344 symcode='[ABCDGIRSTW]'
9345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9346 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'"
9350 symcode='[BCDEGRST]'
9353 symcode='[BCDEGQRST]'
9364 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9372 # Handle CRLF in mingw tool chain
9376 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9380 # If we're using GNU nm, then use its standard symbol codes.
9381 case `$NM -V 2>&1` in
9382 *GNU* | *'with BFD'*)
9383 symcode='[ABCDGIRSTW]' ;;
9386 # Try without a prefix undercore, then with it.
9387 for ac_symprfx in "" "_"; do
9389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9390 symxfrm="\\1 $ac_symprfx\\2 \\2"
9392 # Write the raw and C identifiers.
9393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9395 # Check to see that the pipe works correctly.
9399 cat > conftest.$ac_ext <<EOF
9404 void nm_test_func(){}
9408 int main(){nm_test_var='a';nm_test_func();return(0);}
9411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412 (eval $ac_compile) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; then
9416 # Now try to grab the symbols.
9418 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } && test -s "$nlist"; then
9423 # Try sorting and uniquifying the output.
9424 if sort "$nlist" | uniq > "$nlist"T; then
9425 mv -f "$nlist"T "$nlist"
9430 # Make sure that we snagged all the symbols we need.
9431 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9432 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9433 cat <<EOF > conftest.$ac_ext
9439 # Now generate the symbol file.
9440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442 cat <<EOF >> conftest.$ac_ext
9443 #if defined (__STDC__) && __STDC__
9444 # define lt_ptr_t void *
9446 # define lt_ptr_t char *
9450 /* The mapping between symbol names and symbols. */
9455 lt_preloaded_symbols[] =
9458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9459 cat <<\EOF >> conftest.$ac_ext
9467 # Now try linking the two files.
9468 mv conftest.$ac_objext conftstm.$ac_objext
9469 lt_save_LIBS="$LIBS"
9470 lt_save_CFLAGS="$CFLAGS"
9471 LIBS="conftstm.$ac_objext"
9472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9480 LIBS="$lt_save_LIBS"
9481 CFLAGS="$lt_save_CFLAGS"
9483 echo "cannot find nm_test_func in $nlist" >&5
9486 echo "cannot find nm_test_var in $nlist" >&5
9489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9492 echo "$progname: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9495 rm -f conftest* conftst*
9497 # Do not use the global_symbol_pipe unless it works.
9498 if test "$pipe_works" = yes; then
9501 lt_cv_sys_global_symbol_pipe=
9507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9508 lt_cv_sys_global_symbol_to_cdecl=
9510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9511 { echo "$as_me:$LINENO: result: failed" >&5
9512 echo "${ECHO_T}failed" >&6; }
9514 { echo "$as_me:$LINENO: result: ok" >&5
9515 echo "${ECHO_T}ok" >&6; }
9519 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9520 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9521 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9525 libltdl_cv_preloaded_symbols=yes
9527 libltdl_cv_preloaded_symbols=no
9531 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9532 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9533 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_PRELOADED_SYMBOLS 1
9544 ac_cpp='$CPP $CPPFLAGS'
9545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9550 { echo "$as_me:$LINENO: checking for shl_load" >&5
9551 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9552 if test "${ac_cv_func_shl_load+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9563 #define shl_load innocuous_shl_load
9565 /* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char shl_load (); below.
9567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568 <limits.h> exists even on freestanding compilers. */
9571 # include <limits.h>
9573 # include <assert.h>
9578 /* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined __stub_shl_load || defined __stub___shl_load
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_try") 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_func_shl_load=yes
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9639 ac_cv_func_shl_load=no
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9646 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9647 if test $ac_cv_func_shl_load = yes; then
9649 cat >>confdefs.h <<\_ACEOF
9650 #define HAVE_SHL_LOAD 1
9654 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9655 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_check_lib_save_LIBS=$LIBS
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_lib_dld_shl_load=yes
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9722 ac_cv_lib_dld_shl_load=no
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9730 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9731 if test $ac_cv_lib_dld_shl_load = yes; then
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_SHL_LOAD 1
9737 LIBADD_DL="$LIBADD_DL -ldld"
9739 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_check_lib_save_LIBS=$LIBS
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9753 /* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_lib_dl_dlopen=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_cv_lib_dl_dlopen=no
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS=$ac_check_lib_save_LIBS
9814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9815 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9816 if test $ac_cv_lib_dl_dlopen = yes; then
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_LIBDL 1
9822 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824 cat >conftest.$ac_ext <<_ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_link") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_try") 2>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9877 cat >>confdefs.h <<\_ACEOF
9878 #define HAVE_LIBDL 1
9880 libltdl_cv_func_dlopen="yes"
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9886 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9887 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 ac_check_lib_save_LIBS=$LIBS
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9899 /* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (ac_try="$ac_link"
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_try") 2>&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_svld_dlopen=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_lib_svld_dlopen=no
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9960 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9961 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9962 if test $ac_cv_lib_svld_dlopen = yes; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_LIBDL 1
9968 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9971 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 ac_check_lib_save_LIBS=$LIBS
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
10008 grep -v '^ *+' conftest.er1 >conftest.err
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_dld_dld_link=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_lib_dld_dld_link=no
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10047 if test $ac_cv_lib_dld_dld_link = yes; then
10049 cat >>confdefs.h <<\_ACEOF
10053 LIBADD_DL="$LIBADD_DL -ldld"
10055 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10056 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10057 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068 #define _dyld_func_lookup innocuous__dyld_func_lookup
10070 /* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char _dyld_func_lookup (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10076 # include <limits.h>
10078 # include <assert.h>
10081 #undef _dyld_func_lookup
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10089 char _dyld_func_lookup ();
10090 /* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
10093 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10100 return _dyld_func_lookup ();
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func__dyld_func_lookup=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_func__dyld_func_lookup=no
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10151 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10152 if test $ac_cv_func__dyld_func_lookup = yes; then
10154 cat >>confdefs.h <<\_ACEOF
10155 #define HAVE_DYLD 1
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10181 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183 lt_save_LIBS="$LIBS"
10184 LIBS="$LIBS $LIBADD_DL"
10186 for ac_func in dlerror
10188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10202 #define $ac_func innocuous_$ac_func
10204 /* System header to define __stub macros and hopefully few prototypes,
10205 which can conflict with char $ac_func (); below.
10206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10207 <limits.h> exists even on freestanding compilers. */
10210 # include <limits.h>
10212 # include <assert.h>
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10224 /* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227 #if defined __stub_$ac_func || defined __stub___$ac_func
10234 return $ac_func ();
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 eval "$as_ac_var=yes"
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 eval "$as_ac_var=no"
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10284 ac_res=`eval echo '${'$as_ac_var'}'`
10285 { echo "$as_me:$LINENO: result: $ac_res" >&5
10286 echo "${ECHO_T}$ac_res" >&6; }
10287 if test `eval echo '${'$as_ac_var'}'` = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10295 LIBS="$lt_save_LIBS"
10298 ac_cpp='$CPP $CPPFLAGS'
10299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10305 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10306 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10307 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 ac_cv_sys_symbol_underscore=no
10311 cat > conftest.$ac_ext <<EOF
10312 void nm_test_func(){}
10313 int main(){nm_test_func;return 0;}
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 # Now try to grab the symbols.
10321 ac_nlist=conftest.nm
10322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && test -s "$ac_nlist"; then
10327 # See whether the symbols have a leading underscore.
10328 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10329 ac_cv_sys_symbol_underscore=yes
10331 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10334 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10338 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10341 echo "configure: failed program was:" >&5
10347 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10348 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10351 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10352 if test x"$libltdl_cv_func_dlopen" = xyes ||
10353 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10354 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10355 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10356 if test "${libltdl_cv_need_uscore+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 libltdl_cv_need_uscore=unknown
10361 LIBS="$LIBS $LIBADD_DL"
10362 if test "$cross_compiling" = yes; then :
10363 libltdl_cv_need_uscore=cross
10365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10366 lt_status=$lt_dlunknown
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10368 "configure"
10369 #include "confdefs.h"
10378 # define LT_DLGLOBAL RTLD_GLOBAL
10381 # define LT_DLGLOBAL DL_GLOBAL
10383 # define LT_DLGLOBAL 0
10387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10388 find out it does not work in some platform. */
10389 #ifndef LT_DLLAZY_OR_NOW
10391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10394 # define LT_DLLAZY_OR_NOW DL_LAZY
10397 # define LT_DLLAZY_OR_NOW RTLD_NOW
10400 # define LT_DLLAZY_OR_NOW DL_NOW
10402 # define LT_DLLAZY_OR_NOW 0
10410 extern "C" void exit (int);
10413 void fnord() { int i=42;}
10416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10417 int status = $lt_dlunknown;
10421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10422 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10423 /* dlclose (self); */
10431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10436 (./conftest; exit; ) >&5 2>/dev/null
10438 case x$lt_status in
10439 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10440 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10441 x$lt_dlunknown|x*) ;;
10444 # compilation failed
10453 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10454 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10458 if test x"$libltdl_cv_need_uscore" = xyes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define NEED_USCORE 1
10467 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10468 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10469 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 # PORTME does your system automatically load deplibs for dlopen?
10473 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10474 # For now, we just catch OSes we know something about -- in the
10475 # future, we'll try test this programmatically.
10476 libltdl_cv_sys_dlopen_deplibs=unknown
10478 aix3*|aix4.1.*|aix4.2.*)
10479 # Unknown whether this is true for these versions of AIX, but
10480 # we want this `case' here to explicitly catch those versions.
10481 libltdl_cv_sys_dlopen_deplibs=unknown
10484 libltdl_cv_sys_dlopen_deplibs=yes
10487 # Assuming the user has installed a libdl from somewhere, this is true
10488 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10489 libltdl_cv_sys_dlopen_deplibs=yes
10491 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10492 # GNU and its variants, using gnu ld.so (Glibc)
10493 libltdl_cv_sys_dlopen_deplibs=yes
10496 libltdl_cv_sys_dlopen_deplibs=yes
10499 libltdl_cv_sys_dlopen_deplibs=yes
10501 irix[12345]*|irix6.[01]*)
10502 # Catch all versions of IRIX before 6.2, and indicate that we don't
10503 # know how it worked for any of those versions.
10504 libltdl_cv_sys_dlopen_deplibs=unknown
10507 # The case above catches anything before 6.2, and it's known that
10508 # at 6.2 and later dlopen does load deplibs.
10509 libltdl_cv_sys_dlopen_deplibs=yes
10512 libltdl_cv_sys_dlopen_deplibs=yes
10515 libltdl_cv_sys_dlopen_deplibs=yes
10518 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10519 # it did *not* use an RPATH in a shared library to find objects the
10520 # library depends on, so we explicitly say `no'.
10521 libltdl_cv_sys_dlopen_deplibs=no
10523 osf5.0|osf5.0a|osf5.1)
10524 # dlopen *does* load deplibs and with the right loader patch applied
10525 # it even uses RPATH in a shared library to search for shared objects
10526 # that the library depends on, but there's no easy way to know if that
10527 # patch is installed. Since this is the case, all we can really
10528 # say is unknown -- it depends on the patch being installed. If
10529 # it is, this changes to `yes'. Without it, it would be `no'.
10530 libltdl_cv_sys_dlopen_deplibs=unknown
10533 # the two cases above should catch all versions of osf <= 5.1. Read
10534 # the comments above for what we know about them.
10535 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10536 # is used to find them so we can finally say `yes'.
10537 libltdl_cv_sys_dlopen_deplibs=yes
10540 libltdl_cv_sys_dlopen_deplibs=yes
10542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10548 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10549 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10550 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10552 cat >>confdefs.h <<\_ACEOF
10553 #define LTDL_DLOPEN_DEPLIBS 1
10559 for ac_header in argz.h
10561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 ac_res=`eval echo '${'$as_ac_Header'}'`
10569 { echo "$as_me:$LINENO: result: $ac_res" >&5
10570 echo "${ECHO_T}$ac_res" >&6; }
10572 # Is the header compilable?
10573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 $ac_includes_default
10582 #include <$ac_header>
10584 rm -f conftest.$ac_objext
10585 if { (ac_try="$ac_compile"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_header_compiler=yes
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 ac_header_compiler=no
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10628 echo "${ECHO_T}$ac_header_compiler" >&6; }
10630 # Is the header present?
10631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <$ac_header>
10641 if { (ac_try="$ac_cpp conftest.$ac_ext"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } >/dev/null; then
10654 if test -s conftest.err; then
10655 ac_cpp_err=$ac_c_preproc_warn_flag
10656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10663 if test -z "$ac_cpp_err"; then
10664 ac_header_preproc=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_header_preproc=no
10672 rm -f conftest.err conftest.$ac_ext
10673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 echo "${ECHO_T}$ac_header_preproc" >&6; }
10676 # So? What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10683 ac_header_preproc=yes
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699 ## ------------------------------ ##
10700 ## Report this to bugs@yourdomain ##
10701 ## ------------------------------ ##
10703 ) | sed "s/^/$as_me: WARNING: /" >&2
10706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 eval "$as_ac_Header=\$ac_header_preproc"
10713 ac_res=`eval echo '${'$as_ac_Header'}'`
10714 { echo "$as_me:$LINENO: result: $ac_res" >&5
10715 echo "${ECHO_T}$ac_res" >&6; }
10718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10728 { echo "$as_me:$LINENO: checking for error_t" >&5
10729 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10730 if test "${ac_cv_type_error_t+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10743 typedef error_t ac__type_new_;
10747 if ((ac__type_new_ *) 0)
10749 if (sizeof (ac__type_new_))
10755 rm -f conftest.$ac_objext
10756 if { (ac_try="$ac_compile"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_compile") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; } &&
10779 { ac_try='test -s conftest.$ac_objext'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 ac_cv_type_error_t=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_cv_type_error_t=no
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10801 if test $ac_cv_type_error_t = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define HAVE_ERROR_T 1
10810 cat >>confdefs.h <<\_ACEOF
10811 #define error_t int
10822 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10838 #define $ac_func innocuous_$ac_func
10840 /* System header to define __stub macros and hopefully few prototypes,
10841 which can conflict with char $ac_func (); below.
10842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10843 <limits.h> exists even on freestanding compilers. */
10846 # include <limits.h>
10848 # include <assert.h>
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10860 /* The GNU C library defines this for functions which it implements
10861 to always fail with ENOSYS. Some functions are actually named
10862 something starting with __ and the normal name is an alias. */
10863 #if defined __stub_$ac_func || defined __stub___$ac_func
10870 return $ac_func ();
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (ac_try="$ac_link"
10877 case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_link") 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_try") 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 eval "$as_ac_var=yes"
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 eval "$as_ac_var=no"
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10920 ac_res=`eval echo '${'$as_ac_var'}'`
10921 { echo "$as_me:$LINENO: result: $ac_res" >&5
10922 echo "${ECHO_T}$ac_res" >&6; }
10923 if test `eval echo '${'$as_ac_var'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 ac_res=`eval echo '${'$as_ac_Header'}'`
10969 { echo "$as_me:$LINENO: result: $ac_res" >&5
10970 echo "${ECHO_T}$ac_res" >&6; }
10972 # Is the header compilable?
10973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 $ac_includes_default
10982 #include <$ac_header>
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest.$ac_objext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_header_compiler=yes
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_header_compiler=no
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11028 echo "${ECHO_T}$ac_header_compiler" >&6; }
11030 # Is the header present?
11031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <$ac_header>
11041 if { (ac_try="$ac_cpp conftest.$ac_ext"
11042 case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } >/dev/null; then
11054 if test -s conftest.err; then
11055 ac_cpp_err=$ac_c_preproc_warn_flag
11056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11063 if test -z "$ac_cpp_err"; then
11064 ac_header_preproc=yes
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_header_preproc=no
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11076 # So? What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099 ## ------------------------------ ##
11100 ## Report this to bugs@yourdomain ##
11101 ## ------------------------------ ##
11103 ) | sed "s/^/$as_me: WARNING: /" >&2
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 eval "$as_ac_Header=\$ac_header_preproc"
11113 ac_res=`eval echo '${'$as_ac_Header'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11131 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141 { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11144 # Is the header compilable?
11145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 $ac_includes_default
11154 #include <$ac_header>
11156 rm -f conftest.$ac_objext
11157 if { (ac_try="$ac_compile"
11158 case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1 >conftest.err
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 ac_header_compiler=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_compiler=no
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1 >conftest.err
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null; then
11226 if test -s conftest.err; then
11227 ac_cpp_err=$ac_c_preproc_warn_flag
11228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235 if test -z "$ac_cpp_err"; then
11236 ac_header_preproc=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_header_preproc=no
11244 rm -f conftest.err conftest.$ac_ext
11245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11246 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248 # So? What about this header?
11249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11255 ac_header_preproc=yes
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271 ## ------------------------------ ##
11272 ## Report this to bugs@yourdomain ##
11273 ## ------------------------------ ##
11275 ) | sed "s/^/$as_me: WARNING: /" >&2
11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 eval "$as_ac_Header=\$ac_header_preproc"
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 for ac_header in string.h strings.h
11303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11314 # Is the header compilable?
11315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 $ac_includes_default
11324 #include <$ac_header>
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_compile") 2>conftest.er1
11335 grep -v '^ *+' conftest.er1 >conftest.err
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341 { (case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_try") 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_try") 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_header_compiler=yes
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_compiler=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 echo "${ECHO_T}$ac_header_compiler" >&6; }
11372 # Is the header present?
11373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <$ac_header>
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } >/dev/null; then
11396 if test -s conftest.err; then
11397 ac_cpp_err=$ac_c_preproc_warn_flag
11398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11405 if test -z "$ac_cpp_err"; then
11406 ac_header_preproc=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 ac_header_preproc=no
11414 rm -f conftest.err conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441 ## ------------------------------ ##
11442 ## Report this to bugs@yourdomain ##
11443 ## ------------------------------ ##
11445 ) | sed "s/^/$as_me: WARNING: /" >&2
11448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 eval "$as_ac_Header=\$ac_header_preproc"
11455 ac_res=`eval echo '${'$as_ac_Header'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 for ac_func in strchr index
11474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 cat >conftest.$ac_ext <<_ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11488 #define $ac_func innocuous_$ac_func
11490 /* System header to define __stub macros and hopefully few prototypes,
11491 which can conflict with char $ac_func (); below.
11492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11493 <limits.h> exists even on freestanding compilers. */
11496 # include <limits.h>
11498 # include <assert.h>
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined __stub_$ac_func || defined __stub___$ac_func
11520 return $ac_func ();
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (ac_try="$ac_link"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_link") 2>conftest.er1
11534 grep -v '^ *+' conftest.er1 >conftest.err
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_try") 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_try") 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 eval "$as_ac_var=yes"
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 eval "$as_ac_var=no"
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11570 ac_res=`eval echo '${'$as_ac_var'}'`
11571 { echo "$as_me:$LINENO: result: $ac_res" >&5
11572 echo "${ECHO_T}$ac_res" >&6; }
11573 if test `eval echo '${'$as_ac_var'}'` = yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583 for ac_func in strrchr rindex
11585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599 #define $ac_func innocuous_$ac_func
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11607 # include <limits.h>
11609 # include <assert.h>
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11631 return $ac_func ();
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 eval "$as_ac_var=yes"
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 eval "$as_ac_var=no"
11678 rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11681 ac_res=`eval echo '${'$as_ac_var'}'`
11682 { echo "$as_me:$LINENO: result: $ac_res" >&5
11683 echo "${ECHO_T}$ac_res" >&6; }
11684 if test `eval echo '${'$as_ac_var'}'` = yes; then
11685 cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 for ac_func in memcpy bcopy
11696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11710 #define $ac_func innocuous_$ac_func
11712 /* System header to define __stub macros and hopefully few prototypes,
11713 which can conflict with char $ac_func (); below.
11714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715 <limits.h> exists even on freestanding compilers. */
11718 # include <limits.h>
11720 # include <assert.h>
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined __stub_$ac_func || defined __stub___$ac_func
11742 return $ac_func ();
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_link") 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 eval "$as_ac_var=yes"
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 eval "$as_ac_var=no"
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11792 ac_res=`eval echo '${'$as_ac_var'}'`
11793 { echo "$as_me:$LINENO: result: $ac_res" >&5
11794 echo "${ECHO_T}$ac_res" >&6; }
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 for ac_func in memmove strcmp
11807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821 #define $ac_func innocuous_$ac_func
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11829 # include <limits.h>
11831 # include <assert.h>
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11853 return $ac_func ();
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 eval "$as_ac_var=no"
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11903 ac_res=`eval echo '${'$as_ac_var'}'`
11904 { echo "$as_me:$LINENO: result: $ac_res" >&5
11905 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11917 for ac_func in closedir opendir readdir
11919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11933 #define $ac_func innocuous_$ac_func
11935 /* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char $ac_func (); below.
11937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938 <limits.h> exists even on freestanding compilers. */
11941 # include <limits.h>
11943 # include <assert.h>
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11955 /* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
11958 #if defined __stub_$ac_func || defined __stub___$ac_func
11965 return $ac_func ();
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 eval "$as_ac_var=yes"
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 eval "$as_ac_var=no"
12012 rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12015 ac_res=`eval echo '${'$as_ac_var'}'`
12016 { echo "$as_me:$LINENO: result: $ac_res" >&5
12017 echo "${ECHO_T}$ac_res" >&6; }
12018 if test `eval echo '${'$as_ac_var'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12029 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12042 if test "$GCC" != "yes" && test "$ICC" != "yes"
12044 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12045 echo "$as_me: error: gcc|icc required but not found" >&2;}
12046 { (exit 1); exit 1; }; }
12049 if test "$GXX" != "yes" && test "$IXX" != "yes"
12051 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12052 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12053 { (exit 1); exit 1; }; }
12056 if test "$GCC" = "yes"
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #if !defined(__GNUC__) || __GNUC__ < 3
12060 #error Unsupported GCC version
12064 rm -f conftest.$ac_objext
12065 if { (ac_try="$ac_compile"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12079 { (case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_try") 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_try") 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12103 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12104 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12105 { (exit 1); exit 1; }; }
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 if test -z "$llvm_cv_gnu_make_command"
12113 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12114 echo "$as_me: error: GNU Make required but not found" >&2;}
12115 { (exit 1); exit 1; }; }
12118 { echo "$as_me:$LINENO: result: ok" >&5
12119 echo "${ECHO_T}ok" >&6; }
12121 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12122 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12123 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12125 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12127 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12128 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12132 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12133 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_m_sin+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 ac_check_lib_save_LIBS=$LIBS
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
12195 ac_cv_lib_m_sin=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12208 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12209 if test $ac_cv_lib_m_sin = yes; then
12210 cat >>confdefs.h <<_ACEOF
12211 #define HAVE_LIBM 1
12218 if test "$llvm_cv_os_type" = "MingW" ; then
12220 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12221 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-limagehlp $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_imagehlp_main=yes
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_lib_imagehlp_main=no
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12290 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12291 if test $ac_cv_lib_imagehlp_main = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_LIBIMAGEHLP 1
12296 LIBS="-limagehlp $LIBS"
12301 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12302 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_psapi_main+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-lpsapi $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_lib_psapi_main=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_lib_psapi_main=no
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12371 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12372 if test $ac_cv_lib_psapi_main = yes; then
12373 cat >>confdefs.h <<_ACEOF
12374 #define HAVE_LIBPSAPI 1
12377 LIBS="-lpsapi $LIBS"
12383 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12384 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12385 if test "${ac_cv_search_dlopen+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 ac_func_search_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12411 for ac_lib in '' dl; do
12412 if test -z "$ac_lib"; then
12413 ac_res="none required"
12416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_search_dlopen=$ac_res
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12460 rm -f core conftest.err conftest.$ac_objext \
12462 if test "${ac_cv_search_dlopen+set}" = set; then
12466 if test "${ac_cv_search_dlopen+set}" = set; then
12469 ac_cv_search_dlopen=no
12471 rm conftest.$ac_ext
12472 LIBS=$ac_func_search_save_LIBS
12474 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12475 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12476 ac_res=$ac_cv_search_dlopen
12477 if test "$ac_res" != no; then
12478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_DLOPEN 1
12485 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12486 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12490 if test "$llvm_cv_enable_libffi" = "yes" ; then
12491 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12492 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12493 if test "${ac_cv_search_ffi_call+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 ac_func_search_save_LIBS=$LIBS
12497 cat >conftest.$ac_ext <<_ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12504 /* Override any GCC internal prototype to avoid an error.
12505 Use char because int might match the return type of a GCC
12506 builtin and then its argument prototype would still apply. */
12514 return ffi_call ();
12519 for ac_lib in '' ffi; do
12520 if test -z "$ac_lib"; then
12521 ac_res="none required"
12524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 ac_cv_search_ffi_call=$ac_res
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12568 rm -f core conftest.err conftest.$ac_objext \
12570 if test "${ac_cv_search_ffi_call+set}" = set; then
12574 if test "${ac_cv_search_ffi_call+set}" = set; then
12577 ac_cv_search_ffi_call=no
12579 rm conftest.$ac_ext
12580 LIBS=$ac_func_search_save_LIBS
12582 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12583 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12584 ac_res=$ac_cv_search_ffi_call
12585 if test "$ac_res" != no; then
12586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_FFI_CALL 1
12593 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12594 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12595 { (exit 1); exit 1; }; }
12600 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12601 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12602 if test "${ac_cv_search_mallinfo+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 ac_func_search_save_LIBS=$LIBS
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12623 return mallinfo ();
12628 for ac_lib in '' malloc; do
12629 if test -z "$ac_lib"; then
12630 ac_res="none required"
12633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_try") 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_search_mallinfo=$ac_res
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12677 rm -f core conftest.err conftest.$ac_objext \
12679 if test "${ac_cv_search_mallinfo+set}" = set; then
12683 if test "${ac_cv_search_mallinfo+set}" = set; then
12686 ac_cv_search_mallinfo=no
12688 rm conftest.$ac_ext
12689 LIBS=$ac_func_search_save_LIBS
12691 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12692 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12693 ac_res=$ac_cv_search_mallinfo
12694 if test "$ac_res" != no; then
12695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12697 cat >>confdefs.h <<\_ACEOF
12698 #define HAVE_MALLINFO 1
12704 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12706 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12707 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12708 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 ac_check_lib_save_LIBS=$LIBS
12712 LIBS="-lpthread $LIBS"
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12726 char pthread_mutex_init ();
12730 return pthread_mutex_init ();
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest$ac_exeext'
12760 { (case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_try") 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_lib_pthread_pthread_mutex_init=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_lib_pthread_pthread_mutex_init=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12783 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBPTHREAD 1
12788 LIBS="-lpthread $LIBS"
12792 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12793 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12794 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 ac_func_search_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12811 char pthread_mutex_lock ();
12815 return pthread_mutex_lock ();
12820 for ac_lib in '' pthread; do
12821 if test -z "$ac_lib"; then
12822 ac_res="none required"
12825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12827 rm -f conftest.$ac_objext conftest$ac_exeext
12828 if { (ac_try="$ac_link"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_cv_search_pthread_mutex_lock=$ac_res
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12869 rm -f core conftest.err conftest.$ac_objext \
12871 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12878 ac_cv_search_pthread_mutex_lock=no
12880 rm conftest.$ac_ext
12881 LIBS=$ac_func_search_save_LIBS
12883 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12884 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12885 ac_res=$ac_cv_search_pthread_mutex_lock
12886 if test "$ac_res" != no; then
12887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_PTHREAD_MUTEX_LOCK 1
12895 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12896 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12897 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 ac_func_search_save_LIBS=$LIBS
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12914 char pthread_rwlock_init ();
12918 return pthread_rwlock_init ();
12923 for ac_lib in '' pthread; do
12924 if test -z "$ac_lib"; then
12925 ac_res="none required"
12928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (ac_try="$ac_link"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_link") 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12945 { (case "(($ac_try" in
12946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_try") 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; } &&
12954 { ac_try='test -s conftest$ac_exeext'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_search_pthread_rwlock_init=$ac_res
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12972 rm -f core conftest.err conftest.$ac_objext \
12974 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12978 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12981 ac_cv_search_pthread_rwlock_init=no
12983 rm conftest.$ac_ext
12984 LIBS=$ac_func_search_save_LIBS
12986 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12987 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12988 ac_res=$ac_cv_search_pthread_rwlock_init
12989 if test "$ac_res" != no; then
12990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_PTHREAD_RWLOCK_INIT 1
12998 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12999 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_func_search_save_LIBS=$LIBS
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13011 /* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13017 char pthread_getspecific ();
13021 return pthread_getspecific ();
13026 for ac_lib in '' pthread; do
13027 if test -z "$ac_lib"; then
13028 ac_res="none required"
13031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest$ac_exeext'
13058 { (case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_try") 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_cv_search_pthread_getspecific=$ac_res
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13075 rm -f core conftest.err conftest.$ac_objext \
13077 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13081 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13084 ac_cv_search_pthread_getspecific=no
13086 rm conftest.$ac_ext
13087 LIBS=$ac_func_search_save_LIBS
13089 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13090 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13091 ac_res=$ac_cv_search_pthread_getspecific
13092 if test "$ac_res" != no; then
13093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_PTHREAD_GETSPECIFIC 1
13104 # Check whether --with-udis86 was given.
13105 if test "${with_udis86+set}" = set; then
13106 withval=$with_udis86;
13111 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13114 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13115 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13116 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-ludis86 $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (ac_try="$ac_link"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_link") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158 { (case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_try") 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_try") 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_lib_udis86_ud_init=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_cv_lib_udis86_ud_init=no
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13189 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13190 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13191 if test $ac_cv_lib_udis86_ud_init = yes; then
13192 cat >>confdefs.h <<_ACEOF
13193 #define HAVE_LIBUDIS86 1
13196 LIBS="-ludis86 $LIBS"
13200 echo "Error! You need to have libudis86 around."
13212 cat >>confdefs.h <<_ACEOF
13213 #define USE_UDIS86 $USE_UDIS86
13218 # Check whether --with-oprofile was given.
13219 if test "${with_oprofile+set}" = set; then
13220 withval=$with_oprofile;
13224 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13225 no) llvm_cv_oppath=
13228 *) llvm_cv_oppath="${withval}/lib/oprofile"
13229 CPPFLAGS="-I${withval}/include";;
13231 if test -n "$llvm_cv_oppath" ; then
13232 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13233 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13234 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13235 if test "${ac_cv_search_bfd_init+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 ac_func_search_save_LIBS=$LIBS
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13256 return bfd_init ();
13261 for ac_lib in '' bfd; do
13262 if test -z "$ac_lib"; then
13263 ac_res="none required"
13266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (ac_try="$ac_link"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_link") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13283 { (case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; } &&
13292 { ac_try='test -s conftest$ac_exeext'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_search_bfd_init=$ac_res
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13310 rm -f core conftest.err conftest.$ac_objext \
13312 if test "${ac_cv_search_bfd_init+set}" = set; then
13316 if test "${ac_cv_search_bfd_init+set}" = set; then
13319 ac_cv_search_bfd_init=no
13321 rm conftest.$ac_ext
13322 LIBS=$ac_func_search_save_LIBS
13324 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13325 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13326 ac_res=$ac_cv_search_bfd_init
13327 if test "$ac_res" != no; then
13328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13333 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13334 if test "${ac_cv_search_op_open_agent+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 ac_func_search_save_LIBS=$LIBS
13338 cat >conftest.$ac_ext <<_ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13351 char op_open_agent ();
13355 return op_open_agent ();
13360 for ac_lib in '' opagent; do
13361 if test -z "$ac_lib"; then
13362 ac_res="none required"
13365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>conftest.er1
13376 grep -v '^ *+' conftest.er1 >conftest.err
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_search_op_open_agent=$ac_res
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13409 rm -f core conftest.err conftest.$ac_objext \
13411 if test "${ac_cv_search_op_open_agent+set}" = set; then
13415 if test "${ac_cv_search_op_open_agent+set}" = set; then
13418 ac_cv_search_op_open_agent=no
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13423 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13424 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13425 ac_res=$ac_cv_search_op_open_agent
13426 if test "$ac_res" != no; then
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431 echo "Error! You need to have libopagent around."
13436 if test "${ac_cv_header_opagent_h+set}" = set; then
13437 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13438 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13439 if test "${ac_cv_header_opagent_h+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13443 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13445 # Is the header compilable?
13446 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13447 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 $ac_includes_default
13455 #include <opagent.h>
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13472 { (case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_try") 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_header_compiler=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_header_compiler=no
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13501 echo "${ECHO_T}$ac_header_compiler" >&6; }
13503 # Is the header present?
13504 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13505 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 #include <opagent.h>
13514 if { (ac_try="$ac_cpp conftest.$ac_ext"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } >/dev/null; then
13527 if test -s conftest.err; then
13528 ac_cpp_err=$ac_c_preproc_warn_flag
13529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13536 if test -z "$ac_cpp_err"; then
13537 ac_header_preproc=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_header_preproc=no
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13552 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13559 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13572 ## ------------------------------ ##
13573 ## Report this to bugs@yourdomain ##
13574 ## ------------------------------ ##
13576 ) | sed "s/^/$as_me: WARNING: /" >&2
13579 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13580 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_opagent_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_cv_header_opagent_h=$ac_header_preproc
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13590 if test $ac_cv_header_opagent_h = yes; then
13594 echo "Error! You need to have opagent.h around."
13610 cat >>confdefs.h <<_ACEOF
13611 #define USE_OPROFILE $USE_OPROFILE
13621 ac_header_dirent=no
13622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #include <sys/types.h>
13647 rm -f conftest.$ac_objext
13648 if { (ac_try="$ac_compile"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 eval "$as_ac_Header=yes"
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 eval "$as_ac_Header=no"
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 ac_res=`eval echo '${'$as_ac_Header'}'`
13692 { echo "$as_me:$LINENO: result: $ac_res" >&5
13693 echo "${ECHO_T}$ac_res" >&6; }
13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13699 ac_header_dirent=$ac_hdr; break
13703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13704 if test $ac_header_dirent = dirent.h; then
13705 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13706 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13707 if test "${ac_cv_search_opendir+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 ac_func_search_save_LIBS=$LIBS
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13733 for ac_lib in '' dir; do
13734 if test -z "$ac_lib"; then
13735 ac_res="none required"
13738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (ac_try="$ac_link"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_link") 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest$ac_exeext'
13765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_search_opendir=$ac_res
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13782 rm -f core conftest.err conftest.$ac_objext \
13784 if test "${ac_cv_search_opendir+set}" = set; then
13788 if test "${ac_cv_search_opendir+set}" = set; then
13791 ac_cv_search_opendir=no
13793 rm conftest.$ac_ext
13794 LIBS=$ac_func_search_save_LIBS
13796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13798 ac_res=$ac_cv_search_opendir
13799 if test "$ac_res" != no; then
13800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13805 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13807 if test "${ac_cv_search_opendir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_func_search_save_LIBS=$LIBS
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13833 for ac_lib in '' x; do
13834 if test -z "$ac_lib"; then
13835 ac_res="none required"
13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_search_opendir=$ac_res
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13882 rm -f core conftest.err conftest.$ac_objext \
13884 if test "${ac_cv_search_opendir+set}" = set; then
13888 if test "${ac_cv_search_opendir+set}" = set; then
13891 ac_cv_search_opendir=no
13893 rm conftest.$ac_ext
13894 LIBS=$ac_func_search_save_LIBS
13896 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13897 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13898 ac_res=$ac_cv_search_opendir
13899 if test "$ac_res" != no; then
13900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13906 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13907 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13908 if test "${ac_cv_header_mmap_anon+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 ac_cpp='$CPP $CPPFLAGS'
13913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 #include <sys/mman.h>
13924 #include <unistd.h>
13929 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13943 grep -v '^ *+' conftest.er1 >conftest.err
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_header_mmap_anon=yes
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_cv_header_mmap_anon=no
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13985 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13986 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13987 if test "$ac_cv_header_mmap_anon" = yes; then
13989 cat >>confdefs.h <<\_ACEOF
13990 #define HAVE_MMAP_ANONYMOUS 1
13995 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13996 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13997 if test "${ac_cv_header_stat_broken+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include <sys/types.h>
14007 #include <sys/stat.h>
14009 #if defined S_ISBLK && defined S_IFDIR
14010 # if S_ISBLK (S_IFDIR)
14015 #if defined S_ISBLK && defined S_IFCHR
14016 # if S_ISBLK (S_IFCHR)
14021 #if defined S_ISLNK && defined S_IFREG
14022 # if S_ISLNK (S_IFREG)
14027 #if defined S_ISSOCK && defined S_IFREG
14028 # if S_ISSOCK (S_IFREG)
14034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14035 $EGREP "You lose" >/dev/null 2>&1; then
14036 ac_cv_header_stat_broken=yes
14038 ac_cv_header_stat_broken=no
14043 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14044 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14045 if test $ac_cv_header_stat_broken = yes; then
14047 cat >>confdefs.h <<\_ACEOF
14048 #define STAT_MACROS_BROKEN 1
14053 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14054 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14055 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <sys/types.h>
14065 #include <sys/wait.h>
14066 #ifndef WEXITSTATUS
14067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14078 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_header_sys_wait_h=yes
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14122 ac_cv_header_sys_wait_h=no
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14128 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14129 if test $ac_cv_header_sys_wait_h = yes; then
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_SYS_WAIT_H 1
14137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_time+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <sys/types.h>
14149 #include <sys/time.h>
14155 if ((struct tm *) 0)
14161 rm -f conftest.$ac_objext
14162 if { (ac_try="$ac_compile"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_compile") 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_header_time=yes
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_cv_header_time=no
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14206 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14207 if test $ac_cv_header_time = yes; then
14209 cat >>confdefs.h <<\_ACEOF
14210 #define TIME_WITH_SYS_TIME 1
14222 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232 { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14235 # Is the header compilable?
14236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 $ac_includes_default
14245 #include <$ac_header>
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest.$ac_objext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_header_compiler=yes
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 ac_header_compiler=no
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291 echo "${ECHO_T}$ac_header_compiler" >&6; }
14293 # Is the header present?
14294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 #include <$ac_header>
14304 if { (ac_try="$ac_cpp conftest.$ac_ext"
14305 case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev/null; then
14317 if test -s conftest.err; then
14318 ac_cpp_err=$ac_c_preproc_warn_flag
14319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14326 if test -z "$ac_cpp_err"; then
14327 ac_header_preproc=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_header_preproc=no
14335 rm -f conftest.err conftest.$ac_ext
14336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14337 echo "${ECHO_T}$ac_header_preproc" >&6; }
14339 # So? What about this header?
14340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14346 ac_header_preproc=yes
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14362 ## ------------------------------ ##
14363 ## Report this to bugs@yourdomain ##
14364 ## ------------------------------ ##
14366 ) | sed "s/^/$as_me: WARNING: /" >&2
14369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 eval "$as_ac_Header=\$ac_header_preproc"
14376 ac_res=`eval echo '${'$as_ac_Header'}'`
14377 { echo "$as_me:$LINENO: result: $ac_res" >&5
14378 echo "${ECHO_T}$ac_res" >&6; }
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14396 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 ac_res=`eval echo '${'$as_ac_Header'}'`
14406 { echo "$as_me:$LINENO: result: $ac_res" >&5
14407 echo "${ECHO_T}$ac_res" >&6; }
14409 # Is the header compilable?
14410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 $ac_includes_default
14419 #include <$ac_header>
14421 rm -f conftest.$ac_objext
14422 if { (ac_try="$ac_compile"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_compile") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_header_compiler=yes
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ac_header_compiler=no
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465 echo "${ECHO_T}$ac_header_compiler" >&6; }
14467 # Is the header present?
14468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <$ac_header>
14478 if { (ac_try="$ac_cpp conftest.$ac_ext"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } >/dev/null; then
14491 if test -s conftest.err; then
14492 ac_cpp_err=$ac_c_preproc_warn_flag
14493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14500 if test -z "$ac_cpp_err"; then
14501 ac_header_preproc=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_header_preproc=no
14509 rm -f conftest.err conftest.$ac_ext
14510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14511 echo "${ECHO_T}$ac_header_preproc" >&6; }
14513 # So? What about this header?
14514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14520 ac_header_preproc=yes
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14536 ## ------------------------------ ##
14537 ## Report this to bugs@yourdomain ##
14538 ## ------------------------------ ##
14540 ) | sed "s/^/$as_me: WARNING: /" >&2
14543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 eval "$as_ac_Header=\$ac_header_preproc"
14550 ac_res=`eval echo '${'$as_ac_Header'}'`
14551 { echo "$as_me:$LINENO: result: $ac_res" >&5
14552 echo "${ECHO_T}$ac_res" >&6; }
14555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14556 cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14566 for ac_header in utime.h windows.h
14568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 ac_res=`eval echo '${'$as_ac_Header'}'`
14576 { echo "$as_me:$LINENO: result: $ac_res" >&5
14577 echo "${ECHO_T}$ac_res" >&6; }
14579 # Is the header compilable?
14580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 $ac_includes_default
14589 #include <$ac_header>
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14606 { (case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_try") 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_try") 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_header_compiler=yes
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14630 ac_header_compiler=no
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14635 echo "${ECHO_T}$ac_header_compiler" >&6; }
14637 # Is the header present?
14638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <$ac_header>
14648 if { (ac_try="$ac_cpp conftest.$ac_ext"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } >/dev/null; then
14661 if test -s conftest.err; then
14662 ac_cpp_err=$ac_c_preproc_warn_flag
14663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14670 if test -z "$ac_cpp_err"; then
14671 ac_header_preproc=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 ac_header_preproc=no
14679 rm -f conftest.err conftest.$ac_ext
14680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14681 echo "${ECHO_T}$ac_header_preproc" >&6; }
14683 # So? What about this header?
14684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14690 ac_header_preproc=yes
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14706 ## ------------------------------ ##
14707 ## Report this to bugs@yourdomain ##
14708 ## ------------------------------ ##
14710 ) | sed "s/^/$as_me: WARNING: /" >&2
14713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 eval "$as_ac_Header=\$ac_header_preproc"
14720 ac_res=`eval echo '${'$as_ac_Header'}'`
14721 { echo "$as_me:$LINENO: result: $ac_res" >&5
14722 echo "${ECHO_T}$ac_res" >&6; }
14725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14726 cat >>confdefs.h <<_ACEOF
14727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14739 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749 { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14752 # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 $ac_includes_default
14762 #include <$ac_header>
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_compile") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } &&
14778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_try") 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; }; then
14798 ac_header_compiler=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_header_compiler=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <$ac_header>
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14843 if test -z "$ac_cpp_err"; then
14844 ac_header_preproc=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_preproc=no
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14879 ## ------------------------------ ##
14880 ## Report this to bugs@yourdomain ##
14881 ## ------------------------------ ##
14883 ) | sed "s/^/$as_me: WARNING: /" >&2
14886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 eval "$as_ac_Header=\$ac_header_preproc"
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14911 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_res=`eval echo '${'$as_ac_Header'}'`
14921 { echo "$as_me:$LINENO: result: $ac_res" >&5
14922 echo "${ECHO_T}$ac_res" >&6; }
14924 # Is the header compilable?
14925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14927 cat >conftest.$ac_ext <<_ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 $ac_includes_default
14934 #include <$ac_header>
14936 rm -f conftest.$ac_objext
14937 if { (ac_try="$ac_compile"
14938 case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_compile") 2>conftest.er1
14945 grep -v '^ *+' conftest.er1 >conftest.err
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14951 { (case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_try") 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
14961 { (case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_try") 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14970 ac_header_compiler=yes
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_header_compiler=no
14978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14980 echo "${ECHO_T}$ac_header_compiler" >&6; }
14982 # Is the header present?
14983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14985 cat >conftest.$ac_ext <<_ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 #include <$ac_header>
14993 if { (ac_try="$ac_cpp conftest.$ac_ext"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15001 grep -v '^ *+' conftest.er1 >conftest.err
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } >/dev/null; then
15006 if test -s conftest.err; then
15007 ac_cpp_err=$ac_c_preproc_warn_flag
15008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15015 if test -z "$ac_cpp_err"; then
15016 ac_header_preproc=yes
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 ac_header_preproc=no
15024 rm -f conftest.err conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026 echo "${ECHO_T}$ac_header_preproc" >&6; }
15028 # So? What about this header?
15029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035 ac_header_preproc=yes
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15051 ## ------------------------------ ##
15052 ## Report this to bugs@yourdomain ##
15053 ## ------------------------------ ##
15055 ) | sed "s/^/$as_me: WARNING: /" >&2
15058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 eval "$as_ac_Header=\$ac_header_preproc"
15065 ac_res=`eval echo '${'$as_ac_Header'}'`
15066 { echo "$as_me:$LINENO: result: $ac_res" >&5
15067 echo "${ECHO_T}$ac_res" >&6; }
15070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15080 for ac_header in valgrind/valgrind.h
15082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 ac_res=`eval echo '${'$as_ac_Header'}'`
15090 { echo "$as_me:$LINENO: result: $ac_res" >&5
15091 echo "${ECHO_T}$ac_res" >&6; }
15093 # Is the header compilable?
15094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15096 cat >conftest.$ac_ext <<_ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 $ac_includes_default
15103 #include <$ac_header>
15105 rm -f conftest.$ac_objext
15106 if { (ac_try="$ac_compile"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_compile") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_header_compiler=yes
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15144 ac_header_compiler=no
15147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6; }
15151 # Is the header present?
15152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 #include <$ac_header>
15162 if { (ac_try="$ac_cpp conftest.$ac_ext"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } >/dev/null; then
15175 if test -s conftest.err; then
15176 ac_cpp_err=$ac_c_preproc_warn_flag
15177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15184 if test -z "$ac_cpp_err"; then
15185 ac_header_preproc=yes
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_header_preproc=no
15193 rm -f conftest.err conftest.$ac_ext
15194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15195 echo "${ECHO_T}$ac_header_preproc" >&6; }
15197 # So? What about this header?
15198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15204 ac_header_preproc=yes
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15220 ## ------------------------------ ##
15221 ## Report this to bugs@yourdomain ##
15222 ## ------------------------------ ##
15224 ) | sed "s/^/$as_me: WARNING: /" >&2
15227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15232 eval "$as_ac_Header=\$ac_header_preproc"
15234 ac_res=`eval echo '${'$as_ac_Header'}'`
15235 { echo "$as_me:$LINENO: result: $ac_res" >&5
15236 echo "${ECHO_T}$ac_res" >&6; }
15239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15240 cat >>confdefs.h <<_ACEOF
15241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15249 for ac_header in fenv.h
15251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 ac_res=`eval echo '${'$as_ac_Header'}'`
15259 { echo "$as_me:$LINENO: result: $ac_res" >&5
15260 echo "${ECHO_T}$ac_res" >&6; }
15262 # Is the header compilable?
15263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 $ac_includes_default
15272 #include <$ac_header>
15274 rm -f conftest.$ac_objext
15275 if { (ac_try="$ac_compile"
15276 case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_compile") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest.$ac_objext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_header_compiler=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_header_compiler=no
15316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15318 echo "${ECHO_T}$ac_header_compiler" >&6; }
15320 # Is the header present?
15321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 #include <$ac_header>
15331 if { (ac_try="$ac_cpp conftest.$ac_ext"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } >/dev/null; then
15344 if test -s conftest.err; then
15345 ac_cpp_err=$ac_c_preproc_warn_flag
15346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15353 if test -z "$ac_cpp_err"; then
15354 ac_header_preproc=yes
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_header_preproc=no
15362 rm -f conftest.err conftest.$ac_ext
15363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15364 echo "${ECHO_T}$ac_header_preproc" >&6; }
15366 # So? What about this header?
15367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15373 ac_header_preproc=yes
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15389 ## ------------------------------ ##
15390 ## Report this to bugs@yourdomain ##
15391 ## ------------------------------ ##
15393 ) | sed "s/^/$as_me: WARNING: /" >&2
15396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 eval "$as_ac_Header=\$ac_header_preproc"
15403 ac_res=`eval echo '${'$as_ac_Header'}'`
15404 { echo "$as_me:$LINENO: result: $ac_res" >&5
15405 echo "${ECHO_T}$ac_res" >&6; }
15408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15409 cat >>confdefs.h <<_ACEOF
15410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15417 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15419 for ac_header in pthread.h
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15432 # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_header_compiler=no
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <$ac_header>
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15523 if test -z "$ac_cpp_err"; then
15524 ac_header_preproc=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_header_preproc=no
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15536 # So? What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543 ac_header_preproc=yes
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15559 ## ------------------------------ ##
15560 ## Report this to bugs@yourdomain ##
15561 ## ------------------------------ ##
15563 ) | sed "s/^/$as_me: WARNING: /" >&2
15566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 eval "$as_ac_Header=\$ac_header_preproc"
15573 ac_res=`eval echo '${'$as_ac_Header'}'`
15574 { echo "$as_me:$LINENO: result: $ac_res" >&5
15575 echo "${ECHO_T}$ac_res" >&6; }
15578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15596 if test "$llvm_cv_enable_libffi" = "yes" ; then
15599 for ac_header in ffi.h ffi/ffi.h
15601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15608 ac_res=`eval echo '${'$as_ac_Header'}'`
15609 { echo "$as_me:$LINENO: result: $ac_res" >&5
15610 echo "${ECHO_T}$ac_res" >&6; }
15612 # Is the header compilable?
15613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15615 cat >conftest.$ac_ext <<_ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 $ac_includes_default
15622 #include <$ac_header>
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_compile") 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15639 { (case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_try") 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
15649 { (case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_try") 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_header_compiler=yes
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 ac_header_compiler=no
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6; }
15670 # Is the header present?
15671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <$ac_header>
15681 if { (ac_try="$ac_cpp conftest.$ac_ext"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } >/dev/null; then
15694 if test -s conftest.err; then
15695 ac_cpp_err=$ac_c_preproc_warn_flag
15696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15703 if test -z "$ac_cpp_err"; then
15704 ac_header_preproc=yes
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_preproc=no
15712 rm -f conftest.err conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6; }
15716 # So? What about this header?
15717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15723 ac_header_preproc=yes
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15739 ## ------------------------------ ##
15740 ## Report this to bugs@yourdomain ##
15741 ## ------------------------------ ##
15743 ) | sed "s/^/$as_me: WARNING: /" >&2
15746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 eval "$as_ac_Header=\$ac_header_preproc"
15753 ac_res=`eval echo '${'$as_ac_Header'}'`
15754 { echo "$as_me:$LINENO: result: $ac_res" >&5
15755 echo "${ECHO_T}$ac_res" >&6; }
15758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15770 for ac_header in CrashReporterClient.h
15772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 ac_res=`eval echo '${'$as_ac_Header'}'`
15780 { echo "$as_me:$LINENO: result: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15783 # Is the header compilable?
15784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15786 cat >conftest.$ac_ext <<_ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 $ac_includes_default
15793 #include <$ac_header>
15795 rm -f conftest.$ac_objext
15796 if { (ac_try="$ac_compile"
15797 case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_compile") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15810 { (case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_try") 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest.$ac_objext'
15820 { (case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_try") 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_header_compiler=yes
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15834 ac_header_compiler=no
15837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15839 echo "${ECHO_T}$ac_header_compiler" >&6; }
15841 # Is the header present?
15842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 #include <$ac_header>
15852 if { (ac_try="$ac_cpp conftest.$ac_ext"
15853 case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } >/dev/null; then
15865 if test -s conftest.err; then
15866 ac_cpp_err=$ac_c_preproc_warn_flag
15867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15874 if test -z "$ac_cpp_err"; then
15875 ac_header_preproc=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894 ac_header_preproc=yes
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15910 ## ------------------------------ ##
15911 ## Report this to bugs@yourdomain ##
15912 ## ------------------------------ ##
15914 ) | sed "s/^/$as_me: WARNING: /" >&2
15917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 eval "$as_ac_Header=\$ac_header_preproc"
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925 { echo "$as_me:$LINENO: result: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15930 cat >>confdefs.h <<_ACEOF
15931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15939 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15940 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 extern const char *__crashreporter_info__;
15949 __crashreporter_info__ = "test";
15954 rm -f conftest.$ac_objext conftest$ac_exeext
15955 if { (ac_try="$ac_link"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_link") 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_try") 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 { echo "$as_me:$LINENO: result: yes" >&5
15989 echo "${ECHO_T}yes" >&6; }
15991 cat >>confdefs.h <<\_ACEOF
15992 #define HAVE_CRASHREPORTER_INFO 1
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 { echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6; }
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_CRASHREPORTER_INFO 0
16008 rm -f core conftest.err conftest.$ac_objext \
16009 conftest$ac_exeext conftest.$ac_ext
16014 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16015 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16016 if test "${ac_cv_huge_val_sanity+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_cpp='$CXXCPP $CPPFLAGS'
16022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16026 ac_save_CXXFLAGS=$CXXFLAGS
16028 if test "$cross_compiling" = yes; then
16029 ac_cv_huge_val_sanity=yes
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16041 double x = HUGE_VAL; return x != x;
16046 rm -f conftest$ac_exeext
16047 if { (ac_try="$ac_link"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_link") 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16057 { (case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_try") 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_cv_huge_val_sanity=yes
16068 echo "$as_me: program exited with status $ac_status" >&5
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ( exit $ac_status )
16073 ac_cv_huge_val_sanity=no
16075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16079 CXXFLAGS=$ac_save_CXXFLAGS
16081 ac_cpp='$CPP $CPPFLAGS'
16082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16089 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16090 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16093 { echo "$as_me:$LINENO: checking for pid_t" >&5
16094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16095 if test "${ac_cv_type_pid_t+set}" = set; then
16096 echo $ECHO_N "(cached) $ECHO_C" >&6
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16105 typedef pid_t ac__type_new_;
16109 if ((ac__type_new_ *) 0)
16111 if (sizeof (ac__type_new_))
16117 rm -f conftest.$ac_objext
16118 if { (ac_try="$ac_compile"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_compile") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; } &&
16141 { ac_try='test -s conftest.$ac_objext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_try") 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_type_pid_t=yes
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 ac_cv_type_pid_t=no
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16162 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16163 if test $ac_cv_type_pid_t = yes; then
16167 cat >>confdefs.h <<_ACEOF
16173 { echo "$as_me:$LINENO: checking for size_t" >&5
16174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16175 if test "${ac_cv_type_size_t+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $ac_includes_default
16185 typedef size_t ac__type_new_;
16189 if ((ac__type_new_ *) 0)
16191 if (sizeof (ac__type_new_))
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_try") 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_cv_type_size_t=yes
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_cv_type_size_t=no
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16243 if test $ac_cv_type_size_t = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define size_t unsigned int
16254 cat >>confdefs.h <<_ACEOF
16255 #define RETSIGTYPE void
16258 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16259 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16260 if test "${ac_cv_struct_tm+set}" = set; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 #include <sys/types.h>
16275 struct tm *tp; tp->tm_sec;
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_compile") 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16295 { (case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_try") 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; } &&
16304 { ac_try='test -s conftest.$ac_objext'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; }; then
16314 ac_cv_struct_tm=time.h
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ac_cv_struct_tm=sys/time.h
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16325 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16326 if test $ac_cv_struct_tm = sys/time.h; then
16328 cat >>confdefs.h <<\_ACEOF
16329 #define TM_IN_SYS_TIME 1
16334 { echo "$as_me:$LINENO: checking for int64_t" >&5
16335 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16336 if test "${ac_cv_type_int64_t+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 typedef int64_t ac__type_new_;
16350 if ((ac__type_new_ *) 0)
16352 if (sizeof (ac__type_new_))
16358 rm -f conftest.$ac_objext
16359 if { (ac_try="$ac_compile"
16360 case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16367 grep -v '^ *+' conftest.er1 >conftest.err
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
16372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16373 { (case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16378 (eval "$ac_try") 2>&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; } &&
16382 { ac_try='test -s conftest.$ac_objext'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 ac_cv_type_int64_t=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_cv_type_int64_t=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16403 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16404 if test $ac_cv_type_int64_t = yes; then
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_INT64_T 1
16412 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16413 echo "$as_me: error: Type int64_t required but not found" >&2;}
16414 { (exit 1); exit 1; }; }
16417 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16418 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16419 if test "${ac_cv_type_uint64_t+set}" = set; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 $ac_includes_default
16429 typedef uint64_t ac__type_new_;
16433 if ((ac__type_new_ *) 0)
16435 if (sizeof (ac__type_new_))
16441 rm -f conftest.$ac_objext
16442 if { (ac_try="$ac_compile"
16443 case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_compile") 2>conftest.er1
16450 grep -v '^ *+' conftest.er1 >conftest.err
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } &&
16455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16456 { (case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_try") 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; } &&
16465 { ac_try='test -s conftest.$ac_objext'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_uint64_t=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_cv_type_uint64_t=no
16483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16486 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16487 if test $ac_cv_type_uint64_t = yes; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_UINT64_T 1
16495 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16496 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16497 if test "${ac_cv_type_u_int64_t+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 cat >conftest.$ac_ext <<_ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 $ac_includes_default
16507 typedef u_int64_t ac__type_new_;
16511 if ((ac__type_new_ *) 0)
16513 if (sizeof (ac__type_new_))
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549 (eval "$ac_try") 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_type_u_int64_t=yes
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_cv_type_u_int64_t=no
16561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16564 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16565 if test $ac_cv_type_u_int64_t = yes; then
16567 cat >>confdefs.h <<_ACEOF
16568 #define HAVE_U_INT64_T 1
16573 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16574 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16575 { (exit 1); exit 1; }; }
16589 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 cat >conftest.$ac_ext <<_ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16605 #define $ac_func innocuous_$ac_func
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func (); below.
16609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610 <limits.h> exists even on freestanding compilers. */
16613 # include <limits.h>
16615 # include <assert.h>
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16627 /* The GNU C library defines this for functions which it implements
16628 to always fail with ENOSYS. Some functions are actually named
16629 something starting with __ and the normal name is an alias. */
16630 #if defined __stub_$ac_func || defined __stub___$ac_func
16637 return $ac_func ();
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_try") 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 eval "$as_ac_var=yes"
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 eval "$as_ac_var=no"
16684 rm -f core conftest.err conftest.$ac_objext \
16685 conftest$ac_exeext conftest.$ac_ext
16687 ac_res=`eval echo '${'$as_ac_var'}'`
16688 { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 if test `eval echo '${'$as_ac_var'}'` = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16702 for ac_func in powf fmodf strtof round
16704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16718 #define $ac_func innocuous_$ac_func
16720 /* System header to define __stub macros and hopefully few prototypes,
16721 which can conflict with char $ac_func (); below.
16722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16723 <limits.h> exists even on freestanding compilers. */
16726 # include <limits.h>
16728 # include <assert.h>
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16740 /* The GNU C library defines this for functions which it implements
16741 to always fail with ENOSYS. Some functions are actually named
16742 something starting with __ and the normal name is an alias. */
16743 #if defined __stub_$ac_func || defined __stub___$ac_func
16750 return $ac_func ();
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (ac_try="$ac_link"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_link") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest$ac_exeext'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 eval "$as_ac_var=yes"
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 eval "$as_ac_var=no"
16797 rm -f core conftest.err conftest.$ac_objext \
16798 conftest$ac_exeext conftest.$ac_ext
16800 ac_res=`eval echo '${'$as_ac_var'}'`
16801 { echo "$as_me:$LINENO: result: $ac_res" >&5
16802 echo "${ECHO_T}$ac_res" >&6; }
16803 if test `eval echo '${'$as_ac_var'}'` = yes; then
16804 cat >>confdefs.h <<_ACEOF
16805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16816 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 cat >conftest.$ac_ext <<_ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16832 #define $ac_func innocuous_$ac_func
16834 /* System header to define __stub macros and hopefully few prototypes,
16835 which can conflict with char $ac_func (); below.
16836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16837 <limits.h> exists even on freestanding compilers. */
16840 # include <limits.h>
16842 # include <assert.h>
16847 /* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16854 /* The GNU C library defines this for functions which it implements
16855 to always fail with ENOSYS. Some functions are actually named
16856 something starting with __ and the normal name is an alias. */
16857 #if defined __stub_$ac_func || defined __stub___$ac_func
16864 return $ac_func ();
16869 rm -f conftest.$ac_objext conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_link") 2>conftest.er1
16878 grep -v '^ *+' conftest.er1 >conftest.err
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 eval "$as_ac_var=yes"
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16908 eval "$as_ac_var=no"
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16914 ac_res=`eval echo '${'$as_ac_var'}'`
16915 { echo "$as_me:$LINENO: result: $ac_res" >&5
16916 echo "${ECHO_T}$ac_res" >&6; }
16917 if test `eval echo '${'$as_ac_var'}'` = yes; then
16918 cat >>confdefs.h <<_ACEOF
16919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16928 for ac_func in isatty mkdtemp mkstemp
16930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944 #define $ac_func innocuous_$ac_func
16946 /* System header to define __stub macros and hopefully few prototypes,
16947 which can conflict with char $ac_func (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
16952 # include <limits.h>
16954 # include <assert.h>
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16966 /* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969 #if defined __stub_$ac_func || defined __stub___$ac_func
16976 return $ac_func ();
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 eval "$as_ac_var=yes"
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 eval "$as_ac_var=no"
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17026 ac_res=`eval echo '${'$as_ac_var'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17029 if test `eval echo '${'$as_ac_var'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17043 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 return $ac_func ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17111 { (case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_try") 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 eval "$as_ac_var=yes"
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 eval "$as_ac_var=no"
17138 rm -f core conftest.err conftest.$ac_objext \
17139 conftest$ac_exeext conftest.$ac_ext
17141 ac_res=`eval echo '${'$as_ac_var'}'`
17142 { echo "$as_me:$LINENO: result: $ac_res" >&5
17143 echo "${ECHO_T}$ac_res" >&6; }
17144 if test `eval echo '${'$as_ac_var'}'` = yes; then
17145 cat >>confdefs.h <<_ACEOF
17146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17155 for ac_func in strerror strerror_r setenv
17157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171 #define $ac_func innocuous_$ac_func
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17179 # include <limits.h>
17181 # include <assert.h>
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined __stub_$ac_func || defined __stub___$ac_func
17203 return $ac_func ();
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 eval "$as_ac_var=yes"
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 eval "$as_ac_var=no"
17250 rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17253 ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255 echo "${ECHO_T}$ac_res" >&6; }
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257 cat >>confdefs.h <<_ACEOF
17258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17268 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17284 #define $ac_func innocuous_$ac_func
17286 /* System header to define __stub macros and hopefully few prototypes,
17287 which can conflict with char $ac_func (); below.
17288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17289 <limits.h> exists even on freestanding compilers. */
17292 # include <limits.h>
17294 # include <assert.h>
17299 /* Override any GCC internal prototype to avoid an error.
17300 Use char because int might match the return type of a GCC
17301 builtin and then its argument prototype would still apply. */
17306 /* The GNU C library defines this for functions which it implements
17307 to always fail with ENOSYS. Some functions are actually named
17308 something starting with __ and the normal name is an alias. */
17309 #if defined __stub_$ac_func || defined __stub___$ac_func
17316 return $ac_func ();
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_link") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest$ac_exeext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 eval "$as_ac_var=yes"
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 eval "$as_ac_var=no"
17363 rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17366 ac_res=`eval echo '${'$as_ac_var'}'`
17367 { echo "$as_me:$LINENO: result: $ac_res" >&5
17368 echo "${ECHO_T}$ac_res" >&6; }
17369 if test `eval echo '${'$as_ac_var'}'` = yes; then
17370 cat >>confdefs.h <<_ACEOF
17371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17382 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17398 #define $ac_func innocuous_$ac_func
17400 /* System header to define __stub macros and hopefully few prototypes,
17401 which can conflict with char $ac_func (); below.
17402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17403 <limits.h> exists even on freestanding compilers. */
17406 # include <limits.h>
17408 # include <assert.h>
17413 /* Override any GCC internal prototype to avoid an error.
17414 Use char because int might match the return type of a GCC
17415 builtin and then its argument prototype would still apply. */
17420 /* The GNU C library defines this for functions which it implements
17421 to always fail with ENOSYS. Some functions are actually named
17422 something starting with __ and the normal name is an alias. */
17423 #if defined __stub_$ac_func || defined __stub___$ac_func
17430 return $ac_func ();
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 eval "$as_ac_var=yes"
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 eval "$as_ac_var=no"
17477 rm -f core conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17480 ac_res=`eval echo '${'$as_ac_var'}'`
17481 { echo "$as_me:$LINENO: result: $ac_res" >&5
17482 echo "${ECHO_T}$ac_res" >&6; }
17483 if test `eval echo '${'$as_ac_var'}'` = yes; then
17484 cat >>confdefs.h <<_ACEOF
17485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17491 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17492 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17493 if test "${llvm_cv_c_printf_a+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 ac_cpp='$CPP $CPPFLAGS'
17498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17502 if test "$cross_compiling" = yes; then
17503 llvmac_cv_c_printf_a=no
17505 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17514 #include <stdlib.h>
17520 volatile double A, B;
17524 sprintf(Buffer, "%a", A);
17528 if (A != 0x1.999999999999ap-4)
17535 rm -f conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_link") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546 { (case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_try") 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 llvm_cv_c_printf_a=yes
17557 echo "$as_me: program exited with status $ac_status" >&5
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ( exit $ac_status )
17562 llvmac_cv_c_printf_a=no
17564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17569 ac_cpp='$CPP $CPPFLAGS'
17570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17575 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17576 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17577 if test "$llvm_cv_c_printf_a" = "yes"; then
17579 cat >>confdefs.h <<\_ACEOF
17580 #define HAVE_PRINTF_A 1
17586 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17587 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17588 if test "${ac_cv_func_rand48+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 ac_cpp='$CXXCPP $CPPFLAGS'
17593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <stdlib.h>
17607 srand48(0);lrand48();drand48();
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_rand48=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_func_rand48=no
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17656 ac_cpp='$CPP $CPPFLAGS'
17657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17662 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17663 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17665 if test "$ac_cv_func_rand48" = "yes" ; then
17667 cat >>confdefs.h <<\_ACEOF
17668 #define HAVE_RAND48 1
17674 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17675 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17676 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 $ac_includes_default
17690 char *p = (char *) strerror_s;
17698 rm -f conftest.$ac_objext
17699 if { (ac_try="$ac_compile"
17700 case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_compile") 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_have_decl_strerror_s=yes
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_have_decl_strerror_s=no
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17742 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17743 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17744 if test $ac_cv_have_decl_strerror_s = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define HAVE_DECL_STRERROR_S 1
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_DECL_STRERROR_S 0
17761 if test "$llvm_cv_os_type" = "MingW" ; then
17762 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17763 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17764 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_check_lib_save_LIBS=$LIBS
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17776 /* Override any GCC internal prototype to avoid an error.
17777 Use char because int might match the return type of a GCC
17778 builtin and then its argument prototype would still apply. */
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_link") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_lib_gcc__alloca=yes
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_cv_lib_gcc__alloca=no
17833 rm -f core conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
17835 LIBS=$ac_check_lib_save_LIBS
17837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17838 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17839 if test $ac_cv_lib_gcc__alloca = yes; then
17841 cat >>confdefs.h <<\_ACEOF
17842 #define HAVE__ALLOCA 1
17847 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17848 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17849 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_check_lib_save_LIBS=$LIBS
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17871 return __alloca ();
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891 { (case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_try") 2>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest$ac_exeext'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; }; then
17910 ac_cv_lib_gcc___alloca=yes
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_cv_lib_gcc___alloca=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17923 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17924 if test $ac_cv_lib_gcc___alloca = yes; then
17926 cat >>confdefs.h <<\_ACEOF
17927 #define HAVE___ALLOCA 1
17932 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17933 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17934 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 ac_check_lib_save_LIBS=$LIBS
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17956 return __chkstk ();
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_link") 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17976 { (case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_try") 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; }; then
17995 ac_cv_lib_gcc___chkstk=yes
17997 echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
18000 ac_cv_lib_gcc___chkstk=no
18003 rm -f core conftest.err conftest.$ac_objext \
18004 conftest$ac_exeext conftest.$ac_ext
18005 LIBS=$ac_check_lib_save_LIBS
18007 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18008 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18009 if test $ac_cv_lib_gcc___chkstk = yes; then
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE___CHKSTK 1
18017 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18018 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18019 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18020 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 ac_check_lib_save_LIBS=$LIBS
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18031 /* Override any GCC internal prototype to avoid an error.
18032 Use char because int might match the return type of a GCC
18033 builtin and then its argument prototype would still apply. */
18041 return ___chkstk ();
18046 rm -f conftest.$ac_objext conftest$ac_exeext
18047 if { (ac_try="$ac_link"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_link") 2>conftest.er1
18055 grep -v '^ *+' conftest.er1 >conftest.err
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } &&
18060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest$ac_exeext'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_lib_gcc____chkstk=yes
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_gcc____chkstk=no
18088 rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18093 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18094 if test $ac_cv_lib_gcc____chkstk = yes; then
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE____CHKSTK 1
18103 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18104 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18105 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_check_lib_save_LIBS=$LIBS
18110 cat >conftest.$ac_ext <<_ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18117 /* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18127 return __ashldi3 ();
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (ac_try="$ac_link"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_lib_gcc___ashldi3=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_lib_gcc___ashldi3=no
18174 rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18179 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18180 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE___ASHLDI3 1
18188 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18189 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18190 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 ac_check_lib_save_LIBS=$LIBS
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18202 /* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18212 return __ashrdi3 ();
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_lib_gcc___ashrdi3=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_cv_lib_gcc___ashrdi3=no
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18264 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18265 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE___ASHRDI3 1
18273 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18274 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18275 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 ac_check_lib_save_LIBS=$LIBS
18280 cat >conftest.$ac_ext <<_ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18297 return __divdi3 ();
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (ac_try="$ac_link"
18304 case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_link") 2>conftest.er1
18311 grep -v '^ *+' conftest.er1 >conftest.err
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest$ac_exeext'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_lib_gcc___divdi3=yes
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_lib_gcc___divdi3=no
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18349 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18350 if test $ac_cv_lib_gcc___divdi3 = yes; then
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE___DIVDI3 1
18358 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18359 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18360 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 ac_check_lib_save_LIBS=$LIBS
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18382 return __fixdfdi ();
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_link") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402 { (case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_try") 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_lib_gcc___fixdfdi=yes
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_cv_lib_gcc___fixdfdi=no
18429 rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18434 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18435 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE___FIXDFDI 1
18443 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18444 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18445 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18448 ac_check_lib_save_LIBS=$LIBS
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18457 /* Override any GCC internal prototype to avoid an error.
18458 Use char because int might match the return type of a GCC
18459 builtin and then its argument prototype would still apply. */
18467 return __fixsfdi ();
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_link") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_lib_gcc___fixsfdi=yes
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_cv_lib_gcc___fixsfdi=no
18514 rm -f core conftest.err conftest.$ac_objext \
18515 conftest$ac_exeext conftest.$ac_ext
18516 LIBS=$ac_check_lib_save_LIBS
18518 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18519 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18520 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18522 cat >>confdefs.h <<\_ACEOF
18523 #define HAVE___FIXSFDI 1
18528 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18529 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18530 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 ac_check_lib_save_LIBS=$LIBS
18535 cat >conftest.$ac_ext <<_ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18542 /* Override any GCC internal prototype to avoid an error.
18543 Use char because int might match the return type of a GCC
18544 builtin and then its argument prototype would still apply. */
18548 char __floatdidf ();
18552 return __floatdidf ();
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (ac_try="$ac_link"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_link") 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18572 { (case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_try") 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_gcc___floatdidf=yes
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_cv_lib_gcc___floatdidf=no
18599 rm -f core conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
18601 LIBS=$ac_check_lib_save_LIBS
18603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18604 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18605 if test $ac_cv_lib_gcc___floatdidf = yes; then
18607 cat >>confdefs.h <<\_ACEOF
18608 #define HAVE___FLOATDIDF 1
18613 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18614 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18615 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 ac_check_lib_save_LIBS=$LIBS
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18627 /* Override any GCC internal prototype to avoid an error.
18628 Use char because int might match the return type of a GCC
18629 builtin and then its argument prototype would still apply. */
18637 return __lshrdi3 ();
18642 rm -f conftest.$ac_objext conftest$ac_exeext
18643 if { (ac_try="$ac_link"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_link") 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } &&
18656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18657 { (case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_try") 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_try") 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_cv_lib_gcc___lshrdi3=yes
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_cv_lib_gcc___lshrdi3=no
18684 rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18689 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18690 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE___LSHRDI3 1
18698 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18699 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18700 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 ac_check_lib_save_LIBS=$LIBS
18705 cat >conftest.$ac_ext <<_ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h. */
18712 /* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
18722 return __moddi3 ();
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (ac_try="$ac_link"
18729 case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_link") 2>conftest.er1
18736 grep -v '^ *+' conftest.er1 >conftest.err
18738 cat conftest.err >&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); } &&
18741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest$ac_exeext'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_lib_gcc___moddi3=yes
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_cv_lib_gcc___moddi3=no
18769 rm -f core conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18771 LIBS=$ac_check_lib_save_LIBS
18773 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18774 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18775 if test $ac_cv_lib_gcc___moddi3 = yes; then
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE___MODDI3 1
18783 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18784 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18785 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 ac_check_lib_save_LIBS=$LIBS
18790 cat >conftest.$ac_ext <<_ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18807 return __udivdi3 ();
18812 rm -f conftest.$ac_objext conftest$ac_exeext
18813 if { (ac_try="$ac_link"
18814 case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_link") 2>conftest.er1
18821 grep -v '^ *+' conftest.er1 >conftest.err
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18827 { (case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_try") 2>&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); }; } &&
18836 { ac_try='test -s conftest$ac_exeext'
18837 { (case "(($ac_try" in
18838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18839 *) ac_try_echo=$ac_try;;
18841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18842 (eval "$ac_try") 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; }; then
18846 ac_cv_lib_gcc___udivdi3=yes
18848 echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18851 ac_cv_lib_gcc___udivdi3=no
18854 rm -f core conftest.err conftest.$ac_objext \
18855 conftest$ac_exeext conftest.$ac_ext
18856 LIBS=$ac_check_lib_save_LIBS
18858 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18859 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18860 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18862 cat >>confdefs.h <<\_ACEOF
18863 #define HAVE___UDIVDI3 1
18868 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18869 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18870 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 ac_check_lib_save_LIBS=$LIBS
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18892 return __umoddi3 ();
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18906 grep -v '^ *+' conftest.er1 >conftest.err
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest$ac_exeext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_lib_gcc___umoddi3=yes
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_cv_lib_gcc___umoddi3=no
18939 rm -f core conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18941 LIBS=$ac_check_lib_save_LIBS
18943 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18944 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18945 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18947 cat >>confdefs.h <<\_ACEOF
18948 #define HAVE___UMODDI3 1
18954 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18955 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc___main+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 ac_check_lib_save_LIBS=$LIBS
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18968 /* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gcc___main=yes
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_cv_lib_gcc___main=no
19025 rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19031 if test $ac_cv_lib_gcc___main = yes; then
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE___MAIN 1
19039 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19040 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_check_lib_save_LIBS=$LIBS
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19053 /* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19063 return __cmpdi2 ();
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest$ac_exeext'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_cv_lib_gcc___cmpdi2=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_cv_lib_gcc___cmpdi2=no
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19116 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___CMPDI2 1
19126 if test "$llvm_cv_os_type" = "MingW" ; then
19127 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19128 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19129 cat >conftest.$ac_ext <<_ACEOF
19130 #include <windows.h>
19131 #include <imagehlp.h>
19132 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19133 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19135 rm -f conftest.$ac_objext
19136 if { (ac_try="$ac_compile"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_compile") 2>conftest.er1
19144 grep -v '^ *+' conftest.er1 >conftest.err
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
19149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19150 { (case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19155 (eval "$ac_try") 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_try") 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19170 { echo "$as_me:$LINENO: result: yes" >&5
19171 echo "${ECHO_T}yes" >&6; }
19172 llvm_cv_win32_elmcb_pcstr="PCSTR"
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19179 { echo "$as_me:$LINENO: result: no" >&5
19180 echo "${ECHO_T}no" >&6; }
19181 llvm_cv_win32_elmcb_pcstr="PSTR"
19185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19187 cat >>confdefs.h <<_ACEOF
19188 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19194 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19195 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_func_isnan_in_math_h=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_func_isnan_in_math_h=no
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19271 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19274 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19276 cat >>confdefs.h <<\_ACEOF
19277 #define HAVE_ISNAN_IN_MATH_H 1
19282 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19283 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19284 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19308 rm -f conftest.$ac_objext
19309 if { (ac_try="$ac_compile"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_compile") 2>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_func_isnan_in_cmath=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_func_isnan_in_cmath=no
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19359 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19361 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_ISNAN_IN_CMATH 1
19369 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19370 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19390 float f; std::isnan(f);
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_func_std_isnan_in_cmath=yes
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_func_std_isnan_in_cmath=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19446 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19448 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_STD_ISNAN_IN_CMATH 1
19457 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19458 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19459 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_cpp='$CXXCPP $CPPFLAGS'
19464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19468 cat >conftest.$ac_ext <<_ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19483 rm -f conftest.$ac_objext
19484 if { (ac_try="$ac_compile"
19485 case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_compile") 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498 { (case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503 (eval "$ac_try") 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_try") 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; }; then
19517 ac_cv_func_isinf_in_math_h=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_func_isinf_in_math_h=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19534 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19536 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_ISINF_IN_MATH_H 1
19544 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19545 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_compile") 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
19584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585 { (case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_try") 2>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
19595 { (case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_try") 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_func_isinf_in_cmath=yes
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_cv_func_isinf_in_cmath=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19621 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19623 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_ISINF_IN_CMATH 1
19631 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19632 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19633 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 ac_cpp='$CXXCPP $CPPFLAGS'
19638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19652 float f; std::isinf(f)}
19657 rm -f conftest.$ac_objext
19658 if { (ac_try="$ac_compile"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_compile") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19672 { (case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_try") 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } &&
19681 { ac_try='test -s conftest.$ac_objext'
19682 { (case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_try") 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 ac_cv_func_std_isinf_in_cmath=yes
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19696 ac_cv_func_std_isinf_in_cmath=no
19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 ac_cpp='$CPP $CPPFLAGS'
19702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19707 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19708 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19710 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE_STD_ISINF_IN_CMATH 1
19718 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19719 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19720 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_cpp='$CXXCPP $CPPFLAGS'
19725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729 cat >conftest.$ac_ext <<_ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #include <ieeefp.h>
19739 float f; finite(f);
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } &&
19758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19759 { (case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_try") 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest.$ac_objext'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; }; then
19778 ac_cv_func_finite_in_ieeefp_h=yes
19780 echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19783 ac_cv_func_finite_in_ieeefp_h=no
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788 ac_cpp='$CPP $CPPFLAGS'
19789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19794 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19795 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19797 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19799 cat >>confdefs.h <<\_ACEOF
19800 #define HAVE_FINITE_IN_IEEEFP_H 1
19807 if test "$llvm_cv_platform_type" = "Unix" ; then
19810 for ac_header in stdlib.h unistd.h
19812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 ac_res=`eval echo '${'$as_ac_Header'}'`
19820 { echo "$as_me:$LINENO: result: $ac_res" >&5
19821 echo "${ECHO_T}$ac_res" >&6; }
19823 # Is the header compilable?
19824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19826 cat >conftest.$ac_ext <<_ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19833 #include <$ac_header>
19835 rm -f conftest.$ac_objext
19836 if { (ac_try="$ac_compile"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19850 { (case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_try") 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_header_compiler=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_header_compiler=no
19877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19879 echo "${ECHO_T}$ac_header_compiler" >&6; }
19881 # Is the header present?
19882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 #include <$ac_header>
19892 if { (ac_try="$ac_cpp conftest.$ac_ext"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } >/dev/null; then
19905 if test -s conftest.err; then
19906 ac_cpp_err=$ac_c_preproc_warn_flag
19907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19914 if test -z "$ac_cpp_err"; then
19915 ac_header_preproc=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_preproc=no
19923 rm -f conftest.err conftest.$ac_ext
19924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19925 echo "${ECHO_T}$ac_header_preproc" >&6; }
19927 # So? What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19934 ac_header_preproc=yes
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19950 ## ------------------------------ ##
19951 ## Report this to bugs@yourdomain ##
19952 ## ------------------------------ ##
19954 ) | sed "s/^/$as_me: WARNING: /" >&2
19957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 eval "$as_ac_Header=\$ac_header_preproc"
19964 ac_res=`eval echo '${'$as_ac_Header'}'`
19965 { echo "$as_me:$LINENO: result: $ac_res" >&5
19966 echo "${ECHO_T}$ac_res" >&6; }
19969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19979 for ac_func in getpagesize
19981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 cat >conftest.$ac_ext <<_ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19995 #define $ac_func innocuous_$ac_func
19997 /* System header to define __stub macros and hopefully few prototypes,
19998 which can conflict with char $ac_func (); below.
19999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20000 <limits.h> exists even on freestanding compilers. */
20003 # include <limits.h>
20005 # include <assert.h>
20010 /* Override any GCC internal prototype to avoid an error.
20011 Use char because int might match the return type of a GCC
20012 builtin and then its argument prototype would still apply. */
20017 /* The GNU C library defines this for functions which it implements
20018 to always fail with ENOSYS. Some functions are actually named
20019 something starting with __ and the normal name is an alias. */
20020 #if defined __stub_$ac_func || defined __stub___$ac_func
20027 return $ac_func ();
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (ac_try="$ac_link"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_link") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest$ac_exeext'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 eval "$as_ac_var=yes"
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 eval "$as_ac_var=no"
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20077 ac_res=`eval echo '${'$as_ac_var'}'`
20078 { echo "$as_me:$LINENO: result: $ac_res" >&5
20079 echo "${ECHO_T}$ac_res" >&6; }
20080 if test `eval echo '${'$as_ac_var'}'` = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20088 { echo "$as_me:$LINENO: checking for working mmap" >&5
20089 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20090 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 if test "$cross_compiling" = yes; then
20094 ac_cv_func_mmap_fixed_mapped=no
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 $ac_includes_default
20103 /* malloc might have been renamed as rpl_malloc. */
20106 /* Thanks to Mike Haertel and Jim Avera for this test.
20107 Here is a matrix of mmap possibilities:
20108 mmap private not fixed
20109 mmap private fixed at somewhere currently unmapped
20110 mmap private fixed at somewhere already mapped
20111 mmap shared not fixed
20112 mmap shared fixed at somewhere currently unmapped
20113 mmap shared fixed at somewhere already mapped
20114 For private mappings, we should verify that changes cannot be read()
20115 back from the file, nor mmap's back from the file at a different
20116 address. (There have been systems where private was not correctly
20117 implemented like the infamous i386 svr4.0, and systems where the
20118 VM page cache was not coherent with the file system buffer cache
20119 like early versions of FreeBSD and possibly contemporary NetBSD.)
20120 For shared mappings, we should conversely verify that changes get
20121 propagated back to all the places they're supposed to be.
20123 Grep wants private fixed already mapped.
20124 The main things grep needs to know about mmap are:
20125 * does it exist and is it safe to write into the mmap'd area
20126 * how to use it (BSD variants) */
20129 #include <sys/mman.h>
20131 #if !STDC_HEADERS && !HAVE_STDLIB_H
20135 /* This mess was copied from the GNU getpagesize.h. */
20136 #if !HAVE_GETPAGESIZE
20137 /* Assume that all systems that can run configure have sys/param.h. */
20138 # if !HAVE_SYS_PARAM_H
20139 # define HAVE_SYS_PARAM_H 1
20142 # ifdef _SC_PAGESIZE
20143 # define getpagesize() sysconf(_SC_PAGESIZE)
20144 # else /* no _SC_PAGESIZE */
20145 # if HAVE_SYS_PARAM_H
20146 # include <sys/param.h>
20147 # ifdef EXEC_PAGESIZE
20148 # define getpagesize() EXEC_PAGESIZE
20149 # else /* no EXEC_PAGESIZE */
20151 # define getpagesize() NBPG * CLSIZE
20154 # endif /* no CLSIZE */
20155 # else /* no NBPG */
20157 # define getpagesize() NBPC
20158 # else /* no NBPC */
20160 # define getpagesize() PAGESIZE
20161 # endif /* PAGESIZE */
20162 # endif /* no NBPC */
20163 # endif /* no NBPG */
20164 # endif /* no EXEC_PAGESIZE */
20165 # else /* no HAVE_SYS_PARAM_H */
20166 # define getpagesize() 8192 /* punt totally */
20167 # endif /* no HAVE_SYS_PARAM_H */
20168 # endif /* no _SC_PAGESIZE */
20170 #endif /* no HAVE_GETPAGESIZE */
20175 char *data, *data2, *data3;
20179 pagesize = getpagesize ();
20181 /* First, make a file with some known garbage in it. */
20182 data = (char *) malloc (pagesize);
20185 for (i = 0; i < pagesize; ++i)
20186 *(data + i) = rand ();
20188 fd = creat ("conftest.mmap", 0600);
20191 if (write (fd, data, pagesize) != pagesize)
20195 /* Next, try to mmap the file at a fixed address which already has
20196 something else allocated at it. If we can, also make sure that
20197 we see the same garbage. */
20198 fd = open ("conftest.mmap", O_RDWR);
20201 data2 = (char *) malloc (2 * pagesize);
20204 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20205 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20206 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20208 for (i = 0; i < pagesize; ++i)
20209 if (*(data + i) != *(data2 + i))
20212 /* Finally, make sure that changes to the mapped area do not
20213 percolate back to the file as seen by read(). (This is a bug on
20214 some variants of i386 svr4.0.) */
20215 for (i = 0; i < pagesize; ++i)
20216 *(data2 + i) = *(data2 + i) + 1;
20217 data3 = (char *) malloc (pagesize);
20220 if (read (fd, data3, pagesize) != pagesize)
20222 for (i = 0; i < pagesize; ++i)
20223 if (*(data + i) != *(data3 + i))
20229 rm -f conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20240 { (case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_try") 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_func_mmap_fixed_mapped=yes
20251 echo "$as_me: program exited with status $ac_status" >&5
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ( exit $ac_status )
20256 ac_cv_func_mmap_fixed_mapped=no
20258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20263 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20264 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20265 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20267 cat >>confdefs.h <<\_ACEOF
20268 #define HAVE_MMAP 1
20272 rm -f conftest.mmap
20274 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20275 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20276 if test "${ac_cv_func_mmap_file+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 ac_cpp='$CPP $CPPFLAGS'
20281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285 if test "$cross_compiling" = yes; then
20286 ac_cv_func_mmap_file=no
20288 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/mman.h>
20305 fd = creat ("foo",0777);
20306 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20308 return (fd != (int) MAP_FAILED);
20313 rm -f conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_link") 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_func_mmap_file=yes
20335 echo "$as_me: program exited with status $ac_status" >&5
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ( exit $ac_status )
20340 ac_cv_func_mmap_file=no
20342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20347 ac_cpp='$CPP $CPPFLAGS'
20348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20355 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20356 if test "$ac_cv_func_mmap_file" = yes; then
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_MMAP_FILE
20366 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20367 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20368 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20371 if test "$llvm_cv_os_type" = "Interix" ; then
20372 ac_cv_need_dev_zero_for_mmap=yes
20374 ac_cv_need_dev_zero_for_mmap=no
20378 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20379 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20380 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20382 cat >>confdefs.h <<\_ACEOF
20383 #define NEED_DEV_ZERO_FOR_MMAP 1
20388 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20390 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20391 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20393 if test "$ac_cv_func_mmap_file" = "no"
20395 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20396 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20400 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20401 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20403 ac_cpp='$CXXCPP $CPPFLAGS'
20404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 volatile unsigned long val = 1;
20416 __sync_synchronize();
20417 __sync_val_compare_and_swap(&val, 1, 0);
20418 __sync_add_and_fetch(&val, 1);
20419 __sync_sub_and_fetch(&val, 1);
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_link") 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20439 { (case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_try") 2>&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try='test -s conftest$ac_exeext'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20459 ac_cpp='$CPP $CPPFLAGS'
20460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20464 { echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6; }
20467 cat >>confdefs.h <<\_ACEOF
20468 #define LLVM_HAS_ATOMICS 1
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 { echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6; }
20478 cat >>confdefs.h <<\_ACEOF
20479 #define LLVM_HAS_ATOMICS 0
20482 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20483 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20486 rm -f core conftest.err conftest.$ac_objext \
20487 conftest$ac_exeext conftest.$ac_ext
20490 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20491 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20492 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20493 if test "${llvm_cv_linux_mixed+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 ac_cpp='$CPP $CPPFLAGS'
20498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502 cat >conftest.$ac_ext <<_ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20509 error: Not x86-64 even if uname says so!
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 llvm_cv_linux_mixed=no
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 llvm_cv_linux_mixed=yes
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 ac_cpp='$CPP $CPPFLAGS'
20565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20572 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20574 if test "$llvm_cv_linux_mixed" = "yes"; then
20575 llvm_cv_target_arch="x86"
20581 for ac_func in __dso_handle
20583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20597 #define $ac_func innocuous_$ac_func
20599 /* System header to define __stub macros and hopefully few prototypes,
20600 which can conflict with char $ac_func (); below.
20601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20602 <limits.h> exists even on freestanding compilers. */
20605 # include <limits.h>
20607 # include <assert.h>
20612 /* Override any GCC internal prototype to avoid an error.
20613 Use char because int might match the return type of a GCC
20614 builtin and then its argument prototype would still apply. */
20619 /* The GNU C library defines this for functions which it implements
20620 to always fail with ENOSYS. Some functions are actually named
20621 something starting with __ and the normal name is an alias. */
20622 #if defined __stub_$ac_func || defined __stub___$ac_func
20629 return $ac_func ();
20634 rm -f conftest.$ac_objext conftest$ac_exeext
20635 if { (ac_try="$ac_link"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_link") 2>conftest.er1
20643 grep -v '^ *+' conftest.er1 >conftest.err
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest$ac_exeext'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; }; then
20668 eval "$as_ac_var=yes"
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20673 eval "$as_ac_var=no"
20676 rm -f core conftest.err conftest.$ac_objext \
20677 conftest$ac_exeext conftest.$ac_ext
20679 ac_res=`eval echo '${'$as_ac_var'}'`
20680 { echo "$as_me:$LINENO: result: $ac_res" >&5
20681 echo "${ECHO_T}$ac_res" >&6; }
20682 if test `eval echo '${'$as_ac_var'}'` = yes; then
20683 cat >>confdefs.h <<_ACEOF
20684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20691 SHLIBEXT=$libltdl_cv_shlibext
20694 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20697 # Translate the various configuration directories and other basic
20698 # information into substitutions that will end up in Makefile.config.in
20699 # that these configured values can be used by the makefiles
20700 if test "${prefix}" = "NONE" ; then
20701 prefix="/usr/local"
20703 eval LLVM_PREFIX="${prefix}";
20704 eval LLVM_BINDIR="${prefix}/bin";
20705 eval LLVM_LIBDIR="${prefix}/lib";
20706 eval LLVM_DATADIR="${prefix}/share/llvm";
20707 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20708 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20709 eval LLVM_INCLUDEDIR="${prefix}/include";
20710 eval LLVM_INFODIR="${prefix}/info";
20711 eval LLVM_MANDIR="${prefix}/man";
20712 LLVM_CONFIGTIME=`date`
20724 # Place the various directores into the config.h file as #defines so that we
20725 # can know about the installation paths within LLVM.
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_PREFIX "$LLVM_PREFIX"
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_BINDIR "$LLVM_BINDIR"
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_DATADIR "$LLVM_DATADIR"
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_INFODIR "$LLVM_INFODIR"
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_MANDIR "$LLVM_MANDIR"
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20782 # Determine which bindings to build.
20783 if test "$BINDINGS_TO_BUILD" = auto ; then
20784 BINDINGS_TO_BUILD=""
20785 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20786 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20789 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20792 # This isn't really configurey, but it avoids having to repeat the list in
20797 # Do any work necessary to ensure that bindings have what they need.
20798 binding_prereqs_failed=0
20799 for a_binding in $BINDINGS_TO_BUILD ; do
20800 case "$a_binding" in
20802 if test "x$OCAMLC" = x ; then
20803 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20805 binding_prereqs_failed=1
20807 if test "x$OCAMLDEP" = x ; then
20808 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20809 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20810 binding_prereqs_failed=1
20812 if test "x$OCAMLOPT" = x ; then
20813 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20814 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20816 if test "x$with_ocaml_libdir" != xauto ; then
20817 OCAML_LIBDIR=$with_ocaml_libdir
20820 ocaml_stdlib="`"$OCAMLC" -where`"
20821 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20823 # ocaml stdlib is beneath our prefix; use stdlib
20824 OCAML_LIBDIR=$ocaml_stdlib
20827 # ocaml stdlib is outside our prefix; use libdir/ocaml
20828 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20835 if test "$binding_prereqs_failed" = 1 ; then
20836 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20837 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20838 { (exit 1); exit 1; }; }
20841 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20842 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20843 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_cpp='$CXXCPP $CPPFLAGS'
20848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20852 oldcxxflags="$CXXFLAGS"
20853 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20884 { (case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_try") 2>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_try") 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903 llvm_cv_cxx_visibility_inlines_hidden=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 llvm_cv_cxx_visibility_inlines_hidden=no
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 CXXFLAGS="$oldcxxflags"
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20922 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20923 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20924 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20927 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20932 if test "$llvm_cv_link_use_r" = "yes" ; then
20939 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20940 RDYNAMIC="-Wl,-export-dynamic"
20948 ac_config_files="$ac_config_files Makefile.common"
20950 ac_config_files="$ac_config_files Makefile.llvm.config"
20953 ac_config_commands="$ac_config_commands Makefile"
20956 ac_config_commands="$ac_config_commands lib/Makefile"
20959 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20962 ac_config_commands="$ac_config_commands tools/Makefile"
20965 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20969 cat >confcache <<\_ACEOF
20970 # This file is a shell script that caches the results of configure
20971 # tests run on this system so they can be shared between configure
20972 # scripts and configure runs, see configure's option --config-cache.
20973 # It is not useful on other systems. If it contains results you don't
20974 # want to keep, you may remove or edit it.
20976 # config.status only pays attention to the cache file if you give it
20977 # the --recheck option to rerun configure.
20979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20981 # following values.
20985 # The following way of writing the cache mishandles newlines in values,
20986 # but we know of no workaround that is simple, portable, and efficient.
20987 # So, we kill variables containing newlines.
20988 # Ultrix sh set writes to stderr and can't be redirected directly,
20989 # and sets the high bit in the cache file unless we assign to the vars.
20991 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20992 eval ac_val=\$$ac_var
20996 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20997 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21000 _ | IFS | as_nl) ;; #(
21001 *) $as_unset $ac_var ;;
21007 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21008 *${as_nl}ac_space=\ *)
21009 # `set' does not quote correctly, so add quotes (double-quote
21010 # substitution turns \\\\ into \\, and sed turns \\ into \).
21013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21016 # `set' quotes correctly as required by POSIX, so do not add quotes.
21017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21030 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21031 if test -w "$cache_file"; then
21032 test "x$cache_file" != "x/dev/null" &&
21033 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21034 echo "$as_me: updating cache $cache_file" >&6;}
21035 cat confcache >$cache_file
21037 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21038 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21044 # Let make expand exec_prefix.
21045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21047 # Transform confdefs.h into DEFS.
21048 # Protect against shell expansion while executing Makefile rules.
21049 # Protect against Makefile macro expansion.
21051 # If the first sed substitution is executed (which looks for macros that
21052 # take arguments), then branch to the quote section. Otherwise,
21053 # look for a macro that doesn't take arguments.
21057 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21059 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21063 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21076 DEFS=`sed -n "$ac_script" confdefs.h`
21081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21082 # 1. Remove the extension, and $U if already installed.
21083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21084 ac_i=`echo "$ac_i" | sed "$ac_script"`
21085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21086 # will be set to the directory where LIBOBJS objects are built.
21087 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21088 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21090 LIBOBJS=$ac_libobjs
21092 LTLIBOBJS=$ac_ltlibobjs
21095 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21096 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21097 Usually this means the macro was only invoked conditionally." >&5
21098 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&2;}
21100 { (exit 1); exit 1; }; }
21102 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21103 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21104 Usually this means the macro was only invoked conditionally." >&5
21105 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21106 Usually this means the macro was only invoked conditionally." >&2;}
21107 { (exit 1); exit 1; }; }
21110 : ${CONFIG_STATUS=./config.status}
21111 ac_clean_files_save=$ac_clean_files
21112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21113 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21114 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21115 cat >$CONFIG_STATUS <<_ACEOF
21117 # Generated by $as_me.
21118 # Run this file to recreate the current configuration.
21119 # Compiler output produced by configure, useful for debugging
21120 # configure, is in config.log if it exists.
21123 ac_cs_recheck=false
21125 SHELL=\${CONFIG_SHELL-$SHELL}
21128 cat >>$CONFIG_STATUS <<\_ACEOF
21129 ## --------------------- ##
21130 ## M4sh Initialization. ##
21131 ## --------------------- ##
21133 # Be Bourne compatible
21134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21137 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21138 # is contrary to our usage. Disable this feature.
21139 alias -g '${1+"$@"}'='"$@"'
21140 setopt NO_GLOB_SUBST
21142 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21144 BIN_SH=xpg4; export BIN_SH # for Tru64
21145 DUALCASE=1; export DUALCASE # for MKS sh
21149 # Avoid depending upon Character Ranges.
21150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21153 as_cr_digits='0123456789'
21154 as_cr_alnum=$as_cr_Letters$as_cr_digits
21156 # The user is always right.
21157 if test "${PATH_SEPARATOR+set}" != set; then
21158 echo "#! /bin/sh" >conf$$.sh
21159 echo "exit 0" >>conf$$.sh
21161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21169 # Support unset when possible.
21170 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21178 # We need space, tab and new line, in precisely that order. Quoting is
21179 # there to prevent editors from complaining about space-tab.
21180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21181 # splitting by setting IFS to empty value.)
21186 # Find who we are. Look in the path if we contain no directory separator.
21188 *[\\/]* ) as_myself=$0 ;;
21189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21190 for as_dir in $PATH
21193 test -z "$as_dir" && as_dir=.
21194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21200 # We did not find ourselves, most probably we were run as `sh COMMAND'
21201 # in which case we are not to be found in the path.
21202 if test "x$as_myself" = x; then
21205 if test ! -f "$as_myself"; then
21206 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21207 { (exit 1); exit 1; }
21210 # Work around bugs in pre-3.0 UWIN ksh.
21211 for as_var in ENV MAIL MAILPATH
21212 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21220 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21221 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21222 LC_TELEPHONE LC_TIME
21224 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21225 eval $as_var=C; export $as_var
21227 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21231 # Required to use basename.
21232 if expr a : '\(a\)' >/dev/null 2>&1 &&
21233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21240 as_basename=basename
21246 # Name of the executable.
21247 as_me=`$as_basename -- "$0" ||
21248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21249 X"$0" : 'X\(//\)$' \| \
21250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21252 sed '/^.*\/\([^/][^/]*\)\/*$/{
21271 as_lineno_1=$LINENO
21272 as_lineno_2=$LINENO
21273 test "x$as_lineno_1" != "x$as_lineno_2" &&
21274 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21276 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21277 # uniformly replaced by the line number. The first 'sed' inserts a
21278 # line-number line after each line using $LINENO; the second 'sed'
21279 # does the real work. The second script uses 'N' to pair each
21280 # line-number line with the line containing $LINENO, and appends
21281 # trailing '-' during substitution so that $LINENO is not a special
21282 # case at line end.
21283 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21284 # scripts with optimization help from Paolo Bonzini. Blame Lee
21285 # E. McMahon (1931-1989) for sed's syntax. :-)
21297 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21300 ' >$as_me.lineno &&
21301 chmod +x "$as_me.lineno" ||
21302 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21303 { (exit 1); exit 1; }; }
21305 # Don't try to exec as it changes $[0], causing all sort of problems
21306 # (the dirname of $[0] is not the place where we might find the
21307 # original and so on. Autoconf is especially sensitive to this).
21308 . "./$as_me.lineno"
21309 # Exit status is that of the last command.
21314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21320 ECHO_C= ECHO_N= ECHO_T=
21321 case `echo -n x` in
21323 case `echo 'x\c'` in
21324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21331 if expr a : '\(a\)' >/dev/null 2>&1 &&
21332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21338 rm -f conf$$ conf$$.exe conf$$.file
21339 if test -d conf$$.dir; then
21340 rm -f conf$$.dir/conf$$.file
21346 if ln -s conf$$.file conf$$ 2>/dev/null; then
21348 # ... but there are two gotchas:
21349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21351 # In both cases, we have to default to `cp -p'.
21352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21354 elif ln conf$$.file conf$$ 2>/dev/null; then
21359 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21360 rmdir conf$$.dir 2>/dev/null
21362 if mkdir -p . 2>/dev/null; then
21365 test -d ./-p && rmdir ./-p
21369 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21370 # systems may use methods other than mode bits to determine executability.
21371 cat >conf$$.file <<_ASEOF
21375 chmod +x conf$$.file
21376 if test -x conf$$.file >/dev/null 2>&1; then
21377 as_executable_p="test -x"
21383 # Sed expression to map a string onto a valid CPP name.
21384 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21386 # Sed expression to map a string onto a valid variable name.
21387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21392 # Save the log message, to keep $[0] and so on meaningful, and to
21393 # report actual input values of CONFIG_FILES etc. instead of their
21394 # values after options handling.
21396 This file was extended by [SAMPLE] $as_me [x.xx], which was
21397 generated by GNU Autoconf 2.60. Invocation command line was
21399 CONFIG_FILES = $CONFIG_FILES
21400 CONFIG_HEADERS = $CONFIG_HEADERS
21401 CONFIG_LINKS = $CONFIG_LINKS
21402 CONFIG_COMMANDS = $CONFIG_COMMANDS
21405 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21410 cat >>$CONFIG_STATUS <<_ACEOF
21411 # Files that config.status was made for.
21412 config_files="$ac_config_files"
21413 config_commands="$ac_config_commands"
21417 cat >>$CONFIG_STATUS <<\_ACEOF
21419 \`$as_me' instantiates files from templates according to the
21420 current configuration.
21422 Usage: $0 [OPTIONS] [FILE]...
21424 -h, --help print this help, then exit
21425 -V, --version print version number, then exit
21426 -q, --quiet do not print progress messages
21427 -d, --debug don't remove temporary files
21428 --recheck update $as_me by reconfiguring in the same conditions
21429 --file=FILE[:TEMPLATE]
21430 instantiate the configuration file FILE
21432 Configuration files:
21435 Configuration commands:
21438 Report bugs to <bug-autoconf@gnu.org>."
21441 cat >>$CONFIG_STATUS <<_ACEOF
21443 [SAMPLE] config.status [x.xx]
21444 configured by $0, generated by GNU Autoconf 2.60,
21445 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21447 Copyright (C) 2006 Free Software Foundation, Inc.
21448 This config.status script is free software; the Free Software Foundation
21449 gives unlimited permission to copy, distribute and modify it."
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457 # If no file are specified by the user, then we need to provide default
21458 # value. By we need to know if files were specified by the user.
21464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21465 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21476 # Handling of the options.
21477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21480 echo "$ac_cs_version"; exit ;;
21481 --debug | --debu | --deb | --de | --d | -d )
21483 --file | --fil | --fi | --f )
21485 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21486 ac_need_defaults=false;;
21487 --he | --h | --help | --hel | -h )
21488 echo "$ac_cs_usage"; exit ;;
21489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21493 # This is an error.
21494 -*) { echo "$as_me: error: unrecognized option: $1
21495 Try \`$0 --help' for more information." >&2
21496 { (exit 1); exit 1; }; } ;;
21498 *) ac_config_targets="$ac_config_targets $1"
21499 ac_need_defaults=false ;;
21505 ac_configure_extra_args=
21507 if $ac_cs_silent; then
21509 ac_configure_extra_args="$ac_configure_extra_args --silent"
21513 cat >>$CONFIG_STATUS <<_ACEOF
21514 if \$ac_cs_recheck; then
21515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21516 CONFIG_SHELL=$SHELL
21517 export CONFIG_SHELL
21518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21527 ## Running $as_me. ##
21533 cat >>$CONFIG_STATUS <<_ACEOF
21537 llvm_src="${LLVM_SRC}"
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21543 # Handling of arguments.
21544 for ac_config_target in $ac_config_targets
21546 case $ac_config_target in
21547 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21548 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21549 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21550 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21551 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21552 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21553 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21554 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21556 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21557 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21558 { (exit 1); exit 1; }; };;
21563 # If the user did not use the arguments to specify the items to instantiate,
21564 # then the envvar interface is used. Set only those that are not.
21565 # We use the long form for the default assignment because of an extremely
21566 # bizarre bug on SunOS 4.1.3.
21567 if $ac_need_defaults; then
21568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21572 # Have a temporary directory for convenience. Make it in the build tree
21573 # simply because there is no reason against having it here, and in addition,
21574 # creating and moving files from /tmp can sometimes cause problems.
21575 # Hook for its removal unless debugging.
21576 # Note that there is a small window in which the directory will not be cleaned:
21577 # after its creation but before its name has been assigned to `$tmp'.
21581 trap 'exit_status=$?
21582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21584 trap '{ (exit 1); exit 1; }' 1 2 13 15
21586 # Create a (secure) tmp directory for tmp files.
21589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21590 test -n "$tmp" && test -d "$tmp"
21593 tmp=./conf$$-$RANDOM
21594 (umask 077 && mkdir "$tmp")
21597 echo "$me: cannot create a temporary directory in ." >&2
21598 { (exit 1); exit 1; }
21602 # Set up the sed scripts for CONFIG_FILES section.
21605 # No need to generate the scripts if there are no CONFIG_FILES.
21606 # This happens for instance when ./config.status config.h
21607 if test -n "$CONFIG_FILES"; then
21614 for ac_last_try in false false false false false :; do
21615 cat >conf$$subs.sed <<_ACEOF
21616 SHELL!$SHELL$ac_delim
21617 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21618 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21619 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21620 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21621 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21622 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21623 exec_prefix!$exec_prefix$ac_delim
21624 prefix!$prefix$ac_delim
21625 program_transform_name!$program_transform_name$ac_delim
21626 bindir!$bindir$ac_delim
21627 sbindir!$sbindir$ac_delim
21628 libexecdir!$libexecdir$ac_delim
21629 datarootdir!$datarootdir$ac_delim
21630 datadir!$datadir$ac_delim
21631 sysconfdir!$sysconfdir$ac_delim
21632 sharedstatedir!$sharedstatedir$ac_delim
21633 localstatedir!$localstatedir$ac_delim
21634 includedir!$includedir$ac_delim
21635 oldincludedir!$oldincludedir$ac_delim
21636 docdir!$docdir$ac_delim
21637 infodir!$infodir$ac_delim
21638 htmldir!$htmldir$ac_delim
21639 dvidir!$dvidir$ac_delim
21640 pdfdir!$pdfdir$ac_delim
21641 psdir!$psdir$ac_delim
21642 libdir!$libdir$ac_delim
21643 localedir!$localedir$ac_delim
21644 mandir!$mandir$ac_delim
21645 DEFS!$DEFS$ac_delim
21646 ECHO_C!$ECHO_C$ac_delim
21647 ECHO_N!$ECHO_N$ac_delim
21648 ECHO_T!$ECHO_T$ac_delim
21649 LIBS!$LIBS$ac_delim
21650 build_alias!$build_alias$ac_delim
21651 host_alias!$host_alias$ac_delim
21652 target_alias!$target_alias$ac_delim
21653 LLVM_SRC!$LLVM_SRC$ac_delim
21654 LLVM_OBJ!$LLVM_OBJ$ac_delim
21655 LLVM_VERSION!$LLVM_VERSION$ac_delim
21657 CFLAGS!$CFLAGS$ac_delim
21658 LDFLAGS!$LDFLAGS$ac_delim
21659 CPPFLAGS!$CPPFLAGS$ac_delim
21660 ac_ct_CC!$ac_ct_CC$ac_delim
21661 EXEEXT!$EXEEXT$ac_delim
21662 OBJEXT!$OBJEXT$ac_delim
21664 CXXFLAGS!$CXXFLAGS$ac_delim
21665 ac_ct_CXX!$ac_ct_CXX$ac_delim
21667 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21668 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21669 subdirs!$subdirs$ac_delim
21670 build!$build$ac_delim
21671 build_cpu!$build_cpu$ac_delim
21672 build_vendor!$build_vendor$ac_delim
21673 build_os!$build_os$ac_delim
21674 host!$host$ac_delim
21675 host_cpu!$host_cpu$ac_delim
21676 host_vendor!$host_vendor$ac_delim
21677 host_os!$host_os$ac_delim
21678 target!$target$ac_delim
21679 target_cpu!$target_cpu$ac_delim
21680 target_vendor!$target_vendor$ac_delim
21681 target_os!$target_os$ac_delim
21683 HOST_OS!$HOST_OS$ac_delim
21684 TARGET_OS!$TARGET_OS$ac_delim
21685 LINKALL!$LINKALL$ac_delim
21686 NOLINKALL!$NOLINKALL$ac_delim
21687 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21688 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21689 ARCH!$ARCH$ac_delim
21690 ENDIAN!$ENDIAN$ac_delim
21691 GREP!$GREP$ac_delim
21692 EGREP!$EGREP$ac_delim
21693 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21694 BUILD_CC!$BUILD_CC$ac_delim
21695 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21696 BUILD_CXX!$BUILD_CXX$ac_delim
21697 CVSBUILD!$CVSBUILD$ac_delim
21698 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21699 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21700 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21701 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21702 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21703 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21704 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21706 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21707 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21708 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21709 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21710 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21711 ENABLE_PIC!$ENABLE_PIC$ac_delim
21712 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21717 elif $ac_last_try; then
21718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21720 { (exit 1); exit 1; }; }
21722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21727 if test -n "$ac_eof"; then
21728 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21729 ac_eof=`expr $ac_eof + 1`
21732 cat >>$CONFIG_STATUS <<_ACEOF
21733 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21738 s/^/s,@/; s/!/@,|#_!!_#|/
21741 s/'"$ac_delim"'$/,g/; t
21743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21744 ' >>$CONFIG_STATUS <conf$$subs.sed
21745 rm -f conf$$subs.sed
21746 cat >>$CONFIG_STATUS <<_ACEOF
21752 for ac_last_try in false false false false false :; do
21753 cat >conf$$subs.sed <<_ACEOF
21754 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21755 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21756 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21757 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21758 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21759 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21760 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21761 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21762 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21763 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21764 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21765 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21767 ifGNUmake!$ifGNUmake$ac_delim
21768 LN_S!$LN_S$ac_delim
21771 DATE!$DATE$ac_delim
21772 FIND!$FIND$ac_delim
21773 MKDIR!$MKDIR$ac_delim
21775 RANLIB!$RANLIB$ac_delim
21780 BINPWD!$BINPWD$ac_delim
21781 GRAPHVIZ!$GRAPHVIZ$ac_delim
21784 NEATO!$NEATO$ac_delim
21785 TWOPI!$TWOPI$ac_delim
21786 CIRCO!$CIRCO$ac_delim
21788 DOTTY!$DOTTY$ac_delim
21789 XDOT_PY!$XDOT_PY$ac_delim
21790 PERL!$PERL$ac_delim
21791 HAVE_PERL!$HAVE_PERL$ac_delim
21792 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21793 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21794 INSTALL_DATA!$INSTALL_DATA$ac_delim
21795 BZIP2!$BZIP2$ac_delim
21797 DOXYGEN!$DOXYGEN$ac_delim
21798 GROFF!$GROFF$ac_delim
21799 GZIPBIN!$GZIPBIN$ac_delim
21800 POD2HTML!$POD2HTML$ac_delim
21801 POD2MAN!$POD2MAN$ac_delim
21802 PDFROFF!$PDFROFF$ac_delim
21803 RUNTEST!$RUNTEST$ac_delim
21804 TCLSH!$TCLSH$ac_delim
21806 OCAMLC!$OCAMLC$ac_delim
21807 OCAMLOPT!$OCAMLOPT$ac_delim
21808 OCAMLDEP!$OCAMLDEP$ac_delim
21809 OCAMLDOC!$OCAMLDOC$ac_delim
21811 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21812 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21813 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21814 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21815 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21816 LIBADD_DL!$LIBADD_DL$ac_delim
21817 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819 USE_UDIS86!$USE_UDIS86$ac_delim
21820 USE_OPROFILE!$USE_OPROFILE$ac_delim
21821 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823 MMAP_FILE!$MMAP_FILE$ac_delim
21824 SHLIBEXT!$SHLIBEXT$ac_delim
21825 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21826 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21827 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21828 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21829 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21830 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21831 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21832 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21833 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21834 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21835 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21836 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21837 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21838 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21839 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21840 RPATH!$RPATH$ac_delim
21841 RDYNAMIC!$RDYNAMIC$ac_delim
21842 LIBOBJS!$LIBOBJS$ac_delim
21843 LTLIBOBJS!$LTLIBOBJS$ac_delim
21846 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21848 elif $ac_last_try; then
21849 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21851 { (exit 1); exit 1; }; }
21853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21858 if test -n "$ac_eof"; then
21859 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21860 ac_eof=`expr $ac_eof + 1`
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21868 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21869 s/^/s,@/; s/!/@,|#_!!_#|/
21872 s/'"$ac_delim"'$/,g/; t
21874 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21875 ' >>$CONFIG_STATUS <conf$$subs.sed
21876 rm -f conf$$subs.sed
21877 cat >>$CONFIG_STATUS <<_ACEOF
21884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21886 # trailing colons and then remove the whole line if VPATH becomes empty
21887 # (actually we leave an empty line to preserve line numbers).
21888 if test "x$srcdir" = x.; then
21889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21890 s/:*\$(srcdir):*/:/
21891 s/:*\${srcdir}:*/:/
21893 s/^\([^=]*=[ ]*\):*/\1/
21899 cat >>$CONFIG_STATUS <<\_ACEOF
21900 fi # test -n "$CONFIG_FILES"
21903 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21906 :[FHLC]) ac_mode=$ac_tag; continue;;
21908 case $ac_mode$ac_tag in
21910 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21911 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21912 { (exit 1); exit 1; }; };;
21913 :[FH]-) ac_tag=-:-;;
21914 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21931 -) ac_f="$tmp/stdin";;
21932 *) # Look for the file first in the build tree, then in the source tree
21933 # (if the path is not absolute). The absolute path cannot be DOS-style,
21934 # because $ac_f cannot contain `:'.
21938 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21940 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21941 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21942 { (exit 1); exit 1; }; };;
21944 ac_file_inputs="$ac_file_inputs $ac_f"
21947 # Let's still pretend it is `configure' which instantiates (i.e., don't
21948 # use $as_me), people would be surprised to read:
21949 # /* config.h. Generated by config.status. */
21950 configure_input="Generated from "`IFS=:
21951 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21952 if test x"$ac_file" != x-; then
21953 configure_input="$ac_file. $configure_input"
21954 { echo "$as_me:$LINENO: creating $ac_file" >&5
21955 echo "$as_me: creating $ac_file" >&6;}
21959 *:-:* | *:-) cat >"$tmp/stdin";;
21964 ac_dir=`$as_dirname -- "$ac_file" ||
21965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21966 X"$ac_file" : 'X\(//\)[^/]' \| \
21967 X"$ac_file" : 'X\(//\)$' \| \
21968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21974 /^X\(\/\/\)[^/].*/{
21989 -*) as_dir=./$as_dir;;
21991 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21995 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21996 *) as_qdir=$as_dir;;
21998 as_dirs="'$as_qdir' $as_dirs"
21999 as_dir=`$as_dirname -- "$as_dir" ||
22000 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22001 X"$as_dir" : 'X\(//\)[^/]' \| \
22002 X"$as_dir" : 'X\(//\)$' \| \
22003 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22009 /^X\(\/\/\)[^/].*/{
22022 test -d "$as_dir" && break
22024 test -z "$as_dirs" || eval "mkdir $as_dirs"
22025 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22026 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22027 { (exit 1); exit 1; }; }; }
22031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22034 # A ".." for each directory in $ac_dir_suffix.
22035 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22036 case $ac_top_builddir_sub in
22037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22041 ac_abs_top_builddir=$ac_pwd
22042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22043 # for backward compatibility:
22044 ac_top_builddir=$ac_top_build_prefix
22047 .) # We are building in place.
22049 ac_top_srcdir=$ac_top_builddir_sub
22050 ac_abs_top_srcdir=$ac_pwd ;;
22051 [\\/]* | ?:[\\/]* ) # Absolute name.
22052 ac_srcdir=$srcdir$ac_dir_suffix;
22053 ac_top_srcdir=$srcdir
22054 ac_abs_top_srcdir=$srcdir ;;
22055 *) # Relative name.
22056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22057 ac_top_srcdir=$ac_top_build_prefix$srcdir
22058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22070 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22071 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22075 cat >>$CONFIG_STATUS <<\_ACEOF
22076 # If the template does not know about datarootdir, expand it.
22077 # FIXME: This hack should be removed a few years after 2.60.
22078 ac_datarootdir_hack=; ac_datarootdir_seen=
22080 case `sed -n '/datarootdir/ {
22089 ' $ac_file_inputs` in
22090 *datarootdir*) ac_datarootdir_seen=yes;;
22091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22092 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22093 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22095 cat >>$CONFIG_STATUS <<_ACEOF
22096 ac_datarootdir_hack='
22097 s&@datadir@&$datadir&g
22098 s&@docdir@&$docdir&g
22099 s&@infodir@&$infodir&g
22100 s&@localedir@&$localedir&g
22101 s&@mandir@&$mandir&g
22102 s&\\\${datarootdir}&$datarootdir&g' ;;
22106 # Neutralize VPATH when `$srcdir' = `.'.
22107 # Shell code in configure.ac might set extrasub.
22108 # FIXME: do we really want to maintain this feature?
22109 cat >>$CONFIG_STATUS <<_ACEOF
22113 cat >>$CONFIG_STATUS <<\_ACEOF
22115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22116 s&@configure_input@&$configure_input&;t t
22117 s&@top_builddir@&$ac_top_builddir_sub&;t t
22118 s&@srcdir@&$ac_srcdir&;t t
22119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22120 s&@top_srcdir@&$ac_top_srcdir&;t t
22121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22122 s&@builddir@&$ac_builddir&;t t
22123 s&@abs_builddir@&$ac_abs_builddir&;t t
22124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22125 s&@INSTALL@&$ac_INSTALL&;t t
22126 $ac_datarootdir_hack
22127 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22132 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22133 which seems to be undefined. Please make sure it is defined." >&5
22134 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22135 which seems to be undefined. Please make sure it is defined." >&2;}
22139 -) cat "$tmp/out"; rm -f "$tmp/out";;
22140 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22145 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22146 echo "$as_me: executing $ac_file commands" >&6;}
22151 case $ac_file$ac_mode in
22152 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22153 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22154 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22155 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22156 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22157 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22158 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22159 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22160 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22161 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22167 { (exit 0); exit 0; }
22169 chmod +x $CONFIG_STATUS
22170 ac_clean_files=$ac_clean_files_save
22173 # configure is writing to config.log, and then calls config.status.
22174 # config.status does its own redirection, appending to config.log.
22175 # Unfortunately, on DOS this fails, as config.log is still kept open
22176 # by configure, so config.status won't be able to write to it; its
22177 # output is simply discarded. So we exec the FD to /dev/null,
22178 # effectively closing config.log, so it can be properly (re)opened and
22179 # appended to by config.status. When coming back to configure, we
22180 # need to make the FD available again.
22181 if test "$no_create" != yes; then
22183 ac_config_status_args=
22184 test "$silent" = yes &&
22185 ac_config_status_args="$ac_config_status_args --quiet"
22187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22190 # would make configure fail if this is the last instruction.
22191 $ac_cs_success || { (exit 1); exit 1; }
22195 # CONFIG_SUBDIRS section.
22197 if test "$no_recursion" != yes; then
22199 # Remove --cache-file and --srcdir arguments so they do not pile up.
22200 ac_sub_configure_args=
22202 eval "set x $ac_configure_args"
22206 if test -n "$ac_prev"; then
22211 -cache-file | --cache-file | --cache-fil | --cache-fi \
22212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22213 ac_prev=cache_file ;;
22214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22218 --config-cache | -C)
22220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22230 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22232 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22236 # Always prepend --prefix to ensure using the same prefix
22237 # in subdir configurations.
22238 ac_arg="--prefix=$prefix"
22240 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22242 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22245 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22247 # Do not complain, so a configure script can configure whichever
22248 # parts of a large source tree are present.
22249 test -d "$srcdir/$ac_dir" || continue
22251 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22252 echo "$as_me:$LINENO: $ac_msg" >&5
22256 -*) as_dir=./$as_dir;;
22258 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22262 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22263 *) as_qdir=$as_dir;;
22265 as_dirs="'$as_qdir' $as_dirs"
22266 as_dir=`$as_dirname -- "$as_dir" ||
22267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268 X"$as_dir" : 'X\(//\)[^/]' \| \
22269 X"$as_dir" : 'X\(//\)$' \| \
22270 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22276 /^X\(\/\/\)[^/].*/{
22289 test -d "$as_dir" && break
22291 test -z "$as_dirs" || eval "mkdir $as_dirs"
22292 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22293 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22294 { (exit 1); exit 1; }; }; }
22298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22300 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22301 # A ".." for each directory in $ac_dir_suffix.
22302 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22303 case $ac_top_builddir_sub in
22304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22308 ac_abs_top_builddir=$ac_pwd
22309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22310 # for backward compatibility:
22311 ac_top_builddir=$ac_top_build_prefix
22314 .) # We are building in place.
22316 ac_top_srcdir=$ac_top_builddir_sub
22317 ac_abs_top_srcdir=$ac_pwd ;;
22318 [\\/]* | ?:[\\/]* ) # Absolute name.
22319 ac_srcdir=$srcdir$ac_dir_suffix;
22320 ac_top_srcdir=$srcdir
22321 ac_abs_top_srcdir=$srcdir ;;
22322 *) # Relative name.
22323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22324 ac_top_srcdir=$ac_top_build_prefix$srcdir
22325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22332 # Check for guested configure; otherwise get Cygnus style configure.
22333 if test -f "$ac_srcdir/configure.gnu"; then
22334 ac_sub_configure=$ac_srcdir/configure.gnu
22335 elif test -f "$ac_srcdir/configure"; then
22336 ac_sub_configure=$ac_srcdir/configure
22337 elif test -f "$ac_srcdir/configure.in"; then
22338 # This should be Cygnus configure.
22339 ac_sub_configure=$ac_aux_dir/configure
22341 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22342 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22346 # The recursion is here.
22347 if test -n "$ac_sub_configure"; then
22348 # Make the cache file name correct relative to the subdirectory.
22349 case $cache_file in
22350 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22351 *) # Relative name.
22352 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22355 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22356 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22357 # The eval makes quoting arguments work.
22358 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22359 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22360 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22361 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22362 { (exit 1); exit 1; }; }