2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
754 HAVE_LINK_VERSION_SCRIPT
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
783 ENABLE_VISIBILITY_INLINES_HIDDEN
789 ac_precious_vars='build_alias
800 ac_subdirs_all='tools/polly'
802 # Initialize some variables set by options.
804 ac_init_version=false
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
814 program_transform_name=s,x,x,
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
860 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
909 eval enable_$ac_feature=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 -enable-* | --enable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1119 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1122 { echo "$as_me: error: invalid package name: $ac_package" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_package=`echo $ac_package| sed 's/-/_/g'`
1125 eval with_$ac_package=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid package name: $ac_package" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_package=`echo $ac_package | sed 's/-/_/g'`
1134 eval with_$ac_package=no ;;
1137 # Obsolete; use --with-x.
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) { echo "$as_me: error: unrecognized option: $ac_option
1155 Try \`$0 --help' for more information." >&2
1156 { (exit 1); exit 1; }; }
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164 { (exit 1); exit 1; }; }
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 { echo "$as_me: error: missing argument to $ac_option" >&2
1182 { (exit 1); exit 1; }; }
1185 # Be sure to have absolute directory names.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1197 { (exit 1); exit 1; }; }
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used." >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 { echo "$as_me: error: Working directory cannot be determined" >&2
1228 { (exit 1); exit 1; }; }
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 { echo "$as_me: error: pwd does not report name of working directory" >&2
1231 { (exit 1); exit 1; }; }
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$0" ||
1239 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$0" : 'X\(//\)[^/]' \| \
1241 X"$0" : 'X\(//\)$' \| \
1242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1271 { (exit 1); exit 1; }; }
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1276 { (exit 1); exit 1; }; }
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1302 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 --target=TARGET configure for building compilers for TARGET [HOST]
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-polly Use polly if available (default is YES)
1376 --enable-optimized Compile with optimizations enabled (default is NO)
1377 --enable-profiling Compile with profiling enabled (default is NO)
1378 --enable-assertions Compile with assertion checks enabled (default is
1380 --enable-expensive-checks
1381 Compile with expensive debug checks enabled (default
1383 --enable-debug-runtime Build runtime libs with debug symbols (default is
1385 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1386 optimization is on and YES if it's off)
1387 --enable-jit Enable Just In Time Compiling (default is YES)
1388 --enable-docs Build documents (default is YES)
1389 --enable-doxygen Build doxygen documentation (default is NO)
1390 --enable-threads Use threads if available (default is YES)
1391 --enable-pthreads Use pthreads if available (default is YES)
1392 --enable-pic Build LLVM with Position Independent Code (default
1394 --enable-shared Build a shared library and link tools against it
1396 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1397 Win32 DLL (default is YES)
1398 --enable-timestamps Enable embedding timestamp information in build
1400 --enable-targets Build specific host targets: all or
1401 target1,target2,... Valid targets are: host, x86,
1402 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1403 xcore, msp430, ptx, cbe, and cpp (default=all)
1404 --enable-bindings Build specific language bindings:
1405 all,auto,none,{binding-name} (default=auto)
1406 --enable-libffi Check for the presence of libffi (default is NO)
1407 --enable-ltdl-install install libltdl
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-llvmsrc Location of LLVM Source Code
1413 --with-llvmobj Location of LLVM Object Code
1414 --with-optimize-option Select the compiler options to use for optimized
1416 --with-extra-options Specify additional options to compile LLVM with
1417 --with-extra-ld-options Specify additional options to link LLVM with
1418 --with-ocaml-libdir Specify install location for ocaml bindings (default
1420 --with-clang-resource-dir
1421 Relative directory from the Clang binary for
1423 --with-c-include-dirs Colon separated list of directories clang will
1425 --with-gcc-toolchain Directory where gcc is installed.
1426 --with-binutils-include Specify path to binutils/include/ containing
1427 plugin-api.h file for gold plugin.
1428 --with-bug-report-url Specify the URL where bug reports should be
1429 submitted (default=http://llvm.org/bugs/)
1430 --with-tclinclude directory where tcl headers are
1431 --with-udis86=<path> Use udis86 external x86 disassembler library
1432 --with-oprofile=<prefix>
1433 Tell OProfile >= 0.9.4 how to symbolize JIT output
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to <bugs@yourdomain>.
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" || continue
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1477 .) # We are building in place.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1501 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1510 [SAMPLE] configure [x.xx]
1511 generated by GNU Autoconf 2.60
1513 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1514 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1520 cat >config.log <<_ACEOF
1521 This file contains any messages produced by compilers while
1522 running configure, to aid debugging if configure makes a mistake.
1524 It was created by [SAMPLE] $as_me [x.xx], which was
1525 generated by GNU Autoconf 2.60. Invocation command line was
1537 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1538 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1539 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1540 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1541 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1543 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1544 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1546 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1547 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1548 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1549 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1550 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1551 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1552 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 echo "PATH: $as_dir"
1577 # Keep a trace of the command line.
1578 # Strip out --no-create and --no-recursion so they do not pile up.
1579 # Strip out --silent because we don't want to record it for future runs.
1580 # Also quote any args containing shell meta-characters.
1581 # Make two passes to allow for proper duplicate-argument suppression.
1585 ac_must_keep_next=false
1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1596 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1599 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1601 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1602 if test $ac_must_keep_next = true; then
1603 ac_must_keep_next=false # Got value, back to normal.
1606 *=* | --config-cache | -C | -disable-* | --disable-* \
1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609 | -with-* | --with-* | -without-* | --without-* | --x)
1610 case "$ac_configure_args0 " in
1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1614 -* ) ac_must_keep_next=true ;;
1617 ac_configure_args="$ac_configure_args '$ac_arg'"
1622 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1623 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1625 # When interrupted or exit'd, cleanup temporary files, and complete
1626 # config.log. We remove comments because anyway the quotes in there
1627 # would cause problems or look ugly.
1628 # WARNING: Use '\'' to represent an apostrophe within the trap.
1629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1630 trap 'exit_status=$?
1631 # Save into config.log some information that might help in debugging.
1636 ## ---------------- ##
1637 ## Cache variables. ##
1638 ## ---------------- ##
1641 # The following way of writing the cache mishandles newlines in values,
1643 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1644 eval ac_val=\$$ac_var
1648 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1649 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1652 _ | IFS | as_nl) ;; #(
1653 *) $as_unset $ac_var ;;
1658 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1659 *${as_nl}ac_space=\ *)
1661 "s/'\''/'\''\\\\'\'''\''/g;
1662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673 ## ----------------- ##
1674 ## Output variables. ##
1675 ## ----------------- ##
1678 for ac_var in $ac_subst_vars
1680 eval ac_val=\$$ac_var
1682 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1684 echo "$ac_var='\''$ac_val'\''"
1688 if test -n "$ac_subst_files"; then
1690 ## ------------------- ##
1691 ## File substitutions. ##
1692 ## ------------------- ##
1695 for ac_var in $ac_subst_files
1697 eval ac_val=\$$ac_var
1699 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1701 echo "$ac_var='\''$ac_val'\''"
1706 if test -s confdefs.h; then
1716 test "$ac_signal" != 0 &&
1717 echo "$as_me: caught signal $ac_signal"
1718 echo "$as_me: exit $exit_status"
1720 rm -f core *.core core.conftest.* &&
1721 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1724 for ac_signal in 1 2 13 15; do
1725 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1730 rm -f -r conftest* confdefs.h
1732 # Predefined preprocessor variables.
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_NAME "$PACKAGE_NAME"
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_STRING "$PACKAGE_STRING"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759 # Let the site file select an alternate cache file if it wants to.
1760 # Prefer explicitly selected file to automatically selected ones.
1761 if test -n "$CONFIG_SITE"; then
1762 set x "$CONFIG_SITE"
1763 elif test "x$prefix" != xNONE; then
1764 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1766 set x "$ac_default_prefix/share/config.site" \
1767 "$ac_default_prefix/etc/config.site"
1772 if test -r "$ac_site_file"; then
1773 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1774 echo "$as_me: loading site script $ac_site_file" >&6;}
1775 sed 's/^/| /' "$ac_site_file" >&5
1780 if test -r "$cache_file"; then
1781 # Some versions of bash will fail to source /dev/null (special
1782 # files actually), so we avoid doing that.
1783 if test -f "$cache_file"; then
1784 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1785 echo "$as_me: loading cache $cache_file" >&6;}
1787 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1788 *) . "./$cache_file";;
1792 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1793 echo "$as_me: creating cache $cache_file" >&6;}
1797 # Check that the precious variables saved in the cache have kept the same
1799 ac_cache_corrupted=false
1800 for ac_var in $ac_precious_vars; do
1801 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1802 eval ac_new_set=\$ac_env_${ac_var}_set
1803 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1804 eval ac_new_val=\$ac_env_${ac_var}_value
1805 case $ac_old_set,$ac_new_set in
1807 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1808 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1811 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1812 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1816 if test "x$ac_old_val" != "x$ac_new_val"; then
1817 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1818 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1819 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1820 echo "$as_me: former value: $ac_old_val" >&2;}
1821 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1822 echo "$as_me: current value: $ac_new_val" >&2;}
1823 ac_cache_corrupted=:
1826 # Pass precious variables to config.status.
1827 if test "$ac_new_set" = set; then
1829 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 *) ac_arg=$ac_var=$ac_new_val ;;
1832 case " $ac_configure_args " in
1833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1834 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838 if $ac_cache_corrupted; then
1839 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1840 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1841 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1842 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1843 { (exit 1); exit 1; }; }
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 LLVM_SRC_ROOT="../.."
1879 LLVM_OBJ_ROOT="../.."
1881 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1882 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1885 # Check whether --with-llvmsrc was given.
1886 if test "${with_llvmsrc+set}" = set; then
1887 withval=$with_llvmsrc; llvm_src="$withval"
1889 llvm_src="$LLVM_ABS_SRC_ROOT"
1895 # Check whether --with-llvmobj was given.
1896 if test "${with_llvmobj+set}" = set; then
1897 withval=$with_llvmobj; llvm_obj="$withval"
1899 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1904 ac_config_commands="$ac_config_commands setup"
1908 { echo "$as_me:$LINENO: checking llvm-config" >&5
1909 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1910 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1911 if ! test -f "$llvm_config_path" ; then
1912 llvm_config_path="no"
1914 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1915 echo "${ECHO_T}$llvm_config_path" >&6; }
1917 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1918 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1919 if test "$llvm_config_path" != no ; then
1920 llvm_package_version=`$llvm_config_path --version`
1922 llvm_package_version="unknown";
1924 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1925 echo "${ECHO_T}$llvm_package_version" >&6; }
1926 LLVM_VERSION=$llvm_package_version
1932 for ac_dir in autoconf "$srcdir"/autoconf; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970 for ac_prog in clang llvm-gcc gcc
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test -n "$CC"; then
2001 { echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6; }
2004 { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2009 test -n "$CC" && break
2012 if test -z "$CC"; then
2014 for ac_prog in clang llvm-gcc gcc
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_ac_ct_CC="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$ac_ct_CC" && break
2056 if test "x$ac_ct_CC" = x; then
2059 case $cross_compiling:$ac_tool_warned in
2061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet. If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&5
2064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2067 ac_tool_warned=yes ;;
2074 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2080 # Provide some information about the compiler.
2081 echo "$as_me:$LINENO: checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (ac_try="$ac_compiler --version >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler --version >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -v >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -v >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -V >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -V >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2114 cat >conftest.$ac_ext <<_ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 ac_clean_files_save=$ac_clean_files
2130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2134 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2138 # List of possible output files, starting from the most likely.
2139 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140 # only as a last resort. b.out is created by i960 compilers.
2141 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2143 # The IRIX 6 linker writes into existing files which may not be
2144 # executable, retaining their permissions. Remove them first so a
2145 # subsequent execution test works.
2147 for ac_file in $ac_files
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156 if { (ac_try="$ac_link_default"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162 (eval "$ac_link_default") 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2169 # so that the user can short-circuit this test for compilers unknown to
2171 for ac_file in $ac_files
2173 test -f "$ac_file" || continue
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 # We found the default executable, but exeext='' is most
2182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # We set ac_cv_exeext here because the later test for it is not
2187 # safe: cross compilers may not add the suffix if given an `-o'
2188 # argument, so we may need to know it at that point already.
2189 # Even if this section looks crufty: it has the advantage of
2196 test "$ac_cv_exeext" = no && ac_cv_exeext=
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
2209 ac_exeext=$ac_cv_exeext
2210 { echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6; }
2213 # Check that the compiler produces executables we can run. If not, either
2214 # the compiler is broken, or we cross compile.
2215 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_try") 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 if test "$cross_compiling" = maybe; then
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check that the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6; }
2257 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259 if { (ac_try="$ac_link"
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_link") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2297 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299 if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.o conftest.obj
2318 if { (ac_try="$ac_compile"
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2324 (eval "$ac_compile") 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in conftest.o conftest.obj conftest.*; do
2329 test -f "$ac_file" || continue;
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6; }
2351 OBJEXT=$ac_cv_objext
2353 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat >conftest.$ac_ext <<_ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (ac_try="$ac_compile"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compile") 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 ac_save_c_werror_flag=$ac_c_werror_flag
2433 ac_c_werror_flag=yes
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2506 rm -f conftest.$ac_objext
2507 if { (ac_try="$ac_compile"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compile") 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2547 cat >conftest.$ac_ext <<_ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_c_werror_flag=$ac_save_c_werror_flag
2613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2615 if test "$ac_test_CFLAGS" = set; then
2616 CFLAGS=$ac_save_CFLAGS
2617 elif test $ac_cv_prog_cc_g = yes; then
2618 if test "$GCC" = yes; then
2624 if test "$GCC" = yes; then
2630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_c89+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 ac_cv_prog_cc_c89=no
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2645 #include <sys/types.h>
2646 #include <sys/stat.h>
2647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2648 struct buf { int x; };
2649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650 static char *e (p, i)
2656 static char *f (char * (*g) (char **, int), char **p, ...)
2661 s = g (p, va_arg (v,int));
2666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2667 function prototypes and stuff, but not '\xHH' hex character constants.
2668 These don't provoke an error unfortunately, instead are silently treated
2669 as 'x'. The following induces an error, until -std is added to get
2670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2671 array size at least. It's necessary to write '\x00'==0 to get something
2672 that's true only with -std. */
2673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676 inside strings and character constants. */
2678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2697 CC="$ac_save_CC $ac_arg"
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_c89=$ac_arg
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f core conftest.err conftest.$ac_objext
2741 test "x$ac_cv_prog_cc_c89" != "xno" && break
2743 rm -f conftest.$ac_ext
2748 case "x$ac_cv_prog_cc_c89" in
2750 { echo "$as_me:$LINENO: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6; } ;;
2753 { echo "$as_me:$LINENO: result: unsupported" >&5
2754 echo "${ECHO_T}unsupported" >&6; } ;;
2756 CC="$CC $ac_cv_prog_cc_c89"
2757 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769 ac_cpp='$CXXCPP $CPPFLAGS'
2770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773 if test -z "$CXX"; then
2774 if test -n "$CCC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in clang++ llvm-g++ g++
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CXX+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CXX"; then
2788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CXX"; then
2809 { echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6; }
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2817 test -n "$CXX" && break
2820 if test -z "$CXX"; then
2822 for ac_prog in clang++ llvm-g++ g++
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$ac_ct_CXX"; then
2832 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CXX="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852 if test -n "$ac_ct_CXX"; then
2853 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2856 { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2861 test -n "$ac_ct_CXX" && break
2864 if test "x$ac_ct_CXX" = x; then
2867 case $cross_compiling:$ac_tool_warned in
2869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet. If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet. If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2883 # Provide some information about the compiler.
2884 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (ac_try="$ac_compiler --version >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler --version >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -v >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -v >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -V >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2917 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2991 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_cxx_g+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997 ac_cxx_werror_flag=yes
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_prog_cxx_g=yes
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179 if test "$ac_test_CXXFLAGS" = set; then
3180 CXXFLAGS=$ac_save_CXXFLAGS
3181 elif test $ac_cv_prog_cxx_g = yes; then
3182 if test "$GXX" = yes; then
3188 if test "$GXX" = yes; then
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3211 if test -z "$CPP"; then
3212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 if test -z "$ac_cpp_err"; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Broken: fails on valid input.
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether nonexistent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <ac_nonexistent.h>
3284 if { (ac_try="$ac_cpp conftest.$ac_ext"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Passes both tests.
3318 rm -f conftest.err conftest.$ac_ext
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then
3335 { echo "$as_me:$LINENO: result: $CPP" >&5
3336 echo "${ECHO_T}$CPP" >&6; }
3338 for ac_c_preproc_warn_flag in '' yes
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3353 # include <limits.h>
3355 # include <assert.h>
3359 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
3374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 if test -z "$ac_cpp_err"; then
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 # Broken: fails on valid input.
3391 rm -f conftest.err conftest.$ac_ext
3393 # OK, works on sane cases. Now check whether nonexistent headers
3394 # can be detected and how.
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <ac_nonexistent.h>
3403 if { (ac_try="$ac_cpp conftest.$ac_ext"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3437 rm -f conftest.err conftest.$ac_ext
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&5
3447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&2;}
3449 { (exit 1); exit 1; }; }
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 # Check whether --enable-polly was given.
3462 if test "${enable_polly+set}" = set; then
3463 enableval=$enable_polly;
3468 case "$enableval" in
3473 default) ENABLE_POLLY=1
3475 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3476 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3477 { (exit 1); exit 1; }; } ;;
3481 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3484 subdirs="$subdirs tools/polly"
3489 # Make sure we can run config.sub.
3490 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3491 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3492 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3493 { (exit 1); exit 1; }; }
3495 { echo "$as_me:$LINENO: checking build system type" >&5
3496 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3497 if test "${ac_cv_build+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 ac_build_alias=$build_alias
3501 test "x$ac_build_alias" = x &&
3502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3503 test "x$ac_build_alias" = x &&
3504 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3505 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3506 { (exit 1); exit 1; }; }
3507 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3508 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3509 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3510 { (exit 1); exit 1; }; }
3513 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3514 echo "${ECHO_T}$ac_cv_build" >&6; }
3515 case $ac_cv_build in
3517 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3518 echo "$as_me: error: invalid value of canonical build" >&2;}
3519 { (exit 1); exit 1; }; };;
3522 ac_save_IFS=$IFS; IFS='-'
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535 { echo "$as_me:$LINENO: checking host system type" >&5
3536 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3537 if test "${ac_cv_host+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 if test "x$host_alias" = x; then
3541 ac_cv_host=$ac_cv_build
3543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3544 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3545 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3546 { (exit 1); exit 1; }; }
3550 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3551 echo "${ECHO_T}$ac_cv_host" >&6; }
3554 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3555 echo "$as_me: error: invalid value of canonical host" >&2;}
3556 { (exit 1); exit 1; }; };;
3559 ac_save_IFS=$IFS; IFS='-'
3565 # Remember, the first character of IFS is used to create $*,
3566 # except with old shells:
3569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3572 { echo "$as_me:$LINENO: checking target system type" >&5
3573 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3574 if test "${ac_cv_target+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 if test "x$target_alias" = x; then
3578 ac_cv_target=$ac_cv_host
3580 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3581 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3582 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3583 { (exit 1); exit 1; }; }
3587 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3588 echo "${ECHO_T}$ac_cv_target" >&6; }
3589 case $ac_cv_target in
3591 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3592 echo "$as_me: error: invalid value of canonical target" >&2;}
3593 { (exit 1); exit 1; }; };;
3595 target=$ac_cv_target
3596 ac_save_IFS=$IFS; IFS='-'
3602 # Remember, the first character of IFS is used to create $*,
3603 # except with old shells:
3606 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3609 # The aliases save the names the user supplied, while $host etc.
3610 # will get canonicalized.
3611 test -n "$target_alias" &&
3612 test "$program_prefix$program_suffix$program_transform_name" = \
3614 program_prefix=${target_alias}-
3616 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3617 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3618 if test "${llvm_cv_os_type+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 llvm_cv_link_all_option="-Wl,--whole-archive"
3624 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3625 llvm_cv_os_type="AIX"
3626 llvm_cv_platform_type="Unix" ;;
3628 llvm_cv_link_all_option="-Wl,--whole-archive"
3629 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630 llvm_cv_os_type="IRIX"
3631 llvm_cv_platform_type="Unix" ;;
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="Cygwin"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,-all_load"
3639 llvm_cv_no_link_all_option="-Wl,-noall_load"
3640 llvm_cv_os_type="Darwin"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,-all_load"
3644 llvm_cv_no_link_all_option="-Wl,-noall_load"
3645 llvm_cv_os_type="Minix"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,--whole-archive"
3649 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3650 llvm_cv_os_type="FreeBSD"
3651 llvm_cv_platform_type="Unix" ;;
3653 llvm_cv_link_all_option="-Wl,--whole-archive"
3654 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655 llvm_cv_os_type="OpenBSD"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="NetBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="DragonFly"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="HP-UX"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="Interix"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Linux"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,-z,allextract"
3684 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3685 llvm_cv_os_type="SunOS"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-z,allextract"
3689 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3690 llvm_cv_os_type="AuroraUX"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="Win32"
3696 llvm_cv_platform_type="Win32" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="MingW"
3701 llvm_cv_platform_type="Win32" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Haiku"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="Freestanding"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Freestanding"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option=""
3719 llvm_cv_no_link_all_option=""
3720 llvm_cv_os_type="Unknown"
3721 llvm_cv_platform_type="Unknown" ;;
3724 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3725 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3727 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3728 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3729 if test "${llvm_cv_target_os_type+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 llvm_cv_target_os_type="AIX" ;;
3736 llvm_cv_target_os_type="IRIX" ;;
3738 llvm_cv_target_os_type="Cygwin" ;;
3740 llvm_cv_target_os_type="Darwin" ;;
3742 llvm_cv_target_os_type="Minix" ;;
3744 llvm_cv_target_os_type="FreeBSD" ;;
3746 llvm_cv_target_os_type="OpenBSD" ;;
3748 llvm_cv_target_os_type="NetBSD" ;;
3750 llvm_cv_target_os_type="DragonFly" ;;
3752 llvm_cv_target_os_type="HP-UX" ;;
3754 llvm_cv_target_os_type="Interix" ;;
3756 llvm_cv_target_os_type="Linux" ;;
3758 llvm_cv_target_os_type="SunOS" ;;
3760 llvm_cv_target_os_type="AuroraUX" ;;
3762 llvm_cv_target_os_type="Win32" ;;
3764 llvm_cv_target_os_type="MingW" ;;
3766 llvm_cv_target_os_type="Haiku" ;;
3768 llvm_cv_target_os_type="RTEMS" ;;
3770 llvm_cv_target_os_type="NativeClient" ;;
3772 llvm_cv_target_os_type="Freestanding" ;;
3774 llvm_cv_target_os_type="Unknown" ;;
3777 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3778 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3780 if test "$llvm_cv_os_type" = "Unknown" ; then
3781 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3782 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3783 { (exit 1); exit 1; }; }
3788 HOST_OS=$llvm_cv_os_type
3790 TARGET_OS=$llvm_cv_target_os_type
3793 LINKALL=$llvm_cv_link_all_option
3795 NOLINKALL=$llvm_cv_no_link_all_option
3798 case $llvm_cv_platform_type in
3801 cat >>confdefs.h <<\_ACEOF
3802 #define LLVM_ON_UNIX 1
3812 cat >>confdefs.h <<\_ACEOF
3813 #define LLVM_ON_WIN32 1
3823 { echo "$as_me:$LINENO: checking target architecture" >&5
3824 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3825 if test "${llvm_cv_target_arch+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 i?86-*) llvm_cv_target_arch="x86" ;;
3830 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3831 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3832 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3833 arm*-*) llvm_cv_target_arch="ARM" ;;
3834 mips-*) llvm_cv_target_arch="Mips" ;;
3835 xcore-*) llvm_cv_target_arch="XCore" ;;
3836 msp430-*) llvm_cv_target_arch="MSP430" ;;
3837 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3838 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3839 ptx-*) llvm_cv_target_arch="PTX" ;;
3840 *) llvm_cv_target_arch="Unknown" ;;
3843 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3844 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3846 if test "$llvm_cv_target_arch" = "Unknown" ; then
3847 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3848 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3851 # Determine the LLVM native architecture for the target
3852 case "$llvm_cv_target_arch" in
3853 x86) LLVM_NATIVE_ARCH="X86" ;;
3854 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3855 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3858 ARCH=$llvm_cv_target_arch
3863 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3864 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_GREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 # Extract the first word of "grep ggrep" to use in msg output
3869 if test -z "$GREP"; then
3870 set dummy grep ggrep; ac_prog_name=$2
3871 if test "${ac_cv_path_GREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 ac_path_GREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in grep ggrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3885 # Check for GNU ac_path_GREP and select it if it is found.
3886 # Check for GNU $ac_path_GREP
3887 case `"$ac_path_GREP" --version 2>&1` in
3889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'GREP' >> "conftest.nl"
3899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_GREP="$ac_path_GREP"
3905 ac_path_GREP_max=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 $ac_path_GREP_found && break 3
3924 GREP="$ac_cv_path_GREP"
3925 if test -z "$GREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3932 ac_cv_path_GREP=$GREP
3937 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3938 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
3942 { echo "$as_me:$LINENO: checking for egrep" >&5
3943 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3950 # Extract the first word of "egrep" to use in msg output
3951 if test -z "$EGREP"; then
3952 set dummy egrep; ac_prog_name=$2
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 $ac_path_EGREP_found && break 3
4006 EGREP="$ac_cv_path_EGREP"
4007 if test -z "$EGREP"; then
4008 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010 { (exit 1); exit 1; }; }
4014 ac_cv_path_EGREP=$EGREP
4020 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4021 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
4025 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4027 if test "${ac_cv_header_stdc+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4058 grep -v '^ *+' conftest.er1 >conftest.err
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_header_stdc=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_cv_header_stdc=no
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 if test $ac_cv_header_stdc = yes; then
4094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "memchr" >/dev/null 2>&1; then
4108 ac_cv_header_stdc=no
4114 if test $ac_cv_header_stdc = yes; then
4115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "free" >/dev/null 2>&1; then
4129 ac_cv_header_stdc=no
4135 if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137 if test "$cross_compiling" = yes; then
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4148 #if ((' ' & 0x0FF) == 0x020)
4149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4152 # define ISLOWER(c) \
4153 (('a' <= (c) && (c) <= 'i') \
4154 || ('j' <= (c) && (c) <= 'r') \
4155 || ('s' <= (c) && (c) <= 'z'))
4156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164 for (i = 0; i < 256; i++)
4165 if (XOR (islower (i), ISLOWER (i))
4166 || toupper (i) != TOUPPER (i))
4171 rm -f conftest$ac_exeext
4172 if { (ac_try="$ac_link"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_link") 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4193 echo "$as_me: program exited with status $ac_status" >&5
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4198 ac_cv_header_stdc=no
4200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4207 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4208 if test $ac_cv_header_stdc = yes; then
4210 cat >>confdefs.h <<\_ACEOF
4211 #define STDC_HEADERS 1
4216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4227 inttypes.h stdint.h unistd.h
4229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 $ac_includes_default
4243 #include <$ac_header>
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 eval "$as_ac_Header=yes"
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 eval "$as_ac_Header=no"
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 ac_res=`eval echo '${'$as_ac_Header'}'`
4290 { echo "$as_me:$LINENO: result: $ac_res" >&5
4291 echo "${ECHO_T}$ac_res" >&6; }
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4302 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4303 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4304 if test "${ac_cv_c_bigendian+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 # See if sys/param.h defines the BYTE_ORDER macro.
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 #include <sys/types.h>
4315 #include <sys/param.h>
4320 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_compile") 2>conftest.er1
4337 grep -v '^ *+' conftest.er1 >conftest.err
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 # It does; now see whether it defined to BIG_ENDIAN or not.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4375 #if BYTE_ORDER != BIG_ENDIAN
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_c_bigendian=yes
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 ac_cv_c_bigendian=no
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 # It does not; compile a test program.
4431 if test "$cross_compiling" = yes; then
4432 # try to guess the endianness by grepping values into an object file
4433 ac_cv_c_bigendian=unknown
4434 cat >conftest.$ac_ext <<_ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4441 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4442 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4443 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4444 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4445 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4449 _ascii (); _ebcdic ();
4454 rm -f conftest.$ac_objext
4455 if { (ac_try="$ac_compile"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_compile") 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_try") 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4489 ac_cv_c_bigendian=yes
4491 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4492 if test "$ac_cv_c_bigendian" = unknown; then
4493 ac_cv_c_bigendian=no
4495 # finding both strings is unlikely to happen, but who knows?
4496 ac_cv_c_bigendian=unknown
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 $ac_includes_default
4519 /* Are we little or big endian? From Harbison&Steele. */
4523 char c[sizeof (long int)];
4526 return u.c[sizeof (long int) - 1] == 1;
4532 rm -f conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_link") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_c_bigendian=no
4554 echo "$as_me: program exited with status $ac_status" >&5
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4559 ac_cv_c_bigendian=yes
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4570 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4571 case $ac_cv_c_bigendian in
4579 { { echo "$as_me:$LINENO: error: unknown endianness
4580 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4581 echo "$as_me: error: unknown endianness
4582 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4583 { (exit 1); exit 1; }; } ;;
4587 if test "$cross_compiling" = yes; then
4588 LLVM_CROSS_COMPILING=1
4591 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4592 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4593 if test "${ac_cv_build_exeext+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4597 ac_cv_build_exeext=.exe
4599 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}gcc; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$BUILD_CC"; then
4609 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 BUILD_CC=$ac_cv_prog_BUILD_CC
4629 if test -n "$BUILD_CC"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4631 echo "${ECHO_T}$BUILD_CC" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test -z "$BUILD_CC"; then
4639 # Extract the first word of "gcc", so it can be a program name with args.
4640 set dummy gcc; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 if test -n "$BUILD_CC"; then
4647 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_BUILD_CC="gcc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 BUILD_CC=$ac_cv_prog_BUILD_CC
4667 if test -n "$BUILD_CC"; then
4668 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4669 echo "${ECHO_T}$BUILD_CC" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 if test -z "$BUILD_CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$BUILD_CC"; then
4685 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4699 ac_cv_prog_BUILD_CC="cc"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CC
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CC to just the basename; use the full file name.
4716 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4733 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4734 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4735 { (exit 1); exit 1; }; }
4736 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4738 echo 'int main () { return 0; }' > conftest.$ac_ext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4741 (eval $ac_build_link) 2>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; then
4745 for file in conftest.*; do
4747 *.c | *.o | *.obj | *.dSYM) ;;
4748 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4752 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4753 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4754 { (exit 1); exit 1; }; }
4757 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4762 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4763 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4764 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4765 ac_build_exeext=$BUILD_EXEEXT
4767 ac_build_prefix=${build_alias}-
4768 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4769 set dummy ${ac_build_prefix}g++; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -n "$BUILD_CXX"; then
4776 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4796 if test -n "$BUILD_CXX"; then
4797 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4798 echo "${ECHO_T}$BUILD_CXX" >&6; }
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4805 if test -z "$BUILD_CXX"; then
4806 # Extract the first word of "g++", so it can be a program name with args.
4807 set dummy g++; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$BUILD_CXX"; then
4814 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_BUILD_CXX="g++"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4834 if test -n "$BUILD_CXX"; then
4835 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4836 echo "${ECHO_T}$BUILD_CXX" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4843 if test -z "$BUILD_CXX"; then
4844 # Extract the first word of "c++", so it can be a program name with args.
4845 set dummy c++; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -n "$BUILD_CXX"; then
4852 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4863 ac_prog_rejected=yes
4866 ac_cv_prog_BUILD_CXX="c++"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 if test $ac_prog_rejected = yes; then
4875 # We found a bogon in the path, so make sure we never use it.
4876 set dummy $ac_cv_prog_BUILD_CXX
4878 if test $# != 0; then
4879 # We chose a different compiler from the bogus one.
4880 # However, it has the same basename, so the bogon will be chosen
4881 # first if we set BUILD_CXX to just the basename; use the full file name.
4883 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4901 LLVM_CROSS_COMPILING=0
4905 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4916 # Check whether --enable-optimized was given.
4917 if test "${enable_optimized+set}" = set; then
4918 enableval=$enable_optimized;
4923 if test ${enableval} = "no" ; then
4927 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4931 # Check whether --enable-profiling was given.
4932 if test "${enable_profiling+set}" = set; then
4933 enableval=$enable_profiling;
4938 if test ${enableval} = "no" ; then
4942 ENABLE_PROFILING=ENABLE_PROFILING=1
4946 # Check whether --enable-assertions was given.
4947 if test "${enable_assertions+set}" = set; then
4948 enableval=$enable_assertions;
4953 if test ${enableval} = "yes" ; then
4957 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4961 # Check whether --enable-expensive-checks was given.
4962 if test "${enable_expensive_checks+set}" = set; then
4963 enableval=$enable_expensive_checks;
4968 if test ${enableval} = "yes" ; then
4969 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4971 EXPENSIVE_CHECKS=yes
4974 ENABLE_EXPENSIVE_CHECKS=
4980 # Check whether --enable-debug-runtime was given.
4981 if test "${enable_debug_runtime+set}" = set; then
4982 enableval=$enable_debug_runtime;
4987 if test ${enableval} = "no" ; then
4991 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4995 # Check whether --enable-debug-symbols was given.
4996 if test "${enable_debug_symbols+set}" = set; then
4997 enableval=$enable_debug_symbols;
5002 if test ${enableval} = "no" ; then
5006 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5010 # Check whether --enable-jit was given.
5011 if test "${enable_jit+set}" = set; then
5012 enableval=$enable_jit;
5017 if test ${enableval} = "no"
5022 case "$llvm_cv_target_arch" in
5023 x86) TARGET_HAS_JIT=1
5025 Sparc) TARGET_HAS_JIT=0
5027 PowerPC) TARGET_HAS_JIT=1
5029 x86_64) TARGET_HAS_JIT=1
5031 ARM) TARGET_HAS_JIT=1
5033 Mips) TARGET_HAS_JIT=1
5035 XCore) TARGET_HAS_JIT=0
5037 MSP430) TARGET_HAS_JIT=0
5039 Hexagon) TARGET_HAS_JIT=0
5041 MBlaze) TARGET_HAS_JIT=0
5043 PTX) TARGET_HAS_JIT=0
5050 # Check whether --enable-docs was given.
5051 if test "${enable_docs+set}" = set; then
5052 enableval=$enable_docs;
5057 case "$enableval" in
5062 default) ENABLE_DOCS=1
5064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5065 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5069 # Check whether --enable-doxygen was given.
5070 if test "${enable_doxygen+set}" = set; then
5071 enableval=$enable_doxygen;
5076 case "$enableval" in
5077 yes) ENABLE_DOXYGEN=1
5079 no) ENABLE_DOXYGEN=0
5081 default) ENABLE_DOXYGEN=0
5083 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5084 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5088 # Check whether --enable-threads was given.
5089 if test "${enable_threads+set}" = set; then
5090 enableval=$enable_threads;
5095 case "$enableval" in
5096 yes) ENABLE_THREADS=1
5098 no) ENABLE_THREADS=0
5100 default) ENABLE_THREADS=1
5102 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5103 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5107 cat >>confdefs.h <<_ACEOF
5108 #define ENABLE_THREADS $ENABLE_THREADS
5112 # Check whether --enable-pthreads was given.
5113 if test "${enable_pthreads+set}" = set; then
5114 enableval=$enable_pthreads;
5119 case "$enableval" in
5120 yes) ENABLE_PTHREADS=1
5122 no) ENABLE_PTHREADS=0
5124 default) ENABLE_PTHREADS=1
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5131 # Check whether --enable-pic was given.
5132 if test "${enable_pic+set}" = set; then
5133 enableval=$enable_pic;
5138 case "$enableval" in
5143 default) ENABLE_PIC=1
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5150 cat >>confdefs.h <<_ACEOF
5151 #define ENABLE_PIC $ENABLE_PIC
5155 # Check whether --enable-shared was given.
5156 if test "${enable_shared+set}" = set; then
5157 enableval=$enable_shared;
5162 case "$enableval" in
5163 yes) ENABLE_SHARED=1
5167 default) ENABLE_SHARED=0
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5174 # Check whether --enable-embed-stdcxx was given.
5175 if test "${enable_embed_stdcxx+set}" = set; then
5176 enableval=$enable_embed_stdcxx;
5181 case "$enableval" in
5182 yes) ENABLE_EMBED_STDCXX=1
5184 no) ENABLE_EMBED_STDCXX=0
5186 default) ENABLE_EMBED_STDCXX=1
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5193 # Check whether --enable-timestamps was given.
5194 if test "${enable_timestamps+set}" = set; then
5195 enableval=$enable_timestamps;
5200 case "$enableval" in
5201 yes) ENABLE_TIMESTAMPS=1
5203 no) ENABLE_TIMESTAMPS=0
5205 default) ENABLE_TIMESTAMPS=1
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5218 # Check whether --enable-targets was given.
5219 if test "${enable_targets+set}" = set; then
5220 enableval=$enable_targets;
5225 if test "$enableval" = host-only ; then
5228 case "$enableval" in
5229 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
5230 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5232 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5233 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5234 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5235 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5236 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5237 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5238 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5239 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5240 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5241 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5242 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5243 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5244 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5245 host) case "$llvm_cv_target_arch" in
5246 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5248 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5249 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5250 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5253 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5254 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5255 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5256 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5257 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5259 echo "$as_me: error: Can not set target to build" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5262 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5263 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5269 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5272 # Determine whether we are building LLVM support for the native architecture.
5273 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5274 for a_target in $TARGETS_TO_BUILD; do
5275 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5277 cat >>confdefs.h <<_ACEOF
5278 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5281 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5282 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5283 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5284 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5285 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5286 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5289 cat >>confdefs.h <<_ACEOF
5290 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5294 cat >>confdefs.h <<_ACEOF
5295 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5308 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5318 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5319 # target feature def files.
5320 LLVM_ENUM_TARGETS=""
5321 LLVM_ENUM_ASM_PRINTERS=""
5322 LLVM_ENUM_ASM_PARSERS=""
5323 LLVM_ENUM_DISASSEMBLERS=""
5324 for target_to_build in $TARGETS_TO_BUILD; do
5325 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5326 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5327 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5329 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5330 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5332 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5333 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5342 # Check whether --with-optimize-option was given.
5343 if test "${with_optimize_option+set}" = set; then
5344 withval=$with_optimize_option;
5349 { echo "$as_me:$LINENO: checking optimization flags" >&5
5350 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5353 case "$llvm_cv_os_type" in
5354 FreeBSD) optimize_option=-O2 ;;
5355 MingW) optimize_option=-O2 ;;
5356 *) optimize_option=-O3 ;;
5358 *) optimize_option="$withval" ;;
5360 OPTIMIZE_OPTION=$optimize_option
5362 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5363 echo "${ECHO_T}$optimize_option" >&6; }
5366 # Check whether --with-extra-options was given.
5367 if test "${with_extra_options+set}" = set; then
5368 withval=$with_extra_options;
5374 default) EXTRA_OPTIONS= ;;
5375 *) EXTRA_OPTIONS=$withval ;;
5377 EXTRA_OPTIONS=$EXTRA_OPTIONS
5381 # Check whether --with-extra-ld-options was given.
5382 if test "${with_extra_ld_options+set}" = set; then
5383 withval=$with_extra_ld_options;
5389 default) EXTRA_LD_OPTIONS= ;;
5390 *) EXTRA_LD_OPTIONS=$withval ;;
5392 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5395 # Check whether --enable-bindings was given.
5396 if test "${enable_bindings+set}" = set; then
5397 enableval=$enable_bindings;
5402 BINDINGS_TO_BUILD=""
5403 case "$enableval" in
5404 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5405 all ) BINDINGS_TO_BUILD="ocaml" ;;
5406 none | no) BINDINGS_TO_BUILD="" ;;
5407 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5408 case "$a_binding" in
5409 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5410 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5411 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5419 # Check whether --with-ocaml-libdir was given.
5420 if test "${with_ocaml_libdir+set}" = set; then
5421 withval=$with_ocaml_libdir;
5427 auto) with_ocaml_libdir="$withval" ;;
5428 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5429 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5430 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5431 { (exit 1); exit 1; }; } ;;
5435 # Check whether --with-clang-resource-dir was given.
5436 if test "${with_clang_resource_dir+set}" = set; then
5437 withval=$with_clang_resource_dir;
5443 cat >>confdefs.h <<_ACEOF
5444 #define CLANG_RESOURCE_DIR "$withval"
5449 # Check whether --with-c-include-dirs was given.
5450 if test "${with_c_include_dirs+set}" = set; then
5451 withval=$with_c_include_dirs;
5457 cat >>confdefs.h <<_ACEOF
5458 #define C_INCLUDE_DIRS "$withval"
5462 # Clang normally uses the system c++ headers and libraries. With this option,
5463 # clang will use the ones provided by a gcc installation instead. This option should
5464 # be passed the same value that was used with --prefix when configuring gcc.
5466 # Check whether --with-gcc-toolchain was given.
5467 if test "${with_gcc_toolchain+set}" = set; then
5468 withval=$with_gcc_toolchain;
5474 cat >>confdefs.h <<_ACEOF
5475 #define GCC_INSTALL_PREFIX "$withval"
5480 # Check whether --with-binutils-include was given.
5481 if test "${with_binutils_include+set}" = set; then
5482 withval=$with_binutils_include;
5488 default) WITH_BINUTILS_INCDIR=default ;;
5489 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5490 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5491 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5492 { (exit 1); exit 1; }; } ;;
5494 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5495 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5497 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5498 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5499 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5500 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5501 { (exit 1); exit 1; }; };
5506 # Check whether --with-bug-report-url was given.
5507 if test "${with_bug_report_url+set}" = set; then
5508 withval=$with_bug_report_url;
5510 withval="http://llvm.org/bugs/"
5514 cat >>confdefs.h <<_ACEOF
5515 #define BUG_REPORT_URL "$withval"
5519 # Check whether --enable-libffi was given.
5520 if test "${enable_libffi+set}" = set; then
5521 enableval=$enable_libffi; case "$enableval" in
5522 yes) llvm_cv_enable_libffi="yes" ;;
5523 no) llvm_cv_enable_libffi="no" ;;
5524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5525 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5526 { (exit 1); exit 1; }; } ;;
5529 llvm_cv_enable_libffi=no
5534 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5535 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5536 if test "${lt_cv_path_NM+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if test -n "$NM"; then
5540 # Let the user override the test.
5543 lt_nm_to_check="${ac_tool_prefix}nm"
5544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5545 lt_nm_to_check="$lt_nm_to_check nm"
5547 for lt_tmp_nm in $lt_nm_to_check; do
5548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5551 test -z "$ac_dir" && ac_dir=.
5552 tmp_nm="$ac_dir/$lt_tmp_nm"
5553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554 # Check to see if the nm accepts a BSD-compat flag.
5555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5556 # nm: unknown option "B" ignored
5557 # Tru64's nm complains that /dev/null is an invalid object file
5558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5559 */dev/null* | *'Invalid file or object type'*)
5560 lt_cv_path_NM="$tmp_nm -B"
5564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5566 lt_cv_path_NM="$tmp_nm -p"
5570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571 continue # so that we can try to find one that supports BSD flags
5580 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5583 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5584 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5589 { echo "$as_me:$LINENO: checking for GNU make" >&5
5590 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5591 if test "${llvm_cv_gnu_make_command+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 llvm_cv_gnu_make_command=''
5595 for a in "$MAKE" make gmake gnumake ; do
5596 if test -z "$a" ; then continue ; fi ;
5597 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5599 llvm_cv_gnu_make_command=$a ;
5604 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5605 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5606 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5610 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5611 echo "${ECHO_T}\"Not found\"" >&6; };
5615 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5618 if test "$LN_S" = "ln -s"; then
5619 { echo "$as_me:$LINENO: result: yes" >&5
5620 echo "${ECHO_T}yes" >&6; }
5622 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5623 echo "${ECHO_T}no, using $LN_S" >&6; }
5626 # Extract the first word of "cmp", so it can be a program name with args.
5627 set dummy cmp; ac_word=$2
5628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5630 if test "${ac_cv_path_CMP+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5658 if test -n "$CMP"; then
5659 { echo "$as_me:$LINENO: result: $CMP" >&5
5660 echo "${ECHO_T}$CMP" >&6; }
5662 { echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6; }
5667 # Extract the first word of "cp", so it can be a program name with args.
5668 set dummy cp; ac_word=$2
5669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671 if test "${ac_cv_path_CP+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5699 if test -n "$CP"; then
5700 { echo "$as_me:$LINENO: result: $CP" >&5
5701 echo "${ECHO_T}$CP" >&6; }
5703 { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5708 # Extract the first word of "date", so it can be a program name with args.
5709 set dummy date; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_path_DATE+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5739 DATE=$ac_cv_path_DATE
5740 if test -n "$DATE"; then
5741 { echo "$as_me:$LINENO: result: $DATE" >&5
5742 echo "${ECHO_T}$DATE" >&6; }
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5749 # Extract the first word of "find", so it can be a program name with args.
5750 set dummy find; ac_word=$2
5751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_FIND+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5780 FIND=$ac_cv_path_FIND
5781 if test -n "$FIND"; then
5782 { echo "$as_me:$LINENO: result: $FIND" >&5
5783 echo "${ECHO_T}$FIND" >&6; }
5785 { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5790 # Extract the first word of "grep", so it can be a program name with args.
5791 set dummy grep; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_GREP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5821 GREP=$ac_cv_path_GREP
5822 if test -n "$GREP"; then
5823 { echo "$as_me:$LINENO: result: $GREP" >&5
5824 echo "${ECHO_T}$GREP" >&6; }
5826 { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5831 # Extract the first word of "mkdir", so it can be a program name with args.
5832 set dummy mkdir; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_MKDIR+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5862 MKDIR=$ac_cv_path_MKDIR
5863 if test -n "$MKDIR"; then
5864 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5865 echo "${ECHO_T}$MKDIR" >&6; }
5867 { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5872 # Extract the first word of "mv", so it can be a program name with args.
5873 set dummy mv; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_MV+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5904 if test -n "$MV"; then
5905 { echo "$as_me:$LINENO: result: $MV" >&5
5906 echo "${ECHO_T}$MV" >&6; }
5908 { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_RANLIB+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$RANLIB"; then
5922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 RANLIB=$ac_cv_prog_RANLIB
5942 if test -n "$RANLIB"; then
5943 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5944 echo "${ECHO_T}$RANLIB" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5952 if test -z "$ac_cv_prog_RANLIB"; then
5953 ac_ct_RANLIB=$RANLIB
5954 # Extract the first word of "ranlib", so it can be a program name with args.
5955 set dummy ranlib; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$ac_ct_RANLIB"; then
5962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_RANLIB="ranlib"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982 if test -n "$ac_ct_RANLIB"; then
5983 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5990 if test "x$ac_ct_RANLIB" = x; then
5993 case $cross_compiling:$ac_tool_warned in
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet. If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet. If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6003 RANLIB=$ac_ct_RANLIB
6006 RANLIB="$ac_cv_prog_RANLIB"
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR="$AR" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_AR="${ac_tool_prefix}ar"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 if test -n "$AR"; then
6039 { echo "$as_me:$LINENO: result: $AR" >&5
6040 echo "${ECHO_T}$AR" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6048 if test -z "$ac_cv_prog_AR"; then
6050 # Extract the first word of "ar", so it can be a program name with args.
6051 set dummy ar; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 if test -n "$ac_ct_AR"; then
6058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_AR="ar"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6078 if test -n "$ac_ct_AR"; then
6079 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6080 echo "${ECHO_T}$ac_ct_AR" >&6; }
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6086 if test "x$ac_ct_AR" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet. If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&5
6094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6095 whose name does not start with the host triplet. If you think this
6096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6097 ac_tool_warned=yes ;;
6105 # Extract the first word of "rm", so it can be a program name with args.
6106 set dummy rm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_RM+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6137 if test -n "$RM"; then
6138 { echo "$as_me:$LINENO: result: $RM" >&5
6139 echo "${ECHO_T}$RM" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 # Extract the first word of "sed", so it can be a program name with args.
6147 set dummy sed; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_SED+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6178 if test -n "$SED"; then
6179 { echo "$as_me:$LINENO: result: $SED" >&5
6180 echo "${ECHO_T}$SED" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "tar", so it can be a program name with args.
6188 set dummy tar; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_TAR+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6219 if test -n "$TAR"; then
6220 { echo "$as_me:$LINENO: result: $TAR" >&5
6221 echo "${ECHO_T}$TAR" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "pwd", so it can be a program name with args.
6229 set dummy pwd; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_BINPWD+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6259 BINPWD=$ac_cv_path_BINPWD
6260 if test -n "$BINPWD"; then
6261 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6262 echo "${ECHO_T}$BINPWD" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6270 # Extract the first word of "Graphviz", so it can be a program name with args.
6271 set dummy Graphviz; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6301 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6302 if test -n "$GRAPHVIZ"; then
6303 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6304 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6306 { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6311 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6313 cat >>confdefs.h <<\_ACEOF
6314 #define HAVE_GRAPHVIZ 1
6317 if test "$llvm_cv_os_type" = "MingW" ; then
6318 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6321 cat >>confdefs.h <<_ACEOF
6322 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6326 # Extract the first word of "dot", so it can be a program name with args.
6327 set dummy dot; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_DOT+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6358 if test -n "$DOT"; then
6359 { echo "$as_me:$LINENO: result: $DOT" >&5
6360 echo "${ECHO_T}$DOT" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6367 if test "$DOT" != "echo dot" ; then
6369 cat >>confdefs.h <<\_ACEOF
6373 if test "$llvm_cv_os_type" = "MingW" ; then
6374 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6377 cat >>confdefs.h <<_ACEOF
6378 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6382 # Extract the first word of "fdp", so it can be a program name with args.
6383 set dummy fdp; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_path_FDP+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6414 if test -n "$FDP"; then
6415 { echo "$as_me:$LINENO: result: $FDP" >&5
6416 echo "${ECHO_T}$FDP" >&6; }
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6423 if test "$FDP" != "echo fdp" ; then
6425 cat >>confdefs.h <<\_ACEOF
6429 if test "$llvm_cv_os_type" = "MingW" ; then
6430 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6433 cat >>confdefs.h <<_ACEOF
6434 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6438 # Extract the first word of "neato", so it can be a program name with args.
6439 set dummy neato; ac_word=$2
6440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442 if test "${ac_cv_path_NEATO+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6469 NEATO=$ac_cv_path_NEATO
6470 if test -n "$NEATO"; then
6471 { echo "$as_me:$LINENO: result: $NEATO" >&5
6472 echo "${ECHO_T}$NEATO" >&6; }
6474 { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6479 if test "$NEATO" != "echo neato" ; then
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HAVE_NEATO 1
6485 if test "$llvm_cv_os_type" = "MingW" ; then
6486 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6489 cat >>confdefs.h <<_ACEOF
6490 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6494 # Extract the first word of "twopi", so it can be a program name with args.
6495 set dummy twopi; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_path_TWOPI+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6525 TWOPI=$ac_cv_path_TWOPI
6526 if test -n "$TWOPI"; then
6527 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6528 echo "${ECHO_T}$TWOPI" >&6; }
6530 { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6535 if test "$TWOPI" != "echo twopi" ; then
6537 cat >>confdefs.h <<\_ACEOF
6538 #define HAVE_TWOPI 1
6541 if test "$llvm_cv_os_type" = "MingW" ; then
6542 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6545 cat >>confdefs.h <<_ACEOF
6546 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6550 # Extract the first word of "circo", so it can be a program name with args.
6551 set dummy circo; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_CIRCO+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6581 CIRCO=$ac_cv_path_CIRCO
6582 if test -n "$CIRCO"; then
6583 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6584 echo "${ECHO_T}$CIRCO" >&6; }
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6591 if test "$CIRCO" != "echo circo" ; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_CIRCO 1
6597 if test "$llvm_cv_os_type" = "MingW" ; then
6598 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6601 cat >>confdefs.h <<_ACEOF
6602 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6606 for ac_prog in gv gsview32
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_GV+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 if test -n "$GV"; then
6640 { echo "$as_me:$LINENO: result: $GV" >&5
6641 echo "${ECHO_T}$GV" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6648 test -n "$GV" && break
6650 test -n "$GV" || GV="echo gv"
6652 if test "$GV" != "echo gv" ; then
6654 cat >>confdefs.h <<\_ACEOF
6658 if test "$llvm_cv_os_type" = "MingW" ; then
6659 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_GV "$GV${EXEEXT}"
6667 # Extract the first word of "dotty", so it can be a program name with args.
6668 set dummy dotty; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_DOTTY+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6698 DOTTY=$ac_cv_path_DOTTY
6699 if test -n "$DOTTY"; then
6700 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6701 echo "${ECHO_T}$DOTTY" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 if test "$DOTTY" != "echo dotty" ; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_DOTTY 1
6714 if test "$llvm_cv_os_type" = "MingW" ; then
6715 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6723 # Extract the first word of "xdot.py", so it can be a program name with args.
6724 set dummy xdot.py; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6754 XDOT_PY=$ac_cv_path_XDOT_PY
6755 if test -n "$XDOT_PY"; then
6756 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6757 echo "${ECHO_T}$XDOT_PY" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 if test "$XDOT_PY" != "echo xdot.py" ; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_XDOT_PY 1
6770 if test "$llvm_cv_os_type" = "MingW" ; then
6771 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6774 cat >>confdefs.h <<_ACEOF
6775 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6780 # Find a good install program. We prefer a C program (faster),
6781 # so one script is as good as another. But avoid the broken or
6782 # incompatible versions:
6783 # SysV /etc/install, /usr/sbin/install
6784 # SunOS /usr/etc/install
6785 # IRIX /sbin/install
6787 # AmigaOS /C/install, which installs bootblocks on floppy discs
6788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6791 # OS/2's system install, which has a completely different semantic
6792 # ./install, which can be erroneously created by make from ./install.sh.
6793 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6794 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6795 if test -z "$INSTALL"; then
6796 if test "${ac_cv_path_install+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 # Account for people who put trailing slashes in PATH elements.
6806 ./ | .// | /cC/* | \
6807 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6808 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6811 # OSF1 and SCO ODT 3.0 have their own names for install.
6812 # Don't use installbsd from OSF since it installs stuff as root
6814 for ac_prog in ginstall scoinst install; do
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6817 if test $ac_prog = install &&
6818 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6819 # AIX install. It has an incompatible calling convention.
6821 elif test $ac_prog = install &&
6822 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6823 # program-specific install script used by HP pwplus--don't use.
6826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6839 if test "${ac_cv_path_install+set}" = set; then
6840 INSTALL=$ac_cv_path_install
6842 # As a last resort, use the slow shell script. Don't cache a
6843 # value for INSTALL within a source directory, because that will
6844 # break other packages using the cache if that directory is
6845 # removed, or if the value is a relative name.
6846 INSTALL=$ac_install_sh
6849 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6850 echo "${ECHO_T}$INSTALL" >&6; }
6852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6853 # It thinks the first close brace ends the variable substitution.
6854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6861 [\\/$]* | ?:[\\/]* ) ;;
6862 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6865 # Extract the first word of "bzip2", so it can be a program name with args.
6866 set dummy bzip2; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_BZIP2+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 BZIP2=$ac_cv_path_BZIP2
6896 if test -n "$BZIP2"; then
6897 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6898 echo "${ECHO_T}$BZIP2" >&6; }
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "cat", so it can be a program name with args.
6906 set dummy cat; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_CAT+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 if test -n "$CAT"; then
6937 { echo "$as_me:$LINENO: result: $CAT" >&5
6938 echo "${ECHO_T}$CAT" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "doxygen", so it can be a program name with args.
6946 set dummy doxygen; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 DOXYGEN=$ac_cv_path_DOXYGEN
6976 if test -n "$DOXYGEN"; then
6977 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6978 echo "${ECHO_T}$DOXYGEN" >&6; }
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6985 # Extract the first word of "groff", so it can be a program name with args.
6986 set dummy groff; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_GROFF+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 GROFF=$ac_cv_path_GROFF
7016 if test -n "$GROFF"; then
7017 { echo "$as_me:$LINENO: result: $GROFF" >&5
7018 echo "${ECHO_T}$GROFF" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "gzip", so it can be a program name with args.
7026 set dummy gzip; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 GZIPBIN=$ac_cv_path_GZIPBIN
7056 if test -n "$GZIPBIN"; then
7057 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7058 echo "${ECHO_T}$GZIPBIN" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7065 # Extract the first word of "pod2html", so it can be a program name with args.
7066 set dummy pod2html; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_POD2HTML+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 POD2HTML=$ac_cv_path_POD2HTML
7096 if test -n "$POD2HTML"; then
7097 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7098 echo "${ECHO_T}$POD2HTML" >&6; }
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7105 # Extract the first word of "pod2man", so it can be a program name with args.
7106 set dummy pod2man; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_POD2MAN+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 POD2MAN=$ac_cv_path_POD2MAN
7136 if test -n "$POD2MAN"; then
7137 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7138 echo "${ECHO_T}$POD2MAN" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7145 # Extract the first word of "pdfroff", so it can be a program name with args.
7146 set dummy pdfroff; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_PDFROFF+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 PDFROFF=$ac_cv_path_PDFROFF
7176 if test -n "$PDFROFF"; then
7177 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7178 echo "${ECHO_T}$PDFROFF" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 # Extract the first word of "runtest", so it can be a program name with args.
7186 set dummy runtest; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_RUNTEST+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 RUNTEST=$ac_cv_path_RUNTEST
7216 if test -n "$RUNTEST"; then
7217 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7218 echo "${ECHO_T}$RUNTEST" >&6; }
7220 { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7227 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7228 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7230 # Check whether --with-tclinclude was given.
7231 if test "${with_tclinclude+set}" = set; then
7232 withval=$with_tclinclude; with_tclinclude=${withval}
7237 if test "${ac_cv_path_tclsh+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 if test x"${with_tclinclude}" != x ; then
7242 if test -f ${with_tclinclude}/tclsh ; then
7243 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7244 elif test -f ${with_tclinclude}/src/tclsh ; then
7245 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7247 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7248 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7249 { (exit 1); exit 1; }; }
7255 if test x"${ac_cv_path_tclsh}" = x ; then
7256 { echo "$as_me:$LINENO: result: none" >&5
7257 echo "${ECHO_T}none" >&6; }
7258 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
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_TCLSH+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 TCLSH=$ac_cv_path_TCLSH
7291 if test -n "$TCLSH"; then
7292 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7293 echo "${ECHO_T}$TCLSH" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 test -n "$TCLSH" && break
7303 if test x"${TCLSH}" = x ; then
7304 ac_cv_path_tclsh='';
7306 ac_cv_path_tclsh="${TCLSH}";
7309 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7310 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7311 TCLSH="${ac_cv_path_tclsh}"
7315 # Extract the first word of "zip", so it can be a program name with args.
7316 set dummy zip; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_path_ZIP+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 if test -n "$ZIP"; then
7347 { echo "$as_me:$LINENO: result: $ZIP" >&5
7348 echo "${ECHO_T}$ZIP" >&6; }
7350 { echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6; }
7355 for ac_prog in ocamlc
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_OCAMLC+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 OCAMLC=$ac_cv_path_OCAMLC
7388 if test -n "$OCAMLC"; then
7389 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7390 echo "${ECHO_T}$OCAMLC" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7397 test -n "$OCAMLC" && break
7400 for ac_prog in ocamlopt
7402 # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 OCAMLOPT=$ac_cv_path_OCAMLOPT
7433 if test -n "$OCAMLOPT"; then
7434 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7435 echo "${ECHO_T}$OCAMLOPT" >&6; }
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7442 test -n "$OCAMLOPT" && break
7445 for ac_prog in ocamldep
7447 # Extract the first word of "$ac_prog", so it can be a program name with args.
7448 set dummy $ac_prog; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 OCAMLDEP=$ac_cv_path_OCAMLDEP
7478 if test -n "$OCAMLDEP"; then
7479 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7480 echo "${ECHO_T}$OCAMLDEP" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 test -n "$OCAMLDEP" && break
7490 for ac_prog in ocamldoc
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 OCAMLDOC=$ac_cv_path_OCAMLDOC
7523 if test -n "$OCAMLDOC"; then
7524 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7525 echo "${ECHO_T}$OCAMLDOC" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 test -n "$OCAMLDOC" && break
7535 for ac_prog in gas as
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_path_GAS+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 if test -n "$GAS"; then
7569 { echo "$as_me:$LINENO: result: $GAS" >&5
7570 echo "${ECHO_T}$GAS" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 test -n "$GAS" && break
7581 { echo "$as_me:$LINENO: checking for linker version" >&5
7582 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7583 if test "${llvm_cv_link_version+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 version_string="$(ld -v 2>&1 | head -1)"
7590 if (echo "$version_string" | grep -q "ld64"); then
7591 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7593 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7597 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7598 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7600 cat >>confdefs.h <<_ACEOF
7601 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7606 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7607 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7608 if test "${llvm_cv_link_use_r+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618 CFLAGS="$CFLAGS -Wl,-R."
7619 cat >conftest.$ac_ext <<_ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7649 { (case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_try") 2>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_try") 2>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 llvm_cv_link_use_r=yes
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 llvm_cv_link_use_r=no
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7689 if test "$llvm_cv_link_use_r" = yes ; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LINK_R 1
7698 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7699 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7700 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (ac_try="$ac_link"
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_link") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_try") 2>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 llvm_cv_link_use_export_dynamic=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 llvm_cv_link_use_export_dynamic=no
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7780 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7781 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LINK_EXPORT_DYNAMIC 1
7790 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7791 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7792 if test "${llvm_cv_link_use_version_script+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803 # The following code is from the autoconf manual,
7804 # "11.13: Limitations of Usual Tools".
7805 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7806 # Use mktemp if possible; otherwise fall back on mkdir,
7807 # with $RANDOM to make collisions less likely.
7811 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7813 test -n "$tmp" && test -d "$tmp"
7815 tmp=$TMPDIR/foo$$-$RANDOM
7816 (umask 077 && mkdir "$tmp")
7819 echo "{" > "$tmp/export.map"
7820 echo " global: main;" >> "$tmp/export.map"
7821 echo " local: *;" >> "$tmp/export.map"
7822 echo "};" >> "$tmp/export.map"
7824 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 llvm_cv_link_use_version_script=yes
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 llvm_cv_link_use_version_script=no
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 rm "$tmp/export.map"
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7896 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7897 if test "$llvm_cv_link_use_version_script" = yes ; then
7898 HAVE_LINK_VERSION_SCRIPT=1
7905 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7906 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7907 if test "${ac_cv_c_const+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7920 /* FIXME: Include the comments suggested by Paul. */
7922 /* Ultrix mips cc rejects this. */
7923 typedef int charset[2];
7925 /* SunOS 4.1.1 cc rejects this. */
7926 char const *const *ccp;
7928 /* NEC SVR4.0.2 mips cc rejects this. */
7929 struct point {int x, y;};
7930 static struct point const zero = {0,0};
7931 /* AIX XL C 1.02.0.0 rejects this.
7932 It does not let you subtract one const X* pointer from another in
7933 an arm of an if-expression whose if-part is not a constant
7935 const char *g = "string";
7936 ccp = &g + (g ? g-g : 0);
7937 /* HPUX 7.0 cc rejects these. */
7940 ccp = (char const *const *) p;
7941 { /* SCO 3.2v4 cc rejects this. */
7943 char const *s = 0 ? (char *) 0 : (char const *) 0;
7948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7950 const int *foo = &x[0];
7953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7954 typedef const int *iptr;
7958 { /* AIX XL C 1.02.0.0 rejects this saying
7959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7960 struct s { int j; const int *ap[3]; };
7961 struct s *b; b->j = 5;
7963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7967 return !x[0] && !zero.x;
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_try") 2>&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8019 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8020 if test $ac_cv_c_const = no; then
8022 cat >>confdefs.h <<\_ACEOF
8034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8036 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047 #include <sys/types.h>
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 eval "$as_ac_Header=yes"
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 eval "$as_ac_Header=no"
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 ac_res=`eval echo '${'$as_ac_Header'}'`
8104 { echo "$as_me:$LINENO: result: $ac_res" >&5
8105 echo "${ECHO_T}$ac_res" >&6; }
8106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8111 ac_header_dirent=$ac_hdr; break
8115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116 if test $ac_header_dirent = dirent.h; then
8117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8119 if test "${ac_cv_search_opendir+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_func_search_save_LIBS=$LIBS
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 /* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
8145 for ac_lib in '' dir; do
8146 if test -z "$ac_lib"; then
8147 ac_res="none required"
8150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_search_opendir=$ac_res
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext \
8196 if test "${ac_cv_search_opendir+set}" = set; then
8200 if test "${ac_cv_search_opendir+set}" = set; then
8203 ac_cv_search_opendir=no
8206 LIBS=$ac_func_search_save_LIBS
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8210 ac_res=$ac_cv_search_opendir
8211 if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 ac_func_search_save_LIBS=$LIBS
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 /* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8245 for ac_lib in '' x; do
8246 if test -z "$ac_lib"; then
8247 ac_res="none required"
8250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_search_opendir=$ac_res
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -f core conftest.err conftest.$ac_objext \
8296 if test "${ac_cv_search_opendir+set}" = set; then
8300 if test "${ac_cv_search_opendir+set}" = set; then
8303 ac_cv_search_opendir=no
8306 LIBS=$ac_func_search_save_LIBS
8308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310 ac_res=$ac_cv_search_opendir
8311 if test "$ac_res" != no; then
8312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8319 for ac_header in dlfcn.h
8321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8332 # Is the header compilable?
8333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #include <$ac_header>
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_header_compiler=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_header_compiler=no
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388 echo "${ECHO_T}$ac_header_compiler" >&6; }
8390 # Is the header present?
8391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8399 #include <$ac_header>
8401 if { (ac_try="$ac_cpp conftest.$ac_ext"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8432 rm -f conftest.err conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6; }
8436 # So? What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ## ------------------------------ ##
8460 ## Report this to bugs@yourdomain ##
8461 ## ------------------------------ ##
8463 ) | sed "s/^/$as_me: WARNING: /" >&2
8466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 eval "$as_ac_Header=\$ac_header_preproc"
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 # Check whether --enable-ltdl-install was given.
8488 if test "${enable_ltdl_install+set}" = set; then
8489 enableval=$enable_ltdl_install;
8495 if test x"${enable_ltdl_install-no}" != xno; then
8497 INSTALL_LTDL_FALSE='#'
8499 INSTALL_LTDL_TRUE='#'
8505 if test x"${enable_ltdl_convenience-no}" != xno; then
8506 CONVENIENCE_LTDL_TRUE=
8507 CONVENIENCE_LTDL_FALSE='#'
8509 CONVENIENCE_LTDL_TRUE='#'
8510 CONVENIENCE_LTDL_FALSE=
8514 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8517 libname_spec='lib$name'
8525 shlibpath_overrides_runpath=unknown
8527 dynamic_linker="$host_os ld.so"
8528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8529 if test "$GCC" = yes; then
8530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8532 # if the path contains ";" then we assume it to be the separator
8533 # otherwise default to the standard path separator (i.e. ":") - it is
8534 # assumed that no part of a normal pathname contains ";" but that should
8535 # okay in the real world where ";" in dirpaths is itself problematic.
8536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8543 need_lib_prefix=unknown
8544 hardcode_into_libs=no
8546 # when you set need_version to no, make sure it does not cause -set_version
8547 # flags to be left without arguments
8548 need_version=unknown
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8554 shlibpath_var=LIBPATH
8556 # AIX 3 has no versioning support, so we append a major version to the name.
8557 soname_spec='${libname}${release}${shared_ext}$major'
8564 hardcode_into_libs=yes
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 supports IA64
8567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8568 shlibpath_var=LD_LIBRARY_PATH
8570 # With GCC up to 2.95.x, collect2 would create an import file
8571 # for dependence libraries. The import file would start with
8572 # the line `#! .'. This would cause the generated library to
8573 # depend on `.', always an invalid library. This was fixed in
8574 # development snapshots of GCC prior to 3.0.
8576 aix4 | aix4.[01] | aix4.[01].*)
8577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8587 # soname into executable. Probably we can add versioning support to
8588 # collect2, so additional links can be useful in future.
8589 if test "$aix_use_runtimelinking" = yes; then
8590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8591 # instead of lib<name>.a to let people know that these are not
8592 # typical AIX shared libraries.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 # We preserve .a as extension for shared libraries through AIX4.2
8596 # and later when we are not doing run time linking.
8597 library_names_spec='${libname}${release}.a $libname.a'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8600 shlibpath_var=LIBPATH
8605 library_names_spec='$libname.ixlibrary $libname.a'
8606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607 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'
8611 library_names_spec='${libname}${shared_ext}'
8612 dynamic_linker="$host_os ld.so"
8613 shlibpath_var=LIBRARY_PATH
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8625 # the default ld.so.conf also contains /usr/contrib/lib and
8626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8627 # libtool to hard-code these into programs
8630 cygwin* | mingw* | pw32*)
8631 version_type=windows
8636 case $GCC,$host_os in
8637 yes,cygwin* | yes,mingw* | yes,pw32*)
8638 library_names_spec='$libname.dll.a'
8639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8640 postinstall_cmds='base_file=`basename \${file}`~
8641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8642 dldir=$destdir/`dirname \$dlpath`~
8643 test -d \$dldir || mkdir -p \$dldir~
8644 $install_prog $dir/$dlname \$dldir/$dlname~
8645 chmod a+x \$dldir/$dlname'
8646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8647 dlpath=$dir/\$dldll~
8649 shlibpath_overrides_runpath=yes
8653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8658 # MinGW DLLs use traditional 'lib' prefix
8659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8662 # It is most probably a Windows format PATH printed by
8663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8664 # path with ; separators, and with drive letters. We can handle the
8665 # drive letters (cygwin fileutils understands them), so leave them,
8666 # especially as we might pass files found there to a mingw objdump,
8667 # which wouldn't understand a cygwinified path. Ahh.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 # pw32 DLLs use 'pw' prefix rather than 'lib'
8675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8684 dynamic_linker='Win32 ld.exe'
8685 # FIXME: first we should search . and the directory the executable is in
8689 darwin* | rhapsody*)
8690 dynamic_linker="$host_os dyld"
8694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8695 soname_spec='${libname}${release}${major}$shared_ext'
8696 shlibpath_overrides_runpath=yes
8697 shlibpath_var=DYLD_LIBRARY_PATH
8698 shrext_cmds='.dylib'
8699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8700 if test "$GCC" = yes; then
8701 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"`
8703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=no
8729 hardcode_into_libs=yes
8730 dynamic_linker='GNU ld.so'
8733 freebsd* | dragonfly*)
8734 # DragonFly does not have aout. When/if they implement a new
8735 # versioning mechanism, adjust this.
8736 if test -x /usr/bin/objformat; then
8737 objformat=`/usr/bin/objformat`
8740 freebsd[123].*) objformat=aout ;;
8744 version_type=freebsd-$objformat
8745 case $version_type in
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8756 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8761 freebsd3.[01]* | freebsdelf3.[01]*)
8762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8767 shlibpath_overrides_runpath=no
8768 hardcode_into_libs=yes
8770 freebsd*) # from 4.6 on
8771 shlibpath_overrides_runpath=yes
8772 hardcode_into_libs=yes
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 hardcode_into_libs=yes
8787 hpux9* | hpux10* | hpux11*)
8788 # Give a soname corresponding to the major version so that dld.sl refuses to
8789 # link against other versions.
8796 hardcode_into_libs=yes
8797 dynamic_linker="$host_os dld.so"
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 if test "X$HPUX_IA64_MODE" = X32; then
8803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811 hardcode_into_libs=yes
8812 dynamic_linker="$host_os dld.sl"
8813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=SHLIB_PATH
8824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8830 postinstall_cmds='chmod 555 $lib'
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8845 irix5* | irix6* | nonstopux*)
8847 nonstopux*) version_type=nonstopux ;;
8849 if test "$lt_cv_prog_gnu_ld" = yes; then
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 irix5* | nonstopux*)
8864 case $LD in # libtool.m4 will add one of these switches to LD
8865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8866 libsuff= shlibsuff= libmagic=32-bit;;
8867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8868 libsuff=32 shlibsuff=N32 libmagic=N32;;
8869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8871 *) libsuff= shlibsuff= libmagic=never-match;;
8875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8876 shlibpath_overrides_runpath=no
8877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8879 hardcode_into_libs=yes
8882 # No shared lib support for Linux oldld, aout, or coff.
8883 linux*oldld* | linux*aout* | linux*coff*)
8887 # This must be Linux ELF.
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 # This implies no fast_install, which is unacceptable.
8898 # Some rework will be needed to allow for fast_install
8899 # before this can be enabled.
8900 hardcode_into_libs=yes
8902 # Append ld.so.conf contents to the search path
8903 if test -f /etc/ld.so.conf; then
8904 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' ' '`
8905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8908 # We used to test for /lib/ld.so.1 and disable shared libraries on
8909 # powerpc, because MkLinux only supported shared libraries with the
8910 # GNU dynamic linker. Since this was broken with cross compilers,
8911 # most powerpc-linux boxes support dynamic linking these days and
8912 # people can always --disable-shared, the test was removed, and we
8913 # assume the GNU/Linux dynamic linker is in use.
8914 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 hardcode_into_libs=yes
8926 dynamic_linker='GNU ld.so'
8933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 dynamic_linker='NetBSD (a.out) ld.so'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 dynamic_linker='NetBSD ld.elf_so'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8966 sys_lib_dlsearch_path_spec="/usr/lib"
8968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8971 *) need_version=no ;;
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8978 openbsd2.[89] | openbsd2.[89].*)
8979 shlibpath_overrides_runpath=no
8982 shlibpath_overrides_runpath=yes
8986 shlibpath_overrides_runpath=yes
8991 libname_spec='$name'
8994 library_names_spec='$libname${shared_ext} $libname.a'
8995 dynamic_linker='OS/2 ld.exe'
8996 shlibpath_var=LIBPATH
8999 osf3* | osf4* | osf5*)
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 # ldd complains unless libraries are executable
9020 postinstall_cmds='chmod +x $lib'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 if test "$with_gnu_ld" = yes; then
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 case $host_vendor in
9042 shlibpath_overrides_runpath=no
9044 export_dynamic_flag_spec='${wl}-Blargedynsym'
9045 runpath_var=LD_RUN_PATH
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9060 if test -d /usr/nec ;then
9062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063 soname_spec='$libname${shared_ext}.$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069 version_type=freebsd-elf
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 if test "$with_gnu_ld" = yes; then
9077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9078 shlibpath_overrides_runpath=no
9080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9081 shlibpath_overrides_runpath=yes
9084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088 sys_lib_dlsearch_path_spec='/usr/lib'
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9102 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9103 echo "${ECHO_T}$dynamic_linker" >&6; }
9104 test "$dynamic_linker" = no && can_build_shared=no
9106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9107 if test "$GCC" = yes; then
9108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9112 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9113 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9114 if test "${libltdl_cv_shlibext+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 eval libltdl_cv_shlibext=$shrext_cmds
9122 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9123 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9124 if test -n "$libltdl_cv_shlibext"; then
9126 cat >>confdefs.h <<_ACEOF
9127 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9133 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9134 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9135 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 libltdl_cv_shlibpath_var="$shlibpath_var"
9140 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9141 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9142 if test -n "$libltdl_cv_shlibpath_var"; then
9144 cat >>confdefs.h <<_ACEOF
9145 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9151 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9152 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9153 if test "${libltdl_cv_sys_search_path+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9158 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9159 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9160 if test -n "$libltdl_cv_sys_search_path"; then
9162 for dir in $libltdl_cv_sys_search_path; do
9163 if test -z "$sys_search_path"; then
9164 sys_search_path="$dir"
9166 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9176 { echo "$as_me:$LINENO: checking for objdir" >&5
9177 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9178 if test "${libltdl_cv_objdir+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 libltdl_cv_objdir="$objdir"
9182 if test -n "$objdir"; then
9185 rm -f .libs 2>/dev/null
9186 mkdir .libs 2>/dev/null
9187 if test -d .libs; then
9188 libltdl_cv_objdir=.libs
9190 # MS-DOS does not allow filenames that begin with a dot.
9191 libltdl_cv_objdir=_libs
9193 rmdir .libs 2>/dev/null
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9198 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9209 # Check for command to grab the raw symbol name followed by C symbol from nm.
9210 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9211 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9212 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 # These are sane defaults that work on at least a few old systems.
9217 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9219 # Character class describing NM global symbol codes.
9220 symcode='[BCDEGRST]'
9222 # Regexp to match symbols that can be accessed directly from C.
9223 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9225 # Transform an extracted symbol line into a proper C declaration
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9228 # Transform an extracted symbol line into symbol name and symbol address
9229 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'"
9231 # Define system-specific variables.
9236 cygwin* | mingw* | pw32*)
9237 symcode='[ABCDGISTW]'
9239 hpux*) # Its linker distinguishes data from code symbols
9240 if test "$host_cpu" = ia64; then
9241 symcode='[ABCDEGRST]'
9243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9244 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'"
9247 if test "$host_cpu" = ia64; then
9248 symcode='[ABCDGIRSTW]'
9249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9250 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'"
9254 symcode='[BCDEGRST]'
9257 symcode='[BCDEGQRST]'
9268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9276 # Handle CRLF in mingw tool chain
9280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9284 # If we're using GNU nm, then use its standard symbol codes.
9285 case `$NM -V 2>&1` in
9286 *GNU* | *'with BFD'*)
9287 symcode='[ABCDGIRSTW]' ;;
9290 # Try without a prefix undercore, then with it.
9291 for ac_symprfx in "" "_"; do
9293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9294 symxfrm="\\1 $ac_symprfx\\2 \\2"
9296 # Write the raw and C identifiers.
9297 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9299 # Check to see that the pipe works correctly.
9303 cat > conftest.$ac_ext <<EOF
9308 void nm_test_func(){}
9312 int main(){nm_test_var='a';nm_test_func();return(0);}
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; then
9320 # Now try to grab the symbols.
9322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && test -s "$nlist"; then
9327 # Try sorting and uniquifying the output.
9328 if sort "$nlist" | uniq > "$nlist"T; then
9329 mv -f "$nlist"T "$nlist"
9334 # Make sure that we snagged all the symbols we need.
9335 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9336 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9337 cat <<EOF > conftest.$ac_ext
9343 # Now generate the symbol file.
9344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9346 cat <<EOF >> conftest.$ac_ext
9347 #if defined (__STDC__) && __STDC__
9348 # define lt_ptr_t void *
9350 # define lt_ptr_t char *
9354 /* The mapping between symbol names and symbols. */
9359 lt_preloaded_symbols[] =
9362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9363 cat <<\EOF >> conftest.$ac_ext
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9387 echo "cannot find nm_test_func in $nlist" >&5
9390 echo "cannot find nm_test_var in $nlist" >&5
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9399 rm -f conftest* conftst*
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9405 lt_cv_sys_global_symbol_pipe=
9411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9415 { echo "$as_me:$LINENO: result: failed" >&5
9416 echo "${ECHO_T}failed" >&6; }
9418 { echo "$as_me:$LINENO: result: ok" >&5
9419 echo "${ECHO_T}ok" >&6; }
9423 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9424 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9425 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9429 libltdl_cv_preloaded_symbols=yes
9431 libltdl_cv_preloaded_symbols=no
9435 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9436 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9437 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_PRELOADED_SYMBOLS 1
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9454 { echo "$as_me:$LINENO: checking for shl_load" >&5
9455 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467 #define shl_load innocuous_shl_load
9469 /* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9475 # include <limits.h>
9477 # include <assert.h>
9482 /* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
9489 /* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492 #if defined __stub_shl_load || defined __stub___shl_load
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_shl_load=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_func_shl_load=no
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9551 if test $ac_cv_func_shl_load = yes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_SHL_LOAD 1
9558 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 ac_check_lib_save_LIBS=$LIBS
9565 cat >conftest.$ac_ext <<_ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_dld_shl_load=no
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 LIBS=$ac_check_lib_save_LIBS
9633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9635 if test $ac_cv_lib_dld_shl_load = yes; then
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_SHL_LOAD 1
9641 LIBADD_DL="$LIBADD_DL -ldld"
9643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_check_lib_save_LIBS=$LIBS
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_try") 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_dl_dlopen=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_lib_dl_dlopen=no
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9720 if test $ac_cv_lib_dl_dlopen = yes; then
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_LIBDL 1
9726 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_LIBDL 1
9784 libltdl_cv_func_dlopen="yes"
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9790 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 ac_check_lib_save_LIBS=$LIBS
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1 >conftest.err
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_svld_dlopen=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_lib_svld_dlopen=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9865 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9866 if test $ac_cv_lib_svld_dlopen = yes; then
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBDL 1
9872 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9874 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dld_dld_link=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_lib_dld_dld_link=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9951 if test $ac_cv_lib_dld_dld_link = yes; then
9953 cat >>confdefs.h <<\_ACEOF
9957 LIBADD_DL="$LIBADD_DL -ldld"
9959 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9960 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9961 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define _dyld_func_lookup innocuous__dyld_func_lookup
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char _dyld_func_lookup (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9985 #undef _dyld_func_lookup
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9993 char _dyld_func_lookup ();
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10004 return _dyld_func_lookup ();
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_func__dyld_func_lookup=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_func__dyld_func_lookup=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10055 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10056 if test $ac_cv_func__dyld_func_lookup = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_DYLD 1
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10085 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10087 lt_save_LIBS="$LIBS"
10088 LIBS="$LIBS $LIBADD_DL"
10090 for ac_func in dlerror
10092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106 #define $ac_func innocuous_$ac_func
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10114 # include <limits.h>
10116 # include <assert.h>
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined __stub_$ac_func || defined __stub___$ac_func
10138 return $ac_func ();
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 eval "$as_ac_var=no"
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10188 ac_res=`eval echo '${'$as_ac_var'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10191 if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10199 LIBS="$lt_save_LIBS"
10202 ac_cpp='$CPP $CPPFLAGS'
10203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10209 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10210 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10211 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_cv_sys_symbol_underscore=no
10215 cat > conftest.$ac_ext <<EOF
10216 void nm_test_func(){}
10217 int main(){nm_test_func;return 0;}
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 # Now try to grab the symbols.
10225 ac_nlist=conftest.nm
10226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && test -s "$ac_nlist"; then
10231 # See whether the symbols have a leading underscore.
10232 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10233 ac_cv_sys_symbol_underscore=yes
10235 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10238 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10242 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10245 echo "configure: failed program was:" >&5
10251 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10252 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10255 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10256 if test x"$libltdl_cv_func_dlopen" = xyes ||
10257 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10258 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10259 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_need_uscore+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 libltdl_cv_need_uscore=unknown
10265 LIBS="$LIBS $LIBADD_DL"
10266 if test "$cross_compiling" = yes; then :
10267 libltdl_cv_need_uscore=cross
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10282 # define LT_DLGLOBAL RTLD_GLOBAL
10285 # define LT_DLGLOBAL DL_GLOBAL
10287 # define LT_DLGLOBAL 0
10291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293 #ifndef LT_DLLAZY_OR_NOW
10295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10298 # define LT_DLLAZY_OR_NOW DL_LAZY
10301 # define LT_DLLAZY_OR_NOW RTLD_NOW
10304 # define LT_DLLAZY_OR_NOW DL_NOW
10306 # define LT_DLLAZY_OR_NOW 0
10314 extern "C" void exit (int);
10317 void fnord() { int i=42;}
10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321 int status = $lt_dlunknown;
10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327 /* dlclose (self); */
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10340 (./conftest; exit; ) >&5 2>/dev/null
10342 case x$lt_status in
10343 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10344 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10345 x$lt_dlunknown|x*) ;;
10348 # compilation failed
10357 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10358 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10362 if test x"$libltdl_cv_need_uscore" = xyes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define NEED_USCORE 1
10371 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10372 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10373 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 # PORTME does your system automatically load deplibs for dlopen?
10377 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10378 # For now, we just catch OSes we know something about -- in the
10379 # future, we'll try test this programmatically.
10380 libltdl_cv_sys_dlopen_deplibs=unknown
10382 aix3*|aix4.1.*|aix4.2.*)
10383 # Unknown whether this is true for these versions of AIX, but
10384 # we want this `case' here to explicitly catch those versions.
10385 libltdl_cv_sys_dlopen_deplibs=unknown
10388 libltdl_cv_sys_dlopen_deplibs=yes
10391 # Assuming the user has installed a libdl from somewhere, this is true
10392 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10393 libltdl_cv_sys_dlopen_deplibs=yes
10395 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10396 # GNU and its variants, using gnu ld.so (Glibc)
10397 libltdl_cv_sys_dlopen_deplibs=yes
10400 libltdl_cv_sys_dlopen_deplibs=yes
10403 libltdl_cv_sys_dlopen_deplibs=yes
10405 irix[12345]*|irix6.[01]*)
10406 # Catch all versions of IRIX before 6.2, and indicate that we don't
10407 # know how it worked for any of those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10411 # The case above catches anything before 6.2, and it's known that
10412 # at 6.2 and later dlopen does load deplibs.
10413 libltdl_cv_sys_dlopen_deplibs=yes
10416 libltdl_cv_sys_dlopen_deplibs=yes
10419 libltdl_cv_sys_dlopen_deplibs=yes
10422 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10423 # it did *not* use an RPATH in a shared library to find objects the
10424 # library depends on, so we explicitly say `no'.
10425 libltdl_cv_sys_dlopen_deplibs=no
10427 osf5.0|osf5.0a|osf5.1)
10428 # dlopen *does* load deplibs and with the right loader patch applied
10429 # it even uses RPATH in a shared library to search for shared objects
10430 # that the library depends on, but there's no easy way to know if that
10431 # patch is installed. Since this is the case, all we can really
10432 # say is unknown -- it depends on the patch being installed. If
10433 # it is, this changes to `yes'. Without it, it would be `no'.
10434 libltdl_cv_sys_dlopen_deplibs=unknown
10437 # the two cases above should catch all versions of osf <= 5.1. Read
10438 # the comments above for what we know about them.
10439 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10440 # is used to find them so we can finally say `yes'.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10444 libltdl_cv_sys_dlopen_deplibs=yes
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10452 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10453 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10454 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define LTDL_DLOPEN_DEPLIBS 1
10463 for ac_header in argz.h
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_res=`eval echo '${'$as_ac_Header'}'`
10473 { echo "$as_me:$LINENO: result: $ac_res" >&5
10474 echo "${ECHO_T}$ac_res" >&6; }
10476 # Is the header compilable?
10477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 $ac_includes_default
10486 #include <$ac_header>
10488 rm -f conftest.$ac_objext
10489 if { (ac_try="$ac_compile"
10490 case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_compile") 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503 { (case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_try") 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest.$ac_objext'
10513 { (case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_try") 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_compiler=no
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532 echo "${ECHO_T}$ac_header_compiler" >&6; }
10534 # Is the header present?
10535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 #include <$ac_header>
10545 if { (ac_try="$ac_cpp conftest.$ac_ext"
10546 case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10553 grep -v '^ *+' conftest.er1 >conftest.err
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } >/dev/null; then
10558 if test -s conftest.err; then
10559 ac_cpp_err=$ac_c_preproc_warn_flag
10560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10567 if test -z "$ac_cpp_err"; then
10568 ac_header_preproc=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_header_preproc=no
10576 rm -f conftest.err conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578 echo "${ECHO_T}$ac_header_preproc" >&6; }
10580 # So? What about this header?
10581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 ## ------------------------------ ##
10604 ## Report this to bugs@yourdomain ##
10605 ## ------------------------------ ##
10607 ) | sed "s/^/$as_me: WARNING: /" >&2
10610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 eval "$as_ac_Header=\$ac_header_preproc"
10617 ac_res=`eval echo '${'$as_ac_Header'}'`
10618 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619 echo "${ECHO_T}$ac_res" >&6; }
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 { echo "$as_me:$LINENO: checking for error_t" >&5
10633 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10634 if test "${ac_cv_type_error_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10647 typedef error_t ac__type_new_;
10651 if ((ac__type_new_ *) 0)
10653 if (sizeof (ac__type_new_))
10659 rm -f conftest.$ac_objext
10660 if { (ac_try="$ac_compile"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_error_t=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_type_error_t=no
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10704 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10705 if test $ac_cv_type_error_t = yes; then
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_ERROR_T 1
10714 cat >>confdefs.h <<\_ACEOF
10715 #define error_t int
10726 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10742 #define $ac_func innocuous_$ac_func
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10750 # include <limits.h>
10752 # include <assert.h>
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10764 /* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767 #if defined __stub_$ac_func || defined __stub___$ac_func
10774 return $ac_func ();
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 eval "$as_ac_var=yes"
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 eval "$as_ac_var=no"
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10824 ac_res=`eval echo '${'$as_ac_var'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826 echo "${ECHO_T}$ac_res" >&6; }
10827 if test `eval echo '${'$as_ac_var'}'` = yes; then
10828 cat >>confdefs.h <<_ACEOF
10829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 ac_res=`eval echo '${'$as_ac_Header'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10876 # Is the header compilable?
10877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <$ac_header>
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_header_compiler=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_header_compiler=no
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932 echo "${ECHO_T}$ac_header_compiler" >&6; }
10934 # Is the header present?
10935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 #include <$ac_header>
10945 if { (ac_try="$ac_cpp conftest.$ac_ext"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10953 grep -v '^ *+' conftest.er1 >conftest.err
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } >/dev/null; then
10958 if test -s conftest.err; then
10959 ac_cpp_err=$ac_c_preproc_warn_flag
10960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10967 if test -z "$ac_cpp_err"; then
10968 ac_header_preproc=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_header_preproc=no
10976 rm -f conftest.err conftest.$ac_ext
10977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10978 echo "${ECHO_T}$ac_header_preproc" >&6; }
10980 # So? What about this header?
10981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10987 ac_header_preproc=yes
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11003 ## ------------------------------ ##
11004 ## Report this to bugs@yourdomain ##
11005 ## ------------------------------ ##
11007 ) | sed "s/^/$as_me: WARNING: /" >&2
11010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 eval "$as_ac_Header=\$ac_header_preproc"
11017 ac_res=`eval echo '${'$as_ac_Header'}'`
11018 { echo "$as_me:$LINENO: result: $ac_res" >&5
11019 echo "${ECHO_T}$ac_res" >&6; }
11022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11048 # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 $ac_includes_default
11058 #include <$ac_header>
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_header_compiler=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_compiler=no
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6; }
11106 # Is the header present?
11107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <$ac_header>
11117 if { (ac_try="$ac_cpp conftest.$ac_ext"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139 if test -z "$ac_cpp_err"; then
11140 ac_header_preproc=yes
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_header_preproc=no
11148 rm -f conftest.err conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6; }
11152 # So? What about this header?
11153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159 ac_header_preproc=yes
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11175 ## ------------------------------ ##
11176 ## Report this to bugs@yourdomain ##
11177 ## ------------------------------ ##
11179 ) | sed "s/^/$as_me: WARNING: /" >&2
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 eval "$as_ac_Header=\$ac_header_preproc"
11189 ac_res=`eval echo '${'$as_ac_Header'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191 echo "${ECHO_T}$ac_res" >&6; }
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11205 for ac_header in string.h strings.h
11207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11218 # Is the header compilable?
11219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 $ac_includes_default
11228 #include <$ac_header>
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_compile") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_header_compiler=yes
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_header_compiler=no
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274 echo "${ECHO_T}$ac_header_compiler" >&6; }
11276 # Is the header present?
11277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 #include <$ac_header>
11287 if { (ac_try="$ac_cpp conftest.$ac_ext"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
11302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11309 if test -z "$ac_cpp_err"; then
11310 ac_header_preproc=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 ac_header_preproc=no
11318 rm -f conftest.err conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320 echo "${ECHO_T}$ac_header_preproc" >&6; }
11322 # So? What about this header?
11323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345 ## ------------------------------ ##
11346 ## Report this to bugs@yourdomain ##
11347 ## ------------------------------ ##
11349 ) | sed "s/^/$as_me: WARNING: /" >&2
11352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 eval "$as_ac_Header=\$ac_header_preproc"
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11376 for ac_func in strchr index
11378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11392 #define $ac_func innocuous_$ac_func
11394 /* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func (); below.
11396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397 <limits.h> exists even on freestanding compilers. */
11400 # include <limits.h>
11402 # include <assert.h>
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 return $ac_func ();
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (ac_try="$ac_link"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_link") 2>conftest.er1
11438 grep -v '^ *+' conftest.er1 >conftest.err
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 eval "$as_ac_var=yes"
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 eval "$as_ac_var=no"
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11474 ac_res=`eval echo '${'$as_ac_var'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11487 for ac_func in strrchr rindex
11489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503 #define $ac_func innocuous_$ac_func
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11511 # include <limits.h>
11513 # include <assert.h>
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11525 /* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 return $ac_func ();
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (ac_try="$ac_link"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 eval "$as_ac_var=yes"
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 eval "$as_ac_var=no"
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11585 ac_res=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598 for ac_func in memcpy bcopy
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614 #define $ac_func innocuous_$ac_func
11616 /* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11622 # include <limits.h>
11624 # include <assert.h>
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11636 /* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 return $ac_func ();
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_link") 2>conftest.er1
11660 grep -v '^ *+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 eval "$as_ac_var=yes"
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 eval "$as_ac_var=no"
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11696 ac_res=`eval echo '${'$as_ac_var'}'`
11697 { echo "$as_me:$LINENO: result: $ac_res" >&5
11698 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11709 for ac_func in memmove strcmp
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11733 # include <limits.h>
11735 # include <assert.h>
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11747 /* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 return $ac_func ();
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1 >conftest.err
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 for ac_func in closedir opendir readdir
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837 #define $ac_func innocuous_$ac_func
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11845 # include <limits.h>
11847 # include <assert.h>
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 return $ac_func ();
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 eval "$as_ac_var=no"
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11919 ac_res=`eval echo '${'$as_ac_var'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11933 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11946 if test "$GCC" != "yes" && test "$ICC" != "yes"
11948 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11949 echo "$as_me: error: gcc|icc required but not found" >&2;}
11950 { (exit 1); exit 1; }; }
11953 if test "$GXX" != "yes" && test "$IXX" != "yes"
11955 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11956 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11957 { (exit 1); exit 1; }; }
11960 if test "$GCC" = "yes"
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #if !defined(__GNUC__) || __GNUC__ < 3
11964 #error Unsupported GCC version
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_compile") 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12008 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12009 { (exit 1); exit 1; }; }
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 if test -z "$llvm_cv_gnu_make_command"
12017 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12018 echo "$as_me: error: GNU Make required but not found" >&2;}
12019 { (exit 1); exit 1; }; }
12022 { echo "$as_me:$LINENO: result: ok" >&5
12023 echo "${ECHO_T}ok" >&6; }
12025 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12026 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12027 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12029 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12031 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12033 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12034 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12038 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12039 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_m_sin+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 ac_check_lib_save_LIBS=$LIBS
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_m_sin=yes
12103 echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12113 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12114 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12115 if test $ac_cv_lib_m_sin = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_LIBM 1
12124 if test "$llvm_cv_os_type" = "MingW" ; then
12126 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12127 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12128 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-limagehlp $LIBS"
12133 cat >conftest.$ac_ext <<_ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_imagehlp_main=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_lib_imagehlp_main=no
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12196 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12197 if test $ac_cv_lib_imagehlp_main = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_LIBIMAGEHLP 1
12202 LIBS="-limagehlp $LIBS"
12207 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12208 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12209 if test "${ac_cv_lib_psapi_main+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-lpsapi $LIBS"
12214 cat >conftest.$ac_ext <<_ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (ac_try="$ac_link"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_link") 2>conftest.er1
12239 grep -v '^ *+' conftest.er1 >conftest.err
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_try") 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_try") 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_lib_psapi_main=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_lib_psapi_main=no
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12276 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12277 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12278 if test $ac_cv_lib_psapi_main = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_LIBPSAPI 1
12283 LIBS="-lpsapi $LIBS"
12289 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12290 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12291 if test "${ac_cv_search_dlopen+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 ac_func_search_save_LIBS=$LIBS
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12317 for ac_lib in '' dl; do
12318 if test -z "$ac_lib"; then
12319 ac_res="none required"
12322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_search_dlopen=$ac_res
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12366 rm -f core conftest.err conftest.$ac_objext \
12368 if test "${ac_cv_search_dlopen+set}" = set; then
12372 if test "${ac_cv_search_dlopen+set}" = set; then
12375 ac_cv_search_dlopen=no
12377 rm conftest.$ac_ext
12378 LIBS=$ac_func_search_save_LIBS
12380 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12381 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12382 ac_res=$ac_cv_search_dlopen
12383 if test "$ac_res" != no; then
12384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_DLOPEN 1
12391 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12392 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12396 if test "$llvm_cv_enable_libffi" = "yes" ; then
12397 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12398 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12399 if test "${ac_cv_search_ffi_call+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_func_search_save_LIBS=$LIBS
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12420 return ffi_call ();
12425 for ac_lib in '' ffi; do
12426 if test -z "$ac_lib"; then
12427 ac_res="none required"
12430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_try") 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_search_ffi_call=$ac_res
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12474 rm -f core conftest.err conftest.$ac_objext \
12476 if test "${ac_cv_search_ffi_call+set}" = set; then
12480 if test "${ac_cv_search_ffi_call+set}" = set; then
12483 ac_cv_search_ffi_call=no
12485 rm conftest.$ac_ext
12486 LIBS=$ac_func_search_save_LIBS
12488 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12489 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12490 ac_res=$ac_cv_search_ffi_call
12491 if test "$ac_res" != no; then
12492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_FFI_CALL 1
12499 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12500 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12501 { (exit 1); exit 1; }; }
12506 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12507 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12508 if test "${ac_cv_search_mallinfo+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 ac_func_search_save_LIBS=$LIBS
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12529 return mallinfo ();
12534 for ac_lib in '' malloc; do
12535 if test -z "$ac_lib"; then
12536 ac_res="none required"
12539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_link") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_search_mallinfo=$ac_res
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12583 rm -f core conftest.err conftest.$ac_objext \
12585 if test "${ac_cv_search_mallinfo+set}" = set; then
12589 if test "${ac_cv_search_mallinfo+set}" = set; then
12592 ac_cv_search_mallinfo=no
12594 rm conftest.$ac_ext
12595 LIBS=$ac_func_search_save_LIBS
12597 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12598 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12599 ac_res=$ac_cv_search_mallinfo
12600 if test "$ac_res" != no; then
12601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_MALLINFO 1
12610 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12612 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12613 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12614 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lpthread $LIBS"
12619 cat >conftest.$ac_ext <<_ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12632 char pthread_mutex_init ();
12636 return pthread_mutex_init ();
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_lib_pthread_pthread_mutex_init=yes
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_cv_lib_pthread_pthread_mutex_init=no
12683 rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 LIBS=$ac_check_lib_save_LIBS
12687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12689 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691 #define HAVE_LIBPTHREAD 1
12694 LIBS="-lpthread $LIBS"
12698 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12699 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12700 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 ac_func_search_save_LIBS=$LIBS
12704 cat >conftest.$ac_ext <<_ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12711 /* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12717 char pthread_mutex_lock ();
12721 return pthread_mutex_lock ();
12726 for ac_lib in '' pthread; do
12727 if test -z "$ac_lib"; then
12728 ac_res="none required"
12731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1 >conftest.err
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_search_pthread_mutex_lock=$ac_res
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12775 rm -f core conftest.err conftest.$ac_objext \
12777 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12784 ac_cv_search_pthread_mutex_lock=no
12786 rm conftest.$ac_ext
12787 LIBS=$ac_func_search_save_LIBS
12789 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12790 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12791 ac_res=$ac_cv_search_pthread_mutex_lock
12792 if test "$ac_res" != no; then
12793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_PTHREAD_MUTEX_LOCK 1
12801 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12802 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12803 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12806 ac_func_search_save_LIBS=$LIBS
12807 cat >conftest.$ac_ext <<_ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12820 char pthread_rwlock_init ();
12824 return pthread_rwlock_init ();
12829 for ac_lib in '' pthread; do
12830 if test -z "$ac_lib"; then
12831 ac_res="none required"
12834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_link") 2>conftest.er1
12845 grep -v '^ *+' conftest.er1 >conftest.err
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_try") 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_search_pthread_rwlock_init=$ac_res
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12878 rm -f core conftest.err conftest.$ac_objext \
12880 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12887 ac_cv_search_pthread_rwlock_init=no
12889 rm conftest.$ac_ext
12890 LIBS=$ac_func_search_save_LIBS
12892 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12893 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12894 ac_res=$ac_cv_search_pthread_rwlock_init
12895 if test "$ac_res" != no; then
12896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12898 cat >>confdefs.h <<\_ACEOF
12899 #define HAVE_PTHREAD_RWLOCK_INIT 1
12904 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12905 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12906 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 ac_func_search_save_LIBS=$LIBS
12910 cat >conftest.$ac_ext <<_ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12917 /* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12923 char pthread_getspecific ();
12927 return pthread_getspecific ();
12932 for ac_lib in '' pthread; do
12933 if test -z "$ac_lib"; then
12934 ac_res="none required"
12937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>conftest.er1
12948 grep -v '^ *+' conftest.er1 >conftest.err
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_search_pthread_getspecific=$ac_res
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12981 rm -f core conftest.err conftest.$ac_objext \
12983 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12990 ac_cv_search_pthread_getspecific=no
12992 rm conftest.$ac_ext
12993 LIBS=$ac_func_search_save_LIBS
12995 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12996 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12997 ac_res=$ac_cv_search_pthread_getspecific
12998 if test "$ac_res" != no; then
12999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_PTHREAD_GETSPECIFIC 1
13010 # Check whether --with-udis86 was given.
13011 if test "${with_udis86+set}" = set; then
13012 withval=$with_udis86;
13017 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13020 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13021 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13022 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-ludis86 $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_lib_udis86_ud_init=yes
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 ac_cv_lib_udis86_ud_init=no
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13095 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13096 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13097 if test $ac_cv_lib_udis86_ud_init = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_LIBUDIS86 1
13102 LIBS="-ludis86 $LIBS"
13106 echo "Error! You need to have libudis86 around."
13118 cat >>confdefs.h <<_ACEOF
13119 #define USE_UDIS86 $USE_UDIS86
13124 # Check whether --with-oprofile was given.
13125 if test "${with_oprofile+set}" = set; then
13126 withval=$with_oprofile;
13130 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13131 no) llvm_cv_oppath=
13134 *) llvm_cv_oppath="${withval}/lib/oprofile"
13135 CPPFLAGS="-I${withval}/include";;
13137 if test -n "$llvm_cv_oppath" ; then
13138 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13139 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13140 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13141 if test "${ac_cv_search_bfd_init+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 ac_func_search_save_LIBS=$LIBS
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13162 return bfd_init ();
13167 for ac_lib in '' bfd; do
13168 if test -z "$ac_lib"; then
13169 ac_res="none required"
13172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_search_bfd_init=$ac_res
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13216 rm -f core conftest.err conftest.$ac_objext \
13218 if test "${ac_cv_search_bfd_init+set}" = set; then
13222 if test "${ac_cv_search_bfd_init+set}" = set; then
13225 ac_cv_search_bfd_init=no
13227 rm conftest.$ac_ext
13228 LIBS=$ac_func_search_save_LIBS
13230 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13231 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13232 ac_res=$ac_cv_search_bfd_init
13233 if test "$ac_res" != no; then
13234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13239 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13240 if test "${ac_cv_search_op_open_agent+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_func_search_save_LIBS=$LIBS
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13257 char op_open_agent ();
13261 return op_open_agent ();
13266 for ac_lib in '' opagent; do
13267 if test -z "$ac_lib"; then
13268 ac_res="none required"
13271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_search_op_open_agent=$ac_res
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13315 rm -f core conftest.err conftest.$ac_objext \
13317 if test "${ac_cv_search_op_open_agent+set}" = set; then
13321 if test "${ac_cv_search_op_open_agent+set}" = set; then
13324 ac_cv_search_op_open_agent=no
13326 rm conftest.$ac_ext
13327 LIBS=$ac_func_search_save_LIBS
13329 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13330 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13331 ac_res=$ac_cv_search_op_open_agent
13332 if test "$ac_res" != no; then
13333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13337 echo "Error! You need to have libopagent around."
13342 if test "${ac_cv_header_opagent_h+set}" = set; then
13343 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13344 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13345 if test "${ac_cv_header_opagent_h+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13349 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13351 # Is the header compilable?
13352 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13353 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 $ac_includes_default
13361 #include <opagent.h>
13363 rm -f conftest.$ac_objext
13364 if { (ac_try="$ac_compile"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compile") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest.$ac_objext'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_header_compiler=yes
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ac_header_compiler=no
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13407 echo "${ECHO_T}$ac_header_compiler" >&6; }
13409 # Is the header present?
13410 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13411 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13412 cat >conftest.$ac_ext <<_ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 #include <opagent.h>
13420 if { (ac_try="$ac_cpp conftest.$ac_ext"
13421 case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428 grep -v '^ *+' conftest.er1 >conftest.err
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13442 if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_preproc=no
13451 rm -f conftest.err conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13453 echo "${ECHO_T}$ac_header_preproc" >&6; }
13455 # So? What about this header?
13456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13458 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13459 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13461 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13462 ac_header_preproc=yes
13465 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13466 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13468 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13470 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13472 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13474 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13476 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13478 ## ------------------------------ ##
13479 ## Report this to bugs@yourdomain ##
13480 ## ------------------------------ ##
13482 ) | sed "s/^/$as_me: WARNING: /" >&2
13485 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13486 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13487 if test "${ac_cv_header_opagent_h+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_cv_header_opagent_h=$ac_header_preproc
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13496 if test $ac_cv_header_opagent_h = yes; then
13500 echo "Error! You need to have opagent.h around."
13516 cat >>confdefs.h <<_ACEOF
13517 #define USE_OPROFILE $USE_OPROFILE
13527 ac_header_dirent=no
13528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13529 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13530 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13531 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 #include <sys/types.h>
13553 rm -f conftest.$ac_objext
13554 if { (ac_try="$ac_compile"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 eval "$as_ac_Header=yes"
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 eval "$as_ac_Header=no"
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 ac_res=`eval echo '${'$as_ac_Header'}'`
13598 { echo "$as_me:$LINENO: result: $ac_res" >&5
13599 echo "${ECHO_T}$ac_res" >&6; }
13600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13605 ac_header_dirent=$ac_hdr; break
13609 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13610 if test $ac_header_dirent = dirent.h; then
13611 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13612 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13613 if test "${ac_cv_search_opendir+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_func_search_save_LIBS=$LIBS
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13639 for ac_lib in '' dir; do
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_search_opendir=$ac_res
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13688 rm -f core conftest.err conftest.$ac_objext \
13690 if test "${ac_cv_search_opendir+set}" = set; then
13694 if test "${ac_cv_search_opendir+set}" = set; then
13697 ac_cv_search_opendir=no
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13704 ac_res=$ac_cv_search_opendir
13705 if test "$ac_res" != no; then
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13713 if test "${ac_cv_search_opendir+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 ac_func_search_save_LIBS=$LIBS
13717 cat >conftest.$ac_ext <<_ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13739 for ac_lib in '' x; do
13740 if test -z "$ac_lib"; then
13741 ac_res="none required"
13744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_search_opendir=$ac_res
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13788 rm -f core conftest.err conftest.$ac_objext \
13790 if test "${ac_cv_search_opendir+set}" = set; then
13794 if test "${ac_cv_search_opendir+set}" = set; then
13797 ac_cv_search_opendir=no
13799 rm conftest.$ac_ext
13800 LIBS=$ac_func_search_save_LIBS
13802 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13803 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13804 ac_res=$ac_cv_search_opendir
13805 if test "$ac_res" != no; then
13806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13813 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13814 if test "${ac_cv_header_mmap_anon+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 ac_cpp='$CPP $CPPFLAGS'
13819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 #include <sys/mman.h>
13830 #include <unistd.h>
13835 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_header_mmap_anon=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_header_mmap_anon=no
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13892 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13893 if test "$ac_cv_header_mmap_anon" = yes; then
13895 cat >>confdefs.h <<\_ACEOF
13896 #define HAVE_MMAP_ANONYMOUS 1
13901 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_stat_broken+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include <sys/types.h>
13913 #include <sys/stat.h>
13915 #if defined S_ISBLK && defined S_IFDIR
13916 # if S_ISBLK (S_IFDIR)
13921 #if defined S_ISBLK && defined S_IFCHR
13922 # if S_ISBLK (S_IFCHR)
13927 #if defined S_ISLNK && defined S_IFREG
13928 # if S_ISLNK (S_IFREG)
13933 #if defined S_ISSOCK && defined S_IFREG
13934 # if S_ISSOCK (S_IFREG)
13940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941 $EGREP "You lose" >/dev/null 2>&1; then
13942 ac_cv_header_stat_broken=yes
13944 ac_cv_header_stat_broken=no
13949 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13950 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13951 if test $ac_cv_header_stat_broken = yes; then
13953 cat >>confdefs.h <<\_ACEOF
13954 #define STAT_MACROS_BROKEN 1
13959 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13960 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13961 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <sys/types.h>
13971 #include <sys/wait.h>
13972 #ifndef WEXITSTATUS
13973 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13976 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13984 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13989 rm -f conftest.$ac_objext
13990 if { (ac_try="$ac_compile"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_compile") 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_header_sys_wait_h=yes
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_cv_header_sys_wait_h=no
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14034 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14035 if test $ac_cv_header_sys_wait_h = yes; then
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_SYS_WAIT_H 1
14043 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14044 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_time+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/time.h>
14061 if ((struct tm *) 0)
14067 rm -f conftest.$ac_objext
14068 if { (ac_try="$ac_compile"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_compile") 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082 { (case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_try") 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_header_time=yes
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_cv_header_time=no
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14112 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14113 if test $ac_cv_header_time = yes; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define TIME_WITH_SYS_TIME 1
14128 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 ac_res=`eval echo '${'$as_ac_Header'}'`
14138 { echo "$as_me:$LINENO: result: $ac_res" >&5
14139 echo "${ECHO_T}$ac_res" >&6; }
14141 # Is the header compilable?
14142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 #include <$ac_header>
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_header_compiler=yes
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_header_compiler=no
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197 echo "${ECHO_T}$ac_header_compiler" >&6; }
14199 # Is the header present?
14200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #include <$ac_header>
14210 if { (ac_try="$ac_cpp conftest.$ac_ext"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null; then
14223 if test -s conftest.err; then
14224 ac_cpp_err=$ac_c_preproc_warn_flag
14225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14232 if test -z "$ac_cpp_err"; then
14233 ac_header_preproc=yes
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14238 ac_header_preproc=no
14241 rm -f conftest.err conftest.$ac_ext
14242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14243 echo "${ECHO_T}$ac_header_preproc" >&6; }
14245 # So? What about this header?
14246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14252 ac_header_preproc=yes
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14268 ## ------------------------------ ##
14269 ## Report this to bugs@yourdomain ##
14270 ## ------------------------------ ##
14272 ) | sed "s/^/$as_me: WARNING: /" >&2
14275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 eval "$as_ac_Header=\$ac_header_preproc"
14282 ac_res=`eval echo '${'$as_ac_Header'}'`
14283 { echo "$as_me:$LINENO: result: $ac_res" >&5
14284 echo "${ECHO_T}$ac_res" >&6; }
14287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14302 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 ac_res=`eval echo '${'$as_ac_Header'}'`
14312 { echo "$as_me:$LINENO: result: $ac_res" >&5
14313 echo "${ECHO_T}$ac_res" >&6; }
14315 # Is the header compilable?
14316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14325 #include <$ac_header>
14327 rm -f conftest.$ac_objext
14328 if { (ac_try="$ac_compile"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_compile") 2>conftest.er1
14336 grep -v '^ *+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_header_compiler=yes
14363 echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 ac_header_compiler=no
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14371 echo "${ECHO_T}$ac_header_compiler" >&6; }
14373 # Is the header present?
14374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #include <$ac_header>
14384 if { (ac_try="$ac_cpp conftest.$ac_ext"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } >/dev/null; then
14397 if test -s conftest.err; then
14398 ac_cpp_err=$ac_c_preproc_warn_flag
14399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14406 if test -z "$ac_cpp_err"; then
14407 ac_header_preproc=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_header_preproc=no
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14442 ## ------------------------------ ##
14443 ## Report this to bugs@yourdomain ##
14444 ## ------------------------------ ##
14446 ) | sed "s/^/$as_me: WARNING: /" >&2
14449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 eval "$as_ac_Header=\$ac_header_preproc"
14456 ac_res=`eval echo '${'$as_ac_Header'}'`
14457 { echo "$as_me:$LINENO: result: $ac_res" >&5
14458 echo "${ECHO_T}$ac_res" >&6; }
14461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14462 cat >>confdefs.h <<_ACEOF
14463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14472 for ac_header in utime.h windows.h
14474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 ac_res=`eval echo '${'$as_ac_Header'}'`
14482 { echo "$as_me:$LINENO: result: $ac_res" >&5
14483 echo "${ECHO_T}$ac_res" >&6; }
14485 # Is the header compilable?
14486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14488 cat >conftest.$ac_ext <<_ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 $ac_includes_default
14495 #include <$ac_header>
14497 rm -f conftest.$ac_objext
14498 if { (ac_try="$ac_compile"
14499 case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_compile") 2>conftest.er1
14506 grep -v '^ *+' conftest.er1 >conftest.err
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } &&
14511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14512 { (case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_try") 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_header_compiler=yes
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14536 ac_header_compiler=no
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6; }
14543 # Is the header present?
14544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <$ac_header>
14554 if { (ac_try="$ac_cpp conftest.$ac_ext"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14576 if test -z "$ac_cpp_err"; then
14577 ac_header_preproc=yes
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 ac_header_preproc=no
14585 rm -f conftest.err conftest.$ac_ext
14586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14587 echo "${ECHO_T}$ac_header_preproc" >&6; }
14589 # So? What about this header?
14590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14596 ac_header_preproc=yes
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14612 ## ------------------------------ ##
14613 ## Report this to bugs@yourdomain ##
14614 ## ------------------------------ ##
14616 ) | sed "s/^/$as_me: WARNING: /" >&2
14619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 eval "$as_ac_Header=\$ac_header_preproc"
14626 ac_res=`eval echo '${'$as_ac_Header'}'`
14627 { echo "$as_me:$LINENO: result: $ac_res" >&5
14628 echo "${ECHO_T}$ac_res" >&6; }
14631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14645 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14658 # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14668 #include <$ac_header>
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_compile") 2>conftest.er1
14679 grep -v '^ *+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_try") 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_header_compiler=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_compiler=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null; then
14740 if test -s conftest.err; then
14741 ac_cpp_err=$ac_c_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14749 if test -z "$ac_cpp_err"; then
14750 ac_header_preproc=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_preproc=no
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14762 # So? What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769 ac_header_preproc=yes
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14785 ## ------------------------------ ##
14786 ## Report this to bugs@yourdomain ##
14787 ## ------------------------------ ##
14789 ) | sed "s/^/$as_me: WARNING: /" >&2
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 eval "$as_ac_Header=\$ac_header_preproc"
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14817 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14830 # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 $ac_includes_default
14840 #include <$ac_header>
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_header_compiler=no
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886 echo "${ECHO_T}$ac_header_compiler" >&6; }
14888 # Is the header present?
14889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <$ac_header>
14899 if { (ac_try="$ac_cpp conftest.$ac_ext"
14900 case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14907 grep -v '^ *+' conftest.er1 >conftest.err
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_c_preproc_warn_flag
14914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14921 if test -z "$ac_cpp_err"; then
14922 ac_header_preproc=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_preproc=no
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14934 # So? What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957 ## ------------------------------ ##
14958 ## Report this to bugs@yourdomain ##
14959 ## ------------------------------ ##
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 eval "$as_ac_Header=\$ac_header_preproc"
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986 for ac_header in valgrind/valgrind.h
14988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 ac_res=`eval echo '${'$as_ac_Header'}'`
14996 { echo "$as_me:$LINENO: result: $ac_res" >&5
14997 echo "${ECHO_T}$ac_res" >&6; }
14999 # Is the header compilable?
15000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 $ac_includes_default
15009 #include <$ac_header>
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_compile") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15026 { (case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_try") 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_try") 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 ac_header_compiler=yes
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ac_header_compiler=no
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15055 echo "${ECHO_T}$ac_header_compiler" >&6; }
15057 # Is the header present?
15058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15060 cat >conftest.$ac_ext <<_ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <$ac_header>
15068 if { (ac_try="$ac_cpp conftest.$ac_ext"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } >/dev/null; then
15081 if test -s conftest.err; then
15082 ac_cpp_err=$ac_c_preproc_warn_flag
15083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15090 if test -z "$ac_cpp_err"; then
15091 ac_header_preproc=yes
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_header_preproc=no
15099 rm -f conftest.err conftest.$ac_ext
15100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101 echo "${ECHO_T}$ac_header_preproc" >&6; }
15103 # So? What about this header?
15104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15110 ac_header_preproc=yes
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15126 ## ------------------------------ ##
15127 ## Report this to bugs@yourdomain ##
15128 ## ------------------------------ ##
15130 ) | sed "s/^/$as_me: WARNING: /" >&2
15133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 eval "$as_ac_Header=\$ac_header_preproc"
15140 ac_res=`eval echo '${'$as_ac_Header'}'`
15141 { echo "$as_me:$LINENO: result: $ac_res" >&5
15142 echo "${ECHO_T}$ac_res" >&6; }
15145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15146 cat >>confdefs.h <<_ACEOF
15147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15155 for ac_header in fenv.h
15157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 ac_res=`eval echo '${'$as_ac_Header'}'`
15165 { echo "$as_me:$LINENO: result: $ac_res" >&5
15166 echo "${ECHO_T}$ac_res" >&6; }
15168 # Is the header compilable?
15169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 $ac_includes_default
15178 #include <$ac_header>
15180 rm -f conftest.$ac_objext
15181 if { (ac_try="$ac_compile"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_compile") 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } &&
15194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15195 { (case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_try") 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest.$ac_objext'
15205 { (case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_try") 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_header_compiler=yes
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_header_compiler=no
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15224 echo "${ECHO_T}$ac_header_compiler" >&6; }
15226 # Is the header present?
15227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15229 cat >conftest.$ac_ext <<_ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <$ac_header>
15237 if { (ac_try="$ac_cpp conftest.$ac_ext"
15238 case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15245 grep -v '^ *+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null; then
15250 if test -s conftest.err; then
15251 ac_cpp_err=$ac_c_preproc_warn_flag
15252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259 if test -z "$ac_cpp_err"; then
15260 ac_header_preproc=yes
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 ac_header_preproc=no
15268 rm -f conftest.err conftest.$ac_ext
15269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15270 echo "${ECHO_T}$ac_header_preproc" >&6; }
15272 # So? What about this header?
15273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15279 ac_header_preproc=yes
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15295 ## ------------------------------ ##
15296 ## Report this to bugs@yourdomain ##
15297 ## ------------------------------ ##
15299 ) | sed "s/^/$as_me: WARNING: /" >&2
15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 eval "$as_ac_Header=\$ac_header_preproc"
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15323 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15325 for ac_header in pthread.h
15327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335 { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15338 # Is the header compilable?
15339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 $ac_includes_default
15348 #include <$ac_header>
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_compile") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_header_compiler=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_header_compiler=no
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6; }
15396 # Is the header present?
15397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <$ac_header>
15407 if { (ac_try="$ac_cpp conftest.$ac_ext"
15408 case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } >/dev/null; then
15420 if test -s conftest.err; then
15421 ac_cpp_err=$ac_c_preproc_warn_flag
15422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15429 if test -z "$ac_cpp_err"; then
15430 ac_header_preproc=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_header_preproc=no
15438 rm -f conftest.err conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440 echo "${ECHO_T}$ac_header_preproc" >&6; }
15442 # So? What about this header?
15443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15449 ac_header_preproc=yes
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15465 ## ------------------------------ ##
15466 ## Report this to bugs@yourdomain ##
15467 ## ------------------------------ ##
15469 ) | sed "s/^/$as_me: WARNING: /" >&2
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 eval "$as_ac_Header=\$ac_header_preproc"
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15502 if test "$llvm_cv_enable_libffi" = "yes" ; then
15505 for ac_header in ffi.h ffi/ffi.h
15507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15518 # Is the header compilable?
15519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <$ac_header>
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_compile") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_header_compiler=yes
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <$ac_header>
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } >/dev/null; then
15600 if test -s conftest.err; then
15601 ac_cpp_err=$ac_c_preproc_warn_flag
15602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15609 if test -z "$ac_cpp_err"; then
15610 ac_header_preproc=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_header_preproc=no
15618 rm -f conftest.err conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15620 echo "${ECHO_T}$ac_header_preproc" >&6; }
15622 # So? What about this header?
15623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15629 ac_header_preproc=yes
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15645 ## ------------------------------ ##
15646 ## Report this to bugs@yourdomain ##
15647 ## ------------------------------ ##
15649 ) | sed "s/^/$as_me: WARNING: /" >&2
15652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 eval "$as_ac_Header=\$ac_header_preproc"
15659 ac_res=`eval echo '${'$as_ac_Header'}'`
15660 { echo "$as_me:$LINENO: result: $ac_res" >&5
15661 echo "${ECHO_T}$ac_res" >&6; }
15664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15676 for ac_header in CrashReporterClient.h
15678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 ac_res=`eval echo '${'$as_ac_Header'}'`
15686 { echo "$as_me:$LINENO: result: $ac_res" >&5
15687 echo "${ECHO_T}$ac_res" >&6; }
15689 # Is the header compilable?
15690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15699 #include <$ac_header>
15701 rm -f conftest.$ac_objext
15702 if { (ac_try="$ac_compile"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15716 { (case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_try") 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_header_compiler=yes
15737 echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 ac_header_compiler=no
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745 echo "${ECHO_T}$ac_header_compiler" >&6; }
15747 # Is the header present?
15748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <$ac_header>
15758 if { (ac_try="$ac_cpp conftest.$ac_ext"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } >/dev/null; then
15771 if test -s conftest.err; then
15772 ac_cpp_err=$ac_c_preproc_warn_flag
15773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15780 if test -z "$ac_cpp_err"; then
15781 ac_header_preproc=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_header_preproc=no
15789 rm -f conftest.err conftest.$ac_ext
15790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15791 echo "${ECHO_T}$ac_header_preproc" >&6; }
15793 # So? What about this header?
15794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15800 ac_header_preproc=yes
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15816 ## ------------------------------ ##
15817 ## Report this to bugs@yourdomain ##
15818 ## ------------------------------ ##
15820 ) | sed "s/^/$as_me: WARNING: /" >&2
15823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 eval "$as_ac_Header=\$ac_header_preproc"
15830 ac_res=`eval echo '${'$as_ac_Header'}'`
15831 { echo "$as_me:$LINENO: result: $ac_res" >&5
15832 echo "${ECHO_T}$ac_res" >&6; }
15835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15836 cat >>confdefs.h <<_ACEOF
15837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15845 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15846 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 extern const char *__crashreporter_info__;
15855 __crashreporter_info__ = "test";
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest$ac_exeext'
15885 { (case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_try") 2>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 { echo "$as_me:$LINENO: result: yes" >&5
15895 echo "${ECHO_T}yes" >&6; }
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_CRASHREPORTER_INFO 1
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_CRASHREPORTER_INFO 0
15914 rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15920 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15921 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15922 if test "${ac_cv_huge_val_sanity+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15927 ac_cpp='$CXXCPP $CPPFLAGS'
15928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15932 ac_save_CXXFLAGS=$CXXFLAGS
15934 if test "$cross_compiling" = yes; then
15935 ac_cv_huge_val_sanity=yes
15937 cat >conftest.$ac_ext <<_ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15947 double x = HUGE_VAL; return x != x;
15952 rm -f conftest$ac_exeext
15953 if { (ac_try="$ac_link"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_link") 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 ac_cv_huge_val_sanity=yes
15974 echo "$as_me: program exited with status $ac_status" >&5
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ( exit $ac_status )
15979 ac_cv_huge_val_sanity=no
15981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15985 CXXFLAGS=$ac_save_CXXFLAGS
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
15995 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
15996 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
15999 { echo "$as_me:$LINENO: checking for pid_t" >&5
16000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16001 if test "${ac_cv_type_pid_t+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 $ac_includes_default
16011 typedef pid_t ac__type_new_;
16015 if ((ac__type_new_ *) 0)
16017 if (sizeof (ac__type_new_))
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1 >conftest.err
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest.$ac_objext'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_type_pid_t=yes
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_cv_type_pid_t=no
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16068 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16069 if test $ac_cv_type_pid_t = yes; then
16073 cat >>confdefs.h <<_ACEOF
16079 { echo "$as_me:$LINENO: checking for size_t" >&5
16080 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16081 if test "${ac_cv_type_size_t+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 $ac_includes_default
16091 typedef size_t ac__type_new_;
16095 if ((ac__type_new_ *) 0)
16097 if (sizeof (ac__type_new_))
16103 rm -f conftest.$ac_objext
16104 if { (ac_try="$ac_compile"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_compile") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16118 { (case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_try") 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; } &&
16127 { ac_try='test -s conftest.$ac_objext'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_type_size_t=yes
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_type_size_t=no
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16148 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16149 if test $ac_cv_type_size_t = yes; then
16153 cat >>confdefs.h <<_ACEOF
16154 #define size_t unsigned int
16160 cat >>confdefs.h <<_ACEOF
16161 #define RETSIGTYPE void
16164 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16166 if test "${ac_cv_struct_tm+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <sys/types.h>
16181 struct tm *tp; tp->tm_sec;
16186 rm -f conftest.$ac_objext
16187 if { (ac_try="$ac_compile"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_struct_tm=time.h
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_cv_struct_tm=sys/time.h
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16231 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16232 if test $ac_cv_struct_tm = sys/time.h; then
16234 cat >>confdefs.h <<\_ACEOF
16235 #define TM_IN_SYS_TIME 1
16240 { echo "$as_me:$LINENO: checking for int64_t" >&5
16241 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16242 if test "${ac_cv_type_int64_t+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 typedef int64_t ac__type_new_;
16256 if ((ac__type_new_ *) 0)
16258 if (sizeof (ac__type_new_))
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_try") 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_cv_type_int64_t=yes
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 ac_cv_type_int64_t=no
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16309 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16310 if test $ac_cv_type_int64_t = yes; then
16312 cat >>confdefs.h <<_ACEOF
16313 #define HAVE_INT64_T 1
16318 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16319 echo "$as_me: error: Type int64_t required but not found" >&2;}
16320 { (exit 1); exit 1; }; }
16323 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16324 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16325 if test "${ac_cv_type_uint64_t+set}" = set; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 $ac_includes_default
16335 typedef uint64_t ac__type_new_;
16339 if ((ac__type_new_ *) 0)
16341 if (sizeof (ac__type_new_))
16347 rm -f conftest.$ac_objext
16348 if { (ac_try="$ac_compile"
16349 case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16356 grep -v '^ *+' conftest.er1 >conftest.err
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_type_uint64_t=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_type_uint64_t=no
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16392 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16393 if test $ac_cv_type_uint64_t = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define HAVE_UINT64_T 1
16401 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16402 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16403 if test "${ac_cv_type_u_int64_t+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 $ac_includes_default
16413 typedef u_int64_t ac__type_new_;
16417 if ((ac__type_new_ *) 0)
16419 if (sizeof (ac__type_new_))
16425 rm -f conftest.$ac_objext
16426 if { (ac_try="$ac_compile"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_type_u_int64_t=yes
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_cv_type_u_int64_t=no
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16469 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16470 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16471 if test $ac_cv_type_u_int64_t = yes; then
16473 cat >>confdefs.h <<_ACEOF
16474 #define HAVE_U_INT64_T 1
16479 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16480 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16481 { (exit 1); exit 1; }; }
16495 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16511 #define $ac_func innocuous_$ac_func
16513 /* System header to define __stub macros and hopefully few prototypes,
16514 which can conflict with char $ac_func (); below.
16515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516 <limits.h> exists even on freestanding compilers. */
16519 # include <limits.h>
16521 # include <assert.h>
16526 /* Override any GCC internal prototype to avoid an error.
16527 Use char because int might match the return type of a GCC
16528 builtin and then its argument prototype would still apply. */
16533 /* The GNU C library defines this for functions which it implements
16534 to always fail with ENOSYS. Some functions are actually named
16535 something starting with __ and the normal name is an alias. */
16536 #if defined __stub_$ac_func || defined __stub___$ac_func
16543 return $ac_func ();
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_link") 2>conftest.er1
16557 grep -v '^ *+' conftest.er1 >conftest.err
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
16562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 eval "$as_ac_var=yes"
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 eval "$as_ac_var=no"
16590 rm -f core conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16593 ac_res=`eval echo '${'$as_ac_var'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16596 if test `eval echo '${'$as_ac_var'}'` = yes; then
16597 cat >>confdefs.h <<_ACEOF
16598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16608 for ac_func in powf fmodf strtof round
16610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16624 #define $ac_func innocuous_$ac_func
16626 /* System header to define __stub macros and hopefully few prototypes,
16627 which can conflict with char $ac_func (); below.
16628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16629 <limits.h> exists even on freestanding compilers. */
16632 # include <limits.h>
16634 # include <assert.h>
16639 /* Override any GCC internal prototype to avoid an error.
16640 Use char because int might match the return type of a GCC
16641 builtin and then its argument prototype would still apply. */
16646 /* The GNU C library defines this for functions which it implements
16647 to always fail with ENOSYS. Some functions are actually named
16648 something starting with __ and the normal name is an alias. */
16649 #if defined __stub_$ac_func || defined __stub___$ac_func
16656 return $ac_func ();
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_link") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest$ac_exeext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 eval "$as_ac_var=no"
16703 rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16706 ac_res=`eval echo '${'$as_ac_var'}'`
16707 { echo "$as_me:$LINENO: result: $ac_res" >&5
16708 echo "${ECHO_T}$ac_res" >&6; }
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710 cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16722 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 cat >conftest.$ac_ext <<_ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16738 #define $ac_func innocuous_$ac_func
16740 /* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char $ac_func (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16746 # include <limits.h>
16748 # include <assert.h>
16753 /* Override any GCC internal prototype to avoid an error.
16754 Use char because int might match the return type of a GCC
16755 builtin and then its argument prototype would still apply. */
16760 /* The GNU C library defines this for functions which it implements
16761 to always fail with ENOSYS. Some functions are actually named
16762 something starting with __ and the normal name is an alias. */
16763 #if defined __stub_$ac_func || defined __stub___$ac_func
16770 return $ac_func ();
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (ac_try="$ac_link"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_link") 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_try") 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 eval "$as_ac_var=yes"
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 eval "$as_ac_var=no"
16817 rm -f core conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16820 ac_res=`eval echo '${'$as_ac_var'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_var'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16834 for ac_func in isatty mkdtemp mkstemp
16836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16850 #define $ac_func innocuous_$ac_func
16852 /* System header to define __stub macros and hopefully few prototypes,
16853 which can conflict with char $ac_func (); below.
16854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855 <limits.h> exists even on freestanding compilers. */
16858 # include <limits.h>
16860 # include <assert.h>
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16872 /* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875 #if defined __stub_$ac_func || defined __stub___$ac_func
16882 return $ac_func ();
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 eval "$as_ac_var=yes"
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 eval "$as_ac_var=no"
16929 rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16949 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16965 #define $ac_func innocuous_$ac_func
16967 /* System header to define __stub macros and hopefully few prototypes,
16968 which can conflict with char $ac_func (); below.
16969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970 <limits.h> exists even on freestanding compilers. */
16973 # include <limits.h>
16975 # include <assert.h>
16980 /* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16987 /* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990 #if defined __stub_$ac_func || defined __stub___$ac_func
16997 return $ac_func ();
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 eval "$as_ac_var=yes"
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 eval "$as_ac_var=no"
17044 rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17047 ac_res=`eval echo '${'$as_ac_var'}'`
17048 { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050 if test `eval echo '${'$as_ac_var'}'` = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17061 for ac_func in strerror strerror_r setenv
17063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17077 #define $ac_func innocuous_$ac_func
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17085 # include <limits.h>
17087 # include <assert.h>
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17099 /* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102 #if defined __stub_$ac_func || defined __stub___$ac_func
17109 return $ac_func ();
17114 rm -f conftest.$ac_objext conftest$ac_exeext
17115 if { (ac_try="$ac_link"
17116 case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_link") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17129 { (case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_try") 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 eval "$as_ac_var=yes"
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 eval "$as_ac_var=no"
17156 rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17159 ac_res=`eval echo '${'$as_ac_var'}'`
17160 { echo "$as_me:$LINENO: result: $ac_res" >&5
17161 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_var'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17198 # include <limits.h>
17200 # include <assert.h>
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17222 return $ac_func ();
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 eval "$as_ac_var=no"
17269 rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17272 ac_res=`eval echo '${'$as_ac_var'}'`
17273 { echo "$as_me:$LINENO: result: $ac_res" >&5
17274 echo "${ECHO_T}$ac_res" >&6; }
17275 if test `eval echo '${'$as_ac_var'}'` = yes; then
17276 cat >>confdefs.h <<_ACEOF
17277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304 #define $ac_func innocuous_$ac_func
17306 /* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17312 # include <limits.h>
17314 # include <assert.h>
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17326 /* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17336 return $ac_func ();
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 eval "$as_ac_var=no"
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17397 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17398 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17399 if test "${llvm_cv_c_printf_a+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 ac_cpp='$CPP $CPPFLAGS'
17404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17408 if test "$cross_compiling" = yes; then
17409 llvmac_cv_c_printf_a=no
17411 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17420 #include <stdlib.h>
17426 volatile double A, B;
17430 sprintf(Buffer, "%a", A);
17434 if (A != 0x1.999999999999ap-4)
17441 rm -f conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17452 { (case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_try") 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 llvm_cv_c_printf_a=yes
17463 echo "$as_me: program exited with status $ac_status" >&5
17464 echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17467 ( exit $ac_status )
17468 llvmac_cv_c_printf_a=no
17470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17475 ac_cpp='$CPP $CPPFLAGS'
17476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17482 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17483 if test "$llvm_cv_c_printf_a" = "yes"; then
17485 cat >>confdefs.h <<\_ACEOF
17486 #define HAVE_PRINTF_A 1
17492 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17493 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17494 if test "${ac_cv_func_rand48+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 ac_cpp='$CXXCPP $CPPFLAGS'
17499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <stdlib.h>
17513 srand48(0);lrand48();drand48();
17518 rm -f conftest.$ac_objext
17519 if { (ac_try="$ac_compile"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_compile") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_cv_func_rand48=yes
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_cv_func_rand48=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17562 ac_cpp='$CPP $CPPFLAGS'
17563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17569 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17571 if test "$ac_cv_func_rand48" = "yes" ; then
17573 cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_RAND48 1
17580 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17581 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17582 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17596 char *p = (char *) strerror_s;
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_try") 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_have_decl_strerror_s=yes
17640 echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_cv_have_decl_strerror_s=no
17646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17649 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17650 if test $ac_cv_have_decl_strerror_s = yes; then
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_DECL_STRERROR_S 1
17658 cat >>confdefs.h <<_ACEOF
17659 #define HAVE_DECL_STRERROR_S 0
17667 if test "$llvm_cv_os_type" = "MingW" ; then
17668 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17669 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17670 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 ac_check_lib_save_LIBS=$LIBS
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_lib_gcc__alloca=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_cv_lib_gcc__alloca=no
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17743 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17744 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17745 if test $ac_cv_lib_gcc__alloca = yes; then
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE__ALLOCA 1
17753 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17754 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17755 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_check_lib_save_LIBS=$LIBS
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17767 /* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17777 return __alloca ();
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797 { (case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_try") 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
17807 { (case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_try") 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_lib_gcc___alloca=yes
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17821 ac_cv_lib_gcc___alloca=no
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 LIBS=$ac_check_lib_save_LIBS
17828 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17829 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17830 if test $ac_cv_lib_gcc___alloca = yes; then
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE___ALLOCA 1
17838 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17839 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17840 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 ac_check_lib_save_LIBS=$LIBS
17845 cat >conftest.$ac_ext <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17852 /* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17862 return __chkstk ();
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_link") 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } &&
17881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17882 { (case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_try") 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; } &&
17891 { ac_try='test -s conftest$ac_exeext'
17892 { (case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_try") 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_cv_lib_gcc___chkstk=yes
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ac_cv_lib_gcc___chkstk=no
17909 rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17914 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17915 if test $ac_cv_lib_gcc___chkstk = yes; then
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE___CHKSTK 1
17923 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17924 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17925 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 ac_check_lib_save_LIBS=$LIBS
17930 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17947 return ___chkstk ();
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
17977 { (case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_try") 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_cv_lib_gcc____chkstk=yes
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 ac_cv_lib_gcc____chkstk=no
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17998 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
17999 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18000 if test $ac_cv_lib_gcc____chkstk = yes; then
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE____CHKSTK 1
18009 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18010 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18011 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 ac_check_lib_save_LIBS=$LIBS
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 /* Override any GCC internal prototype to avoid an error.
18024 Use char because int might match the return type of a GCC
18025 builtin and then its argument prototype would still apply. */
18033 return __ashldi3 ();
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_lib_gcc___ashldi3=yes
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_cv_lib_gcc___ashldi3=no
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 LIBS=$ac_check_lib_save_LIBS
18084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18085 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18086 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE___ASHLDI3 1
18094 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18095 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18096 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 ac_check_lib_save_LIBS=$LIBS
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18108 /* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18118 return __ashrdi3 ();
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138 { (case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_try") 2>&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_try") 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_lib_gcc___ashrdi3=yes
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162 ac_cv_lib_gcc___ashrdi3=no
18165 rm -f core conftest.err conftest.$ac_objext \
18166 conftest$ac_exeext conftest.$ac_ext
18167 LIBS=$ac_check_lib_save_LIBS
18169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18170 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18171 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18173 cat >>confdefs.h <<\_ACEOF
18174 #define HAVE___ASHRDI3 1
18179 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18180 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18181 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 ac_check_lib_save_LIBS=$LIBS
18186 cat >conftest.$ac_ext <<_ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18203 return __divdi3 ();
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (ac_try="$ac_link"
18210 case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_link") 2>conftest.er1
18217 grep -v '^ *+' conftest.er1 >conftest.err
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 ac_cv_lib_gcc___divdi3=yes
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18247 ac_cv_lib_gcc___divdi3=no
18250 rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252 LIBS=$ac_check_lib_save_LIBS
18254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18255 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18256 if test $ac_cv_lib_gcc___divdi3 = yes; then
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE___DIVDI3 1
18264 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18265 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18266 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_check_lib_save_LIBS=$LIBS
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18288 return __fixdfdi ();
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18308 { (case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_try") 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest$ac_exeext'
18318 { (case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_try") 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_gcc___fixdfdi=yes
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 ac_cv_lib_gcc___fixdfdi=no
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18337 LIBS=$ac_check_lib_save_LIBS
18339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18340 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18341 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE___FIXDFDI 1
18349 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18350 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18351 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 ac_check_lib_save_LIBS=$LIBS
18356 cat >conftest.$ac_ext <<_ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18363 /* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18373 return __fixsfdi ();
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (ac_try="$ac_link"
18380 case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_link") 2>conftest.er1
18387 grep -v '^ *+' conftest.er1 >conftest.err
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18393 { (case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_try") 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_try") 2>&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_lib_gcc___fixsfdi=yes
18414 echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 ac_cv_lib_gcc___fixsfdi=no
18420 rm -f core conftest.err conftest.$ac_objext \
18421 conftest$ac_exeext conftest.$ac_ext
18422 LIBS=$ac_check_lib_save_LIBS
18424 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18425 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18426 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE___FIXSFDI 1
18434 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18435 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18436 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 ac_check_lib_save_LIBS=$LIBS
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18448 /* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18454 char __floatdidf ();
18458 return __floatdidf ();
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_link") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest$ac_exeext'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_cv_lib_gcc___floatdidf=yes
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ac_cv_lib_gcc___floatdidf=no
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18507 LIBS=$ac_check_lib_save_LIBS
18509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18510 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18511 if test $ac_cv_lib_gcc___floatdidf = yes; then
18513 cat >>confdefs.h <<\_ACEOF
18514 #define HAVE___FLOATDIDF 1
18519 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18520 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18521 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 ac_check_lib_save_LIBS=$LIBS
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18543 return __lshrdi3 ();
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_lib_gcc___lshrdi3=yes
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 ac_cv_lib_gcc___lshrdi3=no
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592 LIBS=$ac_check_lib_save_LIBS
18594 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18595 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18596 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE___LSHRDI3 1
18604 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18605 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18606 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 ac_check_lib_save_LIBS=$LIBS
18611 cat >conftest.$ac_ext <<_ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18618 /* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18628 return __moddi3 ();
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_lib_gcc___moddi3=yes
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 ac_cv_lib_gcc___moddi3=no
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_check_lib_save_LIBS
18679 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18680 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18681 if test $ac_cv_lib_gcc___moddi3 = yes; then
18683 cat >>confdefs.h <<\_ACEOF
18684 #define HAVE___MODDI3 1
18689 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18690 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18691 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 ac_check_lib_save_LIBS=$LIBS
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18703 /* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18713 return __udivdi3 ();
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_try") 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_try") 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_lib_gcc___udivdi3=yes
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 ac_cv_lib_gcc___udivdi3=no
18760 rm -f core conftest.err conftest.$ac_objext \
18761 conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18764 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18765 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18766 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE___UDIVDI3 1
18774 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18775 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18776 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 ac_check_lib_save_LIBS=$LIBS
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18788 /* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18798 return __umoddi3 ();
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_cv_lib_gcc___umoddi3=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_lib_gcc___umoddi3=no
18845 rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18849 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18850 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18851 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE___UMODDI3 1
18860 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18861 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18862 if test "${ac_cv_lib_gcc___main+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 ac_check_lib_save_LIBS=$LIBS
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_lib_gcc___main=yes
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 ac_cv_lib_gcc___main=no
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18935 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18936 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18937 if test $ac_cv_lib_gcc___main = yes; then
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE___MAIN 1
18945 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18946 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18947 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 ac_check_lib_save_LIBS=$LIBS
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18959 /* Override any GCC internal prototype to avoid an error.
18960 Use char because int might match the return type of a GCC
18961 builtin and then its argument prototype would still apply. */
18969 return __cmpdi2 ();
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
18988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18989 { (case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_try") 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest$ac_exeext'
18999 { (case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_try") 2>&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_gcc___cmpdi2=yes
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_cv_lib_gcc___cmpdi2=no
19016 rm -f core conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19020 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19021 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19022 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE___CMPDI2 1
19032 if test "$llvm_cv_os_type" = "MingW" ; then
19033 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19034 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19035 cat >conftest.$ac_ext <<_ACEOF
19036 #include <windows.h>
19037 #include <imagehlp.h>
19038 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19039 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19041 rm -f conftest.$ac_objext
19042 if { (ac_try="$ac_compile"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_compile") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest.$ac_objext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19076 { echo "$as_me:$LINENO: result: yes" >&5
19077 echo "${ECHO_T}yes" >&6; }
19078 llvm_cv_win32_elmcb_pcstr="PCSTR"
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19085 { echo "$as_me:$LINENO: result: no" >&5
19086 echo "${ECHO_T}no" >&6; }
19087 llvm_cv_win32_elmcb_pcstr="PSTR"
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093 cat >>confdefs.h <<_ACEOF
19094 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19100 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19101 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19102 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 ac_cpp='$CXXCPP $CPPFLAGS'
19107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_func_isnan_in_math_h=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_func_isnan_in_math_h=no
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170 ac_cpp='$CPP $CPPFLAGS'
19171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19176 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19177 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19180 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19182 cat >>confdefs.h <<\_ACEOF
19183 #define HAVE_ISNAN_IN_MATH_H 1
19188 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19189 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19190 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 ac_cpp='$CXXCPP $CPPFLAGS'
19195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_compile") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1 >conftest.err
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } &&
19228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest.$ac_objext'
19239 { (case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_try") 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_func_isnan_in_cmath=yes
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ac_cv_func_isnan_in_cmath=no
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258 ac_cpp='$CPP $CPPFLAGS'
19259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19265 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19267 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19269 cat >>confdefs.h <<\_ACEOF
19270 #define HAVE_ISNAN_IN_CMATH 1
19275 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19276 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19277 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19296 float f; std::isnan(f);
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_compile") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_func_std_isnan_in_cmath=yes
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_func_std_isnan_in_cmath=no
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 ac_cpp='$CPP $CPPFLAGS'
19346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19351 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19352 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19354 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19356 cat >>confdefs.h <<\_ACEOF
19357 #define HAVE_STD_ISNAN_IN_CMATH 1
19363 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19364 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19365 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_cpp='$CXXCPP $CPPFLAGS'
19370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_compile") 2>conftest.er1
19398 grep -v '^ *+' conftest.er1 >conftest.err
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
19414 { (case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_func_isinf_in_math_h=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_cv_func_isinf_in_math_h=no
19431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433 ac_cpp='$CPP $CPPFLAGS'
19434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19439 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19440 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19442 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_ISINF_IN_MATH_H 1
19450 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19451 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19452 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 ac_cpp='$CXXCPP $CPPFLAGS'
19457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_func_isinf_in_cmath=yes
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 ac_cv_func_isinf_in_cmath=no
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19526 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19527 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19529 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_ISINF_IN_CMATH 1
19537 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19538 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 ac_cpp='$CXXCPP $CPPFLAGS'
19544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19558 float f; std::isinf(f)}
19563 rm -f conftest.$ac_objext
19564 if { (ac_try="$ac_compile"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_compile") 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19578 { (case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_try") 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 ac_cv_func_std_isinf_in_cmath=yes
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_func_std_isinf_in_cmath=no
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607 ac_cpp='$CPP $CPPFLAGS'
19608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19613 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19614 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19616 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19618 cat >>confdefs.h <<\_ACEOF
19619 #define HAVE_STD_ISINF_IN_CMATH 1
19624 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19625 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19626 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 ac_cpp='$CXXCPP $CPPFLAGS'
19631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19635 cat >conftest.$ac_ext <<_ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 #include <ieeefp.h>
19645 float f; finite(f);
19650 rm -f conftest.$ac_objext
19651 if { (ac_try="$ac_compile"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_compile") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_cv_func_finite_in_ieeefp_h=yes
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_cv_func_finite_in_ieeefp_h=no
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 ac_cpp='$CPP $CPPFLAGS'
19695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19700 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19701 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19703 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_FINITE_IN_IEEEFP_H 1
19713 if test "$llvm_cv_platform_type" = "Unix" ; then
19716 for ac_header in stdlib.h unistd.h
19718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 ac_res=`eval echo '${'$as_ac_Header'}'`
19726 { echo "$as_me:$LINENO: result: $ac_res" >&5
19727 echo "${ECHO_T}$ac_res" >&6; }
19729 # Is the header compilable?
19730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 $ac_includes_default
19739 #include <$ac_header>
19741 rm -f conftest.$ac_objext
19742 if { (ac_try="$ac_compile"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest.$ac_objext'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_header_compiler=yes
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 ac_header_compiler=no
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 echo "${ECHO_T}$ac_header_compiler" >&6; }
19787 # Is the header present?
19788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19798 if { (ac_try="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_c_preproc_warn_flag
19813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19820 if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_preproc=no
19829 rm -f conftest.err conftest.$ac_ext
19830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19831 echo "${ECHO_T}$ac_header_preproc" >&6; }
19833 # So? What about this header?
19834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19840 ac_header_preproc=yes
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19856 ## ------------------------------ ##
19857 ## Report this to bugs@yourdomain ##
19858 ## ------------------------------ ##
19860 ) | sed "s/^/$as_me: WARNING: /" >&2
19863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 eval "$as_ac_Header=\$ac_header_preproc"
19870 ac_res=`eval echo '${'$as_ac_Header'}'`
19871 { echo "$as_me:$LINENO: result: $ac_res" >&5
19872 echo "${ECHO_T}$ac_res" >&6; }
19875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 for ac_func in getpagesize
19887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19901 #define $ac_func innocuous_$ac_func
19903 /* System header to define __stub macros and hopefully few prototypes,
19904 which can conflict with char $ac_func (); below.
19905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19906 <limits.h> exists even on freestanding compilers. */
19909 # include <limits.h>
19911 # include <assert.h>
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19923 /* The GNU C library defines this for functions which it implements
19924 to always fail with ENOSYS. Some functions are actually named
19925 something starting with __ and the normal name is an alias. */
19926 #if defined __stub_$ac_func || defined __stub___$ac_func
19933 return $ac_func ();
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
19952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest$ac_exeext'
19963 { (case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_try") 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 eval "$as_ac_var=yes"
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 eval "$as_ac_var=no"
19980 rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19983 ac_res=`eval echo '${'$as_ac_var'}'`
19984 { echo "$as_me:$LINENO: result: $ac_res" >&5
19985 echo "${ECHO_T}$ac_res" >&6; }
19986 if test `eval echo '${'$as_ac_var'}'` = yes; then
19987 cat >>confdefs.h <<_ACEOF
19988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19994 { echo "$as_me:$LINENO: checking for working mmap" >&5
19995 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19996 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 if test "$cross_compiling" = yes; then
20000 ac_cv_func_mmap_fixed_mapped=no
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008 $ac_includes_default
20009 /* malloc might have been renamed as rpl_malloc. */
20012 /* Thanks to Mike Haertel and Jim Avera for this test.
20013 Here is a matrix of mmap possibilities:
20014 mmap private not fixed
20015 mmap private fixed at somewhere currently unmapped
20016 mmap private fixed at somewhere already mapped
20017 mmap shared not fixed
20018 mmap shared fixed at somewhere currently unmapped
20019 mmap shared fixed at somewhere already mapped
20020 For private mappings, we should verify that changes cannot be read()
20021 back from the file, nor mmap's back from the file at a different
20022 address. (There have been systems where private was not correctly
20023 implemented like the infamous i386 svr4.0, and systems where the
20024 VM page cache was not coherent with the file system buffer cache
20025 like early versions of FreeBSD and possibly contemporary NetBSD.)
20026 For shared mappings, we should conversely verify that changes get
20027 propagated back to all the places they're supposed to be.
20029 Grep wants private fixed already mapped.
20030 The main things grep needs to know about mmap are:
20031 * does it exist and is it safe to write into the mmap'd area
20032 * how to use it (BSD variants) */
20035 #include <sys/mman.h>
20037 #if !STDC_HEADERS && !HAVE_STDLIB_H
20041 /* This mess was copied from the GNU getpagesize.h. */
20042 #if !HAVE_GETPAGESIZE
20043 /* Assume that all systems that can run configure have sys/param.h. */
20044 # if !HAVE_SYS_PARAM_H
20045 # define HAVE_SYS_PARAM_H 1
20048 # ifdef _SC_PAGESIZE
20049 # define getpagesize() sysconf(_SC_PAGESIZE)
20050 # else /* no _SC_PAGESIZE */
20051 # if HAVE_SYS_PARAM_H
20052 # include <sys/param.h>
20053 # ifdef EXEC_PAGESIZE
20054 # define getpagesize() EXEC_PAGESIZE
20055 # else /* no EXEC_PAGESIZE */
20057 # define getpagesize() NBPG * CLSIZE
20060 # endif /* no CLSIZE */
20061 # else /* no NBPG */
20063 # define getpagesize() NBPC
20064 # else /* no NBPC */
20066 # define getpagesize() PAGESIZE
20067 # endif /* PAGESIZE */
20068 # endif /* no NBPC */
20069 # endif /* no NBPG */
20070 # endif /* no EXEC_PAGESIZE */
20071 # else /* no HAVE_SYS_PARAM_H */
20072 # define getpagesize() 8192 /* punt totally */
20073 # endif /* no HAVE_SYS_PARAM_H */
20074 # endif /* no _SC_PAGESIZE */
20076 #endif /* no HAVE_GETPAGESIZE */
20081 char *data, *data2, *data3;
20085 pagesize = getpagesize ();
20087 /* First, make a file with some known garbage in it. */
20088 data = (char *) malloc (pagesize);
20091 for (i = 0; i < pagesize; ++i)
20092 *(data + i) = rand ();
20094 fd = creat ("conftest.mmap", 0600);
20097 if (write (fd, data, pagesize) != pagesize)
20101 /* Next, try to mmap the file at a fixed address which already has
20102 something else allocated at it. If we can, also make sure that
20103 we see the same garbage. */
20104 fd = open ("conftest.mmap", O_RDWR);
20107 data2 = (char *) malloc (2 * pagesize);
20110 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20111 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20112 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20114 for (i = 0; i < pagesize; ++i)
20115 if (*(data + i) != *(data2 + i))
20118 /* Finally, make sure that changes to the mapped area do not
20119 percolate back to the file as seen by read(). (This is a bug on
20120 some variants of i386 svr4.0.) */
20121 for (i = 0; i < pagesize; ++i)
20122 *(data2 + i) = *(data2 + i) + 1;
20123 data3 = (char *) malloc (pagesize);
20126 if (read (fd, data3, pagesize) != pagesize)
20128 for (i = 0; i < pagesize; ++i)
20129 if (*(data + i) != *(data3 + i))
20135 rm -f conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_func_mmap_fixed_mapped=yes
20157 echo "$as_me: program exited with status $ac_status" >&5
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ( exit $ac_status )
20162 ac_cv_func_mmap_fixed_mapped=no
20164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20170 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20171 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_MMAP 1
20178 rm -f conftest.mmap
20180 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20181 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20182 if test "${ac_cv_func_mmap_file+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 ac_cpp='$CPP $CPPFLAGS'
20187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191 if test "$cross_compiling" = yes; then
20192 ac_cv_func_mmap_file=no
20194 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20202 #include <sys/types.h>
20203 #include <sys/mman.h>
20211 fd = creat ("foo",0777);
20212 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20214 return (fd != (int) MAP_FAILED);
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_file=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_file=no
20248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 ac_cpp='$CPP $CPPFLAGS'
20254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20260 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20261 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20262 if test "$ac_cv_func_mmap_file" = yes; then
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE_MMAP_FILE
20272 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20273 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20274 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 if test "$llvm_cv_os_type" = "Interix" ; then
20278 ac_cv_need_dev_zero_for_mmap=yes
20280 ac_cv_need_dev_zero_for_mmap=no
20284 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20285 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20286 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20288 cat >>confdefs.h <<\_ACEOF
20289 #define NEED_DEV_ZERO_FOR_MMAP 1
20294 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20296 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20297 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20299 if test "$ac_cv_func_mmap_file" = "no"
20301 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20302 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20306 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20307 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20309 ac_cpp='$CXXCPP $CPPFLAGS'
20310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20314 cat >conftest.$ac_ext <<_ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h. */
20321 volatile unsigned long val = 1;
20322 __sync_synchronize();
20323 __sync_val_compare_and_swap(&val, 1, 0);
20324 __sync_add_and_fetch(&val, 1);
20325 __sync_sub_and_fetch(&val, 1);
20330 rm -f conftest.$ac_objext conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20345 { (case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_try") 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; } &&
20354 { ac_try='test -s conftest$ac_exeext'
20355 { (case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_try") 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20370 { echo "$as_me:$LINENO: result: yes" >&5
20371 echo "${ECHO_T}yes" >&6; }
20373 cat >>confdefs.h <<\_ACEOF
20374 #define LLVM_HAS_ATOMICS 1
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 { echo "$as_me:$LINENO: result: no" >&5
20382 echo "${ECHO_T}no" >&6; }
20384 cat >>confdefs.h <<\_ACEOF
20385 #define LLVM_HAS_ATOMICS 0
20388 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20389 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20392 rm -f core conftest.err conftest.$ac_objext \
20393 conftest$ac_exeext conftest.$ac_ext
20396 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20397 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20398 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20399 if test "${llvm_cv_linux_mixed+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 ac_cpp='$CPP $CPPFLAGS'
20404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 error: Not x86-64 even if uname says so!
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_compile") 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_try") 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 llvm_cv_linux_mixed=no
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 llvm_cv_linux_mixed=yes
20468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 ac_cpp='$CPP $CPPFLAGS'
20471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20477 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20478 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20480 if test "$llvm_cv_linux_mixed" = "yes"; then
20481 llvm_cv_target_arch="x86"
20487 for ac_func in __dso_handle
20489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20503 #define $ac_func innocuous_$ac_func
20505 /* System header to define __stub macros and hopefully few prototypes,
20506 which can conflict with char $ac_func (); below.
20507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20508 <limits.h> exists even on freestanding compilers. */
20511 # include <limits.h>
20513 # include <assert.h>
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20525 /* The GNU C library defines this for functions which it implements
20526 to always fail with ENOSYS. Some functions are actually named
20527 something starting with __ and the normal name is an alias. */
20528 #if defined __stub_$ac_func || defined __stub___$ac_func
20535 return $ac_func ();
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest$ac_exeext'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 eval "$as_ac_var=yes"
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 eval "$as_ac_var=no"
20582 rm -f core conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20585 ac_res=`eval echo '${'$as_ac_var'}'`
20586 { echo "$as_me:$LINENO: result: $ac_res" >&5
20587 echo "${ECHO_T}$ac_res" >&6; }
20588 if test `eval echo '${'$as_ac_var'}'` = yes; then
20589 cat >>confdefs.h <<_ACEOF
20590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20597 SHLIBEXT=$libltdl_cv_shlibext
20600 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20603 # Translate the various configuration directories and other basic
20604 # information into substitutions that will end up in Makefile.config.in
20605 # that these configured values can be used by the makefiles
20606 if test "${prefix}" = "NONE" ; then
20607 prefix="/usr/local"
20609 eval LLVM_PREFIX="${prefix}";
20610 eval LLVM_BINDIR="${prefix}/bin";
20611 eval LLVM_LIBDIR="${prefix}/lib";
20612 eval LLVM_DATADIR="${prefix}/share/llvm";
20613 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20614 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20615 eval LLVM_INCLUDEDIR="${prefix}/include";
20616 eval LLVM_INFODIR="${prefix}/info";
20617 eval LLVM_MANDIR="${prefix}/man";
20618 LLVM_CONFIGTIME=`date`
20630 # Place the various directores into the config.h file as #defines so that we
20631 # can know about the installation paths within LLVM.
20633 cat >>confdefs.h <<_ACEOF
20634 #define LLVM_PREFIX "$LLVM_PREFIX"
20638 cat >>confdefs.h <<_ACEOF
20639 #define LLVM_BINDIR "$LLVM_BINDIR"
20643 cat >>confdefs.h <<_ACEOF
20644 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20648 cat >>confdefs.h <<_ACEOF
20649 #define LLVM_DATADIR "$LLVM_DATADIR"
20653 cat >>confdefs.h <<_ACEOF
20654 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20658 cat >>confdefs.h <<_ACEOF
20659 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20663 cat >>confdefs.h <<_ACEOF
20664 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20668 cat >>confdefs.h <<_ACEOF
20669 #define LLVM_INFODIR "$LLVM_INFODIR"
20673 cat >>confdefs.h <<_ACEOF
20674 #define LLVM_MANDIR "$LLVM_MANDIR"
20678 cat >>confdefs.h <<_ACEOF
20679 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20683 cat >>confdefs.h <<_ACEOF
20684 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20688 # Determine which bindings to build.
20689 if test "$BINDINGS_TO_BUILD" = auto ; then
20690 BINDINGS_TO_BUILD=""
20691 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20692 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20695 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20698 # This isn't really configurey, but it avoids having to repeat the list in
20703 # Do any work necessary to ensure that bindings have what they need.
20704 binding_prereqs_failed=0
20705 for a_binding in $BINDINGS_TO_BUILD ; do
20706 case "$a_binding" in
20708 if test "x$OCAMLC" = x ; then
20709 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20710 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20711 binding_prereqs_failed=1
20713 if test "x$OCAMLDEP" = x ; then
20714 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20715 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20716 binding_prereqs_failed=1
20718 if test "x$OCAMLOPT" = x ; then
20719 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20720 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20722 if test "x$with_ocaml_libdir" != xauto ; then
20723 OCAML_LIBDIR=$with_ocaml_libdir
20726 ocaml_stdlib="`"$OCAMLC" -where`"
20727 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20729 # ocaml stdlib is beneath our prefix; use stdlib
20730 OCAML_LIBDIR=$ocaml_stdlib
20733 # ocaml stdlib is outside our prefix; use libdir/ocaml
20734 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20741 if test "$binding_prereqs_failed" = 1 ; then
20742 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20743 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20744 { (exit 1); exit 1; }; }
20747 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20748 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20749 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20758 oldcxxflags="$CXXFLAGS"
20759 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 llvm_cv_cxx_visibility_inlines_hidden=yes
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 llvm_cv_cxx_visibility_inlines_hidden=no
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 CXXFLAGS="$oldcxxflags"
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20827 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20828 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20829 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20830 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20833 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20838 if test "$llvm_cv_link_use_r" = "yes" ; then
20845 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20846 RDYNAMIC="-Wl,-export-dynamic"
20854 ac_config_files="$ac_config_files Makefile.common"
20856 ac_config_files="$ac_config_files Makefile.llvm.config"
20859 ac_config_commands="$ac_config_commands Makefile"
20862 ac_config_commands="$ac_config_commands lib/Makefile"
20865 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20868 ac_config_commands="$ac_config_commands tools/Makefile"
20871 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20875 cat >confcache <<\_ACEOF
20876 # This file is a shell script that caches the results of configure
20877 # tests run on this system so they can be shared between configure
20878 # scripts and configure runs, see configure's option --config-cache.
20879 # It is not useful on other systems. If it contains results you don't
20880 # want to keep, you may remove or edit it.
20882 # config.status only pays attention to the cache file if you give it
20883 # the --recheck option to rerun configure.
20885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20887 # following values.
20891 # The following way of writing the cache mishandles newlines in values,
20892 # but we know of no workaround that is simple, portable, and efficient.
20893 # So, we kill variables containing newlines.
20894 # Ultrix sh set writes to stderr and can't be redirected directly,
20895 # and sets the high bit in the cache file unless we assign to the vars.
20897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20898 eval ac_val=\$$ac_var
20902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20903 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20906 _ | IFS | as_nl) ;; #(
20907 *) $as_unset $ac_var ;;
20913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20914 *${as_nl}ac_space=\ *)
20915 # `set' does not quote correctly, so add quotes (double-quote
20916 # substitution turns \\\\ into \\, and sed turns \\ into \).
20919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20922 # `set' quotes correctly as required by POSIX, so do not add quotes.
20923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20937 if test -w "$cache_file"; then
20938 test "x$cache_file" != "x/dev/null" &&
20939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20940 echo "$as_me: updating cache $cache_file" >&6;}
20941 cat confcache >$cache_file
20943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20944 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20950 # Let make expand exec_prefix.
20951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20953 # Transform confdefs.h into DEFS.
20954 # Protect against shell expansion while executing Makefile rules.
20955 # Protect against Makefile macro expansion.
20957 # If the first sed substitution is executed (which looks for macros that
20958 # take arguments), then branch to the quote section. Otherwise,
20959 # look for a macro that doesn't take arguments.
20963 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20965 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20969 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20982 DEFS=`sed -n "$ac_script" confdefs.h`
20987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20988 # 1. Remove the extension, and $U if already installed.
20989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20990 ac_i=`echo "$ac_i" | sed "$ac_script"`
20991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20992 # will be set to the directory where LIBOBJS objects are built.
20993 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20994 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20996 LIBOBJS=$ac_libobjs
20998 LTLIBOBJS=$ac_ltlibobjs
21001 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21002 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
21008 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21009 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21010 Usually this means the macro was only invoked conditionally." >&5
21011 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21012 Usually this means the macro was only invoked conditionally." >&2;}
21013 { (exit 1); exit 1; }; }
21016 : ${CONFIG_STATUS=./config.status}
21017 ac_clean_files_save=$ac_clean_files
21018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21019 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21020 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21021 cat >$CONFIG_STATUS <<_ACEOF
21023 # Generated by $as_me.
21024 # Run this file to recreate the current configuration.
21025 # Compiler output produced by configure, useful for debugging
21026 # configure, is in config.log if it exists.
21029 ac_cs_recheck=false
21031 SHELL=\${CONFIG_SHELL-$SHELL}
21034 cat >>$CONFIG_STATUS <<\_ACEOF
21035 ## --------------------- ##
21036 ## M4sh Initialization. ##
21037 ## --------------------- ##
21039 # Be Bourne compatible
21040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21043 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21044 # is contrary to our usage. Disable this feature.
21045 alias -g '${1+"$@"}'='"$@"'
21046 setopt NO_GLOB_SUBST
21048 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21050 BIN_SH=xpg4; export BIN_SH # for Tru64
21051 DUALCASE=1; export DUALCASE # for MKS sh
21055 # Avoid depending upon Character Ranges.
21056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21059 as_cr_digits='0123456789'
21060 as_cr_alnum=$as_cr_Letters$as_cr_digits
21062 # The user is always right.
21063 if test "${PATH_SEPARATOR+set}" != set; then
21064 echo "#! /bin/sh" >conf$$.sh
21065 echo "exit 0" >>conf$$.sh
21067 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21075 # Support unset when possible.
21076 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21084 # We need space, tab and new line, in precisely that order. Quoting is
21085 # there to prevent editors from complaining about space-tab.
21086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21087 # splitting by setting IFS to empty value.)
21092 # Find who we are. Look in the path if we contain no directory separator.
21094 *[\\/]* ) as_myself=$0 ;;
21095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21096 for as_dir in $PATH
21099 test -z "$as_dir" && as_dir=.
21100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21106 # We did not find ourselves, most probably we were run as `sh COMMAND'
21107 # in which case we are not to be found in the path.
21108 if test "x$as_myself" = x; then
21111 if test ! -f "$as_myself"; then
21112 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21113 { (exit 1); exit 1; }
21116 # Work around bugs in pre-3.0 UWIN ksh.
21117 for as_var in ENV MAIL MAILPATH
21118 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21126 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21127 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21128 LC_TELEPHONE LC_TIME
21130 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21131 eval $as_var=C; export $as_var
21133 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21137 # Required to use basename.
21138 if expr a : '\(a\)' >/dev/null 2>&1 &&
21139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21146 as_basename=basename
21152 # Name of the executable.
21153 as_me=`$as_basename -- "$0" ||
21154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21155 X"$0" : 'X\(//\)$' \| \
21156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21158 sed '/^.*\/\([^/][^/]*\)\/*$/{
21177 as_lineno_1=$LINENO
21178 as_lineno_2=$LINENO
21179 test "x$as_lineno_1" != "x$as_lineno_2" &&
21180 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21182 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21183 # uniformly replaced by the line number. The first 'sed' inserts a
21184 # line-number line after each line using $LINENO; the second 'sed'
21185 # does the real work. The second script uses 'N' to pair each
21186 # line-number line with the line containing $LINENO, and appends
21187 # trailing '-' during substitution so that $LINENO is not a special
21188 # case at line end.
21189 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21190 # scripts with optimization help from Paolo Bonzini. Blame Lee
21191 # E. McMahon (1931-1989) for sed's syntax. :-)
21203 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21206 ' >$as_me.lineno &&
21207 chmod +x "$as_me.lineno" ||
21208 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21209 { (exit 1); exit 1; }; }
21211 # Don't try to exec as it changes $[0], causing all sort of problems
21212 # (the dirname of $[0] is not the place where we might find the
21213 # original and so on. Autoconf is especially sensitive to this).
21214 . "./$as_me.lineno"
21215 # Exit status is that of the last command.
21220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21226 ECHO_C= ECHO_N= ECHO_T=
21227 case `echo -n x` in
21229 case `echo 'x\c'` in
21230 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21237 if expr a : '\(a\)' >/dev/null 2>&1 &&
21238 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21244 rm -f conf$$ conf$$.exe conf$$.file
21245 if test -d conf$$.dir; then
21246 rm -f conf$$.dir/conf$$.file
21252 if ln -s conf$$.file conf$$ 2>/dev/null; then
21254 # ... but there are two gotchas:
21255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21257 # In both cases, we have to default to `cp -p'.
21258 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21260 elif ln conf$$.file conf$$ 2>/dev/null; then
21265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21266 rmdir conf$$.dir 2>/dev/null
21268 if mkdir -p . 2>/dev/null; then
21271 test -d ./-p && rmdir ./-p
21275 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21276 # systems may use methods other than mode bits to determine executability.
21277 cat >conf$$.file <<_ASEOF
21281 chmod +x conf$$.file
21282 if test -x conf$$.file >/dev/null 2>&1; then
21283 as_executable_p="test -x"
21289 # Sed expression to map a string onto a valid CPP name.
21290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21292 # Sed expression to map a string onto a valid variable name.
21293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21298 # Save the log message, to keep $[0] and so on meaningful, and to
21299 # report actual input values of CONFIG_FILES etc. instead of their
21300 # values after options handling.
21302 This file was extended by [SAMPLE] $as_me [x.xx], which was
21303 generated by GNU Autoconf 2.60. Invocation command line was
21305 CONFIG_FILES = $CONFIG_FILES
21306 CONFIG_HEADERS = $CONFIG_HEADERS
21307 CONFIG_LINKS = $CONFIG_LINKS
21308 CONFIG_COMMANDS = $CONFIG_COMMANDS
21311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21316 cat >>$CONFIG_STATUS <<_ACEOF
21317 # Files that config.status was made for.
21318 config_files="$ac_config_files"
21319 config_commands="$ac_config_commands"
21323 cat >>$CONFIG_STATUS <<\_ACEOF
21325 \`$as_me' instantiates files from templates according to the
21326 current configuration.
21328 Usage: $0 [OPTIONS] [FILE]...
21330 -h, --help print this help, then exit
21331 -V, --version print version number, then exit
21332 -q, --quiet do not print progress messages
21333 -d, --debug don't remove temporary files
21334 --recheck update $as_me by reconfiguring in the same conditions
21335 --file=FILE[:TEMPLATE]
21336 instantiate the configuration file FILE
21338 Configuration files:
21341 Configuration commands:
21344 Report bugs to <bug-autoconf@gnu.org>."
21347 cat >>$CONFIG_STATUS <<_ACEOF
21349 [SAMPLE] config.status [x.xx]
21350 configured by $0, generated by GNU Autoconf 2.60,
21351 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21353 Copyright (C) 2006 Free Software Foundation, Inc.
21354 This config.status script is free software; the Free Software Foundation
21355 gives unlimited permission to copy, distribute and modify it."
21362 cat >>$CONFIG_STATUS <<\_ACEOF
21363 # If no file are specified by the user, then we need to provide default
21364 # value. By we need to know if files were specified by the user.
21370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21382 # Handling of the options.
21383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21385 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21386 echo "$ac_cs_version"; exit ;;
21387 --debug | --debu | --deb | --de | --d | -d )
21389 --file | --fil | --fi | --f )
21391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21392 ac_need_defaults=false;;
21393 --he | --h | --help | --hel | -h )
21394 echo "$ac_cs_usage"; exit ;;
21395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21399 # This is an error.
21400 -*) { echo "$as_me: error: unrecognized option: $1
21401 Try \`$0 --help' for more information." >&2
21402 { (exit 1); exit 1; }; } ;;
21404 *) ac_config_targets="$ac_config_targets $1"
21405 ac_need_defaults=false ;;
21411 ac_configure_extra_args=
21413 if $ac_cs_silent; then
21415 ac_configure_extra_args="$ac_configure_extra_args --silent"
21419 cat >>$CONFIG_STATUS <<_ACEOF
21420 if \$ac_cs_recheck; then
21421 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21422 CONFIG_SHELL=$SHELL
21423 export CONFIG_SHELL
21424 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21428 cat >>$CONFIG_STATUS <<\_ACEOF
21432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21433 ## Running $as_me. ##
21439 cat >>$CONFIG_STATUS <<_ACEOF
21443 llvm_src="${LLVM_SRC}"
21447 cat >>$CONFIG_STATUS <<\_ACEOF
21449 # Handling of arguments.
21450 for ac_config_target in $ac_config_targets
21452 case $ac_config_target in
21453 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21454 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21455 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21456 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21458 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21459 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21460 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21462 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21463 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21464 { (exit 1); exit 1; }; };;
21469 # If the user did not use the arguments to specify the items to instantiate,
21470 # then the envvar interface is used. Set only those that are not.
21471 # We use the long form for the default assignment because of an extremely
21472 # bizarre bug on SunOS 4.1.3.
21473 if $ac_need_defaults; then
21474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21478 # Have a temporary directory for convenience. Make it in the build tree
21479 # simply because there is no reason against having it here, and in addition,
21480 # creating and moving files from /tmp can sometimes cause problems.
21481 # Hook for its removal unless debugging.
21482 # Note that there is a small window in which the directory will not be cleaned:
21483 # after its creation but before its name has been assigned to `$tmp'.
21487 trap 'exit_status=$?
21488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21490 trap '{ (exit 1); exit 1; }' 1 2 13 15
21492 # Create a (secure) tmp directory for tmp files.
21495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21496 test -n "$tmp" && test -d "$tmp"
21499 tmp=./conf$$-$RANDOM
21500 (umask 077 && mkdir "$tmp")
21503 echo "$me: cannot create a temporary directory in ." >&2
21504 { (exit 1); exit 1; }
21508 # Set up the sed scripts for CONFIG_FILES section.
21511 # No need to generate the scripts if there are no CONFIG_FILES.
21512 # This happens for instance when ./config.status config.h
21513 if test -n "$CONFIG_FILES"; then
21520 for ac_last_try in false false false false false :; do
21521 cat >conf$$subs.sed <<_ACEOF
21522 SHELL!$SHELL$ac_delim
21523 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21524 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21525 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21526 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21527 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21528 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21529 exec_prefix!$exec_prefix$ac_delim
21530 prefix!$prefix$ac_delim
21531 program_transform_name!$program_transform_name$ac_delim
21532 bindir!$bindir$ac_delim
21533 sbindir!$sbindir$ac_delim
21534 libexecdir!$libexecdir$ac_delim
21535 datarootdir!$datarootdir$ac_delim
21536 datadir!$datadir$ac_delim
21537 sysconfdir!$sysconfdir$ac_delim
21538 sharedstatedir!$sharedstatedir$ac_delim
21539 localstatedir!$localstatedir$ac_delim
21540 includedir!$includedir$ac_delim
21541 oldincludedir!$oldincludedir$ac_delim
21542 docdir!$docdir$ac_delim
21543 infodir!$infodir$ac_delim
21544 htmldir!$htmldir$ac_delim
21545 dvidir!$dvidir$ac_delim
21546 pdfdir!$pdfdir$ac_delim
21547 psdir!$psdir$ac_delim
21548 libdir!$libdir$ac_delim
21549 localedir!$localedir$ac_delim
21550 mandir!$mandir$ac_delim
21551 DEFS!$DEFS$ac_delim
21552 ECHO_C!$ECHO_C$ac_delim
21553 ECHO_N!$ECHO_N$ac_delim
21554 ECHO_T!$ECHO_T$ac_delim
21555 LIBS!$LIBS$ac_delim
21556 build_alias!$build_alias$ac_delim
21557 host_alias!$host_alias$ac_delim
21558 target_alias!$target_alias$ac_delim
21559 LLVM_SRC!$LLVM_SRC$ac_delim
21560 LLVM_OBJ!$LLVM_OBJ$ac_delim
21561 LLVM_VERSION!$LLVM_VERSION$ac_delim
21563 CFLAGS!$CFLAGS$ac_delim
21564 LDFLAGS!$LDFLAGS$ac_delim
21565 CPPFLAGS!$CPPFLAGS$ac_delim
21566 ac_ct_CC!$ac_ct_CC$ac_delim
21567 EXEEXT!$EXEEXT$ac_delim
21568 OBJEXT!$OBJEXT$ac_delim
21570 CXXFLAGS!$CXXFLAGS$ac_delim
21571 ac_ct_CXX!$ac_ct_CXX$ac_delim
21573 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21574 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21575 subdirs!$subdirs$ac_delim
21576 build!$build$ac_delim
21577 build_cpu!$build_cpu$ac_delim
21578 build_vendor!$build_vendor$ac_delim
21579 build_os!$build_os$ac_delim
21580 host!$host$ac_delim
21581 host_cpu!$host_cpu$ac_delim
21582 host_vendor!$host_vendor$ac_delim
21583 host_os!$host_os$ac_delim
21584 target!$target$ac_delim
21585 target_cpu!$target_cpu$ac_delim
21586 target_vendor!$target_vendor$ac_delim
21587 target_os!$target_os$ac_delim
21589 HOST_OS!$HOST_OS$ac_delim
21590 TARGET_OS!$TARGET_OS$ac_delim
21591 LINKALL!$LINKALL$ac_delim
21592 NOLINKALL!$NOLINKALL$ac_delim
21593 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595 ARCH!$ARCH$ac_delim
21596 ENDIAN!$ENDIAN$ac_delim
21597 GREP!$GREP$ac_delim
21598 EGREP!$EGREP$ac_delim
21599 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21600 BUILD_CC!$BUILD_CC$ac_delim
21601 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21602 BUILD_CXX!$BUILD_CXX$ac_delim
21603 CVSBUILD!$CVSBUILD$ac_delim
21604 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21605 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21606 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21607 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21608 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21609 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21610 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21612 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21613 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21614 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21615 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21616 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21617 ENABLE_PIC!$ENABLE_PIC$ac_delim
21618 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21623 elif $ac_last_try; then
21624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21626 { (exit 1); exit 1; }; }
21628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21633 if test -n "$ac_eof"; then
21634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21635 ac_eof=`expr $ac_eof + 1`
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21644 s/^/s,@/; s/!/@,|#_!!_#|/
21647 s/'"$ac_delim"'$/,g/; t
21649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21650 ' >>$CONFIG_STATUS <conf$$subs.sed
21651 rm -f conf$$subs.sed
21652 cat >>$CONFIG_STATUS <<_ACEOF
21658 for ac_last_try in false false false false false :; do
21659 cat >conf$$subs.sed <<_ACEOF
21660 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21661 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21662 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21663 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21664 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21665 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21666 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21667 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21668 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21669 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21670 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21672 ifGNUmake!$ifGNUmake$ac_delim
21673 LN_S!$LN_S$ac_delim
21676 DATE!$DATE$ac_delim
21677 FIND!$FIND$ac_delim
21678 MKDIR!$MKDIR$ac_delim
21680 RANLIB!$RANLIB$ac_delim
21685 BINPWD!$BINPWD$ac_delim
21686 GRAPHVIZ!$GRAPHVIZ$ac_delim
21689 NEATO!$NEATO$ac_delim
21690 TWOPI!$TWOPI$ac_delim
21691 CIRCO!$CIRCO$ac_delim
21693 DOTTY!$DOTTY$ac_delim
21694 XDOT_PY!$XDOT_PY$ac_delim
21695 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21696 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21697 INSTALL_DATA!$INSTALL_DATA$ac_delim
21698 BZIP2!$BZIP2$ac_delim
21700 DOXYGEN!$DOXYGEN$ac_delim
21701 GROFF!$GROFF$ac_delim
21702 GZIPBIN!$GZIPBIN$ac_delim
21703 POD2HTML!$POD2HTML$ac_delim
21704 POD2MAN!$POD2MAN$ac_delim
21705 PDFROFF!$PDFROFF$ac_delim
21706 RUNTEST!$RUNTEST$ac_delim
21707 TCLSH!$TCLSH$ac_delim
21709 OCAMLC!$OCAMLC$ac_delim
21710 OCAMLOPT!$OCAMLOPT$ac_delim
21711 OCAMLDEP!$OCAMLDEP$ac_delim
21712 OCAMLDOC!$OCAMLDOC$ac_delim
21714 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21715 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21716 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21717 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21718 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21719 LIBADD_DL!$LIBADD_DL$ac_delim
21720 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21721 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21722 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21723 USE_UDIS86!$USE_UDIS86$ac_delim
21724 USE_OPROFILE!$USE_OPROFILE$ac_delim
21725 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21726 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21727 MMAP_FILE!$MMAP_FILE$ac_delim
21728 SHLIBEXT!$SHLIBEXT$ac_delim
21729 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21730 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21731 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21732 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21733 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21734 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21735 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21736 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21737 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21738 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21739 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21740 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21741 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21742 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21743 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21744 RPATH!$RPATH$ac_delim
21745 RDYNAMIC!$RDYNAMIC$ac_delim
21746 LIBOBJS!$LIBOBJS$ac_delim
21747 LTLIBOBJS!$LTLIBOBJS$ac_delim
21750 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
21752 elif $ac_last_try; then
21753 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21754 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21755 { (exit 1); exit 1; }; }
21757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21761 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21762 if test -n "$ac_eof"; then
21763 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21764 ac_eof=`expr $ac_eof + 1`
21767 cat >>$CONFIG_STATUS <<_ACEOF
21768 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21772 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21773 s/^/s,@/; s/!/@,|#_!!_#|/
21776 s/'"$ac_delim"'$/,g/; t
21778 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21779 ' >>$CONFIG_STATUS <conf$$subs.sed
21780 rm -f conf$$subs.sed
21781 cat >>$CONFIG_STATUS <<_ACEOF
21788 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21789 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21790 # trailing colons and then remove the whole line if VPATH becomes empty
21791 # (actually we leave an empty line to preserve line numbers).
21792 if test "x$srcdir" = x.; then
21793 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21794 s/:*\$(srcdir):*/:/
21795 s/:*\${srcdir}:*/:/
21797 s/^\([^=]*=[ ]*\):*/\1/
21803 cat >>$CONFIG_STATUS <<\_ACEOF
21804 fi # test -n "$CONFIG_FILES"
21807 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21810 :[FHLC]) ac_mode=$ac_tag; continue;;
21812 case $ac_mode$ac_tag in
21814 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21815 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21816 { (exit 1); exit 1; }; };;
21817 :[FH]-) ac_tag=-:-;;
21818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835 -) ac_f="$tmp/stdin";;
21836 *) # Look for the file first in the build tree, then in the source tree
21837 # (if the path is not absolute). The absolute path cannot be DOS-style,
21838 # because $ac_f cannot contain `:'.
21842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21844 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21845 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21846 { (exit 1); exit 1; }; };;
21848 ac_file_inputs="$ac_file_inputs $ac_f"
21851 # Let's still pretend it is `configure' which instantiates (i.e., don't
21852 # use $as_me), people would be surprised to read:
21853 # /* config.h. Generated by config.status. */
21854 configure_input="Generated from "`IFS=:
21855 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21856 if test x"$ac_file" != x-; then
21857 configure_input="$ac_file. $configure_input"
21858 { echo "$as_me:$LINENO: creating $ac_file" >&5
21859 echo "$as_me: creating $ac_file" >&6;}
21863 *:-:* | *:-) cat >"$tmp/stdin";;
21868 ac_dir=`$as_dirname -- "$ac_file" ||
21869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21870 X"$ac_file" : 'X\(//\)[^/]' \| \
21871 X"$ac_file" : 'X\(//\)$' \| \
21872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21878 /^X\(\/\/\)[^/].*/{
21893 -*) as_dir=./$as_dir;;
21895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21899 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21900 *) as_qdir=$as_dir;;
21902 as_dirs="'$as_qdir' $as_dirs"
21903 as_dir=`$as_dirname -- "$as_dir" ||
21904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21905 X"$as_dir" : 'X\(//\)[^/]' \| \
21906 X"$as_dir" : 'X\(//\)$' \| \
21907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21913 /^X\(\/\/\)[^/].*/{
21926 test -d "$as_dir" && break
21928 test -z "$as_dirs" || eval "mkdir $as_dirs"
21929 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21930 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21931 { (exit 1); exit 1; }; }; }
21935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21938 # A ".." for each directory in $ac_dir_suffix.
21939 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21940 case $ac_top_builddir_sub in
21941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21945 ac_abs_top_builddir=$ac_pwd
21946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21947 # for backward compatibility:
21948 ac_top_builddir=$ac_top_build_prefix
21951 .) # We are building in place.
21953 ac_top_srcdir=$ac_top_builddir_sub
21954 ac_abs_top_srcdir=$ac_pwd ;;
21955 [\\/]* | ?:[\\/]* ) # Absolute name.
21956 ac_srcdir=$srcdir$ac_dir_suffix;
21957 ac_top_srcdir=$srcdir
21958 ac_abs_top_srcdir=$srcdir ;;
21959 *) # Relative name.
21960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21961 ac_top_srcdir=$ac_top_build_prefix$srcdir
21962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21979 cat >>$CONFIG_STATUS <<\_ACEOF
21980 # If the template does not know about datarootdir, expand it.
21981 # FIXME: This hack should be removed a few years after 2.60.
21982 ac_datarootdir_hack=; ac_datarootdir_seen=
21984 case `sed -n '/datarootdir/ {
21993 ' $ac_file_inputs` in
21994 *datarootdir*) ac_datarootdir_seen=yes;;
21995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21996 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21997 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000 ac_datarootdir_hack='
22001 s&@datadir@&$datadir&g
22002 s&@docdir@&$docdir&g
22003 s&@infodir@&$infodir&g
22004 s&@localedir@&$localedir&g
22005 s&@mandir@&$mandir&g
22006 s&\\\${datarootdir}&$datarootdir&g' ;;
22010 # Neutralize VPATH when `$srcdir' = `.'.
22011 # Shell code in configure.ac might set extrasub.
22012 # FIXME: do we really want to maintain this feature?
22013 cat >>$CONFIG_STATUS <<_ACEOF
22017 cat >>$CONFIG_STATUS <<\_ACEOF
22019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22020 s&@configure_input@&$configure_input&;t t
22021 s&@top_builddir@&$ac_top_builddir_sub&;t t
22022 s&@srcdir@&$ac_srcdir&;t t
22023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22024 s&@top_srcdir@&$ac_top_srcdir&;t t
22025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22026 s&@builddir@&$ac_builddir&;t t
22027 s&@abs_builddir@&$ac_abs_builddir&;t t
22028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22029 s&@INSTALL@&$ac_INSTALL&;t t
22030 $ac_datarootdir_hack
22031 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22034 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22036 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22037 which seems to be undefined. Please make sure it is defined." >&5
22038 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22039 which seems to be undefined. Please make sure it is defined." >&2;}
22043 -) cat "$tmp/out"; rm -f "$tmp/out";;
22044 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22049 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22050 echo "$as_me: executing $ac_file commands" >&6;}
22055 case $ac_file$ac_mode in
22056 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22057 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22058 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22059 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22060 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22061 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22062 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22063 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22064 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22065 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22071 { (exit 0); exit 0; }
22073 chmod +x $CONFIG_STATUS
22074 ac_clean_files=$ac_clean_files_save
22077 # configure is writing to config.log, and then calls config.status.
22078 # config.status does its own redirection, appending to config.log.
22079 # Unfortunately, on DOS this fails, as config.log is still kept open
22080 # by configure, so config.status won't be able to write to it; its
22081 # output is simply discarded. So we exec the FD to /dev/null,
22082 # effectively closing config.log, so it can be properly (re)opened and
22083 # appended to by config.status. When coming back to configure, we
22084 # need to make the FD available again.
22085 if test "$no_create" != yes; then
22087 ac_config_status_args=
22088 test "$silent" = yes &&
22089 ac_config_status_args="$ac_config_status_args --quiet"
22091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22094 # would make configure fail if this is the last instruction.
22095 $ac_cs_success || { (exit 1); exit 1; }
22099 # CONFIG_SUBDIRS section.
22101 if test "$no_recursion" != yes; then
22103 # Remove --cache-file and --srcdir arguments so they do not pile up.
22104 ac_sub_configure_args=
22106 eval "set x $ac_configure_args"
22110 if test -n "$ac_prev"; then
22115 -cache-file | --cache-file | --cache-fil | --cache-fi \
22116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22117 ac_prev=cache_file ;;
22118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22122 --config-cache | -C)
22124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22134 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22136 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22140 # Always prepend --prefix to ensure using the same prefix
22141 # in subdir configurations.
22142 ac_arg="--prefix=$prefix"
22144 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22146 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22149 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22151 # Do not complain, so a configure script can configure whichever
22152 # parts of a large source tree are present.
22153 test -d "$srcdir/$ac_dir" || continue
22155 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22156 echo "$as_me:$LINENO: $ac_msg" >&5
22160 -*) as_dir=./$as_dir;;
22162 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22166 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22167 *) as_qdir=$as_dir;;
22169 as_dirs="'$as_qdir' $as_dirs"
22170 as_dir=`$as_dirname -- "$as_dir" ||
22171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172 X"$as_dir" : 'X\(//\)[^/]' \| \
22173 X"$as_dir" : 'X\(//\)$' \| \
22174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22180 /^X\(\/\/\)[^/].*/{
22193 test -d "$as_dir" && break
22195 test -z "$as_dirs" || eval "mkdir $as_dirs"
22196 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22197 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22198 { (exit 1); exit 1; }; }; }
22202 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22204 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22205 # A ".." for each directory in $ac_dir_suffix.
22206 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22207 case $ac_top_builddir_sub in
22208 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22209 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22212 ac_abs_top_builddir=$ac_pwd
22213 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22214 # for backward compatibility:
22215 ac_top_builddir=$ac_top_build_prefix
22218 .) # We are building in place.
22220 ac_top_srcdir=$ac_top_builddir_sub
22221 ac_abs_top_srcdir=$ac_pwd ;;
22222 [\\/]* | ?:[\\/]* ) # Absolute name.
22223 ac_srcdir=$srcdir$ac_dir_suffix;
22224 ac_top_srcdir=$srcdir
22225 ac_abs_top_srcdir=$srcdir ;;
22226 *) # Relative name.
22227 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22228 ac_top_srcdir=$ac_top_build_prefix$srcdir
22229 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22231 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22236 # Check for guested configure; otherwise get Cygnus style configure.
22237 if test -f "$ac_srcdir/configure.gnu"; then
22238 ac_sub_configure=$ac_srcdir/configure.gnu
22239 elif test -f "$ac_srcdir/configure"; then
22240 ac_sub_configure=$ac_srcdir/configure
22241 elif test -f "$ac_srcdir/configure.in"; then
22242 # This should be Cygnus configure.
22243 ac_sub_configure=$ac_aux_dir/configure
22245 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22246 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22250 # The recursion is here.
22251 if test -n "$ac_sub_configure"; then
22252 # Make the cache file name correct relative to the subdirectory.
22253 case $cache_file in
22254 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22255 *) # Relative name.
22256 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22259 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22260 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22261 # The eval makes quoting arguments work.
22262 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22263 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22264 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22265 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22266 { (exit 1); exit 1; }; }