2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='tools/polly'
805 # Initialize some variables set by options.
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
817 program_transform_name=s,x,x,
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912 eval enable_$ac_feature=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_package=`echo $ac_package| sed 's/-/_/g'`
1128 eval with_$ac_package=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package | sed 's/-/_/g'`
1137 eval with_$ac_package=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1188 # Be sure to have absolute directory names.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
1245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274 { (exit 1); exit 1; }; }
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279 { (exit 1); exit 1; }; }
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
1379 --enable-libcpp Use libc++ if available (default is NO)
1380 --enable-cxx11 Use c++11 if available (default is NO)
1381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1385 --enable-werror Compile with -Werror enabled (default is NO)
1386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-pic Build LLVM with Position Independent Code (default
1400 --enable-shared Build a shared library and link tools against it
1402 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1403 Win32 DLL (default is YES)
1404 --enable-timestamps Enable embedding timestamp information in build
1406 --enable-targets Build specific host targets: all or
1407 target1,target2,... Valid targets are: host, x86,
1408 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1409 xcore, msp430, nvptx, cbe, and cpp (default=all)
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-ltdl-install install libltdl
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-llvmsrc Location of LLVM Source Code
1419 --with-llvmobj Location of LLVM Object Code
1420 --with-optimize-option Select the compiler options to use for optimized
1422 --with-extra-options Specify additional options to compile LLVM with
1423 --with-extra-ld-options Specify additional options to link LLVM with
1424 --with-ocaml-libdir Specify install location for ocaml bindings (default
1426 --with-clang-resource-dir
1427 Relative directory from the Clang binary for
1429 --with-c-include-dirs Colon separated list of directories clang will
1431 --with-gcc-toolchain Directory where gcc is installed.
1432 --with-binutils-include Specify path to binutils/include/ containing
1433 plugin-api.h file for gold plugin.
1434 --with-bug-report-url Specify the URL where bug reports should be
1435 submitted (default=http://llvm.org/bugs/)
1436 --with-tclinclude directory where tcl headers are
1437 --with-udis86=<path> Use udis86 external x86 disassembler library
1438 --with-oprofile=<prefix>
1439 Tell OProfile >= 0.9.4 how to symbolize JIT output
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <bugs@yourdomain>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60. Invocation command line was
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_must_keep_next=false
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620 -* ) ac_must_keep_next=true ;;
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 echo "$ac_var='\''$ac_val'\''"
1694 if test -n "$ac_subst_files"; then
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1712 if test -s confdefs.h; then
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1803 # Check that the precious variables saved in the cache have kept the same
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893 withval=$with_llvmsrc; llvm_src="$withval"
1895 llvm_src="$LLVM_ABS_SRC_ROOT"
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903 withval=$with_llvmobj; llvm_obj="$withval"
1905 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 ac_config_commands="$ac_config_commands setup"
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918 llvm_config_path="no"
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926 llvm_package_version=`$llvm_config_path --version`
1928 llvm_package_version="unknown";
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939 if test -f "$ac_dir/install-sh"; then
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1943 elif test -f "$ac_dir/install.sh"; then
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1947 elif test -f "$ac_dir/shtool"; then
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976 for ac_prog in clang llvm-gcc gcc
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2010 { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2015 test -n "$CC" && break
2018 if test -z "$CC"; then
2020 for ac_prog in clang llvm-gcc gcc
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_CC"; then
2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039 ac_cv_prog_ac_ct_CC="$ac_prog"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2054 { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2059 test -n "$ac_ct_CC" && break
2062 if test "x$ac_ct_CC" = x; then
2065 case $cross_compiling:$ac_tool_warned in
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet. If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet. If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084 { (exit 1); exit 1; }; }
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095 (eval "$ac_compiler --version >&5") 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler -v >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -V >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort. b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions. Remove them first so a
2151 # subsequent execution test works.
2153 for ac_file in $ac_files
2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 if { (ac_try="$ac_link_default"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_link_default") 2>&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2177 for ac_file in $ac_files
2179 test -f "$ac_file" || continue
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184 # We found the default executable, but exeext='' is most
2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 # We set ac_cv_exeext here because the later test for it is not
2193 # safe: cross compilers may not add the suffix if given an `-o'
2194 # argument, so we may need to know it at that point already.
2195 # Even if this section looks crufty: it has the advantage of
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212 { (exit 77); exit 77; }; }
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2219 # Check that the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 if test "$cross_compiling" = maybe; then
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run. If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2391 grep -v '^ *+' conftest.er1 >conftest.err
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397 { (case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_try") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 ac_save_c_werror_flag=$ac_c_werror_flag
2439 ac_c_werror_flag=yes
2442 cat >conftest.$ac_ext <<_ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compile") 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472 { (case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_try") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_try") 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_compile") 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527 { (case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_try") 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_try") 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2551 ac_c_werror_flag=$ac_save_c_werror_flag
2553 cat >conftest.$ac_ext <<_ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2577 grep -v '^ *+' conftest.er1 >conftest.err
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_try") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_try") 2>&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_c_werror_flag=$ac_save_c_werror_flag
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2630 if test "$GCC" = yes; then
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 ac_cv_prog_cc_c89=no
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2667 s = g (p, va_arg (v,int));
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2673 function prototypes and stuff, but not '\xHH' hex character constants.
2674 These don't provoke an error unfortunately, instead are silently treated
2675 as 'x'. The following induces an error, until -std is added to get
2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2677 array size at least. It's necessary to write '\x00'==0 to get something
2678 that's true only with -std. */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682 inside strings and character constants. */
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719 { (case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_try") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_c89=$ac_arg
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2746 rm -f core conftest.err conftest.$ac_objext
2747 test "x$ac_cv_prog_cc_c89" != "xno" && break
2749 rm -f conftest.$ac_ext
2754 case "x$ac_cv_prog_cc_c89" in
2756 { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2759 { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2762 CC="$CC $ac_cv_prog_cc_c89"
2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780 if test -n "$CCC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 for ac_prog in clang++ llvm-g++ g++
2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 if test -n "$CXX"; then
2794 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 if test -n "$CXX"; then
2815 { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2818 { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2823 test -n "$CXX" && break
2826 if test -z "$CXX"; then
2828 for ac_prog in clang++ llvm-g++ g++
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 if test -n "$ac_ct_CXX"; then
2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_ac_ct_CXX="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2867 test -n "$ac_ct_CXX" && break
2870 if test "x$ac_ct_CXX" = x; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet. If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3006 cat >conftest.$ac_ext <<_ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_prog_cxx_g=yes
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3061 cat >conftest.$ac_ext <<_ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_cv_prog_cxx_g=yes
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186 CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188 if test "$GXX" = yes; then
3194 if test "$GXX" = yes; then
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if test "${ac_cv_prog_CPP+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3278 rm -f conftest.err conftest.$ac_ext
3280 # OK, works on sane cases. Now check whether nonexistent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <ac_nonexistent.h>
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } >/dev/null; then
3303 if test -s conftest.err; then
3304 ac_cpp_err=$ac_c_preproc_warn_flag
3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312 if test -z "$ac_cpp_err"; then
3313 # Broken: success on invalid input.
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 # Passes both tests.
3324 rm -f conftest.err conftest.$ac_ext
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3344 for ac_c_preproc_warn_flag in '' yes
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 # include <limits.h>
3361 # include <assert.h>
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3373 grep -v '^ *+' conftest.er1 >conftest.err
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } >/dev/null; then
3378 if test -s conftest.err; then
3379 ac_cpp_err=$ac_c_preproc_warn_flag
3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 if test -z "$ac_cpp_err"; then
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 # Broken: fails on valid input.
3397 rm -f conftest.err conftest.$ac_ext
3399 # OK, works on sane cases. Now check whether nonexistent headers
3400 # can be detected and how.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469 enableval=$enable_polly;
3474 case "$enableval" in
3479 default) ENABLE_POLLY=1
3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483 { (exit 1); exit 1; }; } ;;
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490 subdirs="$subdirs tools/polly"
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499 { (exit 1); exit 1; }; }
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512 { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525 { (exit 1); exit 1; }; };;
3528 ac_save_IFS=$IFS; IFS='-'
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if test "x$host_alias" = x; then
3547 ac_cv_host=$ac_cv_build
3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562 { (exit 1); exit 1; }; };;
3565 ac_save_IFS=$IFS; IFS='-'
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 if test "x$target_alias" = x; then
3584 ac_cv_target=$ac_cv_host
3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589 { (exit 1); exit 1; }; }
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599 { (exit 1); exit 1; }; };;
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618 test "$program_prefix$program_suffix$program_transform_name" = \
3620 program_prefix=${target_alias}-
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 llvm_cv_link_all_option="-Wl,--whole-archive"
3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631 llvm_cv_os_type="AIX"
3632 llvm_cv_platform_type="Unix" ;;
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="IRIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="Cygwin"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,-all_load"
3645 llvm_cv_no_link_all_option="-Wl,-noall_load"
3646 llvm_cv_os_type="Darwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Minix"
3652 llvm_cv_platform_type="Unix" ;;
3653 *-*-freebsd* | *-*-kfreebsd-gnu)
3654 llvm_cv_link_all_option="-Wl,--whole-archive"
3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656 llvm_cv_os_type="FreeBSD"
3657 llvm_cv_platform_type="Unix" ;;
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="OpenBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="NetBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="DragonFly"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="HP-UX"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Interix"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Linux"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="GNU"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-z,allextract"
3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696 llvm_cv_os_type="SunOS"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="AuroraUX"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="Win32"
3707 llvm_cv_platform_type="Win32" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="MingW"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="Haiku"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Freestanding"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option=""
3730 llvm_cv_no_link_all_option=""
3731 llvm_cv_os_type="Unknown"
3732 llvm_cv_platform_type="Unknown" ;;
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 llvm_cv_target_os_type="AIX" ;;
3747 llvm_cv_target_os_type="IRIX" ;;
3749 llvm_cv_target_os_type="Cygwin" ;;
3751 llvm_cv_target_os_type="Darwin" ;;
3753 llvm_cv_target_os_type="Minix" ;;
3754 *-*-freebsd* | *-*-kfreebsd-gnu)
3755 llvm_cv_target_os_type="FreeBSD" ;;
3757 llvm_cv_target_os_type="OpenBSD" ;;
3759 llvm_cv_target_os_type="NetBSD" ;;
3761 llvm_cv_target_os_type="DragonFly" ;;
3763 llvm_cv_target_os_type="HP-UX" ;;
3765 llvm_cv_target_os_type="Interix" ;;
3767 llvm_cv_target_os_type="Linux" ;;
3769 llvm_cv_target_os_type="GNU" ;;
3771 llvm_cv_target_os_type="SunOS" ;;
3773 llvm_cv_target_os_type="AuroraUX" ;;
3775 llvm_cv_target_os_type="Win32" ;;
3777 llvm_cv_target_os_type="MingW" ;;
3779 llvm_cv_target_os_type="Haiku" ;;
3781 llvm_cv_target_os_type="RTEMS" ;;
3783 llvm_cv_target_os_type="NativeClient" ;;
3785 llvm_cv_target_os_type="Freestanding" ;;
3787 llvm_cv_target_os_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796 { (exit 1); exit 1; }; }
3801 HOST_OS=$llvm_cv_os_type
3803 TARGET_OS=$llvm_cv_target_os_type
3806 LINKALL=$llvm_cv_link_all_option
3808 NOLINKALL=$llvm_cv_no_link_all_option
3811 case $llvm_cv_platform_type in
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 i?86-*) llvm_cv_target_arch="x86" ;;
3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3844 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3846 arm*-*) llvm_cv_target_arch="ARM" ;;
3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3850 xcore-*) llvm_cv_target_arch="XCore" ;;
3851 msp430-*) llvm_cv_target_arch="MSP430" ;;
3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3853 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3854 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3855 *) llvm_cv_target_arch="Unknown" ;;
3858 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3859 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3861 if test "$llvm_cv_target_arch" = "Unknown" ; then
3862 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3863 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3866 # Determine the LLVM native architecture for the target
3867 case "$llvm_cv_target_arch" in
3868 x86) LLVM_NATIVE_ARCH="X86" ;;
3869 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3870 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3873 ARCH=$llvm_cv_target_arch
3878 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3879 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 # Extract the first word of "grep ggrep" to use in msg output
3884 if test -z "$GREP"; then
3885 set dummy grep ggrep; ac_prog_name=$2
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_path_GREP_found=false
3890 # Loop through the user's path and test for each of PROGNAME-LIST
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 test -z "$as_dir" && as_dir=.
3896 for ac_prog in grep ggrep; do
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3899 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3900 # Check for GNU ac_path_GREP and select it if it is found.
3901 # Check for GNU $ac_path_GREP
3902 case `"$ac_path_GREP" --version 2>&1` in
3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 cat "conftest.in" "conftest.in" >"conftest.tmp"
3911 mv "conftest.tmp" "conftest.in"
3912 cp "conftest.in" "conftest.nl"
3913 echo 'GREP' >> "conftest.nl"
3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3916 ac_count=`expr $ac_count + 1`
3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3918 # Best one so far, save it but keep looking for a better one
3919 ac_cv_path_GREP="$ac_path_GREP"
3920 ac_path_GREP_max=$ac_count
3922 # 10*(2^10) chars as input seems more than enough
3923 test $ac_count -gt 10 && break
3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929 $ac_path_GREP_found && break 3
3939 GREP="$ac_cv_path_GREP"
3940 if test -z "$GREP"; then
3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3942 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3943 { (exit 1); exit 1; }; }
3947 ac_cv_path_GREP=$GREP
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3957 { echo "$as_me:$LINENO: checking for egrep" >&5
3958 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_EGREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3965 # Extract the first word of "egrep" to use in msg output
3966 if test -z "$EGREP"; then
3967 set dummy egrep; ac_prog_name=$2
3968 if test "${ac_cv_path_EGREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 ac_count=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011 $ac_path_EGREP_found && break 3
4021 EGREP="$ac_cv_path_EGREP"
4022 if test -z "$EGREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_EGREP=$EGREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4040 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4073 grep -v '^ *+' conftest.er1 >conftest.err
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_try") 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4098 ac_cv_header_stdc=yes
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 ac_cv_header_stdc=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "memchr" >/dev/null 2>&1; then
4123 ac_cv_header_stdc=no
4129 if test $ac_cv_header_stdc = yes; then
4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "free" >/dev/null 2>&1; then
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152 if test "$cross_compiling" = yes; then
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4163 #if ((' ' & 0x0FF) == 0x020)
4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 # define ISLOWER(c) \
4168 (('a' <= (c) && (c) <= 'i') \
4169 || ('j' <= (c) && (c) <= 'r') \
4170 || ('s' <= (c) && (c) <= 'z'))
4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179 for (i = 0; i < 256; i++)
4180 if (XOR (islower (i), ISLOWER (i))
4181 || toupper (i) != TOUPPER (i))
4186 rm -f conftest$ac_exeext
4187 if { (ac_try="$ac_link"
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_link") 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4208 echo "$as_me: program exited with status $ac_status" >&5
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_cv_header_stdc=no
4215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4223 if test $ac_cv_header_stdc = yes; then
4225 cat >>confdefs.h <<\_ACEOF
4226 #define STDC_HEADERS 1
4231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4241 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256 $ac_includes_default
4258 #include <$ac_header>
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 eval "$as_ac_Header=yes"
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 eval "$as_ac_Header=no"
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 ac_res=`eval echo '${'$as_ac_Header'}'`
4305 { echo "$as_me:$LINENO: result: $ac_res" >&5
4306 echo "${ECHO_T}$ac_res" >&6; }
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h <<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4318 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4319 if test "${ac_cv_c_bigendian+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 # See if sys/param.h defines the BYTE_ORDER macro.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 #include <sys/param.h>
4335 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 # It does; now see whether it defined to BIG_ENDIAN or not.
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 #include <sys/types.h>
4385 #include <sys/param.h>
4390 #if BYTE_ORDER != BIG_ENDIAN
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_try") 2>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 ac_cv_c_bigendian=yes
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_cv_c_bigendian=no
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # It does not; compile a test program.
4446 if test "$cross_compiling" = yes; then
4447 # try to guess the endianness by grepping values into an object file
4448 ac_cv_c_bigendian=unknown
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4456 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4458 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4459 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4464 _ascii (); _ebcdic ();
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4504 ac_cv_c_bigendian=yes
4506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4507 if test "$ac_cv_c_bigendian" = unknown; then
4508 ac_cv_c_bigendian=no
4510 # finding both strings is unlikely to happen, but who knows?
4511 ac_cv_c_bigendian=unknown
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4534 /* Are we little or big endian? From Harbison&Steele. */
4538 char c[sizeof (long int)];
4541 return u.c[sizeof (long int) - 1] == 1;
4547 rm -f conftest$ac_exeext
4548 if { (ac_try="$ac_link"
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_link") 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 ac_cv_c_bigendian=no
4569 echo "$as_me: program exited with status $ac_status" >&5
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_c_bigendian=yes
4576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4585 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4586 case $ac_cv_c_bigendian in
4594 { { echo "$as_me:$LINENO: error: unknown endianness
4595 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4596 echo "$as_me: error: unknown endianness
4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4598 { (exit 1); exit 1; }; } ;;
4602 if test "$cross_compiling" = yes; then
4603 LLVM_CROSS_COMPILING=1
4606 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4607 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4608 if test "${ac_cv_build_exeext+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4612 ac_cv_build_exeext=.exe
4614 ac_build_prefix=${build_alias}-
4616 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4617 set dummy ${ac_build_prefix}gcc; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$BUILD_CC"; then
4624 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 BUILD_CC=$ac_cv_prog_BUILD_CC
4644 if test -n "$BUILD_CC"; then
4645 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4646 echo "${ECHO_T}$BUILD_CC" >&6; }
4648 { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4653 if test -z "$BUILD_CC"; then
4654 # Extract the first word of "gcc", so it can be a program name with args.
4655 set dummy gcc; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$BUILD_CC"; then
4662 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_BUILD_CC="gcc"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 BUILD_CC=$ac_cv_prog_BUILD_CC
4682 if test -n "$BUILD_CC"; then
4683 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4684 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 if test -z "$BUILD_CC"; then
4692 # Extract the first word of "cc", so it can be a program name with args.
4693 set dummy cc; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 if test -n "$BUILD_CC"; then
4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4711 ac_prog_rejected=yes
4714 ac_cv_prog_BUILD_CC="cc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 if test $ac_prog_rejected = yes; then
4723 # We found a bogon in the path, so make sure we never use it.
4724 set dummy $ac_cv_prog_BUILD_CC
4726 if test $# != 0; then
4727 # We chose a different compiler from the bogus one.
4728 # However, it has the same basename, so the bogon will be chosen
4729 # first if we set BUILD_CC to just the basename; use the full file name.
4731 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4736 BUILD_CC=$ac_cv_prog_BUILD_CC
4737 if test -n "$BUILD_CC"; then
4738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4739 echo "${ECHO_T}$BUILD_CC" >&6; }
4741 { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4748 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4749 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4750 { (exit 1); exit 1; }; }
4751 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4753 echo 'int main () { return 0; }' > conftest.$ac_ext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4756 (eval $ac_build_link) 2>&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; then
4760 for file in conftest.*; do
4762 *.c | *.o | *.obj | *.dSYM) ;;
4763 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4767 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4768 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4769 { (exit 1); exit 1; }; }
4772 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4777 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4778 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4779 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4780 ac_build_exeext=$BUILD_EXEEXT
4782 ac_build_prefix=${build_alias}-
4783 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4784 set dummy ${ac_build_prefix}g++; ac_word=$2
4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 if test -n "$BUILD_CXX"; then
4791 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4811 if test -n "$BUILD_CXX"; then
4812 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4813 echo "${ECHO_T}$BUILD_CXX" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 if test -z "$BUILD_CXX"; then
4821 # Extract the first word of "g++", so it can be a program name with args.
4822 set dummy g++; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 if test -n "$BUILD_CXX"; then
4829 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_BUILD_CXX="g++"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4849 if test -n "$BUILD_CXX"; then
4850 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4851 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 if test -z "$BUILD_CXX"; then
4859 # Extract the first word of "c++", so it can be a program name with args.
4860 set dummy c++; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 if test -n "$BUILD_CXX"; then
4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4878 ac_prog_rejected=yes
4881 ac_cv_prog_BUILD_CXX="c++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 if test $ac_prog_rejected = yes; then
4890 # We found a bogon in the path, so make sure we never use it.
4891 set dummy $ac_cv_prog_BUILD_CXX
4893 if test $# != 0; then
4894 # We chose a different compiler from the bogus one.
4895 # However, it has the same basename, so the bogon will be chosen
4896 # first if we set BUILD_CXX to just the basename; use the full file name.
4898 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4903 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4904 if test -n "$BUILD_CXX"; then
4905 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4906 echo "${ECHO_T}$BUILD_CXX" >&6; }
4908 { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4916 LLVM_CROSS_COMPILING=0
4920 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4931 # Check whether --enable-libcpp was given.
4932 if test "${enable_libcpp+set}" = set; then
4933 enableval=$enable_libcpp;
4938 case "$enableval" in
4939 yes) ENABLE_LIBCPP=1
4943 default) ENABLE_LIBCPP=0
4945 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4946 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4947 { (exit 1); exit 1; }; } ;;
4950 # Check whether --enable-cxx11 was given.
4951 if test "${enable_cxx11+set}" = set; then
4952 enableval=$enable_cxx11;
4957 case "$enableval" in
4962 default) ENABLE_CXX11=0
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4969 # Check whether --enable-optimized was given.
4970 if test "${enable_optimized+set}" = set; then
4971 enableval=$enable_optimized;
4976 if test ${enableval} = "no" ; then
4980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4984 # Check whether --enable-profiling was given.
4985 if test "${enable_profiling+set}" = set; then
4986 enableval=$enable_profiling;
4991 if test ${enableval} = "no" ; then
4995 ENABLE_PROFILING=ENABLE_PROFILING=1
4999 # Check whether --enable-assertions was given.
5000 if test "${enable_assertions+set}" = set; then
5001 enableval=$enable_assertions;
5006 if test ${enableval} = "yes" ; then
5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5014 # Check whether --enable-werror was given.
5015 if test "${enable_werror+set}" = set; then
5016 enableval=$enable_werror;
5021 case "$enableval" in
5022 yes) ENABLE_WERROR=1
5026 default) ENABLE_WERROR=0
5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5029 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5033 # Check whether --enable-expensive-checks was given.
5034 if test "${enable_expensive_checks+set}" = set; then
5035 enableval=$enable_expensive_checks;
5040 if test ${enableval} = "yes" ; then
5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043 EXPENSIVE_CHECKS=yes
5046 ENABLE_EXPENSIVE_CHECKS=
5052 # Check whether --enable-debug-runtime was given.
5053 if test "${enable_debug_runtime+set}" = set; then
5054 enableval=$enable_debug_runtime;
5059 if test ${enableval} = "no" ; then
5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5067 # Check whether --enable-debug-symbols was given.
5068 if test "${enable_debug_symbols+set}" = set; then
5069 enableval=$enable_debug_symbols;
5074 if test ${enableval} = "no" ; then
5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5082 # Check whether --enable-jit was given.
5083 if test "${enable_jit+set}" = set; then
5084 enableval=$enable_jit;
5089 if test ${enableval} = "no"
5094 case "$llvm_cv_target_arch" in
5095 x86) TARGET_HAS_JIT=1
5097 Sparc) TARGET_HAS_JIT=0
5099 PowerPC) TARGET_HAS_JIT=1
5101 x86_64) TARGET_HAS_JIT=1
5103 ARM) TARGET_HAS_JIT=1
5105 AArch64) TARGET_HAS_JIT=0
5107 Mips) TARGET_HAS_JIT=1
5109 XCore) TARGET_HAS_JIT=0
5111 MSP430) TARGET_HAS_JIT=0
5113 Hexagon) TARGET_HAS_JIT=0
5115 MBlaze) TARGET_HAS_JIT=0
5117 NVPTX) TARGET_HAS_JIT=0
5124 # Check whether --enable-docs was given.
5125 if test "${enable_docs+set}" = set; then
5126 enableval=$enable_docs;
5131 case "$enableval" in
5136 default) ENABLE_DOCS=1
5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5139 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5140 { (exit 1); exit 1; }; } ;;
5143 # Check whether --enable-doxygen was given.
5144 if test "${enable_doxygen+set}" = set; then
5145 enableval=$enable_doxygen;
5150 case "$enableval" in
5151 yes) ENABLE_DOXYGEN=1
5153 no) ENABLE_DOXYGEN=0
5155 default) ENABLE_DOXYGEN=0
5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5162 # Check whether --enable-threads was given.
5163 if test "${enable_threads+set}" = set; then
5164 enableval=$enable_threads;
5169 case "$enableval" in
5170 yes) ENABLE_THREADS=1
5172 no) ENABLE_THREADS=0
5174 default) ENABLE_THREADS=1
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5181 cat >>confdefs.h <<_ACEOF
5182 #define ENABLE_THREADS $ENABLE_THREADS
5186 # Check whether --enable-pthreads was given.
5187 if test "${enable_pthreads+set}" = set; then
5188 enableval=$enable_pthreads;
5193 case "$enableval" in
5194 yes) ENABLE_PTHREADS=1
5196 no) ENABLE_PTHREADS=0
5198 default) ENABLE_PTHREADS=1
5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5205 # Check whether --enable-pic was given.
5206 if test "${enable_pic+set}" = set; then
5207 enableval=$enable_pic;
5212 case "$enableval" in
5217 default) ENABLE_PIC=1
5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5224 cat >>confdefs.h <<_ACEOF
5225 #define ENABLE_PIC $ENABLE_PIC
5229 # Check whether --enable-shared was given.
5230 if test "${enable_shared+set}" = set; then
5231 enableval=$enable_shared;
5236 case "$enableval" in
5237 yes) ENABLE_SHARED=1
5241 default) ENABLE_SHARED=0
5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5248 # Check whether --enable-embed-stdcxx was given.
5249 if test "${enable_embed_stdcxx+set}" = set; then
5250 enableval=$enable_embed_stdcxx;
5255 case "$enableval" in
5256 yes) ENABLE_EMBED_STDCXX=1
5258 no) ENABLE_EMBED_STDCXX=0
5260 default) ENABLE_EMBED_STDCXX=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-timestamps was given.
5268 if test "${enable_timestamps+set}" = set; then
5269 enableval=$enable_timestamps;
5274 case "$enableval" in
5275 yes) ENABLE_TIMESTAMPS=1
5277 no) ENABLE_TIMESTAMPS=0
5279 default) ENABLE_TIMESTAMPS=1
5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5282 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5286 cat >>confdefs.h <<_ACEOF
5287 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292 # Check whether --enable-targets was given.
5293 if test "${enable_targets+set}" = set; then
5294 enableval=$enable_targets;
5299 if test "$enableval" = host-only ; then
5302 case "$enableval" in
5303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5310 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5311 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5312 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5313 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5315 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5316 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5318 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5319 host) case "$llvm_cv_target_arch" in
5320 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5324 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5325 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5326 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5330 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5332 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333 echo "$as_me: error: Can not set target to build" >&2;}
5334 { (exit 1); exit 1; }; } ;;
5336 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5343 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5346 # Determine whether we are building LLVM support for the native architecture.
5347 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348 for a_target in $TARGETS_TO_BUILD; do
5349 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5355 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5357 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5358 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5362 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5363 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5385 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5392 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5402 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5403 # target feature def files.
5404 LLVM_ENUM_TARGETS=""
5405 LLVM_ENUM_ASM_PRINTERS=""
5406 LLVM_ENUM_ASM_PARSERS=""
5407 LLVM_ENUM_DISASSEMBLERS=""
5408 for target_to_build in $TARGETS_TO_BUILD; do
5409 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5410 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5411 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5413 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5414 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5416 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5417 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5426 # Check whether --with-optimize-option was given.
5427 if test "${with_optimize_option+set}" = set; then
5428 withval=$with_optimize_option;
5433 { echo "$as_me:$LINENO: checking optimization flags" >&5
5434 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5437 case "$llvm_cv_os_type" in
5438 FreeBSD) optimize_option=-O2 ;;
5439 MingW) optimize_option=-O2 ;;
5440 *) optimize_option=-O3 ;;
5442 *) optimize_option="$withval" ;;
5444 OPTIMIZE_OPTION=$optimize_option
5446 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5447 echo "${ECHO_T}$optimize_option" >&6; }
5450 # Check whether --with-extra-options was given.
5451 if test "${with_extra_options+set}" = set; then
5452 withval=$with_extra_options;
5458 default) EXTRA_OPTIONS= ;;
5459 *) EXTRA_OPTIONS=$withval ;;
5461 EXTRA_OPTIONS=$EXTRA_OPTIONS
5465 # Check whether --with-extra-ld-options was given.
5466 if test "${with_extra_ld_options+set}" = set; then
5467 withval=$with_extra_ld_options;
5473 default) EXTRA_LD_OPTIONS= ;;
5474 *) EXTRA_LD_OPTIONS=$withval ;;
5476 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5479 # Check whether --enable-bindings was given.
5480 if test "${enable_bindings+set}" = set; then
5481 enableval=$enable_bindings;
5486 BINDINGS_TO_BUILD=""
5487 case "$enableval" in
5488 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5489 all ) BINDINGS_TO_BUILD="ocaml" ;;
5490 none | no) BINDINGS_TO_BUILD="" ;;
5491 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5492 case "$a_binding" in
5493 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5494 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5495 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5496 { (exit 1); exit 1; }; } ;;
5503 # Check whether --with-ocaml-libdir was given.
5504 if test "${with_ocaml_libdir+set}" = set; then
5505 withval=$with_ocaml_libdir;
5511 auto) with_ocaml_libdir="$withval" ;;
5512 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5513 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5514 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5515 { (exit 1); exit 1; }; } ;;
5519 # Check whether --with-clang-resource-dir was given.
5520 if test "${with_clang_resource_dir+set}" = set; then
5521 withval=$with_clang_resource_dir;
5527 cat >>confdefs.h <<_ACEOF
5528 #define CLANG_RESOURCE_DIR "$withval"
5533 # Check whether --with-c-include-dirs was given.
5534 if test "${with_c_include_dirs+set}" = set; then
5535 withval=$with_c_include_dirs;
5541 cat >>confdefs.h <<_ACEOF
5542 #define C_INCLUDE_DIRS "$withval"
5546 # Clang normally uses the system c++ headers and libraries. With this option,
5547 # clang will use the ones provided by a gcc installation instead. This option should
5548 # be passed the same value that was used with --prefix when configuring gcc.
5550 # Check whether --with-gcc-toolchain was given.
5551 if test "${with_gcc_toolchain+set}" = set; then
5552 withval=$with_gcc_toolchain;
5558 cat >>confdefs.h <<_ACEOF
5559 #define GCC_INSTALL_PREFIX "$withval"
5564 # Check whether --with-binutils-include was given.
5565 if test "${with_binutils_include+set}" = set; then
5566 withval=$with_binutils_include;
5572 default) WITH_BINUTILS_INCDIR=default ;;
5573 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5574 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5575 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5576 { (exit 1); exit 1; }; } ;;
5578 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5579 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5581 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5582 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5583 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5584 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5585 { (exit 1); exit 1; }; };
5590 # Check whether --with-bug-report-url was given.
5591 if test "${with_bug_report_url+set}" = set; then
5592 withval=$with_bug_report_url;
5594 withval="http://llvm.org/bugs/"
5598 cat >>confdefs.h <<_ACEOF
5599 #define BUG_REPORT_URL "$withval"
5603 # Check whether --enable-libffi was given.
5604 if test "${enable_libffi+set}" = set; then
5605 enableval=$enable_libffi; case "$enableval" in
5606 yes) llvm_cv_enable_libffi="yes" ;;
5607 no) llvm_cv_enable_libffi="no" ;;
5608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5609 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5610 { (exit 1); exit 1; }; } ;;
5613 llvm_cv_enable_libffi=no
5618 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5620 if test "${lt_cv_path_NM+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 if test -n "$NM"; then
5624 # Let the user override the test.
5627 lt_nm_to_check="${ac_tool_prefix}nm"
5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629 lt_nm_to_check="$lt_nm_to_check nm"
5631 for lt_tmp_nm in $lt_nm_to_check; do
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5635 test -z "$ac_dir" && ac_dir=.
5636 tmp_nm="$ac_dir/$lt_tmp_nm"
5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638 # Check to see if the nm accepts a BSD-compat flag.
5639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640 # nm: unknown option "B" ignored
5641 # Tru64's nm complains that /dev/null is an invalid object file
5642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643 */dev/null* | *'Invalid file or object type'*)
5644 lt_cv_path_NM="$tmp_nm -B"
5648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5650 lt_cv_path_NM="$tmp_nm -p"
5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655 continue # so that we can try to find one that supports BSD flags
5664 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5667 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5673 { echo "$as_me:$LINENO: checking for GNU make" >&5
5674 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5675 if test "${llvm_cv_gnu_make_command+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 llvm_cv_gnu_make_command=''
5679 for a in "$MAKE" make gmake gnumake ; do
5680 if test -z "$a" ; then continue ; fi ;
5681 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5683 llvm_cv_gnu_make_command=$a ;
5688 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5689 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5690 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5694 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5695 echo "${ECHO_T}\"Not found\"" >&6; };
5699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5702 if test "$LN_S" = "ln -s"; then
5703 { echo "$as_me:$LINENO: result: yes" >&5
5704 echo "${ECHO_T}yes" >&6; }
5706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707 echo "${ECHO_T}no, using $LN_S" >&6; }
5710 # Extract the first word of "cmp", so it can be a program name with args.
5711 set dummy cmp; ac_word=$2
5712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714 if test "${ac_cv_path_CMP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5742 if test -n "$CMP"; then
5743 { echo "$as_me:$LINENO: result: $CMP" >&5
5744 echo "${ECHO_T}$CMP" >&6; }
5746 { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5751 # Extract the first word of "cp", so it can be a program name with args.
5752 set dummy cp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5783 if test -n "$CP"; then
5784 { echo "$as_me:$LINENO: result: $CP" >&5
5785 echo "${ECHO_T}$CP" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 # Extract the first word of "date", so it can be a program name with args.
5793 set dummy date; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_DATE+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5823 DATE=$ac_cv_path_DATE
5824 if test -n "$DATE"; then
5825 { echo "$as_me:$LINENO: result: $DATE" >&5
5826 echo "${ECHO_T}$DATE" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 # Extract the first word of "find", so it can be a program name with args.
5834 set dummy find; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_FIND+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5864 FIND=$ac_cv_path_FIND
5865 if test -n "$FIND"; then
5866 { echo "$as_me:$LINENO: result: $FIND" >&5
5867 echo "${ECHO_T}$FIND" >&6; }
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 # Extract the first word of "grep", so it can be a program name with args.
5875 set dummy grep; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_GREP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5905 GREP=$ac_cv_path_GREP
5906 if test -n "$GREP"; then
5907 { echo "$as_me:$LINENO: result: $GREP" >&5
5908 echo "${ECHO_T}$GREP" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 # Extract the first word of "mkdir", so it can be a program name with args.
5916 set dummy mkdir; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_MKDIR+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5946 MKDIR=$ac_cv_path_MKDIR
5947 if test -n "$MKDIR"; then
5948 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5949 echo "${ECHO_T}$MKDIR" >&6; }
5951 { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5956 # Extract the first word of "mv", so it can be a program name with args.
5957 set dummy mv; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MV+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5988 if test -n "$MV"; then
5989 { echo "$as_me:$LINENO: result: $MV" >&5
5990 echo "${ECHO_T}$MV" >&6; }
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$RANLIB"; then
6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 RANLIB=$ac_cv_prog_RANLIB
6026 if test -n "$RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6028 echo "${ECHO_T}$RANLIB" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_RANLIB"; then
6037 ac_ct_RANLIB=$RANLIB
6038 # Extract the first word of "ranlib", so it can be a program name with args.
6039 set dummy ranlib; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$ac_ct_RANLIB"; then
6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_RANLIB="ranlib"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066 if test -n "$ac_ct_RANLIB"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_RANLIB" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6087 RANLIB=$ac_ct_RANLIB
6090 RANLIB="$ac_cv_prog_RANLIB"
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ar; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 if test -n "$AR"; then
6102 ac_cv_prog_AR="$AR" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_AR="${ac_tool_prefix}ar"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 if test -n "$AR"; then
6123 { echo "$as_me:$LINENO: result: $AR" >&5
6124 echo "${ECHO_T}$AR" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test -z "$ac_cv_prog_AR"; then
6134 # Extract the first word of "ar", so it can be a program name with args.
6135 set dummy ar; 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_prog_ac_ct_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 if test -n "$ac_ct_AR"; then
6142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_AR="ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6162 if test -n "$ac_ct_AR"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6164 echo "${ECHO_T}$ac_ct_AR" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6170 if test "x$ac_ct_AR" = x; then
6173 case $cross_compiling:$ac_tool_warned in
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet. If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6189 # Extract the first word of "rm", so it can be a program name with args.
6190 set dummy rm; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_RM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6221 if test -n "$RM"; then
6222 { echo "$as_me:$LINENO: result: $RM" >&5
6223 echo "${ECHO_T}$RM" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 # Extract the first word of "sed", so it can be a program name with args.
6231 set dummy sed; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_SED+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6262 if test -n "$SED"; then
6263 { echo "$as_me:$LINENO: result: $SED" >&5
6264 echo "${ECHO_T}$SED" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "tar", so it can be a program name with args.
6272 set dummy tar; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_TAR+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6303 if test -n "$TAR"; then
6304 { echo "$as_me:$LINENO: result: $TAR" >&5
6305 echo "${ECHO_T}$TAR" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "pwd", so it can be a program name with args.
6313 set dummy pwd; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_BINPWD+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6343 BINPWD=$ac_cv_path_BINPWD
6344 if test -n "$BINPWD"; then
6345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6346 echo "${ECHO_T}$BINPWD" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6354 # Extract the first word of "Graphviz", so it can be a program name with args.
6355 set dummy Graphviz; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6385 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6386 if test -n "$GRAPHVIZ"; then
6387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6388 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6390 { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6395 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_GRAPHVIZ 1
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6405 cat >>confdefs.h <<_ACEOF
6406 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6410 # Extract the first word of "dot", so it can be a program name with args.
6411 set dummy dot; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_DOT+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6442 if test -n "$DOT"; then
6443 { echo "$as_me:$LINENO: result: $DOT" >&5
6444 echo "${ECHO_T}$DOT" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6451 if test "$DOT" != "echo dot" ; then
6453 cat >>confdefs.h <<\_ACEOF
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6466 # Extract the first word of "fdp", so it can be a program name with args.
6467 set dummy fdp; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_FDP+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6498 if test -n "$FDP"; then
6499 { echo "$as_me:$LINENO: result: $FDP" >&5
6500 echo "${ECHO_T}$FDP" >&6; }
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6507 if test "$FDP" != "echo fdp" ; then
6509 cat >>confdefs.h <<\_ACEOF
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6522 # Extract the first word of "neato", so it can be a program name with args.
6523 set dummy neato; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_NEATO+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6553 NEATO=$ac_cv_path_NEATO
6554 if test -n "$NEATO"; then
6555 { echo "$as_me:$LINENO: result: $NEATO" >&5
6556 echo "${ECHO_T}$NEATO" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 if test "$NEATO" != "echo neato" ; then
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_NEATO 1
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6578 # Extract the first word of "twopi", so it can be a program name with args.
6579 set dummy twopi; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_TWOPI+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6609 TWOPI=$ac_cv_path_TWOPI
6610 if test -n "$TWOPI"; then
6611 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6612 echo "${ECHO_T}$TWOPI" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6619 if test "$TWOPI" != "echo twopi" ; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_TWOPI 1
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6634 # Extract the first word of "circo", so it can be a program name with args.
6635 set dummy circo; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CIRCO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6665 CIRCO=$ac_cv_path_CIRCO
6666 if test -n "$CIRCO"; then
6667 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6668 echo "${ECHO_T}$CIRCO" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 if test "$CIRCO" != "echo circo" ; then
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_CIRCO 1
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6690 for ac_prog in gv gsview32
6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
6693 set dummy $ac_prog; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_GV+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 if test -n "$GV"; then
6724 { echo "$as_me:$LINENO: result: $GV" >&5
6725 echo "${ECHO_T}$GV" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6732 test -n "$GV" && break
6734 test -n "$GV" || GV="echo gv"
6736 if test "$GV" != "echo gv" ; then
6738 cat >>confdefs.h <<\_ACEOF
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_GV "$GV${EXEEXT}"
6751 # Extract the first word of "dotty", so it can be a program name with args.
6752 set dummy dotty; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_DOTTY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6782 DOTTY=$ac_cv_path_DOTTY
6783 if test -n "$DOTTY"; then
6784 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6785 echo "${ECHO_T}$DOTTY" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6792 if test "$DOTTY" != "echo dotty" ; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_DOTTY 1
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6807 # Extract the first word of "xdot.py", so it can be a program name with args.
6808 set dummy xdot.py; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6838 XDOT_PY=$ac_cv_path_XDOT_PY
6839 if test -n "$XDOT_PY"; then
6840 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6841 echo "${ECHO_T}$XDOT_PY" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 if test "$XDOT_PY" != "echo xdot.py" ; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_XDOT_PY 1
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6864 # Find a good install program. We prefer a C program (faster),
6865 # so one script is as good as another. But avoid the broken or
6866 # incompatible versions:
6867 # SysV /etc/install, /usr/sbin/install
6868 # SunOS /usr/etc/install
6869 # IRIX /sbin/install
6871 # AmigaOS /C/install, which installs bootblocks on floppy discs
6872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6875 # OS/2's system install, which has a completely different semantic
6876 # ./install, which can be erroneously created by make from ./install.sh.
6877 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6878 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6879 if test -z "$INSTALL"; then
6880 if test "${ac_cv_path_install+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 test -z "$as_dir" && as_dir=.
6888 # Account for people who put trailing slashes in PATH elements.
6890 ./ | .// | /cC/* | \
6891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6892 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6895 # OSF1 and SCO ODT 3.0 have their own names for install.
6896 # Don't use installbsd from OSF since it installs stuff as root
6898 for ac_prog in ginstall scoinst install; do
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6901 if test $ac_prog = install &&
6902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6903 # AIX install. It has an incompatible calling convention.
6905 elif test $ac_prog = install &&
6906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6907 # program-specific install script used by HP pwplus--don't use.
6910 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6923 if test "${ac_cv_path_install+set}" = set; then
6924 INSTALL=$ac_cv_path_install
6926 # As a last resort, use the slow shell script. Don't cache a
6927 # value for INSTALL within a source directory, because that will
6928 # break other packages using the cache if that directory is
6929 # removed, or if the value is a relative name.
6930 INSTALL=$ac_install_sh
6933 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6934 echo "${ECHO_T}$INSTALL" >&6; }
6936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6937 # It thinks the first close brace ends the variable substitution.
6938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6945 [\\/$]* | ?:[\\/]* ) ;;
6946 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6949 # Extract the first word of "bzip2", so it can be a program name with args.
6950 set dummy bzip2; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_BZIP2+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 BZIP2=$ac_cv_path_BZIP2
6980 if test -n "$BZIP2"; then
6981 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6982 echo "${ECHO_T}$BZIP2" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 # Extract the first word of "cat", so it can be a program name with args.
6990 set dummy cat; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_CAT+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 if test -n "$CAT"; then
7021 { echo "$as_me:$LINENO: result: $CAT" >&5
7022 echo "${ECHO_T}$CAT" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7029 # Extract the first word of "doxygen", so it can be a program name with args.
7030 set dummy doxygen; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 DOXYGEN=$ac_cv_path_DOXYGEN
7060 if test -n "$DOXYGEN"; then
7061 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7062 echo "${ECHO_T}$DOXYGEN" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "groff", so it can be a program name with args.
7070 set dummy groff; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GROFF+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 GROFF=$ac_cv_path_GROFF
7100 if test -n "$GROFF"; then
7101 { echo "$as_me:$LINENO: result: $GROFF" >&5
7102 echo "${ECHO_T}$GROFF" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 # Extract the first word of "gzip", so it can be a program name with args.
7110 set dummy gzip; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 GZIPBIN=$ac_cv_path_GZIPBIN
7140 if test -n "$GZIPBIN"; then
7141 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7142 echo "${ECHO_T}$GZIPBIN" >&6; }
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7149 # Extract the first word of "pod2html", so it can be a program name with args.
7150 set dummy pod2html; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_POD2HTML+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 POD2HTML=$ac_cv_path_POD2HTML
7180 if test -n "$POD2HTML"; then
7181 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7182 echo "${ECHO_T}$POD2HTML" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 # Extract the first word of "pod2man", so it can be a program name with args.
7190 set dummy pod2man; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_POD2MAN+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 POD2MAN=$ac_cv_path_POD2MAN
7220 if test -n "$POD2MAN"; then
7221 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7222 echo "${ECHO_T}$POD2MAN" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 # Extract the first word of "pdfroff", so it can be a program name with args.
7230 set dummy pdfroff; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_PDFROFF+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 PDFROFF=$ac_cv_path_PDFROFF
7260 if test -n "$PDFROFF"; then
7261 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7262 echo "${ECHO_T}$PDFROFF" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7269 # Extract the first word of "runtest", so it can be a program name with args.
7270 set dummy runtest; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_RUNTEST+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 RUNTEST=$ac_cv_path_RUNTEST
7300 if test -n "$RUNTEST"; then
7301 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7302 echo "${ECHO_T}$RUNTEST" >&6; }
7304 { echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6; }
7311 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7312 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7314 # Check whether --with-tclinclude was given.
7315 if test "${with_tclinclude+set}" = set; then
7316 withval=$with_tclinclude; with_tclinclude=${withval}
7321 if test "${ac_cv_path_tclsh+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 if test x"${with_tclinclude}" != x ; then
7326 if test -f ${with_tclinclude}/tclsh ; then
7327 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7328 elif test -f ${with_tclinclude}/src/tclsh ; then
7329 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7331 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7332 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7333 { (exit 1); exit 1; }; }
7339 if test x"${ac_cv_path_tclsh}" = x ; then
7340 { echo "$as_me:$LINENO: result: none" >&5
7341 echo "${ECHO_T}none" >&6; }
7342 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
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_TCLSH+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 TCLSH=$ac_cv_path_TCLSH
7375 if test -n "$TCLSH"; then
7376 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7377 echo "${ECHO_T}$TCLSH" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 test -n "$TCLSH" && break
7387 if test x"${TCLSH}" = x ; then
7388 ac_cv_path_tclsh='';
7390 ac_cv_path_tclsh="${TCLSH}";
7393 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7394 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7395 TCLSH="${ac_cv_path_tclsh}"
7399 # Extract the first word of "zip", so it can be a program name with args.
7400 set dummy zip; ac_word=$2
7401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7403 if test "${ac_cv_path_ZIP+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 if test -n "$ZIP"; then
7431 { echo "$as_me:$LINENO: result: $ZIP" >&5
7432 echo "${ECHO_T}$ZIP" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7439 for ac_prog in ocamlc
7441 # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_OCAMLC+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 OCAMLC=$ac_cv_path_OCAMLC
7472 if test -n "$OCAMLC"; then
7473 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7474 echo "${ECHO_T}$OCAMLC" >&6; }
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 test -n "$OCAMLC" && break
7484 for ac_prog in ocamlopt
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 OCAMLOPT=$ac_cv_path_OCAMLOPT
7517 if test -n "$OCAMLOPT"; then
7518 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7519 echo "${ECHO_T}$OCAMLOPT" >&6; }
7521 { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7526 test -n "$OCAMLOPT" && break
7529 for ac_prog in ocamldep
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532 set dummy $ac_prog; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 OCAMLDEP=$ac_cv_path_OCAMLDEP
7562 if test -n "$OCAMLDEP"; then
7563 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7564 echo "${ECHO_T}$OCAMLDEP" >&6; }
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 test -n "$OCAMLDEP" && break
7574 for ac_prog in ocamldoc
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7580 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 OCAMLDOC=$ac_cv_path_OCAMLDOC
7607 if test -n "$OCAMLDOC"; then
7608 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7609 echo "${ECHO_T}$OCAMLDOC" >&6; }
7611 { echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6; }
7616 test -n "$OCAMLDOC" && break
7619 for ac_prog in gas as
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625 if test "${ac_cv_path_GAS+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 if test -n "$GAS"; then
7653 { echo "$as_me:$LINENO: result: $GAS" >&5
7654 echo "${ECHO_T}$GAS" >&6; }
7656 { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7661 test -n "$GAS" && break
7665 { echo "$as_me:$LINENO: checking for linker version" >&5
7666 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7667 if test "${llvm_cv_link_version+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 version_string="$(ld -v 2>&1 | head -1)"
7674 if (echo "$version_string" | grep -q "ld64"); then
7675 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7677 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7681 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7682 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7684 cat >>confdefs.h <<_ACEOF
7685 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7690 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7691 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7692 if test "${llvm_cv_link_use_r+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702 CFLAGS="$CFLAGS -Wl,-R."
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7733 { (case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_try") 2>&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
7743 { (case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_try") 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 llvm_cv_link_use_r=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 llvm_cv_link_use_r=no
7760 rm -f core conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7764 ac_cpp='$CPP $CPPFLAGS'
7765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7772 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7773 if test "$llvm_cv_link_use_r" = yes ; then
7775 cat >>confdefs.h <<\_ACEOF
7776 #define HAVE_LINK_R 1
7782 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7783 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7784 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 ac_cpp='$CPP $CPPFLAGS'
7789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7794 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (ac_try="$ac_link"
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_link") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_try") 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_try") 2>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 llvm_cv_link_use_export_dynamic=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 llvm_cv_link_use_export_dynamic=no
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7864 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7865 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_LINK_EXPORT_DYNAMIC 1
7874 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7875 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7876 if test "${llvm_cv_link_use_version_script+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7887 # The following code is from the autoconf manual,
7888 # "11.13: Limitations of Usual Tools".
7889 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7890 # Use mktemp if possible; otherwise fall back on mkdir,
7891 # with $RANDOM to make collisions less likely.
7895 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7897 test -n "$tmp" && test -d "$tmp"
7899 tmp=$TMPDIR/foo$$-$RANDOM
7900 (umask 077 && mkdir "$tmp")
7903 echo "{" > "$tmp/export.map"
7904 echo " global: main;" >> "$tmp/export.map"
7905 echo " local: *;" >> "$tmp/export.map"
7906 echo "};" >> "$tmp/export.map"
7908 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_link") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7939 { (case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_try") 2>&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try='test -s conftest$ac_exeext'
7949 { (case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_try") 2>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 llvm_cv_link_use_version_script=yes
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 llvm_cv_link_use_version_script=no
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 rm "$tmp/export.map"
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7980 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7981 if test "$llvm_cv_link_use_version_script" = yes ; then
7982 HAVE_LINK_VERSION_SCRIPT=1
7989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7991 if test "${ac_cv_c_const+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8004 /* FIXME: Include the comments suggested by Paul. */
8006 /* Ultrix mips cc rejects this. */
8007 typedef int charset[2];
8009 /* SunOS 4.1.1 cc rejects this. */
8010 char const *const *ccp;
8012 /* NEC SVR4.0.2 mips cc rejects this. */
8013 struct point {int x, y;};
8014 static struct point const zero = {0,0};
8015 /* AIX XL C 1.02.0.0 rejects this.
8016 It does not let you subtract one const X* pointer from another in
8017 an arm of an if-expression whose if-part is not a constant
8019 const char *g = "string";
8020 ccp = &g + (g ? g-g : 0);
8021 /* HPUX 7.0 cc rejects these. */
8024 ccp = (char const *const *) p;
8025 { /* SCO 3.2v4 cc rejects this. */
8027 char const *s = 0 ? (char *) 0 : (char const *) 0;
8032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8034 const int *foo = &x[0];
8037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038 typedef const int *iptr;
8042 { /* AIX XL C 1.02.0.0 rejects this saying
8043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044 struct s { int j; const int *ap[3]; };
8045 struct s *b; b->j = 5;
8047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8051 return !x[0] && !zero.x;
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8103 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8104 if test $ac_cv_c_const = no; then
8106 cat >>confdefs.h <<\_ACEOF
8118 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8119 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8120 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8121 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <sys/types.h>
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8158 { (case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_try") 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (case "(($ac_try" in
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_try") 2>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 eval "$as_ac_Header=yes"
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 eval "$as_ac_Header=no"
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 ac_res=`eval echo '${'$as_ac_Header'}'`
8188 { echo "$as_me:$LINENO: result: $ac_res" >&5
8189 echo "${ECHO_T}$ac_res" >&6; }
8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8195 ac_header_dirent=$ac_hdr; break
8199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8200 if test $ac_header_dirent = dirent.h; then
8201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8203 if test "${ac_cv_search_opendir+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_func_search_save_LIBS=$LIBS
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8214 /* Override any GCC internal prototype to avoid an error.
8215 Use char because int might match the return type of a GCC
8216 builtin and then its argument prototype would still apply. */
8229 for ac_lib in '' dir; do
8230 if test -z "$ac_lib"; then
8231 ac_res="none required"
8234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (ac_try="$ac_link"
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_link") 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8251 { (case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_try") 2>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_try") 2>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_search_opendir=$ac_res
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8278 rm -f core conftest.err conftest.$ac_objext \
8280 if test "${ac_cv_search_opendir+set}" = set; then
8284 if test "${ac_cv_search_opendir+set}" = set; then
8287 ac_cv_search_opendir=no
8290 LIBS=$ac_func_search_save_LIBS
8292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8294 ac_res=$ac_cv_search_opendir
8295 if test "$ac_res" != no; then
8296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8301 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8302 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8303 if test "${ac_cv_search_opendir+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8329 for ac_lib in '' x; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_link") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8351 { (case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_try") 2>&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try='test -s conftest$ac_exeext'
8361 { (case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_try") 2>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_search_opendir=$ac_res
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8378 rm -f core conftest.err conftest.$ac_objext \
8380 if test "${ac_cv_search_opendir+set}" = set; then
8384 if test "${ac_cv_search_opendir+set}" = set; then
8387 ac_cv_search_opendir=no
8390 LIBS=$ac_func_search_save_LIBS
8392 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8393 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8394 ac_res=$ac_cv_search_opendir
8395 if test "$ac_res" != no; then
8396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8403 for ac_header in dlfcn.h
8405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 ac_res=`eval echo '${'$as_ac_Header'}'`
8413 { echo "$as_me:$LINENO: result: $ac_res" >&5
8414 echo "${ECHO_T}$ac_res" >&6; }
8416 # Is the header compilable?
8417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 #include <$ac_header>
8428 rm -f conftest.$ac_objext
8429 if { (ac_try="$ac_compile"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_header_compiler=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_header_compiler=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472 echo "${ECHO_T}$ac_header_compiler" >&6; }
8474 # Is the header present?
8475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #include <$ac_header>
8485 if { (ac_try="$ac_cpp conftest.$ac_ext"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } >/dev/null; then
8498 if test -s conftest.err; then
8499 ac_cpp_err=$ac_c_preproc_warn_flag
8500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507 if test -z "$ac_cpp_err"; then
8508 ac_header_preproc=yes
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 ac_header_preproc=no
8516 rm -f conftest.err conftest.$ac_ext
8517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8518 echo "${ECHO_T}$ac_header_preproc" >&6; }
8520 # So? What about this header?
8521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8527 ac_header_preproc=yes
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8543 ## ------------------------------ ##
8544 ## Report this to bugs@yourdomain ##
8545 ## ------------------------------ ##
8547 ) | sed "s/^/$as_me: WARNING: /" >&2
8550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 eval "$as_ac_Header=\$ac_header_preproc"
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8563 cat >>confdefs.h <<_ACEOF
8564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 # Check whether --enable-ltdl-install was given.
8572 if test "${enable_ltdl_install+set}" = set; then
8573 enableval=$enable_ltdl_install;
8579 if test x"${enable_ltdl_install-no}" != xno; then
8581 INSTALL_LTDL_FALSE='#'
8583 INSTALL_LTDL_TRUE='#'
8589 if test x"${enable_ltdl_convenience-no}" != xno; then
8590 CONVENIENCE_LTDL_TRUE=
8591 CONVENIENCE_LTDL_FALSE='#'
8593 CONVENIENCE_LTDL_TRUE='#'
8594 CONVENIENCE_LTDL_FALSE=
8598 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8601 libname_spec='lib$name'
8609 shlibpath_overrides_runpath=unknown
8611 dynamic_linker="$host_os ld.so"
8612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8613 if test "$GCC" = yes; then
8614 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8615 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8616 # if the path contains ";" then we assume it to be the separator
8617 # otherwise default to the standard path separator (i.e. ":") - it is
8618 # assumed that no part of a normal pathname contains ";" but that should
8619 # okay in the real world where ";" in dirpaths is itself problematic.
8620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8622 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8627 need_lib_prefix=unknown
8628 hardcode_into_libs=no
8630 # when you set need_version to no, make sure it does not cause -set_version
8631 # flags to be left without arguments
8632 need_version=unknown
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8638 shlibpath_var=LIBPATH
8640 # AIX 3 has no versioning support, so we append a major version to the name.
8641 soname_spec='${libname}${release}${shared_ext}$major'
8648 hardcode_into_libs=yes
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 supports IA64
8651 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8652 shlibpath_var=LD_LIBRARY_PATH
8654 # With GCC up to 2.95.x, collect2 would create an import file
8655 # for dependence libraries. The import file would start with
8656 # the line `#! .'. This would cause the generated library to
8657 # depend on `.', always an invalid library. This was fixed in
8658 # development snapshots of GCC prior to 3.0.
8660 aix4 | aix4.[01] | aix4.[01].*)
8661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8663 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8670 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8671 # soname into executable. Probably we can add versioning support to
8672 # collect2, so additional links can be useful in future.
8673 if test "$aix_use_runtimelinking" = yes; then
8674 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8675 # instead of lib<name>.a to let people know that these are not
8676 # typical AIX shared libraries.
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679 # We preserve .a as extension for shared libraries through AIX4.2
8680 # and later when we are not doing run time linking.
8681 library_names_spec='${libname}${release}.a $libname.a'
8682 soname_spec='${libname}${release}${shared_ext}$major'
8684 shlibpath_var=LIBPATH
8689 library_names_spec='$libname.ixlibrary $libname.a'
8690 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8691 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'
8695 library_names_spec='${libname}${shared_ext}'
8696 dynamic_linker="$host_os ld.so"
8697 shlibpath_var=LIBRARY_PATH
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8709 # the default ld.so.conf also contains /usr/contrib/lib and
8710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8711 # libtool to hard-code these into programs
8714 cygwin* | mingw* | pw32*)
8715 version_type=windows
8720 case $GCC,$host_os in
8721 yes,cygwin* | yes,mingw* | yes,pw32*)
8722 library_names_spec='$libname.dll.a'
8723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8724 postinstall_cmds='base_file=`basename \${file}`~
8725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8726 dldir=$destdir/`dirname \$dlpath`~
8727 test -d \$dldir || mkdir -p \$dldir~
8728 $install_prog $dir/$dlname \$dldir/$dlname~
8729 chmod a+x \$dldir/$dlname'
8730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8731 dlpath=$dir/\$dldll~
8733 shlibpath_overrides_runpath=yes
8737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8739 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8742 # MinGW DLLs use traditional 'lib' prefix
8743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8745 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8746 # It is most probably a Windows format PATH printed by
8747 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8748 # path with ; separators, and with drive letters. We can handle the
8749 # drive letters (cygwin fileutils understands them), so leave them,
8750 # especially as we might pass files found there to a mingw objdump,
8751 # which wouldn't understand a cygwinified path. Ahh.
8752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8758 # pw32 DLLs use 'pw' prefix rather than 'lib'
8759 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8768 dynamic_linker='Win32 ld.exe'
8769 # FIXME: first we should search . and the directory the executable is in
8773 darwin* | rhapsody*)
8774 dynamic_linker="$host_os dyld"
8778 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8779 soname_spec='${libname}${release}${major}$shared_ext'
8780 shlibpath_overrides_runpath=yes
8781 shlibpath_var=DYLD_LIBRARY_PATH
8782 shrext_cmds='.dylib'
8783 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8784 if test "$GCC" = yes; then
8785 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"`
8787 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8789 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8812 shlibpath_overrides_runpath=no
8813 hardcode_into_libs=yes
8814 dynamic_linker='GNU ld.so'
8817 freebsd* | dragonfly*)
8818 # DragonFly does not have aout. When/if they implement a new
8819 # versioning mechanism, adjust this.
8820 if test -x /usr/bin/objformat; then
8821 objformat=`/usr/bin/objformat`
8824 freebsd[123].*) objformat=aout ;;
8828 version_type=freebsd-$objformat
8829 case $version_type in
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8840 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=yes
8845 freebsd3.[01]* | freebsdelf3.[01]*)
8846 shlibpath_overrides_runpath=yes
8847 hardcode_into_libs=yes
8849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8851 shlibpath_overrides_runpath=no
8852 hardcode_into_libs=yes
8854 freebsd*) # from 4.6 on
8855 shlibpath_overrides_runpath=yes
8856 hardcode_into_libs=yes
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 hardcode_into_libs=yes
8871 hpux9* | hpux10* | hpux11*)
8872 # Give a soname corresponding to the major version so that dld.sl refuses to
8873 # link against other versions.
8880 hardcode_into_libs=yes
8881 dynamic_linker="$host_os dld.so"
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 if test "X$HPUX_IA64_MODE" = X32; then
8887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8895 hardcode_into_libs=yes
8896 dynamic_linker="$host_os dld.sl"
8897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906 dynamic_linker="$host_os dld.sl"
8907 shlibpath_var=SHLIB_PATH
8908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8913 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8914 postinstall_cmds='chmod 555 $lib'
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'
8923 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 hardcode_into_libs=yes
8929 irix5* | irix6* | nonstopux*)
8931 nonstopux*) version_type=nonstopux ;;
8933 if test "$lt_cv_prog_gnu_ld" = yes; then
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8944 irix5* | nonstopux*)
8948 case $LD in # libtool.m4 will add one of these switches to LD
8949 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8950 libsuff= shlibsuff= libmagic=32-bit;;
8951 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8952 libsuff=32 shlibsuff=N32 libmagic=N32;;
8953 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8954 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8955 *) libsuff= shlibsuff= libmagic=never-match;;
8959 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8960 shlibpath_overrides_runpath=no
8961 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8962 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8963 hardcode_into_libs=yes
8966 # No shared lib support for Linux oldld, aout, or coff.
8967 linux*oldld* | linux*aout* | linux*coff*)
8971 # This must be Linux ELF.
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=no
8981 # This implies no fast_install, which is unacceptable.
8982 # Some rework will be needed to allow for fast_install
8983 # before this can be enabled.
8984 hardcode_into_libs=yes
8986 # Append ld.so.conf contents to the search path
8987 if test -f /etc/ld.so.conf; then
8988 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' ' '`
8989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8992 # We used to test for /lib/ld.so.1 and disable shared libraries on
8993 # powerpc, because MkLinux only supported shared libraries with the
8994 # GNU dynamic linker. Since this was broken with cross compilers,
8995 # most powerpc-linux boxes support dynamic linking these days and
8996 # people can always --disable-shared, the test was removed, and we
8997 # assume the GNU/Linux dynamic linker is in use.
8998 dynamic_linker='GNU/Linux ld.so'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=no
9009 hardcode_into_libs=yes
9010 dynamic_linker='GNU ld.so'
9017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020 dynamic_linker='NetBSD (a.out) ld.so'
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 dynamic_linker='NetBSD ld.elf_so'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9050 sys_lib_dlsearch_path_spec="/usr/lib"
9052 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9054 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9055 *) need_version=no ;;
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9062 openbsd2.[89] | openbsd2.[89].*)
9063 shlibpath_overrides_runpath=no
9066 shlibpath_overrides_runpath=yes
9070 shlibpath_overrides_runpath=yes
9075 libname_spec='$name'
9078 library_names_spec='$libname${shared_ext} $libname.a'
9079 dynamic_linker='OS/2 ld.exe'
9080 shlibpath_var=LIBPATH
9083 osf3* | osf4* | osf5*)
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=yes
9102 hardcode_into_libs=yes
9103 # ldd complains unless libraries are executable
9104 postinstall_cmds='chmod +x $lib'
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9113 if test "$with_gnu_ld" = yes; then
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 case $host_vendor in
9126 shlibpath_overrides_runpath=no
9128 export_dynamic_flag_spec='${wl}-Blargedynsym'
9129 runpath_var=LD_RUN_PATH
9137 shlibpath_overrides_runpath=no
9138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9144 if test -d /usr/nec ;then
9146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147 soname_spec='$libname${shared_ext}.$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153 version_type=freebsd-elf
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 hardcode_into_libs=yes
9160 if test "$with_gnu_ld" = yes; then
9161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9162 shlibpath_overrides_runpath=no
9164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165 shlibpath_overrides_runpath=yes
9168 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9172 sys_lib_dlsearch_path_spec='/usr/lib'
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9186 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187 echo "${ECHO_T}$dynamic_linker" >&6; }
9188 test "$dynamic_linker" = no && can_build_shared=no
9190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9191 if test "$GCC" = yes; then
9192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9196 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9197 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9198 if test "${libltdl_cv_shlibext+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 eval libltdl_cv_shlibext=$shrext_cmds
9206 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9207 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9208 if test -n "$libltdl_cv_shlibext"; then
9210 cat >>confdefs.h <<_ACEOF
9211 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9217 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9218 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9219 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 libltdl_cv_shlibpath_var="$shlibpath_var"
9224 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9225 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9226 if test -n "$libltdl_cv_shlibpath_var"; then
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9235 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9236 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9237 if test "${libltdl_cv_sys_search_path+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9242 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9243 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9244 if test -n "$libltdl_cv_sys_search_path"; then
9246 for dir in $libltdl_cv_sys_search_path; do
9247 if test -z "$sys_search_path"; then
9248 sys_search_path="$dir"
9250 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9254 cat >>confdefs.h <<_ACEOF
9255 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9260 { echo "$as_me:$LINENO: checking for objdir" >&5
9261 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9262 if test "${libltdl_cv_objdir+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 libltdl_cv_objdir="$objdir"
9266 if test -n "$objdir"; then
9269 rm -f .libs 2>/dev/null
9270 mkdir .libs 2>/dev/null
9271 if test -d .libs; then
9272 libltdl_cv_objdir=.libs
9274 # MS-DOS does not allow filenames that begin with a dot.
9275 libltdl_cv_objdir=_libs
9277 rmdir .libs 2>/dev/null
9281 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9282 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9293 # Check for command to grab the raw symbol name followed by C symbol from nm.
9294 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9295 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9296 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 # These are sane defaults that work on at least a few old systems.
9301 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9303 # Character class describing NM global symbol codes.
9304 symcode='[BCDEGRST]'
9306 # Regexp to match symbols that can be accessed directly from C.
9307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9309 # Transform an extracted symbol line into a proper C declaration
9310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9312 # Transform an extracted symbol line into symbol name and symbol address
9313 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'"
9315 # Define system-specific variables.
9320 cygwin* | mingw* | pw32*)
9321 symcode='[ABCDGISTW]'
9323 hpux*) # Its linker distinguishes data from code symbols
9324 if test "$host_cpu" = ia64; then
9325 symcode='[ABCDEGRST]'
9327 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9328 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'"
9331 if test "$host_cpu" = ia64; then
9332 symcode='[ABCDGIRSTW]'
9333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9334 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'"
9338 symcode='[BCDEGRST]'
9341 symcode='[BCDEGQRST]'
9352 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9360 # Handle CRLF in mingw tool chain
9364 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9368 # If we're using GNU nm, then use its standard symbol codes.
9369 case `$NM -V 2>&1` in
9370 *GNU* | *'with BFD'*)
9371 symcode='[ABCDGIRSTW]' ;;
9374 # Try without a prefix undercore, then with it.
9375 for ac_symprfx in "" "_"; do
9377 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9378 symxfrm="\\1 $ac_symprfx\\2 \\2"
9380 # Write the raw and C identifiers.
9381 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9383 # Check to see that the pipe works correctly.
9387 cat > conftest.$ac_ext <<EOF
9392 void nm_test_func(){}
9396 int main(){nm_test_var='a';nm_test_func();return(0);}
9399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9400 (eval $ac_compile) 2>&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; then
9404 # Now try to grab the symbols.
9406 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9407 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && test -s "$nlist"; then
9411 # Try sorting and uniquifying the output.
9412 if sort "$nlist" | uniq > "$nlist"T; then
9413 mv -f "$nlist"T "$nlist"
9418 # Make sure that we snagged all the symbols we need.
9419 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9420 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9421 cat <<EOF > conftest.$ac_ext
9427 # Now generate the symbol file.
9428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9430 cat <<EOF >> conftest.$ac_ext
9431 #if defined (__STDC__) && __STDC__
9432 # define lt_ptr_t void *
9434 # define lt_ptr_t char *
9438 /* The mapping between symbol names and symbols. */
9443 lt_preloaded_symbols[] =
9446 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9447 cat <<\EOF >> conftest.$ac_ext
9455 # Now try linking the two files.
9456 mv conftest.$ac_objext conftstm.$ac_objext
9457 lt_save_LIBS="$LIBS"
9458 lt_save_CFLAGS="$CFLAGS"
9459 LIBS="conftstm.$ac_objext"
9460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9468 LIBS="$lt_save_LIBS"
9469 CFLAGS="$lt_save_CFLAGS"
9471 echo "cannot find nm_test_func in $nlist" >&5
9474 echo "cannot find nm_test_var in $nlist" >&5
9477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9480 echo "$progname: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9483 rm -f conftest* conftst*
9485 # Do not use the global_symbol_pipe unless it works.
9486 if test "$pipe_works" = yes; then
9489 lt_cv_sys_global_symbol_pipe=
9495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9496 lt_cv_sys_global_symbol_to_cdecl=
9498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9499 { echo "$as_me:$LINENO: result: failed" >&5
9500 echo "${ECHO_T}failed" >&6; }
9502 { echo "$as_me:$LINENO: result: ok" >&5
9503 echo "${ECHO_T}ok" >&6; }
9507 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9508 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9509 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9513 libltdl_cv_preloaded_symbols=yes
9515 libltdl_cv_preloaded_symbols=no
9519 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9520 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9521 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9523 cat >>confdefs.h <<\_ACEOF
9524 #define HAVE_PRELOADED_SYMBOLS 1
9532 ac_cpp='$CPP $CPPFLAGS'
9533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538 { echo "$as_me:$LINENO: checking for shl_load" >&5
9539 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9540 if test "${ac_cv_func_shl_load+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9551 #define shl_load innocuous_shl_load
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char shl_load (); below.
9555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556 <limits.h> exists even on freestanding compilers. */
9559 # include <limits.h>
9561 # include <assert.h>
9566 /* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9573 /* The GNU C library defines this for functions which it implements
9574 to always fail with ENOSYS. Some functions are actually named
9575 something starting with __ and the normal name is an alias. */
9576 #if defined __stub_shl_load || defined __stub___shl_load
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (ac_try="$ac_link"
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_link") 2>conftest.er1
9597 grep -v '^ *+' conftest.er1 >conftest.err
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9603 { (case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_try") 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (case "(($ac_try" in
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_try") 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_func_shl_load=yes
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_cv_func_shl_load=no
9630 rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9634 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9635 if test $ac_cv_func_shl_load = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_SHL_LOAD 1
9642 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9644 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 ac_check_lib_save_LIBS=$LIBS
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_link") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686 { (case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_try") 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_dld_shl_load=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_dld_shl_load=no
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9719 if test $ac_cv_lib_dld_shl_load = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_SHL_LOAD 1
9725 LIBADD_DL="$LIBADD_DL -ldld"
9727 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 ac_check_lib_save_LIBS=$LIBS
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 /* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_link") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest$ac_exeext'
9781 { (case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_try") 2>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); }; }; then
9790 ac_cv_lib_dl_dlopen=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_cv_lib_dl_dlopen=no
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_lib_save_LIBS
9802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9804 if test $ac_cv_lib_dl_dlopen = yes; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_LIBDL 1
9810 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_LIBDL 1
9868 libltdl_cv_func_dlopen="yes"
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9874 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9875 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 ac_check_lib_save_LIBS=$LIBS
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (ac_try="$ac_link"
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_lib_svld_dlopen=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9941 ac_cv_lib_svld_dlopen=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9950 if test $ac_cv_lib_svld_dlopen = yes; then
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_LIBDL 1
9956 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9958 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 ac_check_lib_save_LIBS=$LIBS
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_dld_dld_link=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_lib_dld_dld_link=no
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10033 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10034 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10035 if test $ac_cv_lib_dld_dld_link = yes; then
10037 cat >>confdefs.h <<\_ACEOF
10041 LIBADD_DL="$LIBADD_DL -ldld"
10043 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10044 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10045 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 cat >conftest.$ac_ext <<_ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056 #define _dyld_func_lookup innocuous__dyld_func_lookup
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char _dyld_func_lookup (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10064 # include <limits.h>
10066 # include <assert.h>
10069 #undef _dyld_func_lookup
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10077 char _dyld_func_lookup ();
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10088 return _dyld_func_lookup ();
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_link") 2>conftest.er1
10102 grep -v '^ *+' conftest.er1 >conftest.err
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_try") 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_func__dyld_func_lookup=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_func__dyld_func_lookup=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10138 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10139 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10140 if test $ac_cv_func__dyld_func_lookup = yes; then
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_DYLD 1
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10169 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10171 lt_save_LIBS="$LIBS"
10172 LIBS="$LIBS $LIBADD_DL"
10174 for ac_func in dlerror
10176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.$ac_ext <<_ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190 #define $ac_func innocuous_$ac_func
10192 /* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
10198 # include <limits.h>
10200 # include <assert.h>
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10212 /* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215 #if defined __stub_$ac_func || defined __stub___$ac_func
10222 return $ac_func ();
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 { (case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 eval "$as_ac_var=yes"
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 eval "$as_ac_var=no"
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10272 ac_res=`eval echo '${'$as_ac_var'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274 echo "${ECHO_T}$ac_res" >&6; }
10275 if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283 LIBS="$lt_save_LIBS"
10286 ac_cpp='$CPP $CPPFLAGS'
10287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10293 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10294 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10295 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 ac_cv_sys_symbol_underscore=no
10299 cat > conftest.$ac_ext <<EOF
10300 void nm_test_func(){}
10301 int main(){nm_test_func;return 0;}
10303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10304 (eval $ac_compile) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; then
10308 # Now try to grab the symbols.
10309 ac_nlist=conftest.nm
10310 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10311 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && test -s "$ac_nlist"; then
10315 # See whether the symbols have a leading underscore.
10316 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10317 ac_cv_sys_symbol_underscore=yes
10319 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10322 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10326 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10329 echo "configure: failed program was:" >&5
10335 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10336 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10339 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10340 if test x"$libltdl_cv_func_dlopen" = xyes ||
10341 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10342 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10343 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10344 if test "${libltdl_cv_need_uscore+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 libltdl_cv_need_uscore=unknown
10349 LIBS="$LIBS $LIBADD_DL"
10350 if test "$cross_compiling" = yes; then :
10351 libltdl_cv_need_uscore=cross
10353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10354 lt_status=$lt_dlunknown
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10356 "configure"
10357 #include "confdefs.h"
10366 # define LT_DLGLOBAL RTLD_GLOBAL
10369 # define LT_DLGLOBAL DL_GLOBAL
10371 # define LT_DLGLOBAL 0
10375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10376 find out it does not work in some platform. */
10377 #ifndef LT_DLLAZY_OR_NOW
10379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10382 # define LT_DLLAZY_OR_NOW DL_LAZY
10385 # define LT_DLLAZY_OR_NOW RTLD_NOW
10388 # define LT_DLLAZY_OR_NOW DL_NOW
10390 # define LT_DLLAZY_OR_NOW 0
10398 extern "C" void exit (int);
10401 void fnord() { int i=42;}
10404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10405 int status = $lt_dlunknown;
10409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10411 /* dlclose (self); */
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10424 (./conftest; exit; ) >&5 2>/dev/null
10426 case x$lt_status in
10427 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10428 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10429 x$lt_dlunknown|x*) ;;
10432 # compilation failed
10441 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10442 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10446 if test x"$libltdl_cv_need_uscore" = xyes; then
10448 cat >>confdefs.h <<\_ACEOF
10449 #define NEED_USCORE 1
10455 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10456 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10457 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 # PORTME does your system automatically load deplibs for dlopen?
10461 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10462 # For now, we just catch OSes we know something about -- in the
10463 # future, we'll try test this programmatically.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10466 aix3*|aix4.1.*|aix4.2.*)
10467 # Unknown whether this is true for these versions of AIX, but
10468 # we want this `case' here to explicitly catch those versions.
10469 libltdl_cv_sys_dlopen_deplibs=unknown
10472 libltdl_cv_sys_dlopen_deplibs=yes
10475 # Assuming the user has installed a libdl from somewhere, this is true
10476 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10477 libltdl_cv_sys_dlopen_deplibs=yes
10479 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10480 # GNU and its variants, using gnu ld.so (Glibc)
10481 libltdl_cv_sys_dlopen_deplibs=yes
10484 libltdl_cv_sys_dlopen_deplibs=yes
10487 libltdl_cv_sys_dlopen_deplibs=yes
10489 irix[12345]*|irix6.[01]*)
10490 # Catch all versions of IRIX before 6.2, and indicate that we don't
10491 # know how it worked for any of those versions.
10492 libltdl_cv_sys_dlopen_deplibs=unknown
10495 # The case above catches anything before 6.2, and it's known that
10496 # at 6.2 and later dlopen does load deplibs.
10497 libltdl_cv_sys_dlopen_deplibs=yes
10500 libltdl_cv_sys_dlopen_deplibs=yes
10503 libltdl_cv_sys_dlopen_deplibs=yes
10506 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10507 # it did *not* use an RPATH in a shared library to find objects the
10508 # library depends on, so we explicitly say `no'.
10509 libltdl_cv_sys_dlopen_deplibs=no
10511 osf5.0|osf5.0a|osf5.1)
10512 # dlopen *does* load deplibs and with the right loader patch applied
10513 # it even uses RPATH in a shared library to search for shared objects
10514 # that the library depends on, but there's no easy way to know if that
10515 # patch is installed. Since this is the case, all we can really
10516 # say is unknown -- it depends on the patch being installed. If
10517 # it is, this changes to `yes'. Without it, it would be `no'.
10518 libltdl_cv_sys_dlopen_deplibs=unknown
10521 # the two cases above should catch all versions of osf <= 5.1. Read
10522 # the comments above for what we know about them.
10523 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10524 # is used to find them so we can finally say `yes'.
10525 libltdl_cv_sys_dlopen_deplibs=yes
10528 libltdl_cv_sys_dlopen_deplibs=yes
10530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10531 libltdl_cv_sys_dlopen_deplibs=yes
10536 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10537 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10538 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10540 cat >>confdefs.h <<\_ACEOF
10541 #define LTDL_DLOPEN_DEPLIBS 1
10547 for ac_header in argz.h
10549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 ac_res=`eval echo '${'$as_ac_Header'}'`
10557 { echo "$as_me:$LINENO: result: $ac_res" >&5
10558 echo "${ECHO_T}$ac_res" >&6; }
10560 # Is the header compilable?
10561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569 $ac_includes_default
10570 #include <$ac_header>
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_header_compiler=yes
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_header_compiler=no
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 echo "${ECHO_T}$ac_header_compiler" >&6; }
10618 # Is the header present?
10619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <$ac_header>
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } >/dev/null; then
10642 if test -s conftest.err; then
10643 ac_cpp_err=$ac_c_preproc_warn_flag
10644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10651 if test -z "$ac_cpp_err"; then
10652 ac_header_preproc=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 ac_header_preproc=no
10660 rm -f conftest.err conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662 echo "${ECHO_T}$ac_header_preproc" >&6; }
10664 # So? What about this header?
10665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10671 ac_header_preproc=yes
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10687 ## ------------------------------ ##
10688 ## Report this to bugs@yourdomain ##
10689 ## ------------------------------ ##
10691 ) | sed "s/^/$as_me: WARNING: /" >&2
10694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 eval "$as_ac_Header=\$ac_header_preproc"
10701 ac_res=`eval echo '${'$as_ac_Header'}'`
10702 { echo "$as_me:$LINENO: result: $ac_res" >&5
10703 echo "${ECHO_T}$ac_res" >&6; }
10706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10716 { echo "$as_me:$LINENO: checking for error_t" >&5
10717 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10718 if test "${ac_cv_type_error_t+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10731 typedef error_t ac__type_new_;
10735 if ((ac__type_new_ *) 0)
10737 if (sizeof (ac__type_new_))
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; } &&
10767 { ac_try='test -s conftest.$ac_objext'
10768 { (case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_try") 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_type_error_t=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_cv_type_error_t=no
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10788 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10789 if test $ac_cv_type_error_t = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define HAVE_ERROR_T 1
10798 cat >>confdefs.h <<\_ACEOF
10799 #define error_t int
10810 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10826 #define $ac_func innocuous_$ac_func
10828 /* System header to define __stub macros and hopefully few prototypes,
10829 which can conflict with char $ac_func (); below.
10830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831 <limits.h> exists even on freestanding compilers. */
10834 # include <limits.h>
10836 # include <assert.h>
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10848 /* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851 #if defined __stub_$ac_func || defined __stub___$ac_func
10858 return $ac_func ();
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_try") 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 eval "$as_ac_var=yes"
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 eval "$as_ac_var=no"
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10908 ac_res=`eval echo '${'$as_ac_var'}'`
10909 { echo "$as_me:$LINENO: result: $ac_res" >&5
10910 echo "${ECHO_T}$ac_res" >&6; }
10911 if test `eval echo '${'$as_ac_var'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10946 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 ac_res=`eval echo '${'$as_ac_Header'}'`
10957 { echo "$as_me:$LINENO: result: $ac_res" >&5
10958 echo "${ECHO_T}$ac_res" >&6; }
10960 # Is the header compilable?
10961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10963 cat >conftest.$ac_ext <<_ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 $ac_includes_default
10970 #include <$ac_header>
10972 rm -f conftest.$ac_objext
10973 if { (ac_try="$ac_compile"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest.$ac_objext'
10997 { (case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_try") 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_header_compiler=yes
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_header_compiler=no
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11016 echo "${ECHO_T}$ac_header_compiler" >&6; }
11018 # Is the header present?
11019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11021 cat >conftest.$ac_ext <<_ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <$ac_header>
11029 if { (ac_try="$ac_cpp conftest.$ac_ext"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } >/dev/null; then
11042 if test -s conftest.err; then
11043 ac_cpp_err=$ac_c_preproc_warn_flag
11044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11051 if test -z "$ac_cpp_err"; then
11052 ac_header_preproc=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_header_preproc=no
11060 rm -f conftest.err conftest.$ac_ext
11061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11062 echo "${ECHO_T}$ac_header_preproc" >&6; }
11064 # So? What about this header?
11065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11071 ac_header_preproc=yes
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11087 ## ------------------------------ ##
11088 ## Report this to bugs@yourdomain ##
11089 ## ------------------------------ ##
11091 ) | sed "s/^/$as_me: WARNING: /" >&2
11094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 eval "$as_ac_Header=\$ac_header_preproc"
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 ac_res=`eval echo '${'$as_ac_Header'}'`
11129 { echo "$as_me:$LINENO: result: $ac_res" >&5
11130 echo "${ECHO_T}$ac_res" >&6; }
11132 # Is the header compilable?
11133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11135 cat >conftest.$ac_ext <<_ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 $ac_includes_default
11142 #include <$ac_header>
11144 rm -f conftest.$ac_objext
11145 if { (ac_try="$ac_compile"
11146 case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_compile") 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_try") 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_header_compiler=yes
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_compiler=no
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11188 echo "${ECHO_T}$ac_header_compiler" >&6; }
11190 # Is the header present?
11191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <$ac_header>
11201 if { (ac_try="$ac_cpp conftest.$ac_ext"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209 grep -v '^ *+' conftest.er1 >conftest.err
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } >/dev/null; then
11214 if test -s conftest.err; then
11215 ac_cpp_err=$ac_c_preproc_warn_flag
11216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11223 if test -z "$ac_cpp_err"; then
11224 ac_header_preproc=yes
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_header_preproc=no
11232 rm -f conftest.err conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11234 echo "${ECHO_T}$ac_header_preproc" >&6; }
11236 # So? What about this header?
11237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11243 ac_header_preproc=yes
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259 ## ------------------------------ ##
11260 ## Report this to bugs@yourdomain ##
11261 ## ------------------------------ ##
11263 ) | sed "s/^/$as_me: WARNING: /" >&2
11266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 eval "$as_ac_Header=\$ac_header_preproc"
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11289 for ac_header in string.h strings.h
11291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 ac_res=`eval echo '${'$as_ac_Header'}'`
11299 { echo "$as_me:$LINENO: result: $ac_res" >&5
11300 echo "${ECHO_T}$ac_res" >&6; }
11302 # Is the header compilable?
11303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 #include <$ac_header>
11314 rm -f conftest.$ac_objext
11315 if { (ac_try="$ac_compile"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_compile") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1 >conftest.err
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_header_compiler=yes
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 ac_header_compiler=no
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6; }
11360 # Is the header present?
11361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <$ac_header>
11371 if { (ac_try="$ac_cpp conftest.$ac_ext"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } >/dev/null; then
11384 if test -s conftest.err; then
11385 ac_cpp_err=$ac_c_preproc_warn_flag
11386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11393 if test -z "$ac_cpp_err"; then
11394 ac_header_preproc=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_preproc=no
11402 rm -f conftest.err conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11429 ## ------------------------------ ##
11430 ## Report this to bugs@yourdomain ##
11431 ## ------------------------------ ##
11433 ) | sed "s/^/$as_me: WARNING: /" >&2
11436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 eval "$as_ac_Header=\$ac_header_preproc"
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 for ac_func in strchr index
11462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11476 #define $ac_func innocuous_$ac_func
11478 /* System header to define __stub macros and hopefully few prototypes,
11479 which can conflict with char $ac_func (); below.
11480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11481 <limits.h> exists even on freestanding compilers. */
11484 # include <limits.h>
11486 # include <assert.h>
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11498 /* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501 #if defined __stub_$ac_func || defined __stub___$ac_func
11508 return $ac_func ();
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528 { (case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_try") 2>&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest$ac_exeext'
11538 { (case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_try") 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 eval "$as_ac_var=yes"
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 eval "$as_ac_var=no"
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11558 ac_res=`eval echo '${'$as_ac_var'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_var'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11571 for ac_func in strrchr rindex
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587 #define $ac_func innocuous_$ac_func
11589 /* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11595 # include <limits.h>
11597 # include <assert.h>
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11619 return $ac_func ();
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no"
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 for ac_func in memcpy bcopy
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698 #define $ac_func innocuous_$ac_func
11700 /* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11706 # include <limits.h>
11708 # include <assert.h>
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11720 /* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11730 return $ac_func ();
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 eval "$as_ac_var=no"
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 for ac_func in memmove strcmp
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define $ac_func innocuous_$ac_func
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11817 # include <limits.h>
11819 # include <assert.h>
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11841 return $ac_func ();
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 eval "$as_ac_var=no"
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11905 for ac_func in closedir opendir readdir
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11921 #define $ac_func innocuous_$ac_func
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below.
11925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926 <limits.h> exists even on freestanding compilers. */
11929 # include <limits.h>
11931 # include <assert.h>
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined __stub_$ac_func || defined __stub___$ac_func
11953 return $ac_func ();
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11973 { (case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_try") 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; } &&
11982 { ac_try='test -s conftest$ac_exeext'
11983 { (case "(($ac_try" in
11984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985 *) ac_try_echo=$ac_try;;
11987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988 (eval "$ac_try") 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 eval "$as_ac_var=yes"
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 eval "$as_ac_var=no"
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12003 ac_res=`eval echo '${'$as_ac_var'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005 echo "${ECHO_T}$ac_res" >&6; }
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12017 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12030 if test "$GCC" != "yes" && test "$ICC" != "yes"
12032 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12033 echo "$as_me: error: gcc|icc required but not found" >&2;}
12034 { (exit 1); exit 1; }; }
12037 if test "$GXX" != "yes" && test "$IXX" != "yes"
12039 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12040 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12041 { (exit 1); exit 1; }; }
12044 if test "$GCC" = "yes"
12046 cat >conftest.$ac_ext <<_ACEOF
12047 #if !defined(__GNUC__) || __GNUC__ < 3
12048 #error Unsupported GCC version
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12092 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12093 { (exit 1); exit 1; }; }
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 if test -z "$llvm_cv_gnu_make_command"
12101 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12102 echo "$as_me: error: GNU Make required but not found" >&2;}
12103 { (exit 1); exit 1; }; }
12106 { echo "$as_me:$LINENO: result: ok" >&5
12107 echo "${ECHO_T}ok" >&6; }
12109 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12110 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12111 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12113 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12115 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12117 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12118 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12122 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12123 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12124 if test "${ac_cv_lib_m_sin+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 ac_check_lib_save_LIBS=$LIBS
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12185 ac_cv_lib_m_sin=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12193 rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12198 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12199 if test $ac_cv_lib_m_sin = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define HAVE_LIBM 1
12208 if test "$llvm_cv_os_type" = "MingW" ; then
12210 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12211 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-limagehlp $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12267 ac_cv_lib_imagehlp_main=yes
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_cv_lib_imagehlp_main=no
12275 rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12280 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12281 if test $ac_cv_lib_imagehlp_main = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283 #define HAVE_LIBIMAGEHLP 1
12286 LIBS="-limagehlp $LIBS"
12291 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12292 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12293 if test "${ac_cv_lib_psapi_main+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 ac_check_lib_save_LIBS=$LIBS
12297 LIBS="-lpsapi $LIBS"
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12348 ac_cv_lib_psapi_main=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_psapi_main=no
12356 rm -f core conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12361 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12362 if test $ac_cv_lib_psapi_main = yes; then
12363 cat >>confdefs.h <<_ACEOF
12364 #define HAVE_LIBPSAPI 1
12367 LIBS="-lpsapi $LIBS"
12373 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12374 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12375 if test "${ac_cv_search_dlopen+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 ac_func_search_save_LIBS=$LIBS
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12401 for ac_lib in '' dl; do
12402 if test -z "$ac_lib"; then
12403 ac_res="none required"
12406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_link") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12442 ac_cv_search_dlopen=$ac_res
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12450 rm -f core conftest.err conftest.$ac_objext \
12452 if test "${ac_cv_search_dlopen+set}" = set; then
12456 if test "${ac_cv_search_dlopen+set}" = set; then
12459 ac_cv_search_dlopen=no
12461 rm conftest.$ac_ext
12462 LIBS=$ac_func_search_save_LIBS
12464 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12465 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12466 ac_res=$ac_cv_search_dlopen
12467 if test "$ac_res" != no; then
12468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_DLOPEN 1
12475 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12476 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12480 if test "$llvm_cv_enable_libffi" = "yes" ; then
12481 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12482 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_ffi_call+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12504 return ffi_call ();
12509 for ac_lib in '' ffi; do
12510 if test -z "$ac_lib"; then
12511 ac_res="none required"
12514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12550 ac_cv_search_ffi_call=$ac_res
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f core conftest.err conftest.$ac_objext \
12560 if test "${ac_cv_search_ffi_call+set}" = set; then
12564 if test "${ac_cv_search_ffi_call+set}" = set; then
12567 ac_cv_search_ffi_call=no
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12573 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12574 ac_res=$ac_cv_search_ffi_call
12575 if test "$ac_res" != no; then
12576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_FFI_CALL 1
12583 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12584 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12585 { (exit 1); exit 1; }; }
12590 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12591 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_mallinfo+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12613 return mallinfo ();
12618 for ac_lib in '' malloc; do
12619 if test -z "$ac_lib"; then
12620 ac_res="none required"
12623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12659 ac_cv_search_mallinfo=$ac_res
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f core conftest.err conftest.$ac_objext \
12669 if test "${ac_cv_search_mallinfo+set}" = set; then
12673 if test "${ac_cv_search_mallinfo+set}" = set; then
12676 ac_cv_search_mallinfo=no
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12682 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12683 ac_res=$ac_cv_search_mallinfo
12684 if test "$ac_res" != no; then
12685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_MALLINFO 1
12694 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12696 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12697 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12698 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lpthread $LIBS"
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 /* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12716 char pthread_mutex_init ();
12720 return pthread_mutex_init ();
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12759 ac_cv_lib_pthread_pthread_mutex_init=yes
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_lib_pthread_pthread_mutex_init=no
12767 rm -f core conftest.err conftest.$ac_objext \
12768 conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12771 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12772 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12773 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define HAVE_LIBPTHREAD 1
12778 LIBS="-lpthread $LIBS"
12782 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12783 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12784 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 ac_func_search_save_LIBS=$LIBS
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12801 char pthread_mutex_lock ();
12805 return pthread_mutex_lock ();
12810 for ac_lib in '' pthread; do
12811 if test -z "$ac_lib"; then
12812 ac_res="none required"
12815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_link") 2>conftest.er1
12826 grep -v '^ *+' conftest.er1 >conftest.err
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12832 { (case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_try") 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12851 ac_cv_search_pthread_mutex_lock=$ac_res
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12859 rm -f core conftest.err conftest.$ac_objext \
12861 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12865 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12868 ac_cv_search_pthread_mutex_lock=no
12870 rm conftest.$ac_ext
12871 LIBS=$ac_func_search_save_LIBS
12873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12874 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12875 ac_res=$ac_cv_search_pthread_mutex_lock
12876 if test "$ac_res" != no; then
12877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12879 cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_PTHREAD_MUTEX_LOCK 1
12885 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12886 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12887 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 ac_func_search_save_LIBS=$LIBS
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12904 char pthread_rwlock_init ();
12908 return pthread_rwlock_init ();
12913 for ac_lib in '' pthread; do
12914 if test -z "$ac_lib"; then
12915 ac_res="none required"
12918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_link") 2>conftest.er1
12929 grep -v '^ *+' conftest.er1 >conftest.err
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935 { (case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_try") 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12954 ac_cv_search_pthread_rwlock_init=$ac_res
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12962 rm -f core conftest.err conftest.$ac_objext \
12964 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12968 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12971 ac_cv_search_pthread_rwlock_init=no
12973 rm conftest.$ac_ext
12974 LIBS=$ac_func_search_save_LIBS
12976 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12977 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12978 ac_res=$ac_cv_search_pthread_rwlock_init
12979 if test "$ac_res" != no; then
12980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_PTHREAD_RWLOCK_INIT 1
12988 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12989 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12990 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 ac_func_search_save_LIBS=$LIBS
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13007 char pthread_getspecific ();
13011 return pthread_getspecific ();
13016 for ac_lib in '' pthread; do
13017 if test -z "$ac_lib"; then
13018 ac_res="none required"
13021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (ac_try="$ac_link"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>conftest.er1
13032 grep -v '^ *+' conftest.er1 >conftest.err
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13057 ac_cv_search_pthread_getspecific=$ac_res
13059 echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13065 rm -f core conftest.err conftest.$ac_objext \
13067 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13071 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13074 ac_cv_search_pthread_getspecific=no
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13079 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13080 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13081 ac_res=$ac_cv_search_pthread_getspecific
13082 if test "$ac_res" != no; then
13083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_PTHREAD_GETSPECIFIC 1
13094 # Check whether --with-udis86 was given.
13095 if test "${with_udis86+set}" = set; then
13096 withval=$with_udis86;
13101 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13104 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13105 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13106 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 ac_check_lib_save_LIBS=$LIBS
13110 LIBS="-ludis86 $LIBS"
13111 cat >conftest.$ac_ext <<_ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_link") 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } &&
13147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13167 ac_cv_lib_udis86_ud_init=yes
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_cv_lib_udis86_ud_init=no
13175 rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13179 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13180 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13181 if test $ac_cv_lib_udis86_ud_init = yes; then
13182 cat >>confdefs.h <<_ACEOF
13183 #define HAVE_LIBUDIS86 1
13186 LIBS="-ludis86 $LIBS"
13190 echo "Error! You need to have libudis86 around."
13202 cat >>confdefs.h <<_ACEOF
13203 #define USE_UDIS86 $USE_UDIS86
13208 # Check whether --with-oprofile was given.
13209 if test "${with_oprofile+set}" = set; then
13210 withval=$with_oprofile;
13214 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13215 no) llvm_cv_oppath=
13218 *) llvm_cv_oppath="${withval}/lib/oprofile"
13219 CPPFLAGS="-I${withval}/include";;
13221 if test -n "$llvm_cv_oppath" ; then
13222 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13223 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13224 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13225 if test "${ac_cv_search_bfd_init+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_func_search_save_LIBS=$LIBS
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13246 return bfd_init ();
13251 for ac_lib in '' bfd; do
13252 if test -z "$ac_lib"; then
13253 ac_res="none required"
13256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13273 { (case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_try") 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13292 ac_cv_search_bfd_init=$ac_res
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13300 rm -f core conftest.err conftest.$ac_objext \
13302 if test "${ac_cv_search_bfd_init+set}" = set; then
13306 if test "${ac_cv_search_bfd_init+set}" = set; then
13309 ac_cv_search_bfd_init=no
13311 rm conftest.$ac_ext
13312 LIBS=$ac_func_search_save_LIBS
13314 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13315 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13316 ac_res=$ac_cv_search_bfd_init
13317 if test "$ac_res" != no; then
13318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13322 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13323 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13324 if test "${ac_cv_search_op_open_agent+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 ac_func_search_save_LIBS=$LIBS
13328 cat >conftest.$ac_ext <<_ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13341 char op_open_agent ();
13345 return op_open_agent ();
13350 for ac_lib in '' opagent; do
13351 if test -z "$ac_lib"; then
13352 ac_res="none required"
13355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (ac_try="$ac_link"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1 >conftest.err
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13391 ac_cv_search_op_open_agent=$ac_res
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13399 rm -f core conftest.err conftest.$ac_objext \
13401 if test "${ac_cv_search_op_open_agent+set}" = set; then
13405 if test "${ac_cv_search_op_open_agent+set}" = set; then
13408 ac_cv_search_op_open_agent=no
13410 rm conftest.$ac_ext
13411 LIBS=$ac_func_search_save_LIBS
13413 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13414 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13415 ac_res=$ac_cv_search_op_open_agent
13416 if test "$ac_res" != no; then
13417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13421 echo "Error! You need to have libopagent around."
13426 if test "${ac_cv_header_opagent_h+set}" = set; then
13427 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13428 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13429 if test "${ac_cv_header_opagent_h+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13433 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13435 # Is the header compilable?
13436 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13437 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 $ac_includes_default
13445 #include <opagent.h>
13447 rm -f conftest.$ac_objext
13448 if { (ac_try="$ac_compile"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_compile") 2>conftest.er1
13456 grep -v '^ *+' conftest.er1 >conftest.err
13458 cat conftest.err >&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13481 ac_header_compiler=yes
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_header_compiler=no
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 echo "${ECHO_T}$ac_header_compiler" >&6; }
13493 # Is the header present?
13494 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13495 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include <opagent.h>
13504 if { (ac_try="$ac_cpp conftest.$ac_ext"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13512 grep -v '^ *+' conftest.er1 >conftest.err
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } >/dev/null; then
13517 if test -s conftest.err; then
13518 ac_cpp_err=$ac_c_preproc_warn_flag
13519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13526 if test -z "$ac_cpp_err"; then
13527 ac_header_preproc=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_header_preproc=no
13535 rm -f conftest.err conftest.$ac_ext
13536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13537 echo "${ECHO_T}$ac_header_preproc" >&6; }
13539 # So? What about this header?
13540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13543 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13545 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13546 ac_header_preproc=yes
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13550 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13552 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13554 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13556 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13558 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13560 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13562 ## ------------------------------ ##
13563 ## Report this to bugs@yourdomain ##
13564 ## ------------------------------ ##
13566 ) | sed "s/^/$as_me: WARNING: /" >&2
13569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 ac_cv_header_opagent_h=$ac_header_preproc
13576 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13580 if test $ac_cv_header_opagent_h = yes; then
13584 echo "Error! You need to have opagent.h around."
13600 cat >>confdefs.h <<_ACEOF
13601 #define USE_OPROFILE $USE_OPROFILE
13611 ac_header_dirent=no
13612 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13613 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13614 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13615 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 #include <sys/types.h>
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13671 eval "$as_ac_Header=yes"
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 eval "$as_ac_Header=no"
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 ac_res=`eval echo '${'$as_ac_Header'}'`
13682 { echo "$as_me:$LINENO: result: $ac_res" >&5
13683 echo "${ECHO_T}$ac_res" >&6; }
13684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13689 ac_header_dirent=$ac_hdr; break
13693 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13694 if test $ac_header_dirent = dirent.h; then
13695 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13696 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13697 if test "${ac_cv_search_opendir+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 ac_func_search_save_LIBS=$LIBS
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13723 for ac_lib in '' dir; do
13724 if test -z "$ac_lib"; then
13725 ac_res="none required"
13728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_link") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13764 ac_cv_search_opendir=$ac_res
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13772 rm -f core conftest.err conftest.$ac_objext \
13774 if test "${ac_cv_search_opendir+set}" = set; then
13778 if test "${ac_cv_search_opendir+set}" = set; then
13781 ac_cv_search_opendir=no
13783 rm conftest.$ac_ext
13784 LIBS=$ac_func_search_save_LIBS
13786 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13787 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13788 ac_res=$ac_cv_search_opendir
13789 if test "$ac_res" != no; then
13790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13797 if test "${ac_cv_search_opendir+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_func_search_save_LIBS=$LIBS
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13823 for ac_lib in '' x; do
13824 if test -z "$ac_lib"; then
13825 ac_res="none required"
13828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
13839 grep -v '^ *+' conftest.er1 >conftest.err
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13864 ac_cv_search_opendir=$ac_res
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13872 rm -f core conftest.err conftest.$ac_objext \
13874 if test "${ac_cv_search_opendir+set}" = set; then
13878 if test "${ac_cv_search_opendir+set}" = set; then
13881 ac_cv_search_opendir=no
13883 rm conftest.$ac_ext
13884 LIBS=$ac_func_search_save_LIBS
13886 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13887 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13888 ac_res=$ac_cv_search_opendir
13889 if test "$ac_res" != no; then
13890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13896 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13897 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13898 if test "${ac_cv_header_mmap_anon+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_cpp='$CPP $CPPFLAGS'
13903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 #include <sys/mman.h>
13914 #include <unistd.h>
13919 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_compile") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13958 ac_cv_header_mmap_anon=yes
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ac_cv_header_mmap_anon=no
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 ac_cpp='$CPP $CPPFLAGS'
13969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13975 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13976 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13977 if test "$ac_cv_header_mmap_anon" = yes; then
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_MMAP_ANONYMOUS 1
13985 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13986 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13987 if test "${ac_cv_header_stat_broken+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 #include <sys/types.h>
13997 #include <sys/stat.h>
13999 #if defined S_ISBLK && defined S_IFDIR
14000 # if S_ISBLK (S_IFDIR)
14005 #if defined S_ISBLK && defined S_IFCHR
14006 # if S_ISBLK (S_IFCHR)
14011 #if defined S_ISLNK && defined S_IFREG
14012 # if S_ISLNK (S_IFREG)
14017 #if defined S_ISSOCK && defined S_IFREG
14018 # if S_ISSOCK (S_IFREG)
14024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14025 $EGREP "You lose" >/dev/null 2>&1; then
14026 ac_cv_header_stat_broken=yes
14028 ac_cv_header_stat_broken=no
14033 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14034 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14035 if test $ac_cv_header_stat_broken = yes; then
14037 cat >>confdefs.h <<\_ACEOF
14038 #define STAT_MACROS_BROKEN 1
14043 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14044 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <sys/types.h>
14055 #include <sys/wait.h>
14056 #ifndef WEXITSTATUS
14057 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14060 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14068 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14073 rm -f conftest.$ac_objext
14074 if { (ac_try="$ac_compile"
14075 case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14107 ac_cv_header_sys_wait_h=yes
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_cv_header_sys_wait_h=no
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14119 if test $ac_cv_header_sys_wait_h = yes; then
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_SYS_WAIT_H 1
14127 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14128 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14129 if test "${ac_cv_header_time+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 #include <sys/types.h>
14139 #include <sys/time.h>
14145 if ((struct tm *) 0)
14151 rm -f conftest.$ac_objext
14152 if { (ac_try="$ac_compile"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_compile") 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14166 { (case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_try") 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14185 ac_cv_header_time=yes
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_cv_header_time=no
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14196 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14197 if test $ac_cv_header_time = yes; then
14199 cat >>confdefs.h <<\_ACEOF
14200 #define TIME_WITH_SYS_TIME 1
14212 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 ac_res=`eval echo '${'$as_ac_Header'}'`
14222 { echo "$as_me:$LINENO: result: $ac_res" >&5
14223 echo "${ECHO_T}$ac_res" >&6; }
14225 # Is the header compilable?
14226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 $ac_includes_default
14235 #include <$ac_header>
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14271 ac_header_compiler=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_header_compiler=no
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6; }
14283 # Is the header present?
14284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 #include <$ac_header>
14294 if { (ac_try="$ac_cpp conftest.$ac_ext"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } >/dev/null; then
14307 if test -s conftest.err; then
14308 ac_cpp_err=$ac_c_preproc_warn_flag
14309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14316 if test -z "$ac_cpp_err"; then
14317 ac_header_preproc=yes
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_header_preproc=no
14325 rm -f conftest.err conftest.$ac_ext
14326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14327 echo "${ECHO_T}$ac_header_preproc" >&6; }
14329 # So? What about this header?
14330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14336 ac_header_preproc=yes
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14352 ## ------------------------------ ##
14353 ## Report this to bugs@yourdomain ##
14354 ## ------------------------------ ##
14356 ) | sed "s/^/$as_me: WARNING: /" >&2
14359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 eval "$as_ac_Header=\$ac_header_preproc"
14366 ac_res=`eval echo '${'$as_ac_Header'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14372 cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14386 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 ac_res=`eval echo '${'$as_ac_Header'}'`
14396 { echo "$as_me:$LINENO: result: $ac_res" >&5
14397 echo "${ECHO_T}$ac_res" >&6; }
14399 # Is the header compilable?
14400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14402 cat >conftest.$ac_ext <<_ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14409 #include <$ac_header>
14411 rm -f conftest.$ac_objext
14412 if { (ac_try="$ac_compile"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_compile") 2>conftest.er1
14420 grep -v '^ *+' conftest.er1 >conftest.err
14422 cat conftest.err >&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
14425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14426 { (case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_try") 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14445 ac_header_compiler=yes
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_header_compiler=no
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455 echo "${ECHO_T}$ac_header_compiler" >&6; }
14457 # Is the header present?
14458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 #include <$ac_header>
14468 if { (ac_try="$ac_cpp conftest.$ac_ext"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } >/dev/null; then
14481 if test -s conftest.err; then
14482 ac_cpp_err=$ac_c_preproc_warn_flag
14483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14490 if test -z "$ac_cpp_err"; then
14491 ac_header_preproc=yes
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_header_preproc=no
14499 rm -f conftest.err conftest.$ac_ext
14500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14501 echo "${ECHO_T}$ac_header_preproc" >&6; }
14503 # So? What about this header?
14504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14510 ac_header_preproc=yes
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14526 ## ------------------------------ ##
14527 ## Report this to bugs@yourdomain ##
14528 ## ------------------------------ ##
14530 ) | sed "s/^/$as_me: WARNING: /" >&2
14533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 eval "$as_ac_Header=\$ac_header_preproc"
14540 ac_res=`eval echo '${'$as_ac_Header'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14546 cat >>confdefs.h <<_ACEOF
14547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14556 for ac_header in utime.h windows.h
14558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 ac_res=`eval echo '${'$as_ac_Header'}'`
14566 { echo "$as_me:$LINENO: result: $ac_res" >&5
14567 echo "${ECHO_T}$ac_res" >&6; }
14569 # Is the header compilable?
14570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14579 #include <$ac_header>
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_compile") 2>conftest.er1
14590 grep -v '^ *+' conftest.er1 >conftest.err
14592 cat conftest.err >&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14596 { (case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_try") 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14615 ac_header_compiler=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_header_compiler=no
14623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14625 echo "${ECHO_T}$ac_header_compiler" >&6; }
14627 # Is the header present?
14628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 #include <$ac_header>
14638 if { (ac_try="$ac_cpp conftest.$ac_ext"
14639 case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14646 grep -v '^ *+' conftest.er1 >conftest.err
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } >/dev/null; then
14651 if test -s conftest.err; then
14652 ac_cpp_err=$ac_c_preproc_warn_flag
14653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14660 if test -z "$ac_cpp_err"; then
14661 ac_header_preproc=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_header_preproc=no
14669 rm -f conftest.err conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671 echo "${ECHO_T}$ac_header_preproc" >&6; }
14673 # So? What about this header?
14674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14680 ac_header_preproc=yes
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14696 ## ------------------------------ ##
14697 ## Report this to bugs@yourdomain ##
14698 ## ------------------------------ ##
14700 ) | sed "s/^/$as_me: WARNING: /" >&2
14703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 eval "$as_ac_Header=\$ac_header_preproc"
14710 ac_res=`eval echo '${'$as_ac_Header'}'`
14711 { echo "$as_me:$LINENO: result: $ac_res" >&5
14712 echo "${ECHO_T}$ac_res" >&6; }
14715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14729 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 ac_res=`eval echo '${'$as_ac_Header'}'`
14739 { echo "$as_me:$LINENO: result: $ac_res" >&5
14740 echo "${ECHO_T}$ac_res" >&6; }
14742 # Is the header compilable?
14743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 $ac_includes_default
14752 #include <$ac_header>
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14788 ac_header_compiler=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_header_compiler=no
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 echo "${ECHO_T}$ac_header_compiler" >&6; }
14800 # Is the header present?
14801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <$ac_header>
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } >/dev/null; then
14824 if test -s conftest.err; then
14825 ac_cpp_err=$ac_c_preproc_warn_flag
14826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14833 if test -z "$ac_cpp_err"; then
14834 ac_header_preproc=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_header_preproc=no
14842 rm -f conftest.err conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844 echo "${ECHO_T}$ac_header_preproc" >&6; }
14846 # So? What about this header?
14847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14869 ## ------------------------------ ##
14870 ## Report this to bugs@yourdomain ##
14871 ## ------------------------------ ##
14873 ) | sed "s/^/$as_me: WARNING: /" >&2
14876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 eval "$as_ac_Header=\$ac_header_preproc"
14883 ac_res=`eval echo '${'$as_ac_Header'}'`
14884 { echo "$as_me:$LINENO: result: $ac_res" >&5
14885 echo "${ECHO_T}$ac_res" >&6; }
14888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 ac_res=`eval echo '${'$as_ac_Header'}'`
14911 { echo "$as_me:$LINENO: result: $ac_res" >&5
14912 echo "${ECHO_T}$ac_res" >&6; }
14914 # Is the header compilable?
14915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 $ac_includes_default
14924 #include <$ac_header>
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_compile") 2>conftest.er1
14935 grep -v '^ *+' conftest.er1 >conftest.err
14937 cat conftest.err >&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
14940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941 { (case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_try") 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14960 ac_header_compiler=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6; }
14972 # Is the header present?
14973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <$ac_header>
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null; then
14996 if test -s conftest.err; then
14997 ac_cpp_err=$ac_c_preproc_warn_flag
14998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15005 if test -z "$ac_cpp_err"; then
15006 ac_header_preproc=yes
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_header_preproc=no
15014 rm -f conftest.err conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15016 echo "${ECHO_T}$ac_header_preproc" >&6; }
15018 # So? What about this header?
15019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15025 ac_header_preproc=yes
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15041 ## ------------------------------ ##
15042 ## Report this to bugs@yourdomain ##
15043 ## ------------------------------ ##
15045 ) | sed "s/^/$as_me: WARNING: /" >&2
15048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051 echo $ECHO_N "(cached) $ECHO_C" >&6
15053 eval "$as_ac_Header=\$ac_header_preproc"
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15070 for ac_header in valgrind/valgrind.h
15072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 ac_res=`eval echo '${'$as_ac_Header'}'`
15080 { echo "$as_me:$LINENO: result: $ac_res" >&5
15081 echo "${ECHO_T}$ac_res" >&6; }
15083 # Is the header compilable?
15084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 $ac_includes_default
15093 #include <$ac_header>
15095 rm -f conftest.$ac_objext
15096 if { (ac_try="$ac_compile"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_compile") 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15110 { (case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_try") 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15129 ac_header_compiler=yes
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ac_header_compiler=no
15137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15139 echo "${ECHO_T}$ac_header_compiler" >&6; }
15141 # Is the header present?
15142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 #include <$ac_header>
15152 if { (ac_try="$ac_cpp conftest.$ac_ext"
15153 case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15160 grep -v '^ *+' conftest.er1 >conftest.err
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_c_preproc_warn_flag
15167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15174 if test -z "$ac_cpp_err"; then
15175 ac_header_preproc=yes
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_header_preproc=no
15183 rm -f conftest.err conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15185 echo "${ECHO_T}$ac_header_preproc" >&6; }
15187 # So? What about this header?
15188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15194 ac_header_preproc=yes
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15210 ## ------------------------------ ##
15211 ## Report this to bugs@yourdomain ##
15212 ## ------------------------------ ##
15214 ) | sed "s/^/$as_me: WARNING: /" >&2
15217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 eval "$as_ac_Header=\$ac_header_preproc"
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239 for ac_header in fenv.h
15241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_res=`eval echo '${'$as_ac_Header'}'`
15249 { echo "$as_me:$LINENO: result: $ac_res" >&5
15250 echo "${ECHO_T}$ac_res" >&6; }
15252 # Is the header compilable?
15253 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 $ac_includes_default
15262 #include <$ac_header>
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_compile") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15298 ac_header_compiler=yes
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 ac_header_compiler=no
15306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15308 echo "${ECHO_T}$ac_header_compiler" >&6; }
15310 # Is the header present?
15311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <$ac_header>
15321 if { (ac_try="$ac_cpp conftest.$ac_ext"
15322 case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15329 grep -v '^ *+' conftest.er1 >conftest.err
15331 cat conftest.err >&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } >/dev/null; then
15334 if test -s conftest.err; then
15335 ac_cpp_err=$ac_c_preproc_warn_flag
15336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15343 if test -z "$ac_cpp_err"; then
15344 ac_header_preproc=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_header_preproc=no
15352 rm -f conftest.err conftest.$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15354 echo "${ECHO_T}$ac_header_preproc" >&6; }
15356 # So? What about this header?
15357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15363 ac_header_preproc=yes
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15379 ## ------------------------------ ##
15380 ## Report this to bugs@yourdomain ##
15381 ## ------------------------------ ##
15383 ) | sed "s/^/$as_me: WARNING: /" >&2
15386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 eval "$as_ac_Header=\$ac_header_preproc"
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15407 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15409 for ac_header in pthread.h
15411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 ac_res=`eval echo '${'$as_ac_Header'}'`
15419 { echo "$as_me:$LINENO: result: $ac_res" >&5
15420 echo "${ECHO_T}$ac_res" >&6; }
15422 # Is the header compilable?
15423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 $ac_includes_default
15432 #include <$ac_header>
15434 rm -f conftest.$ac_objext
15435 if { (ac_try="$ac_compile"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_compile") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } &&
15448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15449 { (case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_try") 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15468 ac_header_compiler=yes
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 ac_header_compiler=no
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478 echo "${ECHO_T}$ac_header_compiler" >&6; }
15480 # Is the header present?
15481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 #include <$ac_header>
15491 if { (ac_try="$ac_cpp conftest.$ac_ext"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } >/dev/null; then
15504 if test -s conftest.err; then
15505 ac_cpp_err=$ac_c_preproc_warn_flag
15506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15513 if test -z "$ac_cpp_err"; then
15514 ac_header_preproc=yes
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ac_header_preproc=no
15522 rm -f conftest.err conftest.$ac_ext
15523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15524 echo "${ECHO_T}$ac_header_preproc" >&6; }
15526 # So? What about this header?
15527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15533 ac_header_preproc=yes
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15549 ## ------------------------------ ##
15550 ## Report this to bugs@yourdomain ##
15551 ## ------------------------------ ##
15553 ) | sed "s/^/$as_me: WARNING: /" >&2
15556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 eval "$as_ac_Header=\$ac_header_preproc"
15563 ac_res=`eval echo '${'$as_ac_Header'}'`
15564 { echo "$as_me:$LINENO: result: $ac_res" >&5
15565 echo "${ECHO_T}$ac_res" >&6; }
15568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15586 if test "$llvm_cv_enable_libffi" = "yes" ; then
15589 for ac_header in ffi.h ffi/ffi.h
15591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15602 # Is the header compilable?
15603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15605 cat >conftest.$ac_ext <<_ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 $ac_includes_default
15612 #include <$ac_header>
15614 rm -f conftest.$ac_objext
15615 if { (ac_try="$ac_compile"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_compile") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15648 ac_header_compiler=yes
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 ac_header_compiler=no
15656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658 echo "${ECHO_T}$ac_header_compiler" >&6; }
15660 # Is the header present?
15661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <$ac_header>
15671 if { (ac_try="$ac_cpp conftest.$ac_ext"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } >/dev/null; then
15684 if test -s conftest.err; then
15685 ac_cpp_err=$ac_c_preproc_warn_flag
15686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693 if test -z "$ac_cpp_err"; then
15694 ac_header_preproc=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_header_preproc=no
15702 rm -f conftest.err conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15704 echo "${ECHO_T}$ac_header_preproc" >&6; }
15706 # So? What about this header?
15707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15713 ac_header_preproc=yes
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15729 ## ------------------------------ ##
15730 ## Report this to bugs@yourdomain ##
15731 ## ------------------------------ ##
15733 ) | sed "s/^/$as_me: WARNING: /" >&2
15736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 eval "$as_ac_Header=\$ac_header_preproc"
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 for ac_header in CrashReporterClient.h
15762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15773 # Is the header compilable?
15774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15783 #include <$ac_header>
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_compile") 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15800 { (case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_try") 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15819 ac_header_compiler=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_compiler=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 echo "${ECHO_T}$ac_header_compiler" >&6; }
15831 # Is the header present?
15832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <$ac_header>
15842 if { (ac_try="$ac_cpp conftest.$ac_ext"
15843 case "(($ac_try" in
15844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845 *) ac_try_echo=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev/null; then
15855 if test -s conftest.err; then
15856 ac_cpp_err=$ac_c_preproc_warn_flag
15857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15864 if test -z "$ac_cpp_err"; then
15865 ac_header_preproc=yes
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_preproc=no
15873 rm -f conftest.err conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15875 echo "${ECHO_T}$ac_header_preproc" >&6; }
15877 # So? What about this header?
15878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15884 ac_header_preproc=yes
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15900 ## ------------------------------ ##
15901 ## Report this to bugs@yourdomain ##
15902 ## ------------------------------ ##
15904 ) | sed "s/^/$as_me: WARNING: /" >&2
15907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 eval "$as_ac_Header=\$ac_header_preproc"
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15920 cat >>confdefs.h <<_ACEOF
15921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15929 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15930 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 extern const char *__crashreporter_info__;
15939 __crashreporter_info__ = "test";
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15978 { echo "$as_me:$LINENO: result: yes" >&5
15979 echo "${ECHO_T}yes" >&6; }
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_CRASHREPORTER_INFO 1
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 { echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6; }
15992 cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_CRASHREPORTER_INFO 0
15998 rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16004 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16005 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16006 if test "${ac_cv_huge_val_sanity+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 ac_cpp='$CXXCPP $CPPFLAGS'
16012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16016 ac_save_CXXFLAGS=$CXXFLAGS
16017 CXXFLAGS="$CXXFLAGS -pedantic"
16018 if test "$cross_compiling" = yes; then
16019 ac_cv_huge_val_sanity=yes
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16031 double x = HUGE_VAL; return x != x;
16036 rm -f conftest$ac_exeext
16037 if { (ac_try="$ac_link"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_link") 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16047 { (case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_try") 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_huge_val_sanity=yes
16058 echo "$as_me: program exited with status $ac_status" >&5
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ( exit $ac_status )
16063 ac_cv_huge_val_sanity=no
16065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16069 CXXFLAGS=$ac_save_CXXFLAGS
16071 ac_cpp='$CPP $CPPFLAGS'
16072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16078 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16079 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16080 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16083 { echo "$as_me:$LINENO: checking for pid_t" >&5
16084 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16085 if test "${ac_cv_type_pid_t+set}" = set; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 $ac_includes_default
16095 typedef pid_t ac__type_new_;
16099 if ((ac__type_new_ *) 0)
16101 if (sizeof (ac__type_new_))
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16141 ac_cv_type_pid_t=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_cv_type_pid_t=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16153 if test $ac_cv_type_pid_t = yes; then
16157 cat >>confdefs.h <<_ACEOF
16163 { echo "$as_me:$LINENO: checking for size_t" >&5
16164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16165 if test "${ac_cv_type_size_t+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 cat >conftest.$ac_ext <<_ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16174 $ac_includes_default
16175 typedef size_t ac__type_new_;
16179 if ((ac__type_new_ *) 0)
16181 if (sizeof (ac__type_new_))
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_compile") 2>conftest.er1
16196 grep -v '^ *+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16202 { (case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_try") 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; } &&
16211 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16221 ac_cv_type_size_t=yes
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_cv_type_size_t=no
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16232 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16233 if test $ac_cv_type_size_t = yes; then
16237 cat >>confdefs.h <<_ACEOF
16238 #define size_t unsigned int
16244 cat >>confdefs.h <<_ACEOF
16245 #define RETSIGTYPE void
16248 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16249 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16250 if test "${ac_cv_struct_tm+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <sys/types.h>
16265 struct tm *tp; tp->tm_sec;
16270 rm -f conftest.$ac_objext
16271 if { (ac_try="$ac_compile"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_compile") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285 { (case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_try") 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16304 ac_cv_struct_tm=time.h
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_cv_struct_tm=sys/time.h
16312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16314 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16315 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16316 if test $ac_cv_struct_tm = sys/time.h; then
16318 cat >>confdefs.h <<\_ACEOF
16319 #define TM_IN_SYS_TIME 1
16324 { echo "$as_me:$LINENO: checking for int64_t" >&5
16325 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16326 if test "${ac_cv_type_int64_t+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 $ac_includes_default
16336 typedef int64_t ac__type_new_;
16340 if ((ac__type_new_ *) 0)
16342 if (sizeof (ac__type_new_))
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } &&
16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16382 ac_cv_type_int64_t=yes
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_cv_type_int64_t=no
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16393 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16394 if test $ac_cv_type_int64_t = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define HAVE_INT64_T 1
16402 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16403 echo "$as_me: error: Type int64_t required but not found" >&2;}
16404 { (exit 1); exit 1; }; }
16407 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16408 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16409 if test "${ac_cv_type_uint64_t+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 $ac_includes_default
16419 typedef uint64_t ac__type_new_;
16423 if ((ac__type_new_ *) 0)
16425 if (sizeof (ac__type_new_))
16431 rm -f conftest.$ac_objext
16432 if { (ac_try="$ac_compile"
16433 case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_compile") 2>conftest.er1
16440 grep -v '^ *+' conftest.er1 >conftest.err
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16465 ac_cv_type_uint64_t=yes
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16470 ac_cv_type_uint64_t=no
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16475 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16476 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16477 if test $ac_cv_type_uint64_t = yes; then
16479 cat >>confdefs.h <<_ACEOF
16480 #define HAVE_UINT64_T 1
16485 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16486 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16487 if test "${ac_cv_type_u_int64_t+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 $ac_includes_default
16497 typedef u_int64_t ac__type_new_;
16501 if ((ac__type_new_ *) 0)
16503 if (sizeof (ac__type_new_))
16509 rm -f conftest.$ac_objext
16510 if { (ac_try="$ac_compile"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_compile") 2>conftest.er1
16518 grep -v '^ *+' conftest.er1 >conftest.err
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16543 ac_cv_type_u_int64_t=yes
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_type_u_int64_t=no
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16554 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16555 if test $ac_cv_type_u_int64_t = yes; then
16557 cat >>confdefs.h <<_ACEOF
16558 #define HAVE_U_INT64_T 1
16563 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16564 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16565 { (exit 1); exit 1; }; }
16579 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define $ac_func innocuous_$ac_func
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16603 # include <limits.h>
16605 # include <assert.h>
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined __stub_$ac_func || defined __stub___$ac_func
16627 return $ac_func ();
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16666 eval "$as_ac_var=yes"
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 eval "$as_ac_var=no"
16674 rm -f core conftest.err conftest.$ac_objext \
16675 conftest$ac_exeext conftest.$ac_ext
16677 ac_res=`eval echo '${'$as_ac_var'}'`
16678 { echo "$as_me:$LINENO: result: $ac_res" >&5
16679 echo "${ECHO_T}$ac_res" >&6; }
16680 if test `eval echo '${'$as_ac_var'}'` = yes; then
16681 cat >>confdefs.h <<_ACEOF
16682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16692 for ac_func in powf fmodf strtof round
16694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16708 #define $ac_func innocuous_$ac_func
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func (); below.
16712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16713 <limits.h> exists even on freestanding compilers. */
16716 # include <limits.h>
16718 # include <assert.h>
16723 /* Override any GCC internal prototype to avoid an error.
16724 Use char because int might match the return type of a GCC
16725 builtin and then its argument prototype would still apply. */
16730 /* The GNU C library defines this for functions which it implements
16731 to always fail with ENOSYS. Some functions are actually named
16732 something starting with __ and the normal name is an alias. */
16733 #if defined __stub_$ac_func || defined __stub___$ac_func
16740 return $ac_func ();
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (ac_try="$ac_link"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_link") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16779 eval "$as_ac_var=yes"
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 eval "$as_ac_var=no"
16787 rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16790 ac_res=`eval echo '${'$as_ac_var'}'`
16791 { echo "$as_me:$LINENO: result: $ac_res" >&5
16792 echo "${ECHO_T}$ac_res" >&6; }
16793 if test `eval echo '${'$as_ac_var'}'` = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16806 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 cat >conftest.$ac_ext <<_ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16822 #define $ac_func innocuous_$ac_func
16824 /* System header to define __stub macros and hopefully few prototypes,
16825 which can conflict with char $ac_func (); below.
16826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16827 <limits.h> exists even on freestanding compilers. */
16830 # include <limits.h>
16832 # include <assert.h>
16837 /* Override any GCC internal prototype to avoid an error.
16838 Use char because int might match the return type of a GCC
16839 builtin and then its argument prototype would still apply. */
16844 /* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847 #if defined __stub_$ac_func || defined __stub___$ac_func
16854 return $ac_func ();
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (ac_try="$ac_link"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_link") 2>conftest.er1
16868 grep -v '^ *+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_try") 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16893 eval "$as_ac_var=yes"
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 eval "$as_ac_var=no"
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16904 ac_res=`eval echo '${'$as_ac_var'}'`
16905 { echo "$as_me:$LINENO: result: $ac_res" >&5
16906 echo "${ECHO_T}$ac_res" >&6; }
16907 if test `eval echo '${'$as_ac_var'}'` = yes; then
16908 cat >>confdefs.h <<_ACEOF
16909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16918 for ac_func in isatty mkdtemp mkstemp
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16942 # include <limits.h>
16944 # include <assert.h>
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16966 return $ac_func ();
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17005 eval "$as_ac_var=yes"
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 eval "$as_ac_var=no"
17013 rm -f core conftest.err conftest.$ac_objext \
17014 conftest$ac_exeext conftest.$ac_ext
17016 ac_res=`eval echo '${'$as_ac_var'}'`
17017 { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_var'}'` = yes; then
17020 cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17033 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049 #define $ac_func innocuous_$ac_func
17051 /* System header to define __stub macros and hopefully few prototypes,
17052 which can conflict with char $ac_func (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
17057 # include <limits.h>
17059 # include <assert.h>
17064 /* Override any GCC internal prototype to avoid an error.
17065 Use char because int might match the return type of a GCC
17066 builtin and then its argument prototype would still apply. */
17071 /* The GNU C library defines this for functions which it implements
17072 to always fail with ENOSYS. Some functions are actually named
17073 something starting with __ and the normal name is an alias. */
17074 #if defined __stub_$ac_func || defined __stub___$ac_func
17081 return $ac_func ();
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17120 eval "$as_ac_var=yes"
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 eval "$as_ac_var=no"
17128 rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17131 ac_res=`eval echo '${'$as_ac_var'}'`
17132 { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_var'}'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145 for ac_func in strerror strerror_r setenv
17147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17161 #define $ac_func innocuous_$ac_func
17163 /* System header to define __stub macros and hopefully few prototypes,
17164 which can conflict with char $ac_func (); below.
17165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17166 <limits.h> exists even on freestanding compilers. */
17169 # include <limits.h>
17171 # include <assert.h>
17176 /* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17183 /* The GNU C library defines this for functions which it implements
17184 to always fail with ENOSYS. Some functions are actually named
17185 something starting with __ and the normal name is an alias. */
17186 #if defined __stub_$ac_func || defined __stub___$ac_func
17193 return $ac_func ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_link") 2>conftest.er1
17207 grep -v '^ *+' conftest.er1 >conftest.err
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17232 eval "$as_ac_var=yes"
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 eval "$as_ac_var=no"
17240 rm -f core conftest.err conftest.$ac_objext \
17241 conftest$ac_exeext conftest.$ac_ext
17243 ac_res=`eval echo '${'$as_ac_var'}'`
17244 { echo "$as_me:$LINENO: result: $ac_res" >&5
17245 echo "${ECHO_T}$ac_res" >&6; }
17246 if test `eval echo '${'$as_ac_var'}'` = yes; then
17247 cat >>confdefs.h <<_ACEOF
17248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17258 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17274 #define $ac_func innocuous_$ac_func
17276 /* System header to define __stub macros and hopefully few prototypes,
17277 which can conflict with char $ac_func (); below.
17278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17279 <limits.h> exists even on freestanding compilers. */
17282 # include <limits.h>
17284 # include <assert.h>
17289 /* Override any GCC internal prototype to avoid an error.
17290 Use char because int might match the return type of a GCC
17291 builtin and then its argument prototype would still apply. */
17296 /* The GNU C library defines this for functions which it implements
17297 to always fail with ENOSYS. Some functions are actually named
17298 something starting with __ and the normal name is an alias. */
17299 #if defined __stub_$ac_func || defined __stub___$ac_func
17306 return $ac_func ();
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (ac_try="$ac_link"
17313 case "(($ac_try" in
17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17315 *) ac_try_echo=$ac_try;;
17317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17318 (eval "$ac_link") 2>conftest.er1
17320 grep -v '^ *+' conftest.er1 >conftest.err
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17345 eval "$as_ac_var=yes"
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 eval "$as_ac_var=no"
17353 rm -f core conftest.err conftest.$ac_objext \
17354 conftest$ac_exeext conftest.$ac_ext
17356 ac_res=`eval echo '${'$as_ac_var'}'`
17357 { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359 if test `eval echo '${'$as_ac_var'}'` = yes; then
17360 cat >>confdefs.h <<_ACEOF
17361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17372 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17388 #define $ac_func innocuous_$ac_func
17390 /* System header to define __stub macros and hopefully few prototypes,
17391 which can conflict with char $ac_func (); below.
17392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17393 <limits.h> exists even on freestanding compilers. */
17396 # include <limits.h>
17398 # include <assert.h>
17403 /* Override any GCC internal prototype to avoid an error.
17404 Use char because int might match the return type of a GCC
17405 builtin and then its argument prototype would still apply. */
17410 /* The GNU C library defines this for functions which it implements
17411 to always fail with ENOSYS. Some functions are actually named
17412 something starting with __ and the normal name is an alias. */
17413 #if defined __stub_$ac_func || defined __stub___$ac_func
17420 return $ac_func ();
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17459 eval "$as_ac_var=yes"
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 eval "$as_ac_var=no"
17467 rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17470 ac_res=`eval echo '${'$as_ac_var'}'`
17471 { echo "$as_me:$LINENO: result: $ac_res" >&5
17472 echo "${ECHO_T}$ac_res" >&6; }
17473 if test `eval echo '${'$as_ac_var'}'` = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17482 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17483 if test "${llvm_cv_c_printf_a+set}" = set; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17492 if test "$cross_compiling" = yes; then
17493 llvmac_cv_c_printf_a=no
17495 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17504 #include <stdlib.h>
17510 volatile double A, B;
17514 sprintf(Buffer, "%a", A);
17518 if (A != 0x1.999999999999ap-4)
17525 rm -f conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_link") 2>&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 llvm_cv_c_printf_a=yes
17547 echo "$as_me: program exited with status $ac_status" >&5
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 ( exit $ac_status )
17552 llvmac_cv_c_printf_a=no
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 ac_cpp='$CPP $CPPFLAGS'
17560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17565 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17566 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17567 if test "$llvm_cv_c_printf_a" = "yes"; then
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_PRINTF_A 1
17576 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17577 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17578 if test "${ac_cv_func_rand48+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 ac_cpp='$CXXCPP $CPPFLAGS'
17583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 #include <stdlib.h>
17597 srand48(0);lrand48();drand48();
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17636 ac_cv_func_rand48=yes
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_cv_func_rand48=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646 ac_cpp='$CPP $CPPFLAGS'
17647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17652 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17653 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17655 if test "$ac_cv_func_rand48" = "yes" ; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_RAND48 1
17664 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17665 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17666 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 $ac_includes_default
17680 char *p = (char *) strerror_s;
17688 rm -f conftest.$ac_objext
17689 if { (ac_try="$ac_compile"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17722 ac_cv_have_decl_strerror_s=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_cv_have_decl_strerror_s=no
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17733 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17734 if test $ac_cv_have_decl_strerror_s = yes; then
17736 cat >>confdefs.h <<_ACEOF
17737 #define HAVE_DECL_STRERROR_S 1
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_DECL_STRERROR_S 0
17751 if test "$llvm_cv_os_type" = "MingW" ; then
17752 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17753 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17754 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 ac_check_lib_save_LIBS=$LIBS
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17766 /* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796 { (case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_try") 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17815 ac_cv_lib_gcc__alloca=yes
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_cv_lib_gcc__alloca=no
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17827 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17828 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17829 if test $ac_cv_lib_gcc__alloca = yes; then
17831 cat >>confdefs.h <<\_ACEOF
17832 #define HAVE__ALLOCA 1
17837 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17838 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17839 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 ac_check_lib_save_LIBS=$LIBS
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17861 return __alloca ();
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (ac_try="$ac_link"
17868 case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17873 (eval "$ac_link") 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17900 ac_cv_lib_gcc___alloca=yes
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_lib_gcc___alloca=no
17908 rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17913 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17914 if test $ac_cv_lib_gcc___alloca = yes; then
17916 cat >>confdefs.h <<\_ACEOF
17917 #define HAVE___ALLOCA 1
17922 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17923 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17924 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 ac_check_lib_save_LIBS=$LIBS
17929 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17946 return __chkstk ();
17951 rm -f conftest.$ac_objext conftest$ac_exeext
17952 if { (ac_try="$ac_link"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_link") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
17965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17966 { (case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_try") 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17985 ac_cv_lib_gcc___chkstk=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_lib_gcc___chkstk=no
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17997 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17998 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17999 if test $ac_cv_lib_gcc___chkstk = yes; then
18001 cat >>confdefs.h <<\_ACEOF
18002 #define HAVE___CHKSTK 1
18007 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18008 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18009 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 ac_check_lib_save_LIBS=$LIBS
18014 cat >conftest.$ac_ext <<_ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18031 return ___chkstk ();
18036 rm -f conftest.$ac_objext conftest$ac_exeext
18037 if { (ac_try="$ac_link"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_link") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18070 ac_cv_lib_gcc____chkstk=yes
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18075 ac_cv_lib_gcc____chkstk=no
18078 rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18082 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18083 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18084 if test $ac_cv_lib_gcc____chkstk = yes; then
18086 cat >>confdefs.h <<\_ACEOF
18087 #define HAVE____CHKSTK 1
18093 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18094 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18095 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 ac_check_lib_save_LIBS=$LIBS
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18117 return __ashldi3 ();
18122 rm -f conftest.$ac_objext conftest$ac_exeext
18123 if { (ac_try="$ac_link"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_link") 2>conftest.er1
18131 grep -v '^ *+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137 { (case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_try") 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18156 ac_cv_lib_gcc___ashldi3=yes
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 ac_cv_lib_gcc___ashldi3=no
18164 rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18168 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18169 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18170 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18172 cat >>confdefs.h <<\_ACEOF
18173 #define HAVE___ASHLDI3 1
18178 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18179 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18180 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 ac_check_lib_save_LIBS=$LIBS
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18202 return __ashrdi3 ();
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_link") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222 { (case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_try") 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18241 ac_cv_lib_gcc___ashrdi3=yes
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18246 ac_cv_lib_gcc___ashrdi3=no
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_lib_save_LIBS
18253 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18254 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18255 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18257 cat >>confdefs.h <<\_ACEOF
18258 #define HAVE___ASHRDI3 1
18263 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18264 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18265 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 ac_check_lib_save_LIBS=$LIBS
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18277 /* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
18287 return __divdi3 ();
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18301 grep -v '^ *+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18326 ac_cv_lib_gcc___divdi3=yes
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 ac_cv_lib_gcc___divdi3=no
18334 rm -f core conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18336 LIBS=$ac_check_lib_save_LIBS
18338 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18339 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18340 if test $ac_cv_lib_gcc___divdi3 = yes; then
18342 cat >>confdefs.h <<\_ACEOF
18343 #define HAVE___DIVDI3 1
18348 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18349 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18350 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 ac_check_lib_save_LIBS=$LIBS
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18362 /* Override any GCC internal prototype to avoid an error.
18363 Use char because int might match the return type of a GCC
18364 builtin and then its argument prototype would still apply. */
18372 return __fixdfdi ();
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (ac_try="$ac_link"
18379 case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_link") 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18392 { (case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_try") 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18411 ac_cv_lib_gcc___fixdfdi=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_lib_gcc___fixdfdi=no
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18423 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18424 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18425 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18427 cat >>confdefs.h <<\_ACEOF
18428 #define HAVE___FIXDFDI 1
18433 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18434 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18435 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 ac_check_lib_save_LIBS=$LIBS
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 /* Override any GCC internal prototype to avoid an error.
18448 Use char because int might match the return type of a GCC
18449 builtin and then its argument prototype would still apply. */
18457 return __fixsfdi ();
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_link") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } &&
18476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477 { (case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_try") 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18496 ac_cv_lib_gcc___fixsfdi=yes
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18501 ac_cv_lib_gcc___fixsfdi=no
18504 rm -f core conftest.err conftest.$ac_objext \
18505 conftest$ac_exeext conftest.$ac_ext
18506 LIBS=$ac_check_lib_save_LIBS
18508 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18509 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18510 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18512 cat >>confdefs.h <<\_ACEOF
18513 #define HAVE___FIXSFDI 1
18518 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18519 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_check_lib_save_LIBS=$LIBS
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18538 char __floatdidf ();
18542 return __floatdidf ();
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18581 ac_cv_lib_gcc___floatdidf=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_lib_gcc___floatdidf=no
18589 rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18594 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18595 if test $ac_cv_lib_gcc___floatdidf = yes; then
18597 cat >>confdefs.h <<\_ACEOF
18598 #define HAVE___FLOATDIDF 1
18603 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18604 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18605 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 ac_check_lib_save_LIBS=$LIBS
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18617 /* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18627 return __lshrdi3 ();
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (ac_try="$ac_link"
18634 case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_link") 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18666 ac_cv_lib_gcc___lshrdi3=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_cv_lib_gcc___lshrdi3=no
18674 rm -f core conftest.err conftest.$ac_objext \
18675 conftest$ac_exeext conftest.$ac_ext
18676 LIBS=$ac_check_lib_save_LIBS
18678 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18679 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18680 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18682 cat >>confdefs.h <<\_ACEOF
18683 #define HAVE___LSHRDI3 1
18688 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18689 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18690 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18693 ac_check_lib_save_LIBS=$LIBS
18695 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18712 return __moddi3 ();
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>conftest.er1
18726 grep -v '^ *+' conftest.er1 >conftest.err
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18732 { (case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_try") 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18751 ac_cv_lib_gcc___moddi3=yes
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_lib_gcc___moddi3=no
18759 rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18763 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18764 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18765 if test $ac_cv_lib_gcc___moddi3 = yes; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE___MODDI3 1
18773 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18774 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18775 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 ac_check_lib_save_LIBS=$LIBS
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18797 return __udivdi3 ();
18802 rm -f conftest.$ac_objext conftest$ac_exeext
18803 if { (ac_try="$ac_link"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_link") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } &&
18816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18817 { (case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_try") 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18836 ac_cv_lib_gcc___udivdi3=yes
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 ac_cv_lib_gcc___udivdi3=no
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18848 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18849 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18850 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE___UDIVDI3 1
18858 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18859 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18860 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 ac_check_lib_save_LIBS=$LIBS
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18882 return __umoddi3 ();
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } &&
18901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18902 { (case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_try") 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18921 ac_cv_lib_gcc___umoddi3=yes
18923 echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 ac_cv_lib_gcc___umoddi3=no
18929 rm -f core conftest.err conftest.$ac_objext \
18930 conftest$ac_exeext conftest.$ac_ext
18931 LIBS=$ac_check_lib_save_LIBS
18933 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18934 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18935 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE___UMODDI3 1
18944 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18945 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18946 if test "${ac_cv_lib_gcc___main+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 ac_check_lib_save_LIBS=$LIBS
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18958 /* Override any GCC internal prototype to avoid an error.
18959 Use char because int might match the return type of a GCC
18960 builtin and then its argument prototype would still apply. */
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988 { (case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_try") 2>&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19007 ac_cv_lib_gcc___main=yes
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_cv_lib_gcc___main=no
19015 rm -f core conftest.err conftest.$ac_objext \
19016 conftest$ac_exeext conftest.$ac_ext
19017 LIBS=$ac_check_lib_save_LIBS
19019 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19020 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19021 if test $ac_cv_lib_gcc___main = yes; then
19023 cat >>confdefs.h <<\_ACEOF
19024 #define HAVE___MAIN 1
19029 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19030 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19031 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 ac_check_lib_save_LIBS=$LIBS
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19043 /* Override any GCC internal prototype to avoid an error.
19044 Use char because int might match the return type of a GCC
19045 builtin and then its argument prototype would still apply. */
19053 return __cmpdi2 ();
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
19072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19073 { (case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_try") 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19092 ac_cv_lib_gcc___cmpdi2=yes
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19097 ac_cv_lib_gcc___cmpdi2=no
19100 rm -f core conftest.err conftest.$ac_objext \
19101 conftest$ac_exeext conftest.$ac_ext
19102 LIBS=$ac_check_lib_save_LIBS
19104 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19105 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19106 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE___CMPDI2 1
19116 if test "$llvm_cv_os_type" = "MingW" ; then
19117 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19118 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19120 #include <windows.h>
19121 #include <imagehlp.h>
19122 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19123 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_compile") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19140 { (case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_try") 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19160 { echo "$as_me:$LINENO: result: yes" >&5
19161 echo "${ECHO_T}yes" >&6; }
19162 llvm_cv_win32_elmcb_pcstr="PCSTR"
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19169 { echo "$as_me:$LINENO: result: no" >&5
19170 echo "${ECHO_T}no" >&6; }
19171 llvm_cv_win32_elmcb_pcstr="PSTR"
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 cat >>confdefs.h <<_ACEOF
19178 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19184 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19185 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19186 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 ac_cpp='$CXXCPP $CPPFLAGS'
19191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19195 cat >conftest.$ac_ext <<_ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19210 rm -f conftest.$ac_objext
19211 if { (ac_try="$ac_compile"
19212 case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_compile") 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19225 { (case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_try") 2>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19244 ac_cv_func_isnan_in_math_h=yes
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_func_isnan_in_math_h=no
19252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19254 ac_cpp='$CPP $CPPFLAGS'
19255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19260 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19261 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19264 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_ISNAN_IN_MATH_H 1
19272 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19273 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19274 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 ac_cpp='$CXXCPP $CPPFLAGS'
19279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19298 rm -f conftest.$ac_objext
19299 if { (ac_try="$ac_compile"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_compile") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19332 ac_cv_func_isnan_in_cmath=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_func_isnan_in_cmath=no
19340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 ac_cpp='$CPP $CPPFLAGS'
19343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19348 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19349 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19351 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_ISNAN_IN_CMATH 1
19359 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19360 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19361 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 ac_cpp='$CXXCPP $CPPFLAGS'
19366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19380 float f; std::isnan(f);
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19419 ac_cv_func_std_isnan_in_cmath=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_func_std_isnan_in_cmath=no
19427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429 ac_cpp='$CPP $CPPFLAGS'
19430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19436 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19438 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_STD_ISNAN_IN_CMATH 1
19447 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19448 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19449 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 ac_cpp='$CXXCPP $CPPFLAGS'
19454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_compile") 2>conftest.er1
19482 grep -v '^ *+' conftest.er1 >conftest.err
19484 cat conftest.err >&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); } &&
19487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19488 { (case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_try") 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19507 ac_cv_func_isinf_in_math_h=yes
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19512 ac_cv_func_isinf_in_math_h=no
19515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 ac_cpp='$CPP $CPPFLAGS'
19518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19523 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19524 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19526 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_ISINF_IN_MATH_H 1
19534 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19535 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19536 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 ac_cpp='$CXXCPP $CPPFLAGS'
19541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_compile") 2>conftest.er1
19569 grep -v '^ *+' conftest.er1 >conftest.err
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19575 { (case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_try") 2>&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19594 ac_cv_func_isinf_in_cmath=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_cv_func_isinf_in_cmath=no
19602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604 ac_cpp='$CPP $CPPFLAGS'
19605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19610 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19611 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19613 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_ISINF_IN_CMATH 1
19621 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19622 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19623 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 ac_cpp='$CXXCPP $CPPFLAGS'
19628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19642 float f; std::isinf(f);
19647 rm -f conftest.$ac_objext
19648 if { (ac_try="$ac_compile"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_compile") 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19662 { (case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_try") 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19681 ac_cv_func_std_isinf_in_cmath=yes
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 ac_cv_func_std_isinf_in_cmath=no
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19698 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19700 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_STD_ISINF_IN_CMATH 1
19708 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19709 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19710 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 ac_cpp='$CXXCPP $CPPFLAGS'
19715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <ieeefp.h>
19729 float f; finite(f);
19734 rm -f conftest.$ac_objext
19735 if { (ac_try="$ac_compile"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_compile") 2>conftest.er1
19743 grep -v '^ *+' conftest.er1 >conftest.err
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_try") 2>&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; } &&
19758 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19768 ac_cv_func_finite_in_ieeefp_h=yes
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_cv_func_finite_in_ieeefp_h=no
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778 ac_cpp='$CPP $CPPFLAGS'
19779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_FINITE_IN_IEEEFP_H 1
19797 if test "$llvm_cv_platform_type" = "Unix" ; then
19800 for ac_header in stdlib.h unistd.h
19802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_res=`eval echo '${'$as_ac_Header'}'`
19810 { echo "$as_me:$LINENO: result: $ac_res" >&5
19811 echo "${ECHO_T}$ac_res" >&6; }
19813 # Is the header compilable?
19814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 $ac_includes_default
19823 #include <$ac_header>
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_compile") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } &&
19839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19859 ac_header_compiler=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_header_compiler=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <$ac_header>
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } >/dev/null; then
19895 if test -s conftest.err; then
19896 ac_cpp_err=$ac_c_preproc_warn_flag
19897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19904 if test -z "$ac_cpp_err"; then
19905 ac_header_preproc=yes
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19924 ac_header_preproc=yes
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19940 ## ------------------------------ ##
19941 ## Report this to bugs@yourdomain ##
19942 ## ------------------------------ ##
19944 ) | sed "s/^/$as_me: WARNING: /" >&2
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 eval "$as_ac_Header=\$ac_header_preproc"
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955 { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19969 for ac_func in getpagesize
19971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19985 #define $ac_func innocuous_$ac_func
19987 /* System header to define __stub macros and hopefully few prototypes,
19988 which can conflict with char $ac_func (); below.
19989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19990 <limits.h> exists even on freestanding compilers. */
19993 # include <limits.h>
19995 # include <assert.h>
20000 /* Override any GCC internal prototype to avoid an error.
20001 Use char because int might match the return type of a GCC
20002 builtin and then its argument prototype would still apply. */
20007 /* The GNU C library defines this for functions which it implements
20008 to always fail with ENOSYS. Some functions are actually named
20009 something starting with __ and the normal name is an alias. */
20010 #if defined __stub_$ac_func || defined __stub___$ac_func
20017 return $ac_func ();
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_link") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037 { (case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_try") 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20056 eval "$as_ac_var=yes"
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 eval "$as_ac_var=no"
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20067 ac_res=`eval echo '${'$as_ac_var'}'`
20068 { echo "$as_me:$LINENO: result: $ac_res" >&5
20069 echo "${ECHO_T}$ac_res" >&6; }
20070 if test `eval echo '${'$as_ac_var'}'` = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20078 { echo "$as_me:$LINENO: checking for working mmap" >&5
20079 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20080 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 if test "$cross_compiling" = yes; then
20084 ac_cv_func_mmap_fixed_mapped=no
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 $ac_includes_default
20093 /* malloc might have been renamed as rpl_malloc. */
20096 /* Thanks to Mike Haertel and Jim Avera for this test.
20097 Here is a matrix of mmap possibilities:
20098 mmap private not fixed
20099 mmap private fixed at somewhere currently unmapped
20100 mmap private fixed at somewhere already mapped
20101 mmap shared not fixed
20102 mmap shared fixed at somewhere currently unmapped
20103 mmap shared fixed at somewhere already mapped
20104 For private mappings, we should verify that changes cannot be read()
20105 back from the file, nor mmap's back from the file at a different
20106 address. (There have been systems where private was not correctly
20107 implemented like the infamous i386 svr4.0, and systems where the
20108 VM page cache was not coherent with the file system buffer cache
20109 like early versions of FreeBSD and possibly contemporary NetBSD.)
20110 For shared mappings, we should conversely verify that changes get
20111 propagated back to all the places they're supposed to be.
20113 Grep wants private fixed already mapped.
20114 The main things grep needs to know about mmap are:
20115 * does it exist and is it safe to write into the mmap'd area
20116 * how to use it (BSD variants) */
20119 #include <sys/mman.h>
20121 #if !STDC_HEADERS && !HAVE_STDLIB_H
20125 /* This mess was copied from the GNU getpagesize.h. */
20126 #if !HAVE_GETPAGESIZE
20127 /* Assume that all systems that can run configure have sys/param.h. */
20128 # if !HAVE_SYS_PARAM_H
20129 # define HAVE_SYS_PARAM_H 1
20132 # ifdef _SC_PAGESIZE
20133 # define getpagesize() sysconf(_SC_PAGESIZE)
20134 # else /* no _SC_PAGESIZE */
20135 # if HAVE_SYS_PARAM_H
20136 # include <sys/param.h>
20137 # ifdef EXEC_PAGESIZE
20138 # define getpagesize() EXEC_PAGESIZE
20139 # else /* no EXEC_PAGESIZE */
20141 # define getpagesize() NBPG * CLSIZE
20144 # endif /* no CLSIZE */
20145 # else /* no NBPG */
20147 # define getpagesize() NBPC
20148 # else /* no NBPC */
20150 # define getpagesize() PAGESIZE
20151 # endif /* PAGESIZE */
20152 # endif /* no NBPC */
20153 # endif /* no NBPG */
20154 # endif /* no EXEC_PAGESIZE */
20155 # else /* no HAVE_SYS_PARAM_H */
20156 # define getpagesize() 8192 /* punt totally */
20157 # endif /* no HAVE_SYS_PARAM_H */
20158 # endif /* no _SC_PAGESIZE */
20160 #endif /* no HAVE_GETPAGESIZE */
20165 char *data, *data2, *data3;
20169 pagesize = getpagesize ();
20171 /* First, make a file with some known garbage in it. */
20172 data = (char *) malloc (pagesize);
20175 for (i = 0; i < pagesize; ++i)
20176 *(data + i) = rand ();
20178 fd = creat ("conftest.mmap", 0600);
20181 if (write (fd, data, pagesize) != pagesize)
20185 /* Next, try to mmap the file at a fixed address which already has
20186 something else allocated at it. If we can, also make sure that
20187 we see the same garbage. */
20188 fd = open ("conftest.mmap", O_RDWR);
20191 data2 = (char *) malloc (2 * pagesize);
20194 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20198 for (i = 0; i < pagesize; ++i)
20199 if (*(data + i) != *(data2 + i))
20202 /* Finally, make sure that changes to the mapped area do not
20203 percolate back to the file as seen by read(). (This is a bug on
20204 some variants of i386 svr4.0.) */
20205 for (i = 0; i < pagesize; ++i)
20206 *(data2 + i) = *(data2 + i) + 1;
20207 data3 = (char *) malloc (pagesize);
20210 if (read (fd, data3, pagesize) != pagesize)
20212 for (i = 0; i < pagesize; ++i)
20213 if (*(data + i) != *(data3 + i))
20219 rm -f conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_func_mmap_fixed_mapped=yes
20241 echo "$as_me: program exited with status $ac_status" >&5
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ( exit $ac_status )
20246 ac_cv_func_mmap_fixed_mapped=no
20248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20254 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_MMAP 1
20262 rm -f conftest.mmap
20264 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20265 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20266 if test "${ac_cv_func_mmap_file+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 ac_cpp='$CPP $CPPFLAGS'
20271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20275 if test "$cross_compiling" = yes; then
20276 ac_cv_func_mmap_file=no
20278 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 #include <sys/types.h>
20287 #include <sys/mman.h>
20295 fd = creat ("foo",0777);
20296 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20298 return (fd != (int) MAP_FAILED);
20303 rm -f conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_func_mmap_file=yes
20325 echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20329 ( exit $ac_status )
20330 ac_cv_func_mmap_file=no
20332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20344 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20345 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20346 if test "$ac_cv_func_mmap_file" = yes; then
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE_MMAP_FILE
20356 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20357 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20358 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 if test "$llvm_cv_os_type" = "Interix" ; then
20362 ac_cv_need_dev_zero_for_mmap=yes
20364 ac_cv_need_dev_zero_for_mmap=no
20368 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20369 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20370 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20372 cat >>confdefs.h <<\_ACEOF
20373 #define NEED_DEV_ZERO_FOR_MMAP 1
20378 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20380 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20381 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20383 if test "$ac_cv_func_mmap_file" = "no"
20385 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20386 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20390 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20391 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20393 ac_cpp='$CXXCPP $CPPFLAGS'
20394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20405 volatile unsigned long val = 1;
20406 __sync_synchronize();
20407 __sync_val_compare_and_swap(&val, 1, 0);
20408 __sync_add_and_fetch(&val, 1);
20409 __sync_sub_and_fetch(&val, 1);
20414 rm -f conftest.$ac_objext conftest$ac_exeext
20415 if { (ac_try="$ac_link"
20416 case "(($ac_try" in
20417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418 *) ac_try_echo=$ac_try;;
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421 (eval "$ac_link") 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20429 { (case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_try") 2>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; } &&
20438 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20454 { echo "$as_me:$LINENO: result: yes" >&5
20455 echo "${ECHO_T}yes" >&6; }
20457 cat >>confdefs.h <<\_ACEOF
20458 #define LLVM_HAS_ATOMICS 1
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 { echo "$as_me:$LINENO: result: no" >&5
20466 echo "${ECHO_T}no" >&6; }
20468 cat >>confdefs.h <<\_ACEOF
20469 #define LLVM_HAS_ATOMICS 0
20472 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20473 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20480 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20481 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20482 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20483 if test "${llvm_cv_linux_mixed+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 ac_cpp='$CPP $CPPFLAGS'
20488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 error: Not x86-64 even if uname says so!
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20544 llvm_cv_linux_mixed=no
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 llvm_cv_linux_mixed=yes
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20561 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20562 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20564 if test "$llvm_cv_linux_mixed" = "yes"; then
20565 llvm_cv_target_arch="x86"
20571 for ac_func in __dso_handle
20573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20587 #define $ac_func innocuous_$ac_func
20589 /* System header to define __stub macros and hopefully few prototypes,
20590 which can conflict with char $ac_func (); below.
20591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20592 <limits.h> exists even on freestanding compilers. */
20595 # include <limits.h>
20597 # include <assert.h>
20602 /* Override any GCC internal prototype to avoid an error.
20603 Use char because int might match the return type of a GCC
20604 builtin and then its argument prototype would still apply. */
20609 /* The GNU C library defines this for functions which it implements
20610 to always fail with ENOSYS. Some functions are actually named
20611 something starting with __ and the normal name is an alias. */
20612 #if defined __stub_$ac_func || defined __stub___$ac_func
20619 return $ac_func ();
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; } &&
20648 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20658 eval "$as_ac_var=yes"
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 eval "$as_ac_var=no"
20666 rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext conftest.$ac_ext
20669 ac_res=`eval echo '${'$as_ac_var'}'`
20670 { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672 if test `eval echo '${'$as_ac_var'}'` = yes; then
20673 cat >>confdefs.h <<_ACEOF
20674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20681 SHLIBEXT=$libltdl_cv_shlibext
20684 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20687 # Translate the various configuration directories and other basic
20688 # information into substitutions that will end up in Makefile.config.in
20689 # that these configured values can be used by the makefiles
20690 if test "${prefix}" = "NONE" ; then
20691 prefix="/usr/local"
20693 eval LLVM_PREFIX="${prefix}";
20694 eval LLVM_BINDIR="${prefix}/bin";
20695 eval LLVM_LIBDIR="${prefix}/lib";
20696 eval LLVM_DATADIR="${prefix}/share/llvm";
20697 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20698 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20699 eval LLVM_INCLUDEDIR="${prefix}/include";
20700 eval LLVM_INFODIR="${prefix}/info";
20701 eval LLVM_MANDIR="${prefix}/man";
20702 LLVM_CONFIGTIME=`date`
20714 # Place the various directores into the config.h file as #defines so that we
20715 # can know about the installation paths within LLVM.
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_PREFIX "$LLVM_PREFIX"
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_BINDIR "$LLVM_BINDIR"
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_DATADIR "$LLVM_DATADIR"
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_INFODIR "$LLVM_INFODIR"
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_MANDIR "$LLVM_MANDIR"
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20772 # Determine which bindings to build.
20773 if test "$BINDINGS_TO_BUILD" = auto ; then
20774 BINDINGS_TO_BUILD=""
20775 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20776 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20779 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20782 # This isn't really configurey, but it avoids having to repeat the list in
20787 # Do any work necessary to ensure that bindings have what they need.
20788 binding_prereqs_failed=0
20789 for a_binding in $BINDINGS_TO_BUILD ; do
20790 case "$a_binding" in
20792 if test "x$OCAMLC" = x ; then
20793 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20794 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20795 binding_prereqs_failed=1
20797 if test "x$OCAMLDEP" = x ; then
20798 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20799 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20800 binding_prereqs_failed=1
20802 if test "x$OCAMLOPT" = x ; then
20803 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20806 if test "x$with_ocaml_libdir" != xauto ; then
20807 OCAML_LIBDIR=$with_ocaml_libdir
20810 ocaml_stdlib="`"$OCAMLC" -where`"
20811 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20813 # ocaml stdlib is beneath our prefix; use stdlib
20814 OCAML_LIBDIR=$ocaml_stdlib
20817 # ocaml stdlib is outside our prefix; use libdir/ocaml
20818 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20825 if test "$binding_prereqs_failed" = 1 ; then
20826 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20827 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20828 { (exit 1); exit 1; }; }
20831 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20832 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20833 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20834 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 ac_cpp='$CXXCPP $CPPFLAGS'
20838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20842 oldcxxflags="$CXXFLAGS"
20843 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
20873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20874 { (case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_try") 2>&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20893 llvm_cv_cxx_visibility_inlines_hidden=yes
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 llvm_cv_cxx_visibility_inlines_hidden=no
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 CXXFLAGS="$oldcxxflags"
20904 ac_cpp='$CPP $CPPFLAGS'
20905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20911 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20912 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20913 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20914 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20917 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20922 if test "$llvm_cv_link_use_r" = "yes" ; then
20929 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20930 RDYNAMIC="-Wl,-export-dynamic"
20938 ac_config_files="$ac_config_files Makefile.common"
20940 ac_config_files="$ac_config_files Makefile.llvm.config"
20943 ac_config_commands="$ac_config_commands Makefile"
20946 ac_config_commands="$ac_config_commands lib/Makefile"
20949 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20952 ac_config_commands="$ac_config_commands tools/Makefile"
20955 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20959 cat >confcache <<\_ACEOF
20960 # This file is a shell script that caches the results of configure
20961 # tests run on this system so they can be shared between configure
20962 # scripts and configure runs, see configure's option --config-cache.
20963 # It is not useful on other systems. If it contains results you don't
20964 # want to keep, you may remove or edit it.
20966 # config.status only pays attention to the cache file if you give it
20967 # the --recheck option to rerun configure.
20969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20971 # following values.
20975 # The following way of writing the cache mishandles newlines in values,
20976 # but we know of no workaround that is simple, portable, and efficient.
20977 # So, we kill variables containing newlines.
20978 # Ultrix sh set writes to stderr and can't be redirected directly,
20979 # and sets the high bit in the cache file unless we assign to the vars.
20981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20982 eval ac_val=\$$ac_var
20986 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20987 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20990 _ | IFS | as_nl) ;; #(
20991 *) $as_unset $ac_var ;;
20997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20998 *${as_nl}ac_space=\ *)
20999 # `set' does not quote correctly, so add quotes (double-quote
21000 # substitution turns \\\\ into \\, and sed turns \\ into \).
21003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21006 # `set' quotes correctly as required by POSIX, so do not add quotes.
21007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21021 if test -w "$cache_file"; then
21022 test "x$cache_file" != "x/dev/null" &&
21023 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21024 echo "$as_me: updating cache $cache_file" >&6;}
21025 cat confcache >$cache_file
21027 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21028 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21034 # Let make expand exec_prefix.
21035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21037 # Transform confdefs.h into DEFS.
21038 # Protect against shell expansion while executing Makefile rules.
21039 # Protect against Makefile macro expansion.
21041 # If the first sed substitution is executed (which looks for macros that
21042 # take arguments), then branch to the quote section. Otherwise,
21043 # look for a macro that doesn't take arguments.
21047 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21049 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21053 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21066 DEFS=`sed -n "$ac_script" confdefs.h`
21071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21072 # 1. Remove the extension, and $U if already installed.
21073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21074 ac_i=`echo "$ac_i" | sed "$ac_script"`
21075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21076 # will be set to the directory where LIBOBJS objects are built.
21077 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21078 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21080 LIBOBJS=$ac_libobjs
21082 LTLIBOBJS=$ac_ltlibobjs
21085 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21086 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&5
21088 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&2;}
21090 { (exit 1); exit 1; }; }
21092 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21093 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&5
21095 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&2;}
21097 { (exit 1); exit 1; }; }
21100 : ${CONFIG_STATUS=./config.status}
21101 ac_clean_files_save=$ac_clean_files
21102 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21103 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21104 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21105 cat >$CONFIG_STATUS <<_ACEOF
21107 # Generated by $as_me.
21108 # Run this file to recreate the current configuration.
21109 # Compiler output produced by configure, useful for debugging
21110 # configure, is in config.log if it exists.
21113 ac_cs_recheck=false
21115 SHELL=\${CONFIG_SHELL-$SHELL}
21118 cat >>$CONFIG_STATUS <<\_ACEOF
21119 ## --------------------- ##
21120 ## M4sh Initialization. ##
21121 ## --------------------- ##
21123 # Be Bourne compatible
21124 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21127 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21128 # is contrary to our usage. Disable this feature.
21129 alias -g '${1+"$@"}'='"$@"'
21130 setopt NO_GLOB_SUBST
21132 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21134 BIN_SH=xpg4; export BIN_SH # for Tru64
21135 DUALCASE=1; export DUALCASE # for MKS sh
21139 # Avoid depending upon Character Ranges.
21140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21143 as_cr_digits='0123456789'
21144 as_cr_alnum=$as_cr_Letters$as_cr_digits
21146 # The user is always right.
21147 if test "${PATH_SEPARATOR+set}" != set; then
21148 echo "#! /bin/sh" >conf$$.sh
21149 echo "exit 0" >>conf$$.sh
21151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21159 # Support unset when possible.
21160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21168 # We need space, tab and new line, in precisely that order. Quoting is
21169 # there to prevent editors from complaining about space-tab.
21170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21171 # splitting by setting IFS to empty value.)
21176 # Find who we are. Look in the path if we contain no directory separator.
21178 *[\\/]* ) as_myself=$0 ;;
21179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21180 for as_dir in $PATH
21183 test -z "$as_dir" && as_dir=.
21184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21190 # We did not find ourselves, most probably we were run as `sh COMMAND'
21191 # in which case we are not to be found in the path.
21192 if test "x$as_myself" = x; then
21195 if test ! -f "$as_myself"; then
21196 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21197 { (exit 1); exit 1; }
21200 # Work around bugs in pre-3.0 UWIN ksh.
21201 for as_var in ENV MAIL MAILPATH
21202 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21210 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21211 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21212 LC_TELEPHONE LC_TIME
21214 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21215 eval $as_var=C; export $as_var
21217 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21221 # Required to use basename.
21222 if expr a : '\(a\)' >/dev/null 2>&1 &&
21223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21230 as_basename=basename
21236 # Name of the executable.
21237 as_me=`$as_basename -- "$0" ||
21238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21239 X"$0" : 'X\(//\)$' \| \
21240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21242 sed '/^.*\/\([^/][^/]*\)\/*$/{
21261 as_lineno_1=$LINENO
21262 as_lineno_2=$LINENO
21263 test "x$as_lineno_1" != "x$as_lineno_2" &&
21264 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21266 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21267 # uniformly replaced by the line number. The first 'sed' inserts a
21268 # line-number line after each line using $LINENO; the second 'sed'
21269 # does the real work. The second script uses 'N' to pair each
21270 # line-number line with the line containing $LINENO, and appends
21271 # trailing '-' during substitution so that $LINENO is not a special
21272 # case at line end.
21273 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21274 # scripts with optimization help from Paolo Bonzini. Blame Lee
21275 # E. McMahon (1931-1989) for sed's syntax. :-)
21287 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21290 ' >$as_me.lineno &&
21291 chmod +x "$as_me.lineno" ||
21292 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21293 { (exit 1); exit 1; }; }
21295 # Don't try to exec as it changes $[0], causing all sort of problems
21296 # (the dirname of $[0] is not the place where we might find the
21297 # original and so on. Autoconf is especially sensitive to this).
21298 . "./$as_me.lineno"
21299 # Exit status is that of the last command.
21304 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21310 ECHO_C= ECHO_N= ECHO_T=
21311 case `echo -n x` in
21313 case `echo 'x\c'` in
21314 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21321 if expr a : '\(a\)' >/dev/null 2>&1 &&
21322 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21328 rm -f conf$$ conf$$.exe conf$$.file
21329 if test -d conf$$.dir; then
21330 rm -f conf$$.dir/conf$$.file
21336 if ln -s conf$$.file conf$$ 2>/dev/null; then
21338 # ... but there are two gotchas:
21339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21341 # In both cases, we have to default to `cp -p'.
21342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21344 elif ln conf$$.file conf$$ 2>/dev/null; then
21349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21350 rmdir conf$$.dir 2>/dev/null
21352 if mkdir -p . 2>/dev/null; then
21355 test -d ./-p && rmdir ./-p
21359 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21360 # systems may use methods other than mode bits to determine executability.
21361 cat >conf$$.file <<_ASEOF
21365 chmod +x conf$$.file
21366 if test -x conf$$.file >/dev/null 2>&1; then
21367 as_executable_p="test -x"
21373 # Sed expression to map a string onto a valid CPP name.
21374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21376 # Sed expression to map a string onto a valid variable name.
21377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21382 # Save the log message, to keep $[0] and so on meaningful, and to
21383 # report actual input values of CONFIG_FILES etc. instead of their
21384 # values after options handling.
21386 This file was extended by [SAMPLE] $as_me [x.xx], which was
21387 generated by GNU Autoconf 2.60. Invocation command line was
21389 CONFIG_FILES = $CONFIG_FILES
21390 CONFIG_HEADERS = $CONFIG_HEADERS
21391 CONFIG_LINKS = $CONFIG_LINKS
21392 CONFIG_COMMANDS = $CONFIG_COMMANDS
21395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21400 cat >>$CONFIG_STATUS <<_ACEOF
21401 # Files that config.status was made for.
21402 config_files="$ac_config_files"
21403 config_commands="$ac_config_commands"
21407 cat >>$CONFIG_STATUS <<\_ACEOF
21409 \`$as_me' instantiates files from templates according to the
21410 current configuration.
21412 Usage: $0 [OPTIONS] [FILE]...
21414 -h, --help print this help, then exit
21415 -V, --version print version number, then exit
21416 -q, --quiet do not print progress messages
21417 -d, --debug don't remove temporary files
21418 --recheck update $as_me by reconfiguring in the same conditions
21419 --file=FILE[:TEMPLATE]
21420 instantiate the configuration file FILE
21422 Configuration files:
21425 Configuration commands:
21428 Report bugs to <bug-autoconf@gnu.org>."
21431 cat >>$CONFIG_STATUS <<_ACEOF
21433 [SAMPLE] config.status [x.xx]
21434 configured by $0, generated by GNU Autoconf 2.60,
21435 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21437 Copyright (C) 2006 Free Software Foundation, Inc.
21438 This config.status script is free software; the Free Software Foundation
21439 gives unlimited permission to copy, distribute and modify it."
21446 cat >>$CONFIG_STATUS <<\_ACEOF
21447 # If no file are specified by the user, then we need to provide default
21448 # value. By we need to know if files were specified by the user.
21454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21466 # Handling of the options.
21467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21470 echo "$ac_cs_version"; exit ;;
21471 --debug | --debu | --deb | --de | --d | -d )
21473 --file | --fil | --fi | --f )
21475 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21476 ac_need_defaults=false;;
21477 --he | --h | --help | --hel | -h )
21478 echo "$ac_cs_usage"; exit ;;
21479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21483 # This is an error.
21484 -*) { echo "$as_me: error: unrecognized option: $1
21485 Try \`$0 --help' for more information." >&2
21486 { (exit 1); exit 1; }; } ;;
21488 *) ac_config_targets="$ac_config_targets $1"
21489 ac_need_defaults=false ;;
21495 ac_configure_extra_args=
21497 if $ac_cs_silent; then
21499 ac_configure_extra_args="$ac_configure_extra_args --silent"
21503 cat >>$CONFIG_STATUS <<_ACEOF
21504 if \$ac_cs_recheck; then
21505 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21506 CONFIG_SHELL=$SHELL
21507 export CONFIG_SHELL
21508 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21512 cat >>$CONFIG_STATUS <<\_ACEOF
21516 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21517 ## Running $as_me. ##
21523 cat >>$CONFIG_STATUS <<_ACEOF
21527 llvm_src="${LLVM_SRC}"
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21533 # Handling of arguments.
21534 for ac_config_target in $ac_config_targets
21536 case $ac_config_target in
21537 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21538 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21539 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21540 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21541 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21542 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21543 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21544 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21548 { (exit 1); exit 1; }; };;
21553 # If the user did not use the arguments to specify the items to instantiate,
21554 # then the envvar interface is used. Set only those that are not.
21555 # We use the long form for the default assignment because of an extremely
21556 # bizarre bug on SunOS 4.1.3.
21557 if $ac_need_defaults; then
21558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21562 # Have a temporary directory for convenience. Make it in the build tree
21563 # simply because there is no reason against having it here, and in addition,
21564 # creating and moving files from /tmp can sometimes cause problems.
21565 # Hook for its removal unless debugging.
21566 # Note that there is a small window in which the directory will not be cleaned:
21567 # after its creation but before its name has been assigned to `$tmp'.
21571 trap 'exit_status=$?
21572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21574 trap '{ (exit 1); exit 1; }' 1 2 13 15
21576 # Create a (secure) tmp directory for tmp files.
21579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21580 test -n "$tmp" && test -d "$tmp"
21583 tmp=./conf$$-$RANDOM
21584 (umask 077 && mkdir "$tmp")
21587 echo "$me: cannot create a temporary directory in ." >&2
21588 { (exit 1); exit 1; }
21592 # Set up the sed scripts for CONFIG_FILES section.
21595 # No need to generate the scripts if there are no CONFIG_FILES.
21596 # This happens for instance when ./config.status config.h
21597 if test -n "$CONFIG_FILES"; then
21604 for ac_last_try in false false false false false :; do
21605 cat >conf$$subs.sed <<_ACEOF
21606 SHELL!$SHELL$ac_delim
21607 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21608 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21609 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21610 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21611 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21612 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21613 exec_prefix!$exec_prefix$ac_delim
21614 prefix!$prefix$ac_delim
21615 program_transform_name!$program_transform_name$ac_delim
21616 bindir!$bindir$ac_delim
21617 sbindir!$sbindir$ac_delim
21618 libexecdir!$libexecdir$ac_delim
21619 datarootdir!$datarootdir$ac_delim
21620 datadir!$datadir$ac_delim
21621 sysconfdir!$sysconfdir$ac_delim
21622 sharedstatedir!$sharedstatedir$ac_delim
21623 localstatedir!$localstatedir$ac_delim
21624 includedir!$includedir$ac_delim
21625 oldincludedir!$oldincludedir$ac_delim
21626 docdir!$docdir$ac_delim
21627 infodir!$infodir$ac_delim
21628 htmldir!$htmldir$ac_delim
21629 dvidir!$dvidir$ac_delim
21630 pdfdir!$pdfdir$ac_delim
21631 psdir!$psdir$ac_delim
21632 libdir!$libdir$ac_delim
21633 localedir!$localedir$ac_delim
21634 mandir!$mandir$ac_delim
21635 DEFS!$DEFS$ac_delim
21636 ECHO_C!$ECHO_C$ac_delim
21637 ECHO_N!$ECHO_N$ac_delim
21638 ECHO_T!$ECHO_T$ac_delim
21639 LIBS!$LIBS$ac_delim
21640 build_alias!$build_alias$ac_delim
21641 host_alias!$host_alias$ac_delim
21642 target_alias!$target_alias$ac_delim
21643 LLVM_SRC!$LLVM_SRC$ac_delim
21644 LLVM_OBJ!$LLVM_OBJ$ac_delim
21645 LLVM_VERSION!$LLVM_VERSION$ac_delim
21647 CFLAGS!$CFLAGS$ac_delim
21648 LDFLAGS!$LDFLAGS$ac_delim
21649 CPPFLAGS!$CPPFLAGS$ac_delim
21650 ac_ct_CC!$ac_ct_CC$ac_delim
21651 EXEEXT!$EXEEXT$ac_delim
21652 OBJEXT!$OBJEXT$ac_delim
21654 CXXFLAGS!$CXXFLAGS$ac_delim
21655 ac_ct_CXX!$ac_ct_CXX$ac_delim
21657 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21658 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21659 subdirs!$subdirs$ac_delim
21660 build!$build$ac_delim
21661 build_cpu!$build_cpu$ac_delim
21662 build_vendor!$build_vendor$ac_delim
21663 build_os!$build_os$ac_delim
21664 host!$host$ac_delim
21665 host_cpu!$host_cpu$ac_delim
21666 host_vendor!$host_vendor$ac_delim
21667 host_os!$host_os$ac_delim
21668 target!$target$ac_delim
21669 target_cpu!$target_cpu$ac_delim
21670 target_vendor!$target_vendor$ac_delim
21671 target_os!$target_os$ac_delim
21673 HOST_OS!$HOST_OS$ac_delim
21674 TARGET_OS!$TARGET_OS$ac_delim
21675 LINKALL!$LINKALL$ac_delim
21676 NOLINKALL!$NOLINKALL$ac_delim
21677 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21678 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21679 ARCH!$ARCH$ac_delim
21680 ENDIAN!$ENDIAN$ac_delim
21681 GREP!$GREP$ac_delim
21682 EGREP!$EGREP$ac_delim
21683 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21684 BUILD_CC!$BUILD_CC$ac_delim
21685 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21686 BUILD_CXX!$BUILD_CXX$ac_delim
21687 CVSBUILD!$CVSBUILD$ac_delim
21688 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21689 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21690 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21691 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21692 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21693 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21694 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21699 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21701 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21702 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21705 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21707 elif $ac_last_try; then
21708 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21709 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21710 { (exit 1); exit 1; }; }
21712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21716 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21717 if test -n "$ac_eof"; then
21718 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21719 ac_eof=`expr $ac_eof + 1`
21722 cat >>$CONFIG_STATUS <<_ACEOF
21723 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21727 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21728 s/^/s,@/; s/!/@,|#_!!_#|/
21731 s/'"$ac_delim"'$/,g/; t
21733 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21734 ' >>$CONFIG_STATUS <conf$$subs.sed
21735 rm -f conf$$subs.sed
21736 cat >>$CONFIG_STATUS <<_ACEOF
21742 for ac_last_try in false false false false false :; do
21743 cat >conf$$subs.sed <<_ACEOF
21744 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21745 ENABLE_PIC!$ENABLE_PIC$ac_delim
21746 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21747 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21748 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21749 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21750 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21751 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21752 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21753 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21754 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21755 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21756 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21757 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21759 ifGNUmake!$ifGNUmake$ac_delim
21760 LN_S!$LN_S$ac_delim
21763 DATE!$DATE$ac_delim
21764 FIND!$FIND$ac_delim
21765 MKDIR!$MKDIR$ac_delim
21767 RANLIB!$RANLIB$ac_delim
21772 BINPWD!$BINPWD$ac_delim
21773 GRAPHVIZ!$GRAPHVIZ$ac_delim
21776 NEATO!$NEATO$ac_delim
21777 TWOPI!$TWOPI$ac_delim
21778 CIRCO!$CIRCO$ac_delim
21780 DOTTY!$DOTTY$ac_delim
21781 XDOT_PY!$XDOT_PY$ac_delim
21782 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21783 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21784 INSTALL_DATA!$INSTALL_DATA$ac_delim
21785 BZIP2!$BZIP2$ac_delim
21787 DOXYGEN!$DOXYGEN$ac_delim
21788 GROFF!$GROFF$ac_delim
21789 GZIPBIN!$GZIPBIN$ac_delim
21790 POD2HTML!$POD2HTML$ac_delim
21791 POD2MAN!$POD2MAN$ac_delim
21792 PDFROFF!$PDFROFF$ac_delim
21793 RUNTEST!$RUNTEST$ac_delim
21794 TCLSH!$TCLSH$ac_delim
21796 OCAMLC!$OCAMLC$ac_delim
21797 OCAMLOPT!$OCAMLOPT$ac_delim
21798 OCAMLDEP!$OCAMLDEP$ac_delim
21799 OCAMLDOC!$OCAMLDOC$ac_delim
21801 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21802 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21803 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21804 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21805 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21806 LIBADD_DL!$LIBADD_DL$ac_delim
21807 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21808 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21809 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21810 USE_UDIS86!$USE_UDIS86$ac_delim
21811 USE_OPROFILE!$USE_OPROFILE$ac_delim
21812 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21813 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21814 MMAP_FILE!$MMAP_FILE$ac_delim
21815 SHLIBEXT!$SHLIBEXT$ac_delim
21816 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21817 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21818 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21819 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21820 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21821 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21822 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21823 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21824 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21825 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21826 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21827 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21828 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21829 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21830 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21831 RPATH!$RPATH$ac_delim
21832 RDYNAMIC!$RDYNAMIC$ac_delim
21833 LIBOBJS!$LIBOBJS$ac_delim
21834 LTLIBOBJS!$LTLIBOBJS$ac_delim
21837 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21839 elif $ac_last_try; then
21840 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21841 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21842 { (exit 1); exit 1; }; }
21844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21848 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21849 if test -n "$ac_eof"; then
21850 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21851 ac_eof=`expr $ac_eof + 1`
21854 cat >>$CONFIG_STATUS <<_ACEOF
21855 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21860 s/^/s,@/; s/!/@,|#_!!_#|/
21863 s/'"$ac_delim"'$/,g/; t
21865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21866 ' >>$CONFIG_STATUS <conf$$subs.sed
21867 rm -f conf$$subs.sed
21868 cat >>$CONFIG_STATUS <<_ACEOF
21875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21877 # trailing colons and then remove the whole line if VPATH becomes empty
21878 # (actually we leave an empty line to preserve line numbers).
21879 if test "x$srcdir" = x.; then
21880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21881 s/:*\$(srcdir):*/:/
21882 s/:*\${srcdir}:*/:/
21884 s/^\([^=]*=[ ]*\):*/\1/
21890 cat >>$CONFIG_STATUS <<\_ACEOF
21891 fi # test -n "$CONFIG_FILES"
21894 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21897 :[FHLC]) ac_mode=$ac_tag; continue;;
21899 case $ac_mode$ac_tag in
21901 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21902 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21903 { (exit 1); exit 1; }; };;
21904 :[FH]-) ac_tag=-:-;;
21905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21922 -) ac_f="$tmp/stdin";;
21923 *) # Look for the file first in the build tree, then in the source tree
21924 # (if the path is not absolute). The absolute path cannot be DOS-style,
21925 # because $ac_f cannot contain `:'.
21929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21931 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21932 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21933 { (exit 1); exit 1; }; };;
21935 ac_file_inputs="$ac_file_inputs $ac_f"
21938 # Let's still pretend it is `configure' which instantiates (i.e., don't
21939 # use $as_me), people would be surprised to read:
21940 # /* config.h. Generated by config.status. */
21941 configure_input="Generated from "`IFS=:
21942 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21943 if test x"$ac_file" != x-; then
21944 configure_input="$ac_file. $configure_input"
21945 { echo "$as_me:$LINENO: creating $ac_file" >&5
21946 echo "$as_me: creating $ac_file" >&6;}
21950 *:-:* | *:-) cat >"$tmp/stdin";;
21955 ac_dir=`$as_dirname -- "$ac_file" ||
21956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21957 X"$ac_file" : 'X\(//\)[^/]' \| \
21958 X"$ac_file" : 'X\(//\)$' \| \
21959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21965 /^X\(\/\/\)[^/].*/{
21980 -*) as_dir=./$as_dir;;
21982 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21986 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21987 *) as_qdir=$as_dir;;
21989 as_dirs="'$as_qdir' $as_dirs"
21990 as_dir=`$as_dirname -- "$as_dir" ||
21991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21992 X"$as_dir" : 'X\(//\)[^/]' \| \
21993 X"$as_dir" : 'X\(//\)$' \| \
21994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22000 /^X\(\/\/\)[^/].*/{
22013 test -d "$as_dir" && break
22015 test -z "$as_dirs" || eval "mkdir $as_dirs"
22016 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22017 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22018 { (exit 1); exit 1; }; }; }
22022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22025 # A ".." for each directory in $ac_dir_suffix.
22026 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22027 case $ac_top_builddir_sub in
22028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22032 ac_abs_top_builddir=$ac_pwd
22033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22034 # for backward compatibility:
22035 ac_top_builddir=$ac_top_build_prefix
22038 .) # We are building in place.
22040 ac_top_srcdir=$ac_top_builddir_sub
22041 ac_abs_top_srcdir=$ac_pwd ;;
22042 [\\/]* | ?:[\\/]* ) # Absolute name.
22043 ac_srcdir=$srcdir$ac_dir_suffix;
22044 ac_top_srcdir=$srcdir
22045 ac_abs_top_srcdir=$srcdir ;;
22046 *) # Relative name.
22047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22048 ac_top_srcdir=$ac_top_build_prefix$srcdir
22049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22066 cat >>$CONFIG_STATUS <<\_ACEOF
22067 # If the template does not know about datarootdir, expand it.
22068 # FIXME: This hack should be removed a few years after 2.60.
22069 ac_datarootdir_hack=; ac_datarootdir_seen=
22071 case `sed -n '/datarootdir/ {
22080 ' $ac_file_inputs` in
22081 *datarootdir*) ac_datarootdir_seen=yes;;
22082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22083 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22086 cat >>$CONFIG_STATUS <<_ACEOF
22087 ac_datarootdir_hack='
22088 s&@datadir@&$datadir&g
22089 s&@docdir@&$docdir&g
22090 s&@infodir@&$infodir&g
22091 s&@localedir@&$localedir&g
22092 s&@mandir@&$mandir&g
22093 s&\\\${datarootdir}&$datarootdir&g' ;;
22097 # Neutralize VPATH when `$srcdir' = `.'.
22098 # Shell code in configure.ac might set extrasub.
22099 # FIXME: do we really want to maintain this feature?
22100 cat >>$CONFIG_STATUS <<_ACEOF
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22107 s&@configure_input@&$configure_input&;t t
22108 s&@top_builddir@&$ac_top_builddir_sub&;t t
22109 s&@srcdir@&$ac_srcdir&;t t
22110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22111 s&@top_srcdir@&$ac_top_srcdir&;t t
22112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22113 s&@builddir@&$ac_builddir&;t t
22114 s&@abs_builddir@&$ac_abs_builddir&;t t
22115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22116 s&@INSTALL@&$ac_INSTALL&;t t
22117 $ac_datarootdir_hack
22118 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22121 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22123 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22124 which seems to be undefined. Please make sure it is defined." >&5
22125 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22126 which seems to be undefined. Please make sure it is defined." >&2;}
22130 -) cat "$tmp/out"; rm -f "$tmp/out";;
22131 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22136 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22137 echo "$as_me: executing $ac_file commands" >&6;}
22142 case $ac_file$ac_mode in
22143 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22144 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22145 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22146 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22147 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22148 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22149 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22150 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22151 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22152 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22158 { (exit 0); exit 0; }
22160 chmod +x $CONFIG_STATUS
22161 ac_clean_files=$ac_clean_files_save
22164 # configure is writing to config.log, and then calls config.status.
22165 # config.status does its own redirection, appending to config.log.
22166 # Unfortunately, on DOS this fails, as config.log is still kept open
22167 # by configure, so config.status won't be able to write to it; its
22168 # output is simply discarded. So we exec the FD to /dev/null,
22169 # effectively closing config.log, so it can be properly (re)opened and
22170 # appended to by config.status. When coming back to configure, we
22171 # need to make the FD available again.
22172 if test "$no_create" != yes; then
22174 ac_config_status_args=
22175 test "$silent" = yes &&
22176 ac_config_status_args="$ac_config_status_args --quiet"
22178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22181 # would make configure fail if this is the last instruction.
22182 $ac_cs_success || { (exit 1); exit 1; }
22186 # CONFIG_SUBDIRS section.
22188 if test "$no_recursion" != yes; then
22190 # Remove --cache-file and --srcdir arguments so they do not pile up.
22191 ac_sub_configure_args=
22193 eval "set x $ac_configure_args"
22197 if test -n "$ac_prev"; then
22202 -cache-file | --cache-file | --cache-fil | --cache-fi \
22203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22204 ac_prev=cache_file ;;
22205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22209 --config-cache | -C)
22211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22221 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22223 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22227 # Always prepend --prefix to ensure using the same prefix
22228 # in subdir configurations.
22229 ac_arg="--prefix=$prefix"
22231 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22233 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22236 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22238 # Do not complain, so a configure script can configure whichever
22239 # parts of a large source tree are present.
22240 test -d "$srcdir/$ac_dir" || continue
22242 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22243 echo "$as_me:$LINENO: $ac_msg" >&5
22247 -*) as_dir=./$as_dir;;
22249 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22253 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22254 *) as_qdir=$as_dir;;
22256 as_dirs="'$as_qdir' $as_dirs"
22257 as_dir=`$as_dirname -- "$as_dir" ||
22258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22259 X"$as_dir" : 'X\(//\)[^/]' \| \
22260 X"$as_dir" : 'X\(//\)$' \| \
22261 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22267 /^X\(\/\/\)[^/].*/{
22280 test -d "$as_dir" && break
22282 test -z "$as_dirs" || eval "mkdir $as_dirs"
22283 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22284 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22285 { (exit 1); exit 1; }; }; }
22289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22292 # A ".." for each directory in $ac_dir_suffix.
22293 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22294 case $ac_top_builddir_sub in
22295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22299 ac_abs_top_builddir=$ac_pwd
22300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22301 # for backward compatibility:
22302 ac_top_builddir=$ac_top_build_prefix
22305 .) # We are building in place.
22307 ac_top_srcdir=$ac_top_builddir_sub
22308 ac_abs_top_srcdir=$ac_pwd ;;
22309 [\\/]* | ?:[\\/]* ) # Absolute name.
22310 ac_srcdir=$srcdir$ac_dir_suffix;
22311 ac_top_srcdir=$srcdir
22312 ac_abs_top_srcdir=$srcdir ;;
22313 *) # Relative name.
22314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22315 ac_top_srcdir=$ac_top_build_prefix$srcdir
22316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22323 # Check for guested configure; otherwise get Cygnus style configure.
22324 if test -f "$ac_srcdir/configure.gnu"; then
22325 ac_sub_configure=$ac_srcdir/configure.gnu
22326 elif test -f "$ac_srcdir/configure"; then
22327 ac_sub_configure=$ac_srcdir/configure
22328 elif test -f "$ac_srcdir/configure.in"; then
22329 # This should be Cygnus configure.
22330 ac_sub_configure=$ac_aux_dir/configure
22332 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22337 # The recursion is here.
22338 if test -n "$ac_sub_configure"; then
22339 # Make the cache file name correct relative to the subdirectory.
22340 case $cache_file in
22341 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22342 *) # Relative name.
22343 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22346 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22347 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22348 # The eval makes quoting arguments work.
22349 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22350 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22351 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22352 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22353 { (exit 1); exit 1; }; }