LibCallAliasAnalysis uses multiple inheritance, so it needs to implement
[llvm.git] / configure
blob98a40c4338e0dc2870580d81d351864a4890c90d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 ENABLE_LLVMC_DYNAMIC
707 ENABLE_LLVMC_DYNAMIC_PLUGINS
709 CXXFLAGS
710 ac_ct_CXX
712 ifGNUmake
713 LN_S
716 DATE
717 FIND
718 MKDIR
720 RANLIB
725 BINPWD
726 GRAPHVIZ
729 NEATO
730 TWOPI
731 CIRCO
733 DOTTY
734 PERL
735 HAVE_PERL
736 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
741 DOXYGEN
742 GROFF
743 GZIP
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 LLVMGCCCOMMAND
762 LLVMGXXCOMMAND
763 LLVMGCC
764 LLVMGXX
765 LLVMCC_OPTION
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 LLVMCC1
774 LLVMCC1PLUS
775 LLVMGCCDIR
776 LLVMGCC_LANGS
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
807 CXXFLAGS
808 CCC'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1378 cat <<\_ACEOF
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1390 esac
1391 cat <<\_ACEOF
1393 Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1411 is YES)
1412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
1430 --enable-ltdl-install install libltdl
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
1437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
1441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
1445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
1447 --with-extra-options Specify additional options to compile LLVM with
1448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
1450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
1452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
1458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
1460 --with-tclinclude directory where tcl headers are
1461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
1463 --with-udis86=<path> Use udis86 external x86 disassembler library
1464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <llvmbugs@cs.uiuc.edu>.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 llvm configure 2.8svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552 exit
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by llvm $as_me 2.8svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1561 $ $0 $@
1563 _ACEOF
1564 exec 5>>config.log
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 _ASUNAME
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1599 } >&5
1601 cat >&5 <<_ACEOF
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1608 _ACEOF
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1622 for ac_arg
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
1629 *\'*)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 esac
1632 case $ac_pass in
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1638 else
1639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1648 -* ) ac_must_keep_next=true ;;
1649 esac
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1653 esac
1654 done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1667 echo
1669 cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 esac |
1702 sort
1704 echo
1706 cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 esac
1718 echo "$ac_var='\''$ac_val'\''"
1719 done | sort
1720 echo
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1803 shift
1804 for ac_site_file
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1812 done
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1825 else
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 esac
1871 done
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1920 ac_aux_dir=
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1935 done
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1962 if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1967 if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1972 if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1977 if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1982 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1987 for i in `ls ${srcdir}/projects`
1989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
1991 CVS) ;;
1992 sample) subdirs="$subdirs projects/sample"
1994 privbracket) subdirs="$subdirs projects/privbracket"
1996 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1998 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2000 llvm-java) subdirs="$subdirs projects/llvm-java"
2002 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2004 safecode) subdirs="$subdirs projects/safecode"
2006 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2008 llvm-gcc) ;;
2009 test-suite) ;;
2010 llvm-test) ;;
2011 poolalloc) ;;
2012 llvm-poolalloc) ;;
2014 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2015 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2017 esac
2019 done
2022 # Make sure we can run config.sub.
2023 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2024 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2025 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2026 { (exit 1); exit 1; }; }
2028 { echo "$as_me:$LINENO: checking build system type" >&5
2029 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2030 if test "${ac_cv_build+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 ac_build_alias=$build_alias
2034 test "x$ac_build_alias" = x &&
2035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2036 test "x$ac_build_alias" = x &&
2037 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2038 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2039 { (exit 1); exit 1; }; }
2040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2041 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2042 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2043 { (exit 1); exit 1; }; }
2046 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2047 echo "${ECHO_T}$ac_cv_build" >&6; }
2048 case $ac_cv_build in
2049 *-*-*) ;;
2050 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2051 echo "$as_me: error: invalid value of canonical build" >&2;}
2052 { (exit 1); exit 1; }; };;
2053 esac
2054 build=$ac_cv_build
2055 ac_save_IFS=$IFS; IFS='-'
2056 set x $ac_cv_build
2057 shift
2058 build_cpu=$1
2059 build_vendor=$2
2060 shift; shift
2061 # Remember, the first character of IFS is used to create $*,
2062 # except with old shells:
2063 build_os=$*
2064 IFS=$ac_save_IFS
2065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2068 { echo "$as_me:$LINENO: checking host system type" >&5
2069 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2070 if test "${ac_cv_host+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test "x$host_alias" = x; then
2074 ac_cv_host=$ac_cv_build
2075 else
2076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2079 { (exit 1); exit 1; }; }
2083 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2084 echo "${ECHO_T}$ac_cv_host" >&6; }
2085 case $ac_cv_host in
2086 *-*-*) ;;
2087 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2088 echo "$as_me: error: invalid value of canonical host" >&2;}
2089 { (exit 1); exit 1; }; };;
2090 esac
2091 host=$ac_cv_host
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_host
2094 shift
2095 host_cpu=$1
2096 host_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 host_os=$*
2101 IFS=$ac_save_IFS
2102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105 { echo "$as_me:$LINENO: checking target system type" >&5
2106 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2107 if test "${ac_cv_target+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test "x$target_alias" = x; then
2111 ac_cv_target=$ac_cv_host
2112 else
2113 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2121 echo "${ECHO_T}$ac_cv_target" >&6; }
2122 case $ac_cv_target in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2125 echo "$as_me: error: invalid value of canonical target" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 target=$ac_cv_target
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_target
2131 shift
2132 target_cpu=$1
2133 target_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 target_os=$*
2138 IFS=$ac_save_IFS
2139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2142 # The aliases save the names the user supplied, while $host etc.
2143 # will get canonicalized.
2144 test -n "$target_alias" &&
2145 test "$program_prefix$program_suffix$program_transform_name" = \
2146 NONENONEs,x,x, &&
2147 program_prefix=${target_alias}-
2149 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2150 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2151 if test "${llvm_cv_os_type+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 case $host in
2155 *-*-aix*)
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="AIX"
2159 llvm_cv_platform_type="Unix" ;;
2160 *-*-irix*)
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="IRIX"
2164 llvm_cv_platform_type="Unix" ;;
2165 *-*-cygwin*)
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="Cygwin"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-darwin*)
2171 llvm_cv_link_all_option="-Wl,-all_load"
2172 llvm_cv_no_link_all_option="-Wl,-noall_load"
2173 llvm_cv_os_type="Darwin"
2174 llvm_cv_platform_type="Unix" ;;
2175 *-*-minix*)
2176 llvm_cv_link_all_option="-Wl,-all_load"
2177 llvm_cv_no_link_all_option="-Wl,-noall_load"
2178 llvm_cv_os_type="Minix"
2179 llvm_cv_platform_type="Unix" ;;
2180 *-*-freebsd*)
2181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2183 llvm_cv_os_type="FreeBSD"
2184 llvm_cv_platform_type="Unix" ;;
2185 *-*-openbsd*)
2186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2188 llvm_cv_os_type="OpenBSD"
2189 llvm_cv_platform_type="Unix" ;;
2190 *-*-netbsd*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="NetBSD"
2194 llvm_cv_platform_type="Unix" ;;
2195 *-*-dragonfly*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="DragonFly"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-*-hpux*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="HP-UX"
2204 llvm_cv_platform_type="Unix" ;;
2205 *-*-interix*)
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Interix"
2209 llvm_cv_platform_type="Unix" ;;
2210 *-*-linux*)
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Linux"
2214 llvm_cv_platform_type="Unix" ;;
2215 *-*-solaris*)
2216 llvm_cv_link_all_option="-Wl,-z,allextract"
2217 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2218 llvm_cv_os_type="SunOS"
2219 llvm_cv_platform_type="Unix" ;;
2220 *-*-auroraux*)
2221 llvm_cv_link_all_option="-Wl,-z,allextract"
2222 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2223 llvm_cv_os_type="AuroraUX"
2224 llvm_cv_platform_type="Unix" ;;
2225 *-*-win32*)
2226 llvm_cv_link_all_option="-Wl,--whole-archive"
2227 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2228 llvm_cv_os_type="Win32"
2229 llvm_cv_platform_type="Win32" ;;
2230 *-*-mingw*)
2231 llvm_cv_link_all_option="-Wl,--whole-archive"
2232 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2233 llvm_cv_os_type="MingW"
2234 llvm_cv_platform_type="Win32" ;;
2235 *-*-haiku*)
2236 llvm_cv_link_all_option="-Wl,--whole-archive"
2237 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2238 llvm_cv_os_type="Haiku"
2239 llvm_cv_platform_type="Unix" ;;
2240 *-unknown-eabi*)
2241 llvm_cv_link_all_option="-Wl,--whole-archive"
2242 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2243 llvm_cv_os_type="Freestanding"
2244 llvm_cv_platform_type="Unix" ;;
2245 *-unknown-elf*)
2246 llvm_cv_link_all_option="-Wl,--whole-archive"
2247 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2248 llvm_cv_os_type="Freestanding"
2249 llvm_cv_platform_type="Unix" ;;
2251 llvm_cv_link_all_option=""
2252 llvm_cv_no_link_all_option=""
2253 llvm_cv_os_type="Unknown"
2254 llvm_cv_platform_type="Unknown" ;;
2255 esac
2257 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2258 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2261 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2262 if test "${llvm_cv_target_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 case $target in
2266 *-*-aix*)
2267 llvm_cv_target_os_type="AIX" ;;
2268 *-*-irix*)
2269 llvm_cv_target_os_type="IRIX" ;;
2270 *-*-cygwin*)
2271 llvm_cv_target_os_type="Cygwin" ;;
2272 *-*-darwin*)
2273 llvm_cv_target_os_type="Darwin" ;;
2274 *-*-minix*)
2275 llvm_cv_target_os_type="Minix" ;;
2276 *-*-freebsd*)
2277 llvm_cv_target_os_type="FreeBSD" ;;
2278 *-*-openbsd*)
2279 llvm_cv_target_os_type="OpenBSD" ;;
2280 *-*-netbsd*)
2281 llvm_cv_target_os_type="NetBSD" ;;
2282 *-*-dragonfly*)
2283 llvm_cv_target_os_type="DragonFly" ;;
2284 *-*-hpux*)
2285 llvm_cv_target_os_type="HP-UX" ;;
2286 *-*-interix*)
2287 llvm_cv_target_os_type="Interix" ;;
2288 *-*-linux*)
2289 llvm_cv_target_os_type="Linux" ;;
2290 *-*-solaris*)
2291 llvm_cv_target_os_type="SunOS" ;;
2292 *-*-auroraux*)
2293 llvm_cv_target_os_type="AuroraUX" ;;
2294 *-*-win32*)
2295 llvm_cv_target_os_type="Win32" ;;
2296 *-*-mingw*)
2297 llvm_cv_target_os_type="MingW" ;;
2298 *-*-haiku*)
2299 llvm_cv_target_os_type="Haiku" ;;
2300 *-unknown-eabi*)
2301 llvm_cv_target_os_type="Freestanding" ;;
2303 llvm_cv_target_os_type="Unknown" ;;
2304 esac
2306 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2307 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2309 if test "$llvm_cv_os_type" = "Unknown" ; then
2310 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2311 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2312 { (exit 1); exit 1; }; }
2315 OS=$llvm_cv_os_type
2317 HOST_OS=$llvm_cv_os_type
2319 TARGET_OS=$llvm_cv_target_os_type
2322 LINKALL=$llvm_cv_link_all_option
2324 NOLINKALL=$llvm_cv_no_link_all_option
2327 case $llvm_cv_platform_type in
2328 Unix)
2330 cat >>confdefs.h <<\_ACEOF
2331 #define LLVM_ON_UNIX 1
2332 _ACEOF
2334 LLVM_ON_UNIX=1
2336 LLVM_ON_WIN32=0
2339 Win32)
2341 cat >>confdefs.h <<\_ACEOF
2342 #define LLVM_ON_WIN32 1
2343 _ACEOF
2345 LLVM_ON_UNIX=0
2347 LLVM_ON_WIN32=1
2350 esac
2352 { echo "$as_me:$LINENO: checking target architecture" >&5
2353 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2354 if test "${llvm_cv_target_arch+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 case $target in
2358 i?86-*) llvm_cv_target_arch="x86" ;;
2359 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2360 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2361 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2362 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2363 arm*-*) llvm_cv_target_arch="ARM" ;;
2364 mips-*) llvm_cv_target_arch="Mips" ;;
2365 pic16-*) llvm_cv_target_arch="PIC16" ;;
2366 xcore-*) llvm_cv_target_arch="XCore" ;;
2367 msp430-*) llvm_cv_target_arch="MSP430" ;;
2368 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2369 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2370 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2371 *) llvm_cv_target_arch="Unknown" ;;
2372 esac
2374 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2375 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2377 if test "$llvm_cv_target_arch" = "Unknown" ; then
2378 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2379 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2382 # Determine the LLVM native architecture for the target
2383 case "$llvm_cv_target_arch" in
2384 x86) LLVM_NATIVE_ARCH="X86" ;;
2385 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2386 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2387 esac
2389 ARCH=$llvm_cv_target_arch
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 if test -n "$ac_tool_prefix"; then
2398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2419 done
2420 done
2421 IFS=$as_save_IFS
2425 CC=$ac_cv_prog_CC
2426 if test -n "$CC"; then
2427 { echo "$as_me:$LINENO: result: $CC" >&5
2428 echo "${ECHO_T}$CC" >&6; }
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2436 if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439 set dummy gcc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2459 done
2460 done
2461 IFS=$as_save_IFS
2465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466 if test -n "$ac_ct_CC"; then
2467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468 echo "${ECHO_T}$ac_ct_CC" >&6; }
2469 else
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478 yes:)
2479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&5
2482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 CC=$ac_ct_CC
2489 else
2490 CC="$ac_cv_prog_CC"
2493 if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496 set dummy ${ac_tool_prefix}cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2516 done
2517 done
2518 IFS=$as_save_IFS
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2526 else
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2534 if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536 set dummy cc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 else
2545 ac_prog_rejected=no
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2557 ac_cv_prog_CC="cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2565 if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2617 IFS=$as_save_IFS
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624 echo "${ECHO_T}$CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$CC" && break
2632 done
2634 if test -z "$CC"; then
2635 ac_ct_CC=$CC
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 echo "${ECHO_T}$ac_ct_CC" >&6; }
2669 else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$ac_ct_CC" && break
2676 done
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682 yes:)
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2690 esac
2691 CC=$ac_ct_CC
2698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: no acceptable C compiler found in \$PATH
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2704 # Provide some information about the compiler.
2705 echo "$as_me:$LINENO: checking for C compiler version" >&5
2706 ac_compiler=`set X $ac_compile; echo $2`
2707 { (ac_try="$ac_compiler --version >&5"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
2717 { (ac_try="$ac_compiler -v >&5"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
2727 { (ac_try="$ac_compiler -V >&5"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 main ()
2750 return 0;
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2760 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # List of possible output files, starting from the most likely.
2763 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764 # only as a last resort. b.out is created by i960 compilers.
2765 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2767 # The IRIX 6 linker writes into existing files which may not be
2768 # executable, retaining their permissions. Remove them first so a
2769 # subsequent execution test works.
2770 ac_rmfiles=
2771 for ac_file in $ac_files
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777 done
2778 rm -f $ac_rmfiles
2780 if { (ac_try="$ac_link_default"
2781 case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2793 # so that the user can short-circuit this test for compilers unknown to
2794 # Autoconf.
2795 for ac_file in $ac_files
2797 test -f "$ac_file" || continue
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2801 [ab].out )
2802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
2805 *.* )
2806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
2815 break;;
2817 break;;
2818 esac
2819 done
2820 test "$ac_cv_exeext" = no && ac_cv_exeext=
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: C compiler cannot create executables
2829 See \`config.log' for more details." >&2;}
2830 { (exit 77); exit 77; }; }
2833 ac_exeext=$ac_cv_exeext
2834 { echo "$as_me:$LINENO: result: $ac_file" >&5
2835 echo "${ECHO_T}$ac_file" >&6; }
2837 # Check that the compiler produces executables we can run. If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2841 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842 # If not cross compiling, check that we can run a simple program.
2843 if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
2845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
2859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&5
2862 echo "$as_me: error: cannot run C compiled programs.
2863 If you meant to cross compile, use \`--host'.
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2869 { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2872 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879 echo "${ECHO_T}$cross_compiling" >&6; }
2881 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883 if { (ac_try="$ac_link"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895 # work properly (i.e., refer to `conftest.exe'), while it won't with
2896 # `rm'.
2897 for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
2899 case $ac_file in
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 break;;
2903 * ) break;;
2904 esac
2905 done
2906 else
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest$ac_cv_exeext
2915 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2923 if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.o conftest.obj
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959 done
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965 See \`config.log' for more details." >&5
2966 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967 See \`config.log' for more details." >&2;}
2968 { (exit 1); exit 1; }; }
2971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2973 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974 echo "${ECHO_T}$ac_cv_objext" >&6; }
2975 OBJEXT=$ac_cv_objext
2976 ac_objext=$OBJEXT
2977 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2979 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 main ()
2992 #ifndef __GNUC__
2993 choke me
2994 #endif
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_compiler_gnu=yes
3035 else
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 ac_compiler_gnu=no
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3058 ac_cv_prog_cc_g=no
3059 CFLAGS="-g"
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 ac_cv_prog_cc_g=yes
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 CFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 main ()
3127 return 0;
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3179 main ()
3183 return 0;
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_prog_cc_g=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3247 else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3254 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <stdarg.h>
3268 #include <stdio.h>
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275 char **p;
3276 int i;
3278 return p[i];
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
3293 as 'x'. The following induces an error, until -std is added to get
3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
3296 that's true only with -std. */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301 #define FOO(x) 'x'
3302 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304 int test (int i, double x);
3305 struct s1 {int (*f) (int a);};
3306 struct s2 {int (*f) (double a);};
3307 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 int argc;
3309 char **argv;
3311 main ()
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 return 0;
3317 _ACEOF
3318 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_cv_prog_cc_c89=$ac_arg
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3364 rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
3366 done
3367 rm -f conftest.$ac_ext
3368 CC=$ac_save_CC
3371 # AC_CACHE_VAL
3372 case "x$ac_cv_prog_cc_c89" in
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375 echo "${ECHO_T}none needed" >&6; } ;;
3376 xno)
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378 echo "${ECHO_T}unsupported" >&6; } ;;
3380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3383 esac
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3400 # On Suns, sometimes $CPP names a directory.
3401 if test -n "$CPP" && test -d "$CPP"; then
3402 CPP=
3404 if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3411 ac_preproc_ok=false
3412 for ac_c_preproc_warn_flag in '' yes
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #ifdef __STDC__
3427 # include <limits.h>
3428 #else
3429 # include <assert.h>
3430 #endif
3431 Syntax error
3432 _ACEOF
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3452 else
3453 ac_cpp_err=yes
3455 if test -z "$ac_cpp_err"; then
3457 else
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Broken: fails on valid input.
3462 continue
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3496 else
3497 ac_cpp_err=yes
3499 if test -z "$ac_cpp_err"; then
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3511 rm -f conftest.err conftest.$ac_ext
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517 break
3520 done
3521 ac_cv_prog_CPP=$CPP
3524 CPP=$ac_cv_prog_CPP
3525 else
3526 ac_cv_prog_CPP=$CPP
3528 { echo "$as_me:$LINENO: result: $CPP" >&5
3529 echo "${ECHO_T}$CPP" >&6; }
3530 ac_preproc_ok=false
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #ifdef __STDC__
3546 # include <limits.h>
3547 #else
3548 # include <assert.h>
3549 #endif
3550 Syntax error
3551 _ACEOF
3552 if { (ac_try="$ac_cpp conftest.$ac_ext"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3571 else
3572 ac_cpp_err=yes
3574 if test -z "$ac_cpp_err"; then
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 # Broken: fails on valid input.
3581 continue
3584 rm -f conftest.err conftest.$ac_ext
3586 # OK, works on sane cases. Now check whether nonexistent headers
3587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3615 else
3616 ac_cpp_err=yes
3618 if test -z "$ac_cpp_err"; then
3619 # Broken: success on invalid input.
3620 continue
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3630 rm -f conftest.err conftest.$ac_ext
3632 done
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.$ac_ext
3635 if $ac_preproc_ok; then
3637 else
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy grep ggrep; ac_prog_name=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3703 $ac_path_GREP_found && break 3
3704 done
3705 done
3707 done
3708 IFS=$as_save_IFS
3713 GREP="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3720 else
3721 ac_cv_path_GREP=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy egrep; ac_prog_name=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 ac_path_EGREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3759 *GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782 esac
3785 $ac_path_EGREP_found && break 3
3786 done
3787 done
3789 done
3790 IFS=$as_save_IFS
3795 EGREP="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 else
3803 ac_cv_path_EGREP=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826 #include <stdarg.h>
3827 #include <string.h>
3828 #include <float.h>
3831 main ()
3835 return 0;
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <string.h>
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then
3896 else
3897 ac_cv_header_stdc=no
3899 rm -f conftest*
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <stdlib.h>
3913 _ACEOF
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "free" >/dev/null 2>&1; then
3917 else
3918 ac_cv_header_stdc=no
3920 rm -f conftest*
3924 if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3928 else
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #include <ctype.h>
3936 #include <stdlib.h>
3937 #if ((' ' & 0x0FF) == 0x020)
3938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940 #else
3941 # define ISLOWER(c) \
3942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
3945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #endif
3948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 main ()
3952 int i;
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
3955 || toupper (i) != TOUPPER (i))
3956 return 2;
3957 return 0;
3959 _ACEOF
3960 rm -f conftest$ac_exeext
3961 if { (ac_try="$ac_link"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3981 else
3982 echo "$as_me: program exited with status $ac_status" >&5
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 ( exit $ac_status )
3987 ac_cv_header_stdc=no
3989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3997 if test $ac_cv_header_stdc = yes; then
3999 cat >>confdefs.h <<\_ACEOF
4000 #define STDC_HEADERS 1
4001 _ACEOF
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 eval "$as_ac_Header=yes"
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 eval "$as_ac_Header=no"
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080 echo "${ECHO_T}$ac_res" >&6; }
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4088 done
4091 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093 if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/param.h>
4107 main ()
4109 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 bogus endian macros
4111 #endif
4114 return 0;
4116 _ACEOF
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/param.h>
4162 main ()
4164 #if BYTE_ORDER != BIG_ENDIAN
4165 not big endian
4166 #endif
4169 return 0;
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_c_bigendian=yes
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 ac_cv_c_bigendian=no
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 # It does not; compile a test program.
4220 if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4236 main ()
4238 _ascii (); _ebcdic ();
4240 return 0;
4242 _ACEOF
4243 rm -f conftest.$ac_objext
4244 if { (ac_try="$ac_compile"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4280 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 else
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4305 main ()
4308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
4318 return 0;
4320 _ACEOF
4321 rm -f conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4342 else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 ( exit $ac_status )
4348 ac_cv_c_bigendian=yes
4350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360 case $ac_cv_c_bigendian in
4361 yes)
4362 ENDIAN=big
4365 ENDIAN=little
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370 echo "$as_me: error: unknown endianness
4371 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4373 esac
4376 if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4380 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382 if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4387 else
4388 ac_build_prefix=${build_alias}-
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467 set dummy cc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4496 if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 BUILD_CC=$ac_cv_prog_BUILD_CC
4511 if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513 echo "${ECHO_T}$BUILD_CC" >&6; }
4514 else
4515 { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 rm -f conftest*
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 ac_cv_build_exeext=
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4535 case $file in
4536 *.c | *.o | *.obj | *.dSYM) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 esac
4539 done
4540 else
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4545 rm -f conftest*
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4550 BUILD_EXEEXT=""
4551 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554 ac_build_exeext=$BUILD_EXEEXT
4556 ac_build_prefix=${build_alias}-
4557 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4558 set dummy ${ac_build_prefix}g++; ac_word=$2
4559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585 if test -n "$BUILD_CXX"; then
4586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587 echo "${ECHO_T}$BUILD_CXX" >&6; }
4588 else
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "g++", so it can be a program name with args.
4596 set dummy g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "c++", so it can be a program name with args.
4634 set dummy c++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 ac_prog_rejected=no
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4652 ac_prog_rejected=yes
4653 continue
4655 ac_cv_prog_BUILD_CXX="c++"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_BUILD_CXX
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set BUILD_CXX to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4677 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4678 if test -n "$BUILD_CXX"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4680 echo "${ECHO_T}$BUILD_CXX" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4689 else
4690 LLVM_CROSS_COMPILING=0
4694 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4695 cvsbuild="yes"
4696 optimize="no"
4697 CVSBUILD=CVSBUILD=1
4699 else
4700 cvsbuild="no"
4701 optimize="yes"
4705 # Check whether --enable-optimized was given.
4706 if test "${enable_optimized+set}" = set; then
4707 enableval=$enable_optimized;
4708 else
4709 enableval=$optimize
4712 if test ${enableval} = "no" ; then
4713 ENABLE_OPTIMIZED=
4715 else
4716 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4720 # Check whether --enable-profiling was given.
4721 if test "${enable_profiling+set}" = set; then
4722 enableval=$enable_profiling;
4723 else
4724 enableval="no"
4727 if test ${enableval} = "no" ; then
4728 ENABLE_PROFILING=
4730 else
4731 ENABLE_PROFILING=ENABLE_PROFILING=1
4735 # Check whether --enable-assertions was given.
4736 if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4738 else
4739 enableval="yes"
4742 if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=
4745 else
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750 # Check whether --enable-expensive-checks was given.
4751 if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4753 else
4754 enableval="no"
4757 if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4760 EXPENSIVE_CHECKS=yes
4762 else
4763 ENABLE_EXPENSIVE_CHECKS=
4765 EXPENSIVE_CHECKS=no
4769 # Check whether --enable-debug-runtime was given.
4770 if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4772 else
4773 enableval=no
4776 if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=
4779 else
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784 # Check whether --enable-debug-symbols was given.
4785 if test "${enable_debug_symbols+set}" = set; then
4786 enableval=$enable_debug_symbols;
4787 else
4788 enableval=no
4791 if test ${enableval} = "no" ; then
4792 DEBUG_SYMBOLS=
4794 else
4795 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4799 # Check whether --enable-jit was given.
4800 if test "${enable_jit+set}" = set; then
4801 enableval=$enable_jit;
4802 else
4803 enableval=default
4806 if test ${enableval} = "no"
4807 then
4808 JIT=
4810 else
4811 case "$llvm_cv_target_arch" in
4812 x86) TARGET_HAS_JIT=1
4814 Sparc) TARGET_HAS_JIT=0
4816 PowerPC) TARGET_HAS_JIT=1
4818 x86_64) TARGET_HAS_JIT=1
4820 Alpha) TARGET_HAS_JIT=1
4822 ARM) TARGET_HAS_JIT=1
4824 Mips) TARGET_HAS_JIT=0
4826 PIC16) TARGET_HAS_JIT=0
4828 XCore) TARGET_HAS_JIT=0
4830 MSP430) TARGET_HAS_JIT=0
4832 SystemZ) TARGET_HAS_JIT=0
4834 Blackfin) TARGET_HAS_JIT=0
4836 MBlaze) TARGET_HAS_JIT=0
4838 *) TARGET_HAS_JIT=0
4840 esac
4843 # Check whether --enable-doxygen was given.
4844 if test "${enable_doxygen+set}" = set; then
4845 enableval=$enable_doxygen;
4846 else
4847 enableval=default
4850 case "$enableval" in
4851 yes) ENABLE_DOXYGEN=1
4853 no) ENABLE_DOXYGEN=0
4855 default) ENABLE_DOXYGEN=0
4857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4860 esac
4862 # Check whether --enable-threads was given.
4863 if test "${enable_threads+set}" = set; then
4864 enableval=$enable_threads;
4865 else
4866 enableval=default
4869 case "$enableval" in
4870 yes) ENABLE_THREADS=1
4872 no) ENABLE_THREADS=0
4874 default) ENABLE_THREADS=1
4876 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4877 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4878 { (exit 1); exit 1; }; } ;;
4879 esac
4881 cat >>confdefs.h <<_ACEOF
4882 #define ENABLE_THREADS $ENABLE_THREADS
4883 _ACEOF
4886 # Check whether --enable-pic was given.
4887 if test "${enable_pic+set}" = set; then
4888 enableval=$enable_pic;
4889 else
4890 enableval=default
4893 case "$enableval" in
4894 yes) ENABLE_PIC=1
4896 no) ENABLE_PIC=0
4898 default) ENABLE_PIC=1
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4903 esac
4905 cat >>confdefs.h <<_ACEOF
4906 #define ENABLE_PIC $ENABLE_PIC
4907 _ACEOF
4910 # Check whether --enable-shared was given.
4911 if test "${enable_shared+set}" = set; then
4912 enableval=$enable_shared;
4913 else
4914 enableval=default
4917 case "$enableval" in
4918 yes) ENABLE_SHARED=1
4920 no) ENABLE_SHARED=0
4922 default) ENABLE_SHARED=0
4924 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4925 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927 esac
4929 # Check whether --enable-timestamps was given.
4930 if test "${enable_timestamps+set}" = set; then
4931 enableval=$enable_timestamps;
4932 else
4933 enableval=default
4936 case "$enableval" in
4937 yes) ENABLE_TIMESTAMPS=1
4939 no) ENABLE_TIMESTAMPS=0
4941 default) ENABLE_TIMESTAMPS=1
4943 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4944 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4946 esac
4948 cat >>confdefs.h <<_ACEOF
4949 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4950 _ACEOF
4953 TARGETS_TO_BUILD=""
4954 # Check whether --enable-targets was given.
4955 if test "${enable_targets+set}" = set; then
4956 enableval=$enable_targets;
4957 else
4958 enableval=all
4961 if test "$enableval" = host-only ; then
4962 enableval=host
4964 case "$enableval" in
4965 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4966 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4967 case "$a_target" in
4968 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4970 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4971 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4972 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4973 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4974 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4976 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4977 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4978 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4979 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4980 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4981 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4982 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4983 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4984 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4985 host) case "$llvm_cv_target_arch" in
4986 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4988 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4989 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4990 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4991 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4992 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4993 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4994 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4995 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4996 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4997 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4998 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4999 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5000 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5001 echo "$as_me: error: Can not set target to build" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003 esac ;;
5004 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5005 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5007 esac
5008 done
5010 esac
5011 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5014 # Determine whether we are building LLVM support for the native architecture.
5015 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5016 for a_target in $TARGETS_TO_BUILD; do
5017 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5018 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5022 _ACEOF
5025 done
5027 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028 # target feature def files.
5029 LLVM_ENUM_TARGETS=""
5030 LLVM_ENUM_ASM_PRINTERS=""
5031 LLVM_ENUM_ASM_PARSERS=""
5032 LLVM_ENUM_DISASSEMBLERS=""
5033 for target_to_build in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5036 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5038 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5039 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5041 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5042 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5044 done
5050 # Check whether --enable-cbe-printf-a was given.
5051 if test "${enable_cbe_printf_a+set}" = set; then
5052 enableval=$enable_cbe_printf_a;
5053 else
5054 enableval=default
5057 case "$enableval" in
5058 yes) ENABLE_CBE_PRINTF_A=1
5060 no) ENABLE_CBE_PRINTF_A=0
5062 default) ENABLE_CBE_PRINTF_A=1
5064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5065 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067 esac
5069 cat >>confdefs.h <<_ACEOF
5070 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5071 _ACEOF
5075 # Check whether --with-llvmgccdir was given.
5076 if test "${with_llvmgccdir+set}" = set; then
5077 withval=$with_llvmgccdir;
5078 else
5079 withval=default
5082 case "$withval" in
5083 default) WITH_LLVMGCCDIR=default ;;
5084 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5085 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5086 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5087 { (exit 1); exit 1; }; } ;;
5088 esac
5091 # Check whether --with-llvmgcc was given.
5092 if test "${with_llvmgcc+set}" = set; then
5093 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5094 WITH_LLVMGCCDIR=""
5099 # Check whether --with-llvmgxx was given.
5100 if test "${with_llvmgxx+set}" = set; then
5101 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5102 WITH_LLVMGCCDIR=""
5106 if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND="$LLVMGCC"
5110 if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND="$LLVMGXX"
5114 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5115 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5116 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5117 { (exit 1); exit 1; }; };
5120 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5121 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5122 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5123 { (exit 1); exit 1; }; };
5127 # Check whether --with-clang was given.
5128 if test "${with_clang+set}" = set; then
5129 withval=$with_clang;
5130 else
5131 with_clang=default
5136 # Check whether --with-built-clang was given.
5137 if test "${with_built_clang+set}" = set; then
5138 withval=$with_built_clang;
5139 else
5140 with_built_clang=check
5144 { echo "$as_me:$LINENO: checking clang compiler" >&5
5145 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5146 WITH_CLANGPATH=""
5147 WITH_BUILT_CLANG=0
5148 if test "$with_clang" != "default"; then
5149 WITH_CLANGPATH="$with_clang"
5150 if ! test -x "$WITH_CLANGPATH"; then
5151 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5152 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5153 { (exit 1); exit 1; }; }
5155 elif test "$with_built_clang" = "yes"; then
5156 WITH_BUILT_CLANG=1
5157 elif test "$with_built_clang" = "no"; then
5158 WITH_BUILT_CLANG=0
5159 else
5160 if test "$with_built_clang" != "check"; then
5161 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5162 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5163 { (exit 1); exit 1; }; }
5166 if test -f ${srcdir}/tools/clang/README.txt; then
5167 WITH_BUILT_CLANG=1
5171 if ! test -z "$WITH_CLANGPATH"; then
5172 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5173 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5174 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5175 elif test "$WITH_BUILT_CLANG" = "1"; then
5176 { echo "$as_me:$LINENO: result: built" >&5
5177 echo "${ECHO_T}built" >&6; }
5178 else
5179 { echo "$as_me:$LINENO: result: none" >&5
5180 echo "${ECHO_T}none" >&6; }
5182 CLANGPATH=$WITH_CLANGPATH
5184 CLANGXXPATH=$WITH_CLANGXXPATH
5186 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5190 # Check whether --with-optimize-option was given.
5191 if test "${with_optimize_option+set}" = set; then
5192 withval=$with_optimize_option;
5193 else
5194 withval=default
5197 { echo "$as_me:$LINENO: checking optimization flags" >&5
5198 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5199 case "$withval" in
5200 default)
5201 case "$llvm_cv_os_type" in
5202 FreeBSD) optimize_option=-O2 ;;
5203 MingW) optimize_option=-O2 ;;
5204 *) optimize_option=-O3 ;;
5205 esac ;;
5206 *) optimize_option="$withval" ;;
5207 esac
5208 OPTIMIZE_OPTION=$optimize_option
5210 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5211 echo "${ECHO_T}$optimize_option" >&6; }
5214 # Check whether --with-extra-options was given.
5215 if test "${with_extra_options+set}" = set; then
5216 withval=$with_extra_options;
5217 else
5218 withval=default
5221 case "$withval" in
5222 default) EXTRA_OPTIONS= ;;
5223 *) EXTRA_OPTIONS=$withval ;;
5224 esac
5225 EXTRA_OPTIONS=$EXTRA_OPTIONS
5228 # Check whether --enable-bindings was given.
5229 if test "${enable_bindings+set}" = set; then
5230 enableval=$enable_bindings;
5231 else
5232 enableval=default
5235 BINDINGS_TO_BUILD=""
5236 case "$enableval" in
5237 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5238 all ) BINDINGS_TO_BUILD="ocaml" ;;
5239 none | no) BINDINGS_TO_BUILD="" ;;
5240 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5241 case "$a_binding" in
5242 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5243 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5244 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246 esac
5247 done
5249 esac
5252 # Check whether --with-ocaml-libdir was given.
5253 if test "${with_ocaml_libdir+set}" = set; then
5254 withval=$with_ocaml_libdir;
5255 else
5256 withval=auto
5259 case "$withval" in
5260 auto) with_ocaml_libdir="$withval" ;;
5261 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5263 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac
5268 # Check whether --with-c-include-dirs was given.
5269 if test "${with_c_include_dirs+set}" = set; then
5270 withval=$with_c_include_dirs;
5271 else
5272 withval=""
5276 cat >>confdefs.h <<_ACEOF
5277 #define C_INCLUDE_DIRS "$withval"
5278 _ACEOF
5282 # Check whether --with-cxx-include-root was given.
5283 if test "${with_cxx_include_root+set}" = set; then
5284 withval=$with_cxx_include_root;
5285 else
5286 withval=""
5290 cat >>confdefs.h <<_ACEOF
5291 #define CXX_INCLUDE_ROOT "$withval"
5292 _ACEOF
5296 # Check whether --with-cxx-include-arch was given.
5297 if test "${with_cxx_include_arch+set}" = set; then
5298 withval=$with_cxx_include_arch;
5299 else
5300 withval=""
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ARCH "$withval"
5306 _ACEOF
5310 # Check whether --with-cxx-include-32bit-dir was given.
5311 if test "${with_cxx_include_32bit_dir+set}" = set; then
5312 withval=$with_cxx_include_32bit_dir;
5313 else
5314 withval=""
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_32BIT_DIR "$withval"
5320 _ACEOF
5324 # Check whether --with-cxx-include-64bit-dir was given.
5325 if test "${with_cxx_include_64bit_dir+set}" = set; then
5326 withval=$with_cxx_include_64bit_dir;
5327 else
5328 withval=""
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_64BIT_DIR "$withval"
5334 _ACEOF
5338 # Check whether --with-binutils-include was given.
5339 if test "${with_binutils_include+set}" = set; then
5340 withval=$with_binutils_include;
5341 else
5342 withval=default
5345 case "$withval" in
5346 default) WITH_BINUTILS_INCDIR=default ;;
5347 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5348 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5349 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5350 { (exit 1); exit 1; }; } ;;
5351 esac
5352 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5353 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5357 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5358 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5359 { (exit 1); exit 1; }; };
5363 # Check whether --enable-libffi was given.
5364 if test "${enable_libffi+set}" = set; then
5365 enableval=$enable_libffi; case "$enableval" in
5366 yes) llvm_cv_enable_libffi="yes" ;;
5367 no) llvm_cv_enable_libffi="no" ;;
5368 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5369 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5370 { (exit 1); exit 1; }; } ;;
5371 esac
5372 else
5373 llvm_cv_enable_libffi=no
5377 if test "$llvm_cv_os_type" = "Win32" ; then
5378 llvmc_dynamic="yes"
5379 else
5380 llvmc_dynamic="no"
5383 # Check whether --enable-llvmc-dynamic was given.
5384 if test "${enable_llvmc_dynamic+set}" = set; then
5385 enableval=$enable_llvmc_dynamic;
5386 else
5387 enableval=$llvmc_dynamic
5390 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5391 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5393 else
5394 ENABLE_LLVMC_DYNAMIC=
5398 # Check whether --enable-llvmc-dynamic-plugins was given.
5399 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5400 enableval=$enable_llvmc_dynamic_plugins;
5401 else
5402 enableval=yes
5405 if test ${enableval} = "yes" ; then
5406 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5408 else
5409 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5420 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5421 # On Suns, sometimes $CPP names a directory.
5422 if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5425 if test -z "$CPP"; then
5426 if test "${ac_cv_prog_CPP+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5432 ac_preproc_ok=false
5433 for ac_c_preproc_warn_flag in '' yes
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 #ifdef __STDC__
5448 # include <limits.h>
5449 #else
5450 # include <assert.h>
5451 #endif
5452 Syntax error
5453 _ACEOF
5454 if { (ac_try="$ac_cpp conftest.$ac_ext"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461 ac_status=$?
5462 grep -v '^ *+' conftest.er1 >conftest.err
5463 rm -f conftest.er1
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev/null; then
5467 if test -s conftest.err; then
5468 ac_cpp_err=$ac_c_preproc_warn_flag
5469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5470 else
5471 ac_cpp_err=
5473 else
5474 ac_cpp_err=yes
5476 if test -z "$ac_cpp_err"; then
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 # Broken: fails on valid input.
5483 continue
5486 rm -f conftest.err conftest.$ac_ext
5488 # OK, works on sane cases. Now check whether nonexistent headers
5489 # can be detected and how.
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 #include <ac_nonexistent.h>
5497 _ACEOF
5498 if { (ac_try="$ac_cpp conftest.$ac_ext"
5499 case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } >/dev/null; then
5511 if test -s conftest.err; then
5512 ac_cpp_err=$ac_c_preproc_warn_flag
5513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5514 else
5515 ac_cpp_err=
5517 else
5518 ac_cpp_err=yes
5520 if test -z "$ac_cpp_err"; then
5521 # Broken: success on invalid input.
5522 continue
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Passes both tests.
5528 ac_preproc_ok=:
5529 break
5532 rm -f conftest.err conftest.$ac_ext
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then
5538 break
5541 done
5542 ac_cv_prog_CPP=$CPP
5545 CPP=$ac_cv_prog_CPP
5546 else
5547 ac_cv_prog_CPP=$CPP
5549 { echo "$as_me:$LINENO: result: $CPP" >&5
5550 echo "${ECHO_T}$CPP" >&6; }
5551 ac_preproc_ok=false
5552 for ac_c_preproc_warn_flag in '' yes
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 # <limits.h> exists even on freestanding compilers.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #ifdef __STDC__
5567 # include <limits.h>
5568 #else
5569 # include <assert.h>
5570 #endif
5571 Syntax error
5572 _ACEOF
5573 if { (ac_try="$ac_cpp conftest.$ac_ext"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null; then
5586 if test -s conftest.err; then
5587 ac_cpp_err=$ac_c_preproc_warn_flag
5588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5589 else
5590 ac_cpp_err=
5592 else
5593 ac_cpp_err=yes
5595 if test -z "$ac_cpp_err"; then
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 # Broken: fails on valid input.
5602 continue
5605 rm -f conftest.err conftest.$ac_ext
5607 # OK, works on sane cases. Now check whether nonexistent headers
5608 # can be detected and how.
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #include <ac_nonexistent.h>
5616 _ACEOF
5617 if { (ac_try="$ac_cpp conftest.$ac_ext"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } >/dev/null; then
5630 if test -s conftest.err; then
5631 ac_cpp_err=$ac_c_preproc_warn_flag
5632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5633 else
5634 ac_cpp_err=
5636 else
5637 ac_cpp_err=yes
5639 if test -z "$ac_cpp_err"; then
5640 # Broken: success on invalid input.
5641 continue
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 # Passes both tests.
5647 ac_preproc_ok=:
5648 break
5651 rm -f conftest.err conftest.$ac_ext
5653 done
5654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5655 rm -f conftest.err conftest.$ac_ext
5656 if $ac_preproc_ok; then
5658 else
5659 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5660 See \`config.log' for more details." >&5
5661 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5662 See \`config.log' for more details." >&2;}
5663 { (exit 1); exit 1; }; }
5666 ac_ext=c
5667 ac_cpp='$CPP $CPPFLAGS'
5668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672 ac_ext=c
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 if test -n "$ac_tool_prefix"; then
5678 for ac_prog in gcc
5680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5684 if test "${ac_cv_prog_CC+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 if test -n "$CC"; then
5688 ac_cv_prog_CC="$CC" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 CC=$ac_cv_prog_CC
5708 if test -n "$CC"; then
5709 { echo "$as_me:$LINENO: result: $CC" >&5
5710 echo "${ECHO_T}$CC" >&6; }
5711 else
5712 { echo "$as_me:$LINENO: result: no" >&5
5713 echo "${ECHO_T}no" >&6; }
5717 test -n "$CC" && break
5718 done
5720 if test -z "$CC"; then
5721 ac_ct_CC=$CC
5722 for ac_prog in gcc
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$ac_ct_CC"; then
5732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_ac_ct_CC="$ac_prog"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5752 if test -n "$ac_ct_CC"; then
5753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5754 echo "${ECHO_T}$ac_ct_CC" >&6; }
5755 else
5756 { echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6; }
5761 test -n "$ac_ct_CC" && break
5762 done
5764 if test "x$ac_ct_CC" = x; then
5765 CC=""
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768 yes:)
5769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5770 whose name does not start with the host triplet. If you think this
5771 configuration is useful to you, please write to autoconf@gnu.org." >&5
5772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5773 whose name does not start with the host triplet. If you think this
5774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777 CC=$ac_ct_CC
5782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5783 See \`config.log' for more details." >&5
5784 echo "$as_me: error: no acceptable C compiler found in \$PATH
5785 See \`config.log' for more details." >&2;}
5786 { (exit 1); exit 1; }; }
5788 # Provide some information about the compiler.
5789 echo "$as_me:$LINENO: checking for C compiler version" >&5
5790 ac_compiler=`set X $ac_compile; echo $2`
5791 { (ac_try="$ac_compiler --version >&5"
5792 case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compiler --version >&5") 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }
5801 { (ac_try="$ac_compiler -v >&5"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compiler -v >&5") 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }
5811 { (ac_try="$ac_compiler -V >&5"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compiler -V >&5") 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }
5822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5835 main ()
5837 #ifndef __GNUC__
5838 choke me
5839 #endif
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_try") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_compiler_gnu=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_compiler_gnu=no
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5891 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5893 GCC=`test $ac_compiler_gnu = yes && echo yes`
5894 ac_test_CFLAGS=${CFLAGS+set}
5895 ac_save_CFLAGS=$CFLAGS
5896 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5897 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5898 if test "${ac_cv_prog_cc_g+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 ac_save_c_werror_flag=$ac_c_werror_flag
5902 ac_c_werror_flag=yes
5903 ac_cv_prog_cc_g=no
5904 CFLAGS="-g"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h. */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5913 main ()
5917 return 0;
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5922 case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5935 { (case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_try") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_try") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_prog_cc_g=yes
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 CFLAGS=""
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5968 main ()
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_c_werror_flag=$ac_save_c_werror_flag
6015 CFLAGS="-g"
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 main ()
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext
6032 if { (ac_try="$ac_compile"
6033 case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_compile") 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6046 { (case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_try") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (case "(($ac_try" in
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6059 esac
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_try") 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_prog_cc_g=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 ac_c_werror_flag=$ac_save_c_werror_flag
6082 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6084 if test "$ac_test_CFLAGS" = set; then
6085 CFLAGS=$ac_save_CFLAGS
6086 elif test $ac_cv_prog_cc_g = yes; then
6087 if test "$GCC" = yes; then
6088 CFLAGS="-g -O2"
6089 else
6090 CFLAGS="-g"
6092 else
6093 if test "$GCC" = yes; then
6094 CFLAGS="-O2"
6095 else
6096 CFLAGS=
6099 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6100 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_cc_c89+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 ac_cv_prog_cc_c89=no
6105 ac_save_CC=$CC
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <stdarg.h>
6113 #include <stdio.h>
6114 #include <sys/types.h>
6115 #include <sys/stat.h>
6116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6117 struct buf { int x; };
6118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6119 static char *e (p, i)
6120 char **p;
6121 int i;
6123 return p[i];
6125 static char *f (char * (*g) (char **, int), char **p, ...)
6127 char *s;
6128 va_list v;
6129 va_start (v,p);
6130 s = g (p, va_arg (v,int));
6131 va_end (v);
6132 return s;
6135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6136 function prototypes and stuff, but not '\xHH' hex character constants.
6137 These don't provoke an error unfortunately, instead are silently treated
6138 as 'x'. The following induces an error, until -std is added to get
6139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6140 array size at least. It's necessary to write '\x00'==0 to get something
6141 that's true only with -std. */
6142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6145 inside strings and character constants. */
6146 #define FOO(x) 'x'
6147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6149 int test (int i, double x);
6150 struct s1 {int (*f) (int a);};
6151 struct s2 {int (*f) (double a);};
6152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6153 int argc;
6154 char **argv;
6156 main ()
6158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6160 return 0;
6162 _ACEOF
6163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6166 CC="$ac_save_CC $ac_arg"
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_prog_cc_c89=$ac_arg
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f core conftest.err conftest.$ac_objext
6210 test "x$ac_cv_prog_cc_c89" != "xno" && break
6211 done
6212 rm -f conftest.$ac_ext
6213 CC=$ac_save_CC
6216 # AC_CACHE_VAL
6217 case "x$ac_cv_prog_cc_c89" in
6219 { echo "$as_me:$LINENO: result: none needed" >&5
6220 echo "${ECHO_T}none needed" >&6; } ;;
6221 xno)
6222 { echo "$as_me:$LINENO: result: unsupported" >&5
6223 echo "${ECHO_T}unsupported" >&6; } ;;
6225 CC="$CC $ac_cv_prog_cc_c89"
6226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6227 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6228 esac
6231 ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237 ac_ext=cpp
6238 ac_cpp='$CXXCPP $CPPFLAGS'
6239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6242 if test -z "$CXX"; then
6243 if test -n "$CCC"; then
6244 CXX=$CCC
6245 else
6246 if test -n "$ac_tool_prefix"; then
6247 for ac_prog in g++
6249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6253 if test "${ac_cv_prog_CXX+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 if test -n "$CXX"; then
6257 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6270 done
6271 done
6272 IFS=$as_save_IFS
6276 CXX=$ac_cv_prog_CXX
6277 if test -n "$CXX"; then
6278 { echo "$as_me:$LINENO: result: $CXX" >&5
6279 echo "${ECHO_T}$CXX" >&6; }
6280 else
6281 { echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6; }
6286 test -n "$CXX" && break
6287 done
6289 if test -z "$CXX"; then
6290 ac_ct_CXX=$CXX
6291 for ac_prog in g++
6293 # Extract the first word of "$ac_prog", so it can be a program name with args.
6294 set dummy $ac_prog; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$ac_ct_CXX"; then
6301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_CXX="$ac_prog"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6321 if test -n "$ac_ct_CXX"; then
6322 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6323 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6330 test -n "$ac_ct_CXX" && break
6331 done
6333 if test "x$ac_ct_CXX" = x; then
6334 CXX="g++"
6335 else
6336 case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6339 whose name does not start with the host triplet. If you think this
6340 configuration is useful to you, please write to autoconf@gnu.org." >&5
6341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6342 whose name does not start with the host triplet. If you think this
6343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346 CXX=$ac_ct_CXX
6352 # Provide some information about the compiler.
6353 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6354 ac_compiler=`set X $ac_compile; echo $2`
6355 { (ac_try="$ac_compiler --version >&5"
6356 case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compiler --version >&5") 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }
6365 { (ac_try="$ac_compiler -v >&5"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compiler -v >&5") 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }
6375 { (ac_try="$ac_compiler -V >&5"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compiler -V >&5") 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
6386 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6387 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6388 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6399 main ()
6401 #ifndef __GNUC__
6402 choke me
6403 #endif
6406 return 0;
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_try") 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_compiler_gnu=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_compiler_gnu=no
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6457 GXX=`test $ac_compiler_gnu = yes && echo yes`
6458 ac_test_CXXFLAGS=${CXXFLAGS+set}
6459 ac_save_CXXFLAGS=$CXXFLAGS
6460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6462 if test "${ac_cv_prog_cxx_g+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6466 ac_cxx_werror_flag=yes
6467 ac_cv_prog_cxx_g=no
6468 CXXFLAGS="-g"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6477 main ()
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_try") 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_prog_cxx_g=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 CXXFLAGS=""
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6532 main ()
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6554 { (case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_try") 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6579 CXXFLAGS="-g"
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6588 main ()
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6610 { (case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_try") 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_try") 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_prog_cxx_g=yes
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6648 if test "$ac_test_CXXFLAGS" = set; then
6649 CXXFLAGS=$ac_save_CXXFLAGS
6650 elif test $ac_cv_prog_cxx_g = yes; then
6651 if test "$GXX" = yes; then
6652 CXXFLAGS="-g -O2"
6653 else
6654 CXXFLAGS="-g"
6656 else
6657 if test "$GXX" = yes; then
6658 CXXFLAGS="-O2"
6659 else
6660 CXXFLAGS=
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6671 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6672 if test "${lt_cv_path_NM+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 if test -n "$NM"; then
6676 # Let the user override the test.
6677 lt_cv_path_NM="$NM"
6678 else
6679 lt_nm_to_check="${ac_tool_prefix}nm"
6680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6681 lt_nm_to_check="$lt_nm_to_check nm"
6683 for lt_tmp_nm in $lt_nm_to_check; do
6684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6686 IFS="$lt_save_ifs"
6687 test -z "$ac_dir" && ac_dir=.
6688 tmp_nm="$ac_dir/$lt_tmp_nm"
6689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6690 # Check to see if the nm accepts a BSD-compat flag.
6691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6692 # nm: unknown option "B" ignored
6693 # Tru64's nm complains that /dev/null is an invalid object file
6694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6695 */dev/null* | *'Invalid file or object type'*)
6696 lt_cv_path_NM="$tmp_nm -B"
6697 break
6700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6701 */dev/null*)
6702 lt_cv_path_NM="$tmp_nm -p"
6703 break
6706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6707 continue # so that we can try to find one that supports BSD flags
6709 esac
6711 esac
6713 done
6714 IFS="$lt_save_ifs"
6715 done
6716 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6719 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6720 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6721 NM="$lt_cv_path_NM"
6725 { echo "$as_me:$LINENO: checking for GNU make" >&5
6726 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6727 if test "${llvm_cv_gnu_make_command+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 llvm_cv_gnu_make_command=''
6731 for a in "$MAKE" make gmake gnumake ; do
6732 if test -z "$a" ; then continue ; fi ;
6733 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6734 then
6735 llvm_cv_gnu_make_command=$a ;
6736 break;
6738 done
6740 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6741 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6742 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6743 ifGNUmake='' ;
6744 else
6745 ifGNUmake='#' ;
6746 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6747 echo "${ECHO_T}\"Not found\"" >&6; };
6751 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6753 LN_S=$as_ln_s
6754 if test "$LN_S" = "ln -s"; then
6755 { echo "$as_me:$LINENO: result: yes" >&5
6756 echo "${ECHO_T}yes" >&6; }
6757 else
6758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6759 echo "${ECHO_T}no, using $LN_S" >&6; }
6762 # Extract the first word of "cmp", so it can be a program name with args.
6763 set dummy cmp; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_CMP+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 case $CMP in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6785 done
6786 done
6787 IFS=$as_save_IFS
6789 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6791 esac
6793 CMP=$ac_cv_path_CMP
6794 if test -n "$CMP"; then
6795 { echo "$as_me:$LINENO: result: $CMP" >&5
6796 echo "${ECHO_T}$CMP" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "cp", so it can be a program name with args.
6804 set dummy cp; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_CP+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 case $CP in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6828 IFS=$as_save_IFS
6830 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6832 esac
6834 CP=$ac_cv_path_CP
6835 if test -n "$CP"; then
6836 { echo "$as_me:$LINENO: result: $CP" >&5
6837 echo "${ECHO_T}$CP" >&6; }
6838 else
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 # Extract the first word of "date", so it can be a program name with args.
6845 set dummy date; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_DATE+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851 case $DATE in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6867 done
6868 done
6869 IFS=$as_save_IFS
6871 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6873 esac
6875 DATE=$ac_cv_path_DATE
6876 if test -n "$DATE"; then
6877 { echo "$as_me:$LINENO: result: $DATE" >&5
6878 echo "${ECHO_T}$DATE" >&6; }
6879 else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881 echo "${ECHO_T}no" >&6; }
6885 # Extract the first word of "find", so it can be a program name with args.
6886 set dummy find; ac_word=$2
6887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6889 if test "${ac_cv_path_FIND+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 case $FIND in
6893 [\\/]* | ?:[\\/]*)
6894 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6908 done
6909 done
6910 IFS=$as_save_IFS
6912 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6914 esac
6916 FIND=$ac_cv_path_FIND
6917 if test -n "$FIND"; then
6918 { echo "$as_me:$LINENO: result: $FIND" >&5
6919 echo "${ECHO_T}$FIND" >&6; }
6920 else
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6926 # Extract the first word of "grep", so it can be a program name with args.
6927 set dummy grep; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_path_GREP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 case $GREP in
6934 [\\/]* | ?:[\\/]*)
6935 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6953 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6955 esac
6957 GREP=$ac_cv_path_GREP
6958 if test -n "$GREP"; then
6959 { echo "$as_me:$LINENO: result: $GREP" >&5
6960 echo "${ECHO_T}$GREP" >&6; }
6961 else
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6967 # Extract the first word of "mkdir", so it can be a program name with args.
6968 set dummy mkdir; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_path_MKDIR+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 case $MKDIR in
6975 [\\/]* | ?:[\\/]*)
6976 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6992 IFS=$as_save_IFS
6994 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6996 esac
6998 MKDIR=$ac_cv_path_MKDIR
6999 if test -n "$MKDIR"; then
7000 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7001 echo "${ECHO_T}$MKDIR" >&6; }
7002 else
7003 { echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6; }
7008 # Extract the first word of "mv", so it can be a program name with args.
7009 set dummy mv; ac_word=$2
7010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012 if test "${ac_cv_path_MV+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 case $MV in
7016 [\\/]* | ?:[\\/]*)
7017 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7035 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7037 esac
7039 MV=$ac_cv_path_MV
7040 if test -n "$MV"; then
7041 { echo "$as_me:$LINENO: result: $MV" >&5
7042 echo "${ECHO_T}$MV" >&6; }
7043 else
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7054 if test "${ac_cv_prog_RANLIB+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 if test -n "$RANLIB"; then
7058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7077 RANLIB=$ac_cv_prog_RANLIB
7078 if test -n "$RANLIB"; then
7079 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7080 echo "${ECHO_T}$RANLIB" >&6; }
7081 else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089 ac_ct_RANLIB=$RANLIB
7090 # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 if test -n "$ac_ct_RANLIB"; then
7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_ac_ct_RANLIB="ranlib"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7111 done
7112 done
7113 IFS=$as_save_IFS
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7121 else
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7126 if test "x$ac_ct_RANLIB" = x; then
7127 RANLIB=":"
7128 else
7129 case $cross_compiling:$ac_tool_warned in
7130 yes:)
7131 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7132 whose name does not start with the host triplet. If you think this
7133 configuration is useful to you, please write to autoconf@gnu.org." >&5
7134 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7135 whose name does not start with the host triplet. If you think this
7136 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 RANLIB=$ac_ct_RANLIB
7141 else
7142 RANLIB="$ac_cv_prog_RANLIB"
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}ar; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_prog_AR+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 if test -n "$AR"; then
7154 ac_cv_prog_AR="$AR" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_AR="${ac_tool_prefix}ar"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 AR=$ac_cv_prog_AR
7174 if test -n "$AR"; then
7175 { echo "$as_me:$LINENO: result: $AR" >&5
7176 echo "${ECHO_T}$AR" >&6; }
7177 else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 if test -z "$ac_cv_prog_AR"; then
7185 ac_ct_AR=$AR
7186 # Extract the first word of "ar", so it can be a program name with args.
7187 set dummy ar; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 if test -n "$ac_ct_AR"; then
7194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_AR="ar"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7214 if test -n "$ac_ct_AR"; then
7215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7216 echo "${ECHO_T}$ac_ct_AR" >&6; }
7217 else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7222 if test "x$ac_ct_AR" = x; then
7223 AR="false"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 AR=$ac_ct_AR
7237 else
7238 AR="$ac_cv_prog_AR"
7241 # Extract the first word of "rm", so it can be a program name with args.
7242 set dummy rm; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_RM+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $RM in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7264 done
7265 done
7266 IFS=$as_save_IFS
7268 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7270 esac
7272 RM=$ac_cv_path_RM
7273 if test -n "$RM"; then
7274 { echo "$as_me:$LINENO: result: $RM" >&5
7275 echo "${ECHO_T}$RM" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "sed", so it can be a program name with args.
7283 set dummy sed; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_SED+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 case $SED in
7290 [\\/]* | ?:[\\/]*)
7291 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7309 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7311 esac
7313 SED=$ac_cv_path_SED
7314 if test -n "$SED"; then
7315 { echo "$as_me:$LINENO: result: $SED" >&5
7316 echo "${ECHO_T}$SED" >&6; }
7317 else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 # Extract the first word of "tar", so it can be a program name with args.
7324 set dummy tar; ac_word=$2
7325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7327 if test "${ac_cv_path_TAR+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330 case $TAR in
7331 [\\/]* | ?:[\\/]*)
7332 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7346 done
7347 done
7348 IFS=$as_save_IFS
7350 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7352 esac
7354 TAR=$ac_cv_path_TAR
7355 if test -n "$TAR"; then
7356 { echo "$as_me:$LINENO: result: $TAR" >&5
7357 echo "${ECHO_T}$TAR" >&6; }
7358 else
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7364 # Extract the first word of "pwd", so it can be a program name with args.
7365 set dummy pwd; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_BINPWD+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371 case $BINPWD in
7372 [\\/]* | ?:[\\/]*)
7373 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7387 done
7388 done
7389 IFS=$as_save_IFS
7391 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7393 esac
7395 BINPWD=$ac_cv_path_BINPWD
7396 if test -n "$BINPWD"; then
7397 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7398 echo "${ECHO_T}$BINPWD" >&6; }
7399 else
7400 { echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6; }
7406 # Extract the first word of "Graphviz", so it can be a program name with args.
7407 set dummy Graphviz; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 case $GRAPHVIZ in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7433 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7435 esac
7437 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7438 if test -n "$GRAPHVIZ"; then
7439 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7440 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7441 else
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7447 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_GRAPHVIZ 1
7451 _ACEOF
7453 if test "$llvm_cv_os_type" = "MingW" ; then
7454 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7457 cat >>confdefs.h <<_ACEOF
7458 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7459 _ACEOF
7462 # Extract the first word of "dot", so it can be a program name with args.
7463 set dummy dot; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOT+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 case $DOT in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7489 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7491 esac
7493 DOT=$ac_cv_path_DOT
7494 if test -n "$DOT"; then
7495 { echo "$as_me:$LINENO: result: $DOT" >&5
7496 echo "${ECHO_T}$DOT" >&6; }
7497 else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 if test "$DOT" != "echo dot" ; then
7505 cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_DOT 1
7507 _ACEOF
7509 if test "$llvm_cv_os_type" = "MingW" ; then
7510 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7513 cat >>confdefs.h <<_ACEOF
7514 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7515 _ACEOF
7518 # Extract the first word of "fdp", so it can be a program name with args.
7519 set dummy fdp; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_path_FDP+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 case $FDP in
7526 [\\/]* | ?:[\\/]*)
7527 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7537 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7541 done
7542 done
7543 IFS=$as_save_IFS
7545 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7547 esac
7549 FDP=$ac_cv_path_FDP
7550 if test -n "$FDP"; then
7551 { echo "$as_me:$LINENO: result: $FDP" >&5
7552 echo "${ECHO_T}$FDP" >&6; }
7553 else
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7559 if test "$FDP" != "echo fdp" ; then
7561 cat >>confdefs.h <<\_ACEOF
7562 #define HAVE_FDP 1
7563 _ACEOF
7565 if test "$llvm_cv_os_type" = "MingW" ; then
7566 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7569 cat >>confdefs.h <<_ACEOF
7570 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7571 _ACEOF
7574 # Extract the first word of "neato", so it can be a program name with args.
7575 set dummy neato; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_NEATO+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581 case $NEATO in
7582 [\\/]* | ?:[\\/]*)
7583 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7601 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7603 esac
7605 NEATO=$ac_cv_path_NEATO
7606 if test -n "$NEATO"; then
7607 { echo "$as_me:$LINENO: result: $NEATO" >&5
7608 echo "${ECHO_T}$NEATO" >&6; }
7609 else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 if test "$NEATO" != "echo neato" ; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_NEATO 1
7619 _ACEOF
7621 if test "$llvm_cv_os_type" = "MingW" ; then
7622 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7625 cat >>confdefs.h <<_ACEOF
7626 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7627 _ACEOF
7630 # Extract the first word of "twopi", so it can be a program name with args.
7631 set dummy twopi; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_TWOPI+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 case $TWOPI in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7657 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7659 esac
7661 TWOPI=$ac_cv_path_TWOPI
7662 if test -n "$TWOPI"; then
7663 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7664 echo "${ECHO_T}$TWOPI" >&6; }
7665 else
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 if test "$TWOPI" != "echo twopi" ; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_TWOPI 1
7675 _ACEOF
7677 if test "$llvm_cv_os_type" = "MingW" ; then
7678 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7681 cat >>confdefs.h <<_ACEOF
7682 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7683 _ACEOF
7686 # Extract the first word of "circo", so it can be a program name with args.
7687 set dummy circo; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_CIRCO+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 case $CIRCO in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7709 done
7710 done
7711 IFS=$as_save_IFS
7713 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7715 esac
7717 CIRCO=$ac_cv_path_CIRCO
7718 if test -n "$CIRCO"; then
7719 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7720 echo "${ECHO_T}$CIRCO" >&6; }
7721 else
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 if test "$CIRCO" != "echo circo" ; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_CIRCO 1
7731 _ACEOF
7733 if test "$llvm_cv_os_type" = "MingW" ; then
7734 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7737 cat >>confdefs.h <<_ACEOF
7738 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7739 _ACEOF
7742 for ac_prog in gv gsview32
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_GV+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 case $GV in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7772 esac
7774 GV=$ac_cv_path_GV
7775 if test -n "$GV"; then
7776 { echo "$as_me:$LINENO: result: $GV" >&5
7777 echo "${ECHO_T}$GV" >&6; }
7778 else
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7784 test -n "$GV" && break
7785 done
7786 test -n "$GV" || GV="echo gv"
7788 if test "$GV" != "echo gv" ; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_GV 1
7792 _ACEOF
7794 if test "$llvm_cv_os_type" = "MingW" ; then
7795 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7798 cat >>confdefs.h <<_ACEOF
7799 #define LLVM_PATH_GV "$GV${EXEEXT}"
7800 _ACEOF
7803 # Extract the first word of "dotty", so it can be a program name with args.
7804 set dummy dotty; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_DOTTY+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810 case $DOTTY in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7830 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7832 esac
7834 DOTTY=$ac_cv_path_DOTTY
7835 if test -n "$DOTTY"; then
7836 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7837 echo "${ECHO_T}$DOTTY" >&6; }
7838 else
7839 { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7844 if test "$DOTTY" != "echo dotty" ; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DOTTY 1
7848 _ACEOF
7850 if test "$llvm_cv_os_type" = "MingW" ; then
7851 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7854 cat >>confdefs.h <<_ACEOF
7855 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7856 _ACEOF
7861 # Extract the first word of "perl", so it can be a program name with args.
7862 set dummy perl; ac_word=$2
7863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865 if test "${ac_cv_path_PERL+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 case $PERL in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7888 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7890 esac
7892 PERL=$ac_cv_path_PERL
7893 if test -n "$PERL"; then
7894 { echo "$as_me:$LINENO: result: $PERL" >&5
7895 echo "${ECHO_T}$PERL" >&6; }
7896 else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7902 if test "$PERL" != "none"; then
7903 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7904 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7905 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7906 { echo "$as_me:$LINENO: result: yes" >&5
7907 echo "${ECHO_T}yes" >&6; }
7908 else
7909 PERL=none
7910 { echo "$as_me:$LINENO: result: not found" >&5
7911 echo "${ECHO_T}not found" >&6; }
7916 if test x"$PERL" = xnone; then
7917 HAVE_PERL=0
7919 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7920 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7921 { (exit 1); exit 1; }; }
7922 else
7923 HAVE_PERL=1
7927 # Find a good install program. We prefer a C program (faster),
7928 # so one script is as good as another. But avoid the broken or
7929 # incompatible versions:
7930 # SysV /etc/install, /usr/sbin/install
7931 # SunOS /usr/etc/install
7932 # IRIX /sbin/install
7933 # AIX /bin/install
7934 # AmigaOS /C/install, which installs bootblocks on floppy discs
7935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7938 # OS/2's system install, which has a completely different semantic
7939 # ./install, which can be erroneously created by make from ./install.sh.
7940 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7942 if test -z "$INSTALL"; then
7943 if test "${ac_cv_path_install+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 # Account for people who put trailing slashes in PATH elements.
7952 case $as_dir/ in
7953 ./ | .// | /cC/* | \
7954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7956 /usr/ucb/* ) ;;
7958 # OSF1 and SCO ODT 3.0 have their own names for install.
7959 # Don't use installbsd from OSF since it installs stuff as root
7960 # by default.
7961 for ac_prog in ginstall scoinst install; do
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7964 if test $ac_prog = install &&
7965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7966 # AIX install. It has an incompatible calling convention.
7968 elif test $ac_prog = install &&
7969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # program-specific install script used by HP pwplus--don't use.
7972 else
7973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7974 break 3
7977 done
7978 done
7980 esac
7981 done
7982 IFS=$as_save_IFS
7986 if test "${ac_cv_path_install+set}" = set; then
7987 INSTALL=$ac_cv_path_install
7988 else
7989 # As a last resort, use the slow shell script. Don't cache a
7990 # value for INSTALL within a source directory, because that will
7991 # break other packages using the cache if that directory is
7992 # removed, or if the value is a relative name.
7993 INSTALL=$ac_install_sh
7996 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7997 echo "${ECHO_T}$INSTALL" >&6; }
7999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8000 # It thinks the first close brace ends the variable substitution.
8001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8007 case "$INSTALL" in
8008 [\\/$]* | ?:[\\/]* ) ;;
8009 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8010 esac
8012 # Extract the first word of "bzip2", so it can be a program name with args.
8013 set dummy bzip2; ac_word=$2
8014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_BZIP2+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 case $BZIP2 in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8040 esac
8042 BZIP2=$ac_cv_path_BZIP2
8043 if test -n "$BZIP2"; then
8044 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8045 echo "${ECHO_T}$BZIP2" >&6; }
8046 else
8047 { echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6; }
8052 # Extract the first word of "cat", so it can be a program name with args.
8053 set dummy cat; ac_word=$2
8054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8056 if test "${ac_cv_path_CAT+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 case $CAT in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8080 esac
8082 CAT=$ac_cv_path_CAT
8083 if test -n "$CAT"; then
8084 { echo "$as_me:$LINENO: result: $CAT" >&5
8085 echo "${ECHO_T}$CAT" >&6; }
8086 else
8087 { echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6; }
8092 # Extract the first word of "doxygen", so it can be a program name with args.
8093 set dummy doxygen; ac_word=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 case $DOXYGEN in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8117 IFS=$as_save_IFS
8120 esac
8122 DOXYGEN=$ac_cv_path_DOXYGEN
8123 if test -n "$DOXYGEN"; then
8124 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8125 echo "${ECHO_T}$DOXYGEN" >&6; }
8126 else
8127 { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8132 # Extract the first word of "groff", so it can be a program name with args.
8133 set dummy groff; ac_word=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_path_GROFF+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 case $GROFF in
8140 [\\/]* | ?:[\\/]*)
8141 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8155 done
8156 done
8157 IFS=$as_save_IFS
8160 esac
8162 GROFF=$ac_cv_path_GROFF
8163 if test -n "$GROFF"; then
8164 { echo "$as_me:$LINENO: result: $GROFF" >&5
8165 echo "${ECHO_T}$GROFF" >&6; }
8166 else
8167 { echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6; }
8172 # Extract the first word of "gzip", so it can be a program name with args.
8173 set dummy gzip; ac_word=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_path_GZIP+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179 case $GZIP in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8200 esac
8202 GZIP=$ac_cv_path_GZIP
8203 if test -n "$GZIP"; then
8204 { echo "$as_me:$LINENO: result: $GZIP" >&5
8205 echo "${ECHO_T}$GZIP" >&6; }
8206 else
8207 { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8212 # Extract the first word of "pod2html", so it can be a program name with args.
8213 set dummy pod2html; ac_word=$2
8214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8216 if test "${ac_cv_path_POD2HTML+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 case $POD2HTML in
8220 [\\/]* | ?:[\\/]*)
8221 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8240 esac
8242 POD2HTML=$ac_cv_path_POD2HTML
8243 if test -n "$POD2HTML"; then
8244 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8245 echo "${ECHO_T}$POD2HTML" >&6; }
8246 else
8247 { echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6; }
8252 # Extract the first word of "pod2man", so it can be a program name with args.
8253 set dummy pod2man; ac_word=$2
8254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8256 if test "${ac_cv_path_POD2MAN+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259 case $POD2MAN in
8260 [\\/]* | ?:[\\/]*)
8261 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8275 done
8276 done
8277 IFS=$as_save_IFS
8280 esac
8282 POD2MAN=$ac_cv_path_POD2MAN
8283 if test -n "$POD2MAN"; then
8284 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8285 echo "${ECHO_T}$POD2MAN" >&6; }
8286 else
8287 { echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6; }
8292 # Extract the first word of "pdfroff", so it can be a program name with args.
8293 set dummy pdfroff; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_PDFROFF+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 case $PDFROFF in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8320 esac
8322 PDFROFF=$ac_cv_path_PDFROFF
8323 if test -n "$PDFROFF"; then
8324 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8325 echo "${ECHO_T}$PDFROFF" >&6; }
8326 else
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 # Extract the first word of "runtest", so it can be a program name with args.
8333 set dummy runtest; ac_word=$2
8334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336 if test "${ac_cv_path_RUNTEST+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 case $RUNTEST in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8360 esac
8362 RUNTEST=$ac_cv_path_RUNTEST
8363 if test -n "$RUNTEST"; then
8364 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8365 echo "${ECHO_T}$RUNTEST" >&6; }
8366 else
8367 { echo "$as_me:$LINENO: result: no" >&5
8368 echo "${ECHO_T}no" >&6; }
8373 no_itcl=true
8374 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8375 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8377 # Check whether --with-tclinclude was given.
8378 if test "${with_tclinclude+set}" = set; then
8379 withval=$with_tclinclude; with_tclinclude=${withval}
8380 else
8381 with_tclinclude=''
8384 if test "${ac_cv_path_tclsh+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8388 if test x"${with_tclinclude}" != x ; then
8389 if test -f ${with_tclinclude}/tclsh ; then
8390 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8391 elif test -f ${with_tclinclude}/src/tclsh ; then
8392 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8393 else
8394 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8395 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8396 { (exit 1); exit 1; }; }
8402 if test x"${ac_cv_path_tclsh}" = x ; then
8403 { echo "$as_me:$LINENO: result: none" >&5
8404 echo "${ECHO_T}none" >&6; }
8405 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
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_TCLSH+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 case $TCLSH in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8435 esac
8437 TCLSH=$ac_cv_path_TCLSH
8438 if test -n "$TCLSH"; then
8439 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8440 echo "${ECHO_T}$TCLSH" >&6; }
8441 else
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 test -n "$TCLSH" && break
8448 done
8450 if test x"${TCLSH}" = x ; then
8451 ac_cv_path_tclsh='';
8452 else
8453 ac_cv_path_tclsh="${TCLSH}";
8455 else
8456 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8457 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8458 TCLSH="${ac_cv_path_tclsh}"
8462 # Extract the first word of "zip", so it can be a program name with args.
8463 set dummy zip; ac_word=$2
8464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8466 if test "${ac_cv_path_ZIP+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 case $ZIP in
8470 [\\/]* | ?:[\\/]*)
8471 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8485 done
8486 done
8487 IFS=$as_save_IFS
8490 esac
8492 ZIP=$ac_cv_path_ZIP
8493 if test -n "$ZIP"; then
8494 { echo "$as_me:$LINENO: result: $ZIP" >&5
8495 echo "${ECHO_T}$ZIP" >&6; }
8496 else
8497 { echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6; }
8502 for ac_prog in ocamlc
8504 # Extract the first word of "$ac_prog", so it can be a program name with args.
8505 set dummy $ac_prog; ac_word=$2
8506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8508 if test "${ac_cv_path_OCAMLC+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 case $OCAMLC in
8512 [\\/]* | ?:[\\/]*)
8513 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8527 done
8528 done
8529 IFS=$as_save_IFS
8532 esac
8534 OCAMLC=$ac_cv_path_OCAMLC
8535 if test -n "$OCAMLC"; then
8536 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8537 echo "${ECHO_T}$OCAMLC" >&6; }
8538 else
8539 { echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6; }
8544 test -n "$OCAMLC" && break
8545 done
8547 for ac_prog in ocamlopt
8549 # Extract the first word of "$ac_prog", so it can be a program name with args.
8550 set dummy $ac_prog; ac_word=$2
8551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8553 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556 case $OCAMLOPT in
8557 [\\/]* | ?:[\\/]*)
8558 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8572 done
8573 done
8574 IFS=$as_save_IFS
8577 esac
8579 OCAMLOPT=$ac_cv_path_OCAMLOPT
8580 if test -n "$OCAMLOPT"; then
8581 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8582 echo "${ECHO_T}$OCAMLOPT" >&6; }
8583 else
8584 { echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6; }
8589 test -n "$OCAMLOPT" && break
8590 done
8592 for ac_prog in ocamldep
8594 # Extract the first word of "$ac_prog", so it can be a program name with args.
8595 set dummy $ac_prog; ac_word=$2
8596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8598 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 case $OCAMLDEP in
8602 [\\/]* | ?:[\\/]*)
8603 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8617 done
8618 done
8619 IFS=$as_save_IFS
8622 esac
8624 OCAMLDEP=$ac_cv_path_OCAMLDEP
8625 if test -n "$OCAMLDEP"; then
8626 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8627 echo "${ECHO_T}$OCAMLDEP" >&6; }
8628 else
8629 { echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6; }
8634 test -n "$OCAMLDEP" && break
8635 done
8637 for ac_prog in ocamldoc
8639 # Extract the first word of "$ac_prog", so it can be a program name with args.
8640 set dummy $ac_prog; ac_word=$2
8641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8643 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 case $OCAMLDOC in
8647 [\\/]* | ?:[\\/]*)
8648 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8662 done
8663 done
8664 IFS=$as_save_IFS
8667 esac
8669 OCAMLDOC=$ac_cv_path_OCAMLDOC
8670 if test -n "$OCAMLDOC"; then
8671 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8672 echo "${ECHO_T}$OCAMLDOC" >&6; }
8673 else
8674 { echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6; }
8679 test -n "$OCAMLDOC" && break
8680 done
8682 for ac_prog in gas as
8684 # Extract the first word of "$ac_prog", so it can be a program name with args.
8685 set dummy $ac_prog; ac_word=$2
8686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8688 if test "${ac_cv_path_GAS+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 case $GAS in
8692 [\\/]* | ?:[\\/]*)
8693 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8707 done
8708 done
8709 IFS=$as_save_IFS
8712 esac
8714 GAS=$ac_cv_path_GAS
8715 if test -n "$GAS"; then
8716 { echo "$as_me:$LINENO: result: $GAS" >&5
8717 echo "${ECHO_T}$GAS" >&6; }
8718 else
8719 { echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6; }
8724 test -n "$GAS" && break
8725 done
8728 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8729 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8730 if test "${llvm_cv_link_use_r+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 ac_ext=c
8734 ac_cpp='$CPP $CPPFLAGS'
8735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739 oldcflags="$CFLAGS"
8740 CFLAGS="$CFLAGS -Wl,-R."
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h. */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8749 main ()
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (ac_try="$ac_link"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_link") 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; } &&
8780 { ac_try='test -s conftest$ac_exeext'
8781 { (case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_try") 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 llvm_cv_link_use_r=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 llvm_cv_link_use_r=no
8798 rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800 CFLAGS="$oldcflags"
8801 ac_ext=c
8802 ac_cpp='$CPP $CPPFLAGS'
8803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8810 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8811 if test "$llvm_cv_link_use_r" = yes ; then
8813 cat >>confdefs.h <<\_ACEOF
8814 #define HAVE_LINK_R 1
8815 _ACEOF
8820 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8821 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8822 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 ac_ext=c
8826 ac_cpp='$CPP $CPPFLAGS'
8827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831 oldcflags="$CFLAGS"
8832 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8841 main ()
8845 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (ac_try="$ac_link"
8850 case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_link") 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest$ac_exeext'
8873 { (case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_try") 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 llvm_cv_link_use_export_dynamic=yes
8883 else
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 llvm_cv_link_use_export_dynamic=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 CFLAGS="$oldcflags"
8893 ac_ext=c
8894 ac_cpp='$CPP $CPPFLAGS'
8895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8902 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8903 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8905 cat >>confdefs.h <<\_ACEOF
8906 #define HAVE_LINK_EXPORT_DYNAMIC 1
8907 _ACEOF
8912 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8913 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8914 if test "${llvm_cv_link_use_version_script+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917 ac_ext=c
8918 ac_cpp='$CPP $CPPFLAGS'
8919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923 oldcflags="$CFLAGS"
8925 # The following code is from the autoconf manual,
8926 # "11.13: Limitations of Usual Tools".
8927 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8928 # Use mktemp if possible; otherwise fall back on mkdir,
8929 # with $RANDOM to make collisions less likely.
8930 : ${TMPDIR=/tmp}
8932 tmp=`
8933 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8934 ` &&
8935 test -n "$tmp" && test -d "$tmp"
8936 } || {
8937 tmp=$TMPDIR/foo$$-$RANDOM
8938 (umask 077 && mkdir "$tmp")
8939 } || exit $?
8941 echo "{" > "$tmp/export.map"
8942 echo " global: main;" >> "$tmp/export.map"
8943 echo " local: *;" >> "$tmp/export.map"
8944 echo "};" >> "$tmp/export.map"
8946 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8955 main ()
8959 return 0;
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_link") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8977 { (case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980 esac
8981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8982 (eval "$ac_try") 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (case "(($ac_try" in
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_try") 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 llvm_cv_link_use_version_script=yes
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 llvm_cv_link_use_version_script=no
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 rm "$tmp/export.map"
9007 rmdir "$tmp"
9008 CFLAGS="$oldcflags"
9009 ac_ext=c
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9018 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9019 if test "$llvm_cv_link_use_version_script" = yes ; then
9020 HAVE_LINK_VERSION_SCRIPT=1
9027 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9028 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9029 if test "${ac_cv_c_const+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9040 main ()
9042 /* FIXME: Include the comments suggested by Paul. */
9043 #ifndef __cplusplus
9044 /* Ultrix mips cc rejects this. */
9045 typedef int charset[2];
9046 const charset x;
9047 /* SunOS 4.1.1 cc rejects this. */
9048 char const *const *ccp;
9049 char **p;
9050 /* NEC SVR4.0.2 mips cc rejects this. */
9051 struct point {int x, y;};
9052 static struct point const zero = {0,0};
9053 /* AIX XL C 1.02.0.0 rejects this.
9054 It does not let you subtract one const X* pointer from another in
9055 an arm of an if-expression whose if-part is not a constant
9056 expression */
9057 const char *g = "string";
9058 ccp = &g + (g ? g-g : 0);
9059 /* HPUX 7.0 cc rejects these. */
9060 ++ccp;
9061 p = (char**) ccp;
9062 ccp = (char const *const *) p;
9063 { /* SCO 3.2v4 cc rejects this. */
9064 char *t;
9065 char const *s = 0 ? (char *) 0 : (char const *) 0;
9067 *t++ = 0;
9068 if (s) return 0;
9070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9071 int x[] = {25, 17};
9072 const int *foo = &x[0];
9073 ++foo;
9075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9076 typedef const int *iptr;
9077 iptr p = 0;
9078 ++p;
9080 { /* AIX XL C 1.02.0.0 rejects this saying
9081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9082 struct s { int j; const int *ap[3]; };
9083 struct s *b; b->j = 5;
9085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9086 const int foo = 10;
9087 if (!foo) return 0;
9089 return !x[0] && !zero.x;
9090 #endif
9093 return 0;
9095 _ACEOF
9096 rm -f conftest.$ac_objext
9097 if { (ac_try="$ac_compile"
9098 case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101 esac
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_compile") 2>conftest.er1
9104 ac_status=$?
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9111 { (case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114 esac
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_try") 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest.$ac_objext'
9121 { (case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_try") 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_c_const=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_cv_c_const=no
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9141 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9142 if test $ac_cv_c_const = no; then
9144 cat >>confdefs.h <<\_ACEOF
9145 #define const
9146 _ACEOF
9155 ac_header_dirent=no
9156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9157 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9158 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 #include <sys/types.h>
9170 #include <$ac_hdr>
9173 main ()
9175 if ((DIR *) 0)
9176 return 0;
9178 return 0;
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (ac_try="$ac_compile"
9183 case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
9195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9196 { (case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_try") 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try='test -s conftest.$ac_objext'
9206 { (case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_try") 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 eval "$as_ac_Header=yes"
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 eval "$as_ac_Header=no"
9223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 ac_res=`eval echo '${'$as_ac_Header'}'`
9226 { echo "$as_me:$LINENO: result: $ac_res" >&5
9227 echo "${ECHO_T}$ac_res" >&6; }
9228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9229 cat >>confdefs.h <<_ACEOF
9230 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9231 _ACEOF
9233 ac_header_dirent=$ac_hdr; break
9236 done
9237 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9238 if test $ac_header_dirent = dirent.h; then
9239 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9240 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9241 if test "${ac_cv_search_opendir+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 ac_func_search_save_LIBS=$LIBS
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char opendir ();
9260 main ()
9262 return opendir ();
9264 return 0;
9266 _ACEOF
9267 for ac_lib in '' dir; do
9268 if test -z "$ac_lib"; then
9269 ac_res="none required"
9270 else
9271 ac_res=-l$ac_lib
9272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9276 case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_link") 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9289 { (case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294 (eval "$ac_try") 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest$ac_exeext'
9299 { (case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_try") 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 ac_cv_search_opendir=$ac_res
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext
9318 if test "${ac_cv_search_opendir+set}" = set; then
9319 break
9321 done
9322 if test "${ac_cv_search_opendir+set}" = set; then
9324 else
9325 ac_cv_search_opendir=no
9327 rm conftest.$ac_ext
9328 LIBS=$ac_func_search_save_LIBS
9330 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9331 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9332 ac_res=$ac_cv_search_opendir
9333 if test "$ac_res" != no; then
9334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9338 else
9339 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9340 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9341 if test "${ac_cv_search_opendir+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 ac_func_search_save_LIBS=$LIBS
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char opendir ();
9360 main ()
9362 return opendir ();
9364 return 0;
9366 _ACEOF
9367 for ac_lib in '' x; do
9368 if test -z "$ac_lib"; then
9369 ac_res="none required"
9370 else
9371 ac_res=-l$ac_lib
9372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (ac_try="$ac_link"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_link") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9389 { (case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_try") 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest$ac_exeext'
9399 { (case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_try") 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_cv_search_opendir=$ac_res
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext
9418 if test "${ac_cv_search_opendir+set}" = set; then
9419 break
9421 done
9422 if test "${ac_cv_search_opendir+set}" = set; then
9424 else
9425 ac_cv_search_opendir=no
9427 rm conftest.$ac_ext
9428 LIBS=$ac_func_search_save_LIBS
9430 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9431 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9432 ac_res=$ac_cv_search_opendir
9433 if test "$ac_res" != no; then
9434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9441 for ac_header in dlfcn.h
9443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 ac_res=`eval echo '${'$as_ac_Header'}'`
9451 { echo "$as_me:$LINENO: result: $ac_res" >&5
9452 echo "${ECHO_T}$ac_res" >&6; }
9453 else
9454 # Is the header compilable?
9455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h. */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 #include <$ac_header>
9465 _ACEOF
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9468 case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_compile") 2>conftest.er1
9474 ac_status=$?
9475 grep -v '^ *+' conftest.er1 >conftest.err
9476 rm -f conftest.er1
9477 cat conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9481 { (case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_try") 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_try") 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500 ac_header_compiler=yes
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_header_compiler=no
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9510 echo "${ECHO_T}$ac_header_compiler" >&6; }
9512 # Is the header present?
9513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 #include <$ac_header>
9522 _ACEOF
9523 if { (ac_try="$ac_cpp conftest.$ac_ext"
9524 case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } >/dev/null; then
9536 if test -s conftest.err; then
9537 ac_cpp_err=$ac_c_preproc_warn_flag
9538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9539 else
9540 ac_cpp_err=
9542 else
9543 ac_cpp_err=yes
9545 if test -z "$ac_cpp_err"; then
9546 ac_header_preproc=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_header_preproc=no
9554 rm -f conftest.err conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9556 echo "${ECHO_T}$ac_header_preproc" >&6; }
9558 # So? What about this header?
9559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9560 yes:no: )
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9565 ac_header_preproc=yes
9567 no:yes:* )
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9580 ( cat <<\_ASBOX
9581 ## ----------------------------------- ##
9582 ## Report this to llvmbugs@cs.uiuc.edu ##
9583 ## ----------------------------------- ##
9584 _ASBOX
9585 ) | sed "s/^/$as_me: WARNING: /" >&2
9587 esac
9588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 eval "$as_ac_Header=\$ac_header_preproc"
9595 ac_res=`eval echo '${'$as_ac_Header'}'`
9596 { echo "$as_me:$LINENO: result: $ac_res" >&5
9597 echo "${ECHO_T}$ac_res" >&6; }
9600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9601 cat >>confdefs.h <<_ACEOF
9602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9603 _ACEOF
9607 done
9609 # Check whether --enable-ltdl-install was given.
9610 if test "${enable_ltdl_install+set}" = set; then
9611 enableval=$enable_ltdl_install;
9617 if test x"${enable_ltdl_install-no}" != xno; then
9618 INSTALL_LTDL_TRUE=
9619 INSTALL_LTDL_FALSE='#'
9620 else
9621 INSTALL_LTDL_TRUE='#'
9622 INSTALL_LTDL_FALSE=
9627 if test x"${enable_ltdl_convenience-no}" != xno; then
9628 CONVENIENCE_LTDL_TRUE=
9629 CONVENIENCE_LTDL_FALSE='#'
9630 else
9631 CONVENIENCE_LTDL_TRUE='#'
9632 CONVENIENCE_LTDL_FALSE=
9636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9638 library_names_spec=
9639 libname_spec='lib$name'
9640 soname_spec=
9641 shrext_cmds=".so"
9642 postinstall_cmds=
9643 postuninstall_cmds=
9644 finish_cmds=
9645 finish_eval=
9646 shlibpath_var=
9647 shlibpath_overrides_runpath=unknown
9648 version_type=none
9649 dynamic_linker="$host_os ld.so"
9650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9651 if test "$GCC" = yes; then
9652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9654 # if the path contains ";" then we assume it to be the separator
9655 # otherwise default to the standard path separator (i.e. ":") - it is
9656 # assumed that no part of a normal pathname contains ";" but that should
9657 # okay in the real world where ";" in dirpaths is itself problematic.
9658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9662 else
9663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9665 need_lib_prefix=unknown
9666 hardcode_into_libs=no
9668 # when you set need_version to no, make sure it does not cause -set_version
9669 # flags to be left without arguments
9670 need_version=unknown
9672 case $host_os in
9673 aix3*)
9674 version_type=linux
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9676 shlibpath_var=LIBPATH
9678 # AIX 3 has no versioning support, so we append a major version to the name.
9679 soname_spec='${libname}${release}${shared_ext}$major'
9682 aix4* | aix5*)
9683 version_type=linux
9684 need_lib_prefix=no
9685 need_version=no
9686 hardcode_into_libs=yes
9687 if test "$host_cpu" = ia64; then
9688 # AIX 5 supports IA64
9689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 else
9692 # With GCC up to 2.95.x, collect2 would create an import file
9693 # for dependence libraries. The import file would start with
9694 # the line `#! .'. This would cause the generated library to
9695 # depend on `.', always an invalid library. This was fixed in
9696 # development snapshots of GCC prior to 3.0.
9697 case $host_os in
9698 aix4 | aix4.[01] | aix4.[01].*)
9699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9700 echo ' yes '
9701 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9703 else
9704 can_build_shared=no
9707 esac
9708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9709 # soname into executable. Probably we can add versioning support to
9710 # collect2, so additional links can be useful in future.
9711 if test "$aix_use_runtimelinking" = yes; then
9712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9713 # instead of lib<name>.a to let people know that these are not
9714 # typical AIX shared libraries.
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 else
9717 # We preserve .a as extension for shared libraries through AIX4.2
9718 # and later when we are not doing run time linking.
9719 library_names_spec='${libname}${release}.a $libname.a'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9722 shlibpath_var=LIBPATH
9726 amigaos*)
9727 library_names_spec='$libname.ixlibrary $libname.a'
9728 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9729 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'
9732 beos*)
9733 library_names_spec='${libname}${shared_ext}'
9734 dynamic_linker="$host_os ld.so"
9735 shlibpath_var=LIBRARY_PATH
9738 bsdi[45]*)
9739 version_type=linux
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9746 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9747 # the default ld.so.conf also contains /usr/contrib/lib and
9748 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9749 # libtool to hard-code these into programs
9752 cygwin* | mingw* | pw32*)
9753 version_type=windows
9754 shrext_cmds=".dll"
9755 need_version=no
9756 need_lib_prefix=no
9758 case $GCC,$host_os in
9759 yes,cygwin* | yes,mingw* | yes,pw32*)
9760 library_names_spec='$libname.dll.a'
9761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9762 postinstall_cmds='base_file=`basename \${file}`~
9763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9764 dldir=$destdir/`dirname \$dlpath`~
9765 test -d \$dldir || mkdir -p \$dldir~
9766 $install_prog $dir/$dlname \$dldir/$dlname~
9767 chmod a+x \$dldir/$dlname'
9768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9769 dlpath=$dir/\$dldll~
9770 $rm \$dlpath'
9771 shlibpath_overrides_runpath=yes
9773 case $host_os in
9774 cygwin*)
9775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9779 mingw*)
9780 # MinGW DLLs use traditional 'lib' prefix
9781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9784 # It is most probably a Windows format PATH printed by
9785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9786 # path with ; separators, and with drive letters. We can handle the
9787 # drive letters (cygwin fileutils understands them), so leave them,
9788 # especially as we might pass files found there to a mingw objdump,
9789 # which wouldn't understand a cygwinified path. Ahh.
9790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791 else
9792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9795 pw32*)
9796 # pw32 DLLs use 'pw' prefix rather than 'lib'
9797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9799 esac
9803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9805 esac
9806 dynamic_linker='Win32 ld.exe'
9807 # FIXME: first we should search . and the directory the executable is in
9808 shlibpath_var=PATH
9811 darwin* | rhapsody*)
9812 dynamic_linker="$host_os dyld"
9813 version_type=darwin
9814 need_lib_prefix=no
9815 need_version=no
9816 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9817 soname_spec='${libname}${release}${major}$shared_ext'
9818 shlibpath_overrides_runpath=yes
9819 shlibpath_var=DYLD_LIBRARY_PATH
9820 shrext_cmds='.dylib'
9821 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9822 if test "$GCC" = yes; then
9823 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"`
9824 else
9825 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9830 dgux*)
9831 version_type=linux
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9839 freebsd1*)
9840 dynamic_linker=no
9843 kfreebsd*-gnu)
9844 version_type=linux
9845 need_lib_prefix=no
9846 need_version=no
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 shlibpath_var=LD_LIBRARY_PATH
9850 shlibpath_overrides_runpath=no
9851 hardcode_into_libs=yes
9852 dynamic_linker='GNU ld.so'
9855 freebsd* | dragonfly*)
9856 # DragonFly does not have aout. When/if they implement a new
9857 # versioning mechanism, adjust this.
9858 if test -x /usr/bin/objformat; then
9859 objformat=`/usr/bin/objformat`
9860 else
9861 case $host_os in
9862 freebsd[123]*) objformat=aout ;;
9863 *) objformat=elf ;;
9864 esac
9866 version_type=freebsd-$objformat
9867 case $version_type in
9868 freebsd-elf*)
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9870 need_version=no
9871 need_lib_prefix=no
9873 freebsd-*)
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9875 need_version=yes
9877 esac
9878 shlibpath_var=LD_LIBRARY_PATH
9879 case $host_os in
9880 freebsd2*)
9881 shlibpath_overrides_runpath=yes
9883 freebsd3.[01]* | freebsdelf3.[01]*)
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9892 freebsd*) # from 4.6 on
9893 shlibpath_overrides_runpath=yes
9894 hardcode_into_libs=yes
9896 esac
9899 gnu*)
9900 version_type=linux
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 hardcode_into_libs=yes
9909 hpux9* | hpux10* | hpux11*)
9910 # Give a soname corresponding to the major version so that dld.sl refuses to
9911 # link against other versions.
9912 version_type=sunos
9913 need_lib_prefix=no
9914 need_version=no
9915 case $host_cpu in
9916 ia64*)
9917 shrext_cmds='.so'
9918 hardcode_into_libs=yes
9919 dynamic_linker="$host_os dld.so"
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923 soname_spec='${libname}${release}${shared_ext}$major'
9924 if test "X$HPUX_IA64_MODE" = X32; then
9925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9926 else
9927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9931 hppa*64*)
9932 shrext_cmds='.sl'
9933 hardcode_into_libs=yes
9934 dynamic_linker="$host_os dld.sl"
9935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9943 shrext_cmds='.sl'
9944 dynamic_linker="$host_os dld.sl"
9945 shlibpath_var=SHLIB_PATH
9946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 soname_spec='${libname}${release}${shared_ext}$major'
9950 esac
9951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9952 postinstall_cmds='chmod 555 $lib'
9955 interix3*)
9956 version_type=linux
9957 need_lib_prefix=no
9958 need_version=no
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=no
9964 hardcode_into_libs=yes
9967 irix5* | irix6* | nonstopux*)
9968 case $host_os in
9969 nonstopux*) version_type=nonstopux ;;
9971 if test "$lt_cv_prog_gnu_ld" = yes; then
9972 version_type=linux
9973 else
9974 version_type=irix
9975 fi ;;
9976 esac
9977 need_lib_prefix=no
9978 need_version=no
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9981 case $host_os in
9982 irix5* | nonstopux*)
9983 libsuff= shlibsuff=
9986 case $LD in # libtool.m4 will add one of these switches to LD
9987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9988 libsuff= shlibsuff= libmagic=32-bit;;
9989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9990 libsuff=32 shlibsuff=N32 libmagic=N32;;
9991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9993 *) libsuff= shlibsuff= libmagic=never-match;;
9994 esac
9996 esac
9997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9998 shlibpath_overrides_runpath=no
9999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001 hardcode_into_libs=yes
10004 # No shared lib support for Linux oldld, aout, or coff.
10005 linux*oldld* | linux*aout* | linux*coff*)
10006 dynamic_linker=no
10009 # This must be Linux ELF.
10010 linux*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=no
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
10026 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' ' '`
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10039 knetbsd*-gnu)
10040 version_type=linux
10041 need_lib_prefix=no
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10048 dynamic_linker='GNU ld.so'
10051 netbsd*)
10052 version_type=sunos
10053 need_lib_prefix=no
10054 need_version=no
10055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10058 dynamic_linker='NetBSD (a.out) ld.so'
10059 else
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 dynamic_linker='NetBSD ld.elf_so'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10069 newsos6)
10070 version_type=linux
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=yes
10076 nto-qnx*)
10077 version_type=linux
10078 need_lib_prefix=no
10079 need_version=no
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10086 openbsd*)
10087 version_type=sunos
10088 sys_lib_dlsearch_path_spec="/usr/lib"
10089 need_lib_prefix=no
10090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10091 case $host_os in
10092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10093 *) need_version=no ;;
10094 esac
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099 case $host_os in
10100 openbsd2.[89] | openbsd2.[89].*)
10101 shlibpath_overrides_runpath=no
10104 shlibpath_overrides_runpath=yes
10106 esac
10107 else
10108 shlibpath_overrides_runpath=yes
10112 os2*)
10113 libname_spec='$name'
10114 shrext_cmds=".dll"
10115 need_lib_prefix=no
10116 library_names_spec='$libname${shared_ext} $libname.a'
10117 dynamic_linker='OS/2 ld.exe'
10118 shlibpath_var=LIBPATH
10121 osf3* | osf4* | osf5*)
10122 version_type=osf
10123 need_lib_prefix=no
10124 need_version=no
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10132 solaris*)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10141 # ldd complains unless libraries are executable
10142 postinstall_cmds='chmod +x $lib'
10145 sunos4*)
10146 version_type=sunos
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 if test "$with_gnu_ld" = yes; then
10152 need_lib_prefix=no
10154 need_version=yes
10157 sysv4 | sysv4.3*)
10158 version_type=linux
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 case $host_vendor in
10163 sni)
10164 shlibpath_overrides_runpath=no
10165 need_lib_prefix=no
10166 export_dynamic_flag_spec='${wl}-Blargedynsym'
10167 runpath_var=LD_RUN_PATH
10169 siemens)
10170 need_lib_prefix=no
10172 motorola)
10173 need_lib_prefix=no
10174 need_version=no
10175 shlibpath_overrides_runpath=no
10176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10178 esac
10181 sysv4*MP*)
10182 if test -d /usr/nec ;then
10183 version_type=linux
10184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10185 soname_spec='$libname${shared_ext}.$major'
10186 shlibpath_var=LD_LIBRARY_PATH
10190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191 version_type=freebsd-elf
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 hardcode_into_libs=yes
10198 if test "$with_gnu_ld" = yes; then
10199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10200 shlibpath_overrides_runpath=no
10201 else
10202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10203 shlibpath_overrides_runpath=yes
10204 case $host_os in
10205 sco3.2v5*)
10206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10208 esac
10210 sys_lib_dlsearch_path_spec='/usr/lib'
10213 uts4*)
10214 version_type=linux
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LD_LIBRARY_PATH
10221 dynamic_linker=no
10223 esac
10224 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10225 echo "${ECHO_T}$dynamic_linker" >&6; }
10226 test "$dynamic_linker" = no && can_build_shared=no
10228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10229 if test "$GCC" = yes; then
10230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10235 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10236 if test "${libltdl_cv_shlibext+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10240 module=yes
10241 eval libltdl_cv_shlibext=$shrext_cmds
10244 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10245 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10246 if test -n "$libltdl_cv_shlibext"; then
10248 cat >>confdefs.h <<_ACEOF
10249 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10250 _ACEOF
10255 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10256 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10257 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 libltdl_cv_shlibpath_var="$shlibpath_var"
10262 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10263 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10264 if test -n "$libltdl_cv_shlibpath_var"; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10268 _ACEOF
10273 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10274 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10275 if test "${libltdl_cv_sys_search_path+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10280 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10281 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10282 if test -n "$libltdl_cv_sys_search_path"; then
10283 sys_search_path=
10284 for dir in $libltdl_cv_sys_search_path; do
10285 if test -z "$sys_search_path"; then
10286 sys_search_path="$dir"
10287 else
10288 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10290 done
10292 cat >>confdefs.h <<_ACEOF
10293 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10294 _ACEOF
10298 { echo "$as_me:$LINENO: checking for objdir" >&5
10299 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10300 if test "${libltdl_cv_objdir+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 libltdl_cv_objdir="$objdir"
10304 if test -n "$objdir"; then
10306 else
10307 rm -f .libs 2>/dev/null
10308 mkdir .libs 2>/dev/null
10309 if test -d .libs; then
10310 libltdl_cv_objdir=.libs
10311 else
10312 # MS-DOS does not allow filenames that begin with a dot.
10313 libltdl_cv_objdir=_libs
10315 rmdir .libs 2>/dev/null
10319 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10320 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10322 cat >>confdefs.h <<_ACEOF
10323 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10324 _ACEOF
10331 # Check for command to grab the raw symbol name followed by C symbol from nm.
10332 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10333 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10334 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10338 # These are sane defaults that work on at least a few old systems.
10339 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10341 # Character class describing NM global symbol codes.
10342 symcode='[BCDEGRST]'
10344 # Regexp to match symbols that can be accessed directly from C.
10345 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10347 # Transform an extracted symbol line into a proper C declaration
10348 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10350 # Transform an extracted symbol line into symbol name and symbol address
10351 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'"
10353 # Define system-specific variables.
10354 case $host_os in
10355 aix*)
10356 symcode='[BCDT]'
10358 cygwin* | mingw* | pw32*)
10359 symcode='[ABCDGISTW]'
10361 hpux*) # Its linker distinguishes data from code symbols
10362 if test "$host_cpu" = ia64; then
10363 symcode='[ABCDEGRST]'
10365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10366 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'"
10368 linux*)
10369 if test "$host_cpu" = ia64; then
10370 symcode='[ABCDGIRSTW]'
10371 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10372 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'"
10375 irix* | nonstopux*)
10376 symcode='[BCDEGRST]'
10378 osf*)
10379 symcode='[BCDEGQRST]'
10381 solaris*)
10382 symcode='[BDRT]'
10384 sco3.2v5*)
10385 symcode='[DT]'
10387 sysv4.2uw2*)
10388 symcode='[DT]'
10390 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10391 symcode='[ABDT]'
10393 sysv4)
10394 symcode='[DFNSTU]'
10396 esac
10398 # Handle CRLF in mingw tool chain
10399 opt_cr=
10400 case $build_os in
10401 mingw*)
10402 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10404 esac
10406 # If we're using GNU nm, then use its standard symbol codes.
10407 case `$NM -V 2>&1` in
10408 *GNU* | *'with BFD'*)
10409 symcode='[ABCDGIRSTW]' ;;
10410 esac
10412 # Try without a prefix undercore, then with it.
10413 for ac_symprfx in "" "_"; do
10415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10416 symxfrm="\\1 $ac_symprfx\\2 \\2"
10418 # Write the raw and C identifiers.
10419 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10421 # Check to see that the pipe works correctly.
10422 pipe_works=no
10424 rm -f conftest*
10425 cat > conftest.$ac_ext <<EOF
10426 #ifdef __cplusplus
10427 extern "C" {
10428 #endif
10429 char nm_test_var;
10430 void nm_test_func(){}
10431 #ifdef __cplusplus
10433 #endif
10434 int main(){nm_test_var='a';nm_test_func();return(0);}
10437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; then
10442 # Now try to grab the symbols.
10443 nlist=conftest.nm
10444 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10445 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } && test -s "$nlist"; then
10449 # Try sorting and uniquifying the output.
10450 if sort "$nlist" | uniq > "$nlist"T; then
10451 mv -f "$nlist"T "$nlist"
10452 else
10453 rm -f "$nlist"T
10456 # Make sure that we snagged all the symbols we need.
10457 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10458 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10459 cat <<EOF > conftest.$ac_ext
10460 #ifdef __cplusplus
10461 extern "C" {
10462 #endif
10465 # Now generate the symbol file.
10466 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10468 cat <<EOF >> conftest.$ac_ext
10469 #if defined (__STDC__) && __STDC__
10470 # define lt_ptr_t void *
10471 #else
10472 # define lt_ptr_t char *
10473 # define const
10474 #endif
10476 /* The mapping between symbol names and symbols. */
10477 const struct {
10478 const char *name;
10479 lt_ptr_t address;
10481 lt_preloaded_symbols[] =
10484 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10485 cat <<\EOF >> conftest.$ac_ext
10486 {0, (lt_ptr_t) 0}
10489 #ifdef __cplusplus
10491 #endif
10493 # Now try linking the two files.
10494 mv conftest.$ac_objext conftstm.$ac_objext
10495 lt_save_LIBS="$LIBS"
10496 lt_save_CFLAGS="$CFLAGS"
10497 LIBS="conftstm.$ac_objext"
10498 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10504 pipe_works=yes
10506 LIBS="$lt_save_LIBS"
10507 CFLAGS="$lt_save_CFLAGS"
10508 else
10509 echo "cannot find nm_test_func in $nlist" >&5
10511 else
10512 echo "cannot find nm_test_var in $nlist" >&5
10514 else
10515 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10517 else
10518 echo "$progname: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10521 rm -f conftest* conftst*
10523 # Do not use the global_symbol_pipe unless it works.
10524 if test "$pipe_works" = yes; then
10525 break
10526 else
10527 lt_cv_sys_global_symbol_pipe=
10529 done
10533 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10534 lt_cv_sys_global_symbol_to_cdecl=
10536 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10537 { echo "$as_me:$LINENO: result: failed" >&5
10538 echo "${ECHO_T}failed" >&6; }
10539 else
10540 { echo "$as_me:$LINENO: result: ok" >&5
10541 echo "${ECHO_T}ok" >&6; }
10545 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10546 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10547 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10551 libltdl_cv_preloaded_symbols=yes
10552 else
10553 libltdl_cv_preloaded_symbols=no
10557 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10558 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10559 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define HAVE_PRELOADED_SYMBOLS 1
10563 _ACEOF
10567 LIBADD_DL=
10569 ac_ext=c
10570 ac_cpp='$CPP $CPPFLAGS'
10571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576 { echo "$as_me:$LINENO: checking for shl_load" >&5
10577 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10578 if test "${ac_cv_func_shl_load+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589 #define shl_load innocuous_shl_load
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char shl_load (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10596 #ifdef __STDC__
10597 # include <limits.h>
10598 #else
10599 # include <assert.h>
10600 #endif
10602 #undef shl_load
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char shl_load ();
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined __stub_shl_load || defined __stub___shl_load
10615 choke me
10616 #endif
10619 main ()
10621 return shl_load ();
10623 return 0;
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (ac_try="$ac_link"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641 { (case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_try") 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest$ac_exeext'
10651 { (case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_try") 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_func_shl_load=yes
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10665 ac_cv_func_shl_load=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10671 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10672 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10673 if test $ac_cv_func_shl_load = yes; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_SHL_LOAD 1
10677 _ACEOF
10679 else
10680 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685 ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-ldld $LIBS"
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char shl_load ();
10702 main ()
10704 return shl_load ();
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest$ac_exeext'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_cv_lib_dld_shl_load=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10748 ac_cv_lib_dld_shl_load=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10756 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10757 if test $ac_cv_lib_dld_shl_load = yes; then
10759 cat >>confdefs.h <<\_ACEOF
10760 #define HAVE_SHL_LOAD 1
10761 _ACEOF
10763 LIBADD_DL="$LIBADD_DL -ldld"
10764 else
10765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-ldl $LIBS"
10772 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h. */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char dlopen ();
10787 main ()
10789 return dlopen ();
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_try") 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
10828 ac_cv_lib_dl_dlopen=yes
10829 else
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 ac_cv_lib_dl_dlopen=no
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10842 if test $ac_cv_lib_dl_dlopen = yes; then
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_LIBDL 1
10846 _ACEOF
10848 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10849 else
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #if HAVE_DLFCN_H
10857 # include <dlfcn.h>
10858 #endif
10861 main ()
10863 dlopen(0, 0);
10865 return 0;
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define HAVE_LIBDL 1
10905 _ACEOF
10906 libltdl_cv_func_dlopen="yes"
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lsvld $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10925 /* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
10928 #ifdef __cplusplus
10929 extern "C"
10930 #endif
10931 char dlopen ();
10933 main ()
10935 return dlopen ();
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext conftest$ac_exeext
10941 if { (ac_try="$ac_link"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_link") 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; } &&
10964 { ac_try='test -s conftest$ac_exeext'
10965 { (case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_try") 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_lib_svld_dlopen=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_cv_lib_svld_dlopen=no
10982 rm -f core conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10986 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10987 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10988 if test $ac_cv_lib_svld_dlopen = yes; then
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_LIBDL 1
10992 _ACEOF
10994 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10995 else
10996 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10997 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10998 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldld $LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h. */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char dld_link ();
11018 main ()
11020 return dld_link ();
11022 return 0;
11024 _ACEOF
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_cv_lib_dld_dld_link=yes
11060 else
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_cv_lib_dld_dld_link=no
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11072 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11073 if test $ac_cv_lib_dld_dld_link = yes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_DLD 1
11077 _ACEOF
11079 LIBADD_DL="$LIBADD_DL -ldld"
11080 else
11081 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11082 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11083 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11094 #define _dyld_func_lookup innocuous__dyld_func_lookup
11096 /* System header to define __stub macros and hopefully few prototypes,
11097 which can conflict with char _dyld_func_lookup (); below.
11098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11099 <limits.h> exists even on freestanding compilers. */
11101 #ifdef __STDC__
11102 # include <limits.h>
11103 #else
11104 # include <assert.h>
11105 #endif
11107 #undef _dyld_func_lookup
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char _dyld_func_lookup ();
11116 /* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11120 choke me
11121 #endif
11124 main ()
11126 return _dyld_func_lookup ();
11128 return 0;
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (ac_try="$ac_link"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_link") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest$ac_exeext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_func__dyld_func_lookup=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_cv_func__dyld_func_lookup=no
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11176 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11177 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11178 if test $ac_cv_func__dyld_func_lookup = yes; then
11180 cat >>confdefs.h <<\_ACEOF
11181 #define HAVE_DYLD 1
11182 _ACEOF
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11207 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11208 then
11209 lt_save_LIBS="$LIBS"
11210 LIBS="$LIBS $LIBADD_DL"
11212 for ac_func in dlerror
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11235 #ifdef __STDC__
11236 # include <limits.h>
11237 #else
11238 # include <assert.h>
11239 #endif
11241 #undef $ac_func
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char $ac_func ();
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11254 choke me
11255 #endif
11258 main ()
11260 return $ac_func ();
11262 return 0;
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } &&
11279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest$ac_exeext'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 eval "$as_ac_var=yes"
11300 else
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 eval "$as_ac_var=no"
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11310 ac_res=`eval echo '${'$as_ac_var'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11313 if test `eval echo '${'$as_ac_var'}'` = yes; then
11314 cat >>confdefs.h <<_ACEOF
11315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11316 _ACEOF
11319 done
11321 LIBS="$lt_save_LIBS"
11323 ac_ext=c
11324 ac_cpp='$CPP $CPPFLAGS'
11325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11332 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11333 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336 ac_cv_sys_symbol_underscore=no
11337 cat > conftest.$ac_ext <<EOF
11338 void nm_test_func(){}
11339 int main(){nm_test_func;return 0;}
11341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11342 (eval $ac_compile) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; then
11346 # Now try to grab the symbols.
11347 ac_nlist=conftest.nm
11348 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11349 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && test -s "$ac_nlist"; then
11353 # See whether the symbols have a leading underscore.
11354 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11355 ac_cv_sys_symbol_underscore=yes
11356 else
11357 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11359 else
11360 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11363 else
11364 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11366 else
11367 echo "configure: failed program was:" >&5
11368 cat conftest.c >&5
11370 rm -rf conftest*
11373 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11374 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11377 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11378 if test x"$libltdl_cv_func_dlopen" = xyes ||
11379 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11380 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11381 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11382 if test "${libltdl_cv_need_uscore+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 libltdl_cv_need_uscore=unknown
11386 save_LIBS="$LIBS"
11387 LIBS="$LIBS $LIBADD_DL"
11388 if test "$cross_compiling" = yes; then :
11389 libltdl_cv_need_uscore=cross
11390 else
11391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11392 lt_status=$lt_dlunknown
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11394 "configure"
11395 #include "confdefs.h"
11397 #if HAVE_DLFCN_H
11398 #include <dlfcn.h>
11399 #endif
11401 #include <stdio.h>
11403 #ifdef RTLD_GLOBAL
11404 # define LT_DLGLOBAL RTLD_GLOBAL
11405 #else
11406 # ifdef DL_GLOBAL
11407 # define LT_DLGLOBAL DL_GLOBAL
11408 # else
11409 # define LT_DLGLOBAL 0
11410 # endif
11411 #endif
11413 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11414 find out it does not work in some platform. */
11415 #ifndef LT_DLLAZY_OR_NOW
11416 # ifdef RTLD_LAZY
11417 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11418 # else
11419 # ifdef DL_LAZY
11420 # define LT_DLLAZY_OR_NOW DL_LAZY
11421 # else
11422 # ifdef RTLD_NOW
11423 # define LT_DLLAZY_OR_NOW RTLD_NOW
11424 # else
11425 # ifdef DL_NOW
11426 # define LT_DLLAZY_OR_NOW DL_NOW
11427 # else
11428 # define LT_DLLAZY_OR_NOW 0
11429 # endif
11430 # endif
11431 # endif
11432 # endif
11433 #endif
11435 #ifdef __cplusplus
11436 extern "C" void exit (int);
11437 #endif
11439 void fnord() { int i=42;}
11440 int main ()
11442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11443 int status = $lt_dlunknown;
11445 if (self)
11447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11449 /* dlclose (self); */
11451 else
11452 puts (dlerror ());
11454 exit (status);
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11462 (./conftest; exit; ) >&5 2>/dev/null
11463 lt_status=$?
11464 case x$lt_status in
11465 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11466 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11467 x$lt_dlunknown|x*) ;;
11468 esac
11469 else :
11470 # compilation failed
11474 rm -fr conftest*
11476 LIBS="$save_LIBS"
11479 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11480 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11484 if test x"$libltdl_cv_need_uscore" = xyes; then
11486 cat >>confdefs.h <<\_ACEOF
11487 #define NEED_USCORE 1
11488 _ACEOF
11493 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11494 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11495 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 # PORTME does your system automatically load deplibs for dlopen?
11499 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11500 # For now, we just catch OSes we know something about -- in the
11501 # future, we'll try test this programmatically.
11502 libltdl_cv_sys_dlopen_deplibs=unknown
11503 case "$host_os" in
11504 aix3*|aix4.1.*|aix4.2.*)
11505 # Unknown whether this is true for these versions of AIX, but
11506 # we want this `case' here to explicitly catch those versions.
11507 libltdl_cv_sys_dlopen_deplibs=unknown
11509 aix[45]*)
11510 libltdl_cv_sys_dlopen_deplibs=yes
11512 darwin*)
11513 # Assuming the user has installed a libdl from somewhere, this is true
11514 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11515 libltdl_cv_sys_dlopen_deplibs=yes
11517 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11518 # GNU and its variants, using gnu ld.so (Glibc)
11519 libltdl_cv_sys_dlopen_deplibs=yes
11521 hpux10*|hpux11*)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11524 interix*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11527 irix[12345]*|irix6.[01]*)
11528 # Catch all versions of IRIX before 6.2, and indicate that we don't
11529 # know how it worked for any of those versions.
11530 libltdl_cv_sys_dlopen_deplibs=unknown
11532 irix*)
11533 # The case above catches anything before 6.2, and it's known that
11534 # at 6.2 and later dlopen does load deplibs.
11535 libltdl_cv_sys_dlopen_deplibs=yes
11537 netbsd*)
11538 libltdl_cv_sys_dlopen_deplibs=yes
11540 openbsd*)
11541 libltdl_cv_sys_dlopen_deplibs=yes
11543 osf[1234]*)
11544 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11545 # it did *not* use an RPATH in a shared library to find objects the
11546 # library depends on, so we explictly say `no'.
11547 libltdl_cv_sys_dlopen_deplibs=no
11549 osf5.0|osf5.0a|osf5.1)
11550 # dlopen *does* load deplibs and with the right loader patch applied
11551 # it even uses RPATH in a shared library to search for shared objects
11552 # that the library depends on, but there's no easy way to know if that
11553 # patch is installed. Since this is the case, all we can really
11554 # say is unknown -- it depends on the patch being installed. If
11555 # it is, this changes to `yes'. Without it, it would be `no'.
11556 libltdl_cv_sys_dlopen_deplibs=unknown
11558 osf*)
11559 # the two cases above should catch all versions of osf <= 5.1. Read
11560 # the comments above for what we know about them.
11561 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11562 # is used to find them so we can finally say `yes'.
11563 libltdl_cv_sys_dlopen_deplibs=yes
11565 solaris*)
11566 libltdl_cv_sys_dlopen_deplibs=yes
11568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11569 libltdl_cv_sys_dlopen_deplibs=yes
11571 esac
11574 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11575 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11576 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11578 cat >>confdefs.h <<\_ACEOF
11579 #define LTDL_DLOPEN_DEPLIBS 1
11580 _ACEOF
11585 for ac_header in argz.h
11587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 ac_res=`eval echo '${'$as_ac_Header'}'`
11595 { echo "$as_me:$LINENO: result: $ac_res" >&5
11596 echo "${ECHO_T}$ac_res" >&6; }
11597 else
11598 # Is the header compilable?
11599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 $ac_includes_default
11608 #include <$ac_header>
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (ac_try="$ac_compile"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_compile") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_header_compiler=yes
11645 else
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ac_header_compiler=no
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11654 echo "${ECHO_T}$ac_header_compiler" >&6; }
11656 # Is the header present?
11657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 #include <$ac_header>
11666 _ACEOF
11667 if { (ac_try="$ac_cpp conftest.$ac_ext"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } >/dev/null; then
11680 if test -s conftest.err; then
11681 ac_cpp_err=$ac_c_preproc_warn_flag
11682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11683 else
11684 ac_cpp_err=
11686 else
11687 ac_cpp_err=yes
11689 if test -z "$ac_cpp_err"; then
11690 ac_header_preproc=yes
11691 else
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_header_preproc=no
11698 rm -f conftest.err conftest.$ac_ext
11699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11700 echo "${ECHO_T}$ac_header_preproc" >&6; }
11702 # So? What about this header?
11703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 yes:no: )
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11709 ac_header_preproc=yes
11711 no:yes:* )
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11724 ( cat <<\_ASBOX
11725 ## ----------------------------------- ##
11726 ## Report this to llvmbugs@cs.uiuc.edu ##
11727 ## ----------------------------------- ##
11728 _ASBOX
11729 ) | sed "s/^/$as_me: WARNING: /" >&2
11731 esac
11732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 eval "$as_ac_Header=\$ac_header_preproc"
11739 ac_res=`eval echo '${'$as_ac_Header'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11747 _ACEOF
11751 done
11754 { echo "$as_me:$LINENO: checking for error_t" >&5
11755 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11756 if test "${ac_cv_type_error_t+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #if HAVE_ARGZ_H
11766 # include <argz.h>
11767 #endif
11769 typedef error_t ac__type_new_;
11771 main ()
11773 if ((ac__type_new_ *) 0)
11774 return 0;
11775 if (sizeof (ac__type_new_))
11776 return 0;
11778 return 0;
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (ac_try="$ac_compile"
11783 case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_compile") 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_type_error_t=yes
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11820 ac_cv_type_error_t=no
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11826 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11827 if test $ac_cv_type_error_t = yes; then
11829 cat >>confdefs.h <<_ACEOF
11830 #define HAVE_ERROR_T 1
11831 _ACEOF
11834 else
11836 cat >>confdefs.h <<\_ACEOF
11837 #define error_t int
11838 _ACEOF
11848 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864 #define $ac_func innocuous_$ac_func
11866 /* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11871 #ifdef __STDC__
11872 # include <limits.h>
11873 #else
11874 # include <assert.h>
11875 #endif
11877 #undef $ac_func
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char $ac_func ();
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined __stub_$ac_func || defined __stub___$ac_func
11890 choke me
11891 #endif
11894 main ()
11896 return $ac_func ();
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (ac_try="$ac_link"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
11909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 eval "$as_ac_var=no"
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11946 ac_res=`eval echo '${'$as_ac_var'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948 echo "${ECHO_T}$ac_res" >&6; }
11949 if test `eval echo '${'$as_ac_var'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952 _ACEOF
11955 done
11984 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11985 stdio.h unistd.h
11987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 ac_res=`eval echo '${'$as_ac_Header'}'`
11995 { echo "$as_me:$LINENO: result: $ac_res" >&5
11996 echo "${ECHO_T}$ac_res" >&6; }
11997 else
11998 # Is the header compilable?
11999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #include <$ac_header>
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_compile") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_header_compiler=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_header_compiler=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12054 echo "${ECHO_T}$ac_header_compiler" >&6; }
12056 # Is the header present?
12057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <$ac_header>
12066 _ACEOF
12067 if { (ac_try="$ac_cpp conftest.$ac_ext"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } >/dev/null; then
12080 if test -s conftest.err; then
12081 ac_cpp_err=$ac_c_preproc_warn_flag
12082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12083 else
12084 ac_cpp_err=
12086 else
12087 ac_cpp_err=yes
12089 if test -z "$ac_cpp_err"; then
12090 ac_header_preproc=yes
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_header_preproc=no
12098 rm -f conftest.err conftest.$ac_ext
12099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12100 echo "${ECHO_T}$ac_header_preproc" >&6; }
12102 # So? What about this header?
12103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12104 yes:no: )
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12109 ac_header_preproc=yes
12111 no:yes:* )
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12124 ( cat <<\_ASBOX
12125 ## ----------------------------------- ##
12126 ## Report this to llvmbugs@cs.uiuc.edu ##
12127 ## ----------------------------------- ##
12128 _ASBOX
12129 ) | sed "s/^/$as_me: WARNING: /" >&2
12131 esac
12132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 eval "$as_ac_Header=\$ac_header_preproc"
12139 ac_res=`eval echo '${'$as_ac_Header'}'`
12140 { echo "$as_me:$LINENO: result: $ac_res" >&5
12141 echo "${ECHO_T}$ac_res" >&6; }
12144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147 _ACEOF
12151 done
12157 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 ac_res=`eval echo '${'$as_ac_Header'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168 echo "${ECHO_T}$ac_res" >&6; }
12169 else
12170 # Is the header compilable?
12171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 $ac_includes_default
12180 #include <$ac_header>
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197 { (case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_try") 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_header_compiler=yes
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 ac_header_compiler=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12226 echo "${ECHO_T}$ac_header_compiler" >&6; }
12228 # Is the header present?
12229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h. */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 #include <$ac_header>
12238 _ACEOF
12239 if { (ac_try="$ac_cpp conftest.$ac_ext"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12255 else
12256 ac_cpp_err=
12258 else
12259 ac_cpp_err=yes
12261 if test -z "$ac_cpp_err"; then
12262 ac_header_preproc=yes
12263 else
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_header_preproc=no
12270 rm -f conftest.err conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12272 echo "${ECHO_T}$ac_header_preproc" >&6; }
12274 # So? What about this header?
12275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 yes:no: )
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12281 ac_header_preproc=yes
12283 no:yes:* )
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12296 ( cat <<\_ASBOX
12297 ## ----------------------------------- ##
12298 ## Report this to llvmbugs@cs.uiuc.edu ##
12299 ## ----------------------------------- ##
12300 _ASBOX
12301 ) | sed "s/^/$as_me: WARNING: /" >&2
12303 esac
12304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 eval "$as_ac_Header=\$ac_header_preproc"
12311 ac_res=`eval echo '${'$as_ac_Header'}'`
12312 { echo "$as_me:$LINENO: result: $ac_res" >&5
12313 echo "${ECHO_T}$ac_res" >&6; }
12316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12317 cat >>confdefs.h <<_ACEOF
12318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12319 _ACEOF
12323 done
12327 for ac_header in string.h strings.h
12329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_res=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12339 else
12340 # Is the header compilable?
12341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12387 else
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_compiler=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6; }
12398 # Is the header present?
12399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <$ac_header>
12408 _ACEOF
12409 if { (ac_try="$ac_cpp conftest.$ac_ext"
12410 case "(($ac_try" in
12411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412 *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev/null; then
12422 if test -s conftest.err; then
12423 ac_cpp_err=$ac_c_preproc_warn_flag
12424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425 else
12426 ac_cpp_err=
12428 else
12429 ac_cpp_err=yes
12431 if test -z "$ac_cpp_err"; then
12432 ac_header_preproc=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 ac_header_preproc=no
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467 ## ----------------------------------- ##
12468 ## Report this to llvmbugs@cs.uiuc.edu ##
12469 ## ----------------------------------- ##
12470 _ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12473 esac
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 _ACEOF
12490 break
12493 done
12498 for ac_func in strchr index
12500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12514 #define $ac_func innocuous_$ac_func
12516 /* System header to define __stub macros and hopefully few prototypes,
12517 which can conflict with char $ac_func (); below.
12518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12519 <limits.h> exists even on freestanding compilers. */
12521 #ifdef __STDC__
12522 # include <limits.h>
12523 #else
12524 # include <assert.h>
12525 #endif
12527 #undef $ac_func
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char $ac_func ();
12536 /* The GNU C library defines this for functions which it implements
12537 to always fail with ENOSYS. Some functions are actually named
12538 something starting with __ and the normal name is an alias. */
12539 #if defined __stub_$ac_func || defined __stub___$ac_func
12540 choke me
12541 #endif
12544 main ()
12546 return $ac_func ();
12548 return 0;
12550 _ACEOF
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (ac_try="$ac_link"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_link") 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; } &&
12575 { ac_try='test -s conftest$ac_exeext'
12576 { (case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_try") 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 eval "$as_ac_var=yes"
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 eval "$as_ac_var=no"
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12596 ac_res=`eval echo '${'$as_ac_var'}'`
12597 { echo "$as_me:$LINENO: result: $ac_res" >&5
12598 echo "${ECHO_T}$ac_res" >&6; }
12599 if test `eval echo '${'$as_ac_var'}'` = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12602 _ACEOF
12603 break
12605 done
12609 for ac_func in strrchr rindex
12611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12625 #define $ac_func innocuous_$ac_func
12627 /* System header to define __stub macros and hopefully few prototypes,
12628 which can conflict with char $ac_func (); below.
12629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12630 <limits.h> exists even on freestanding compilers. */
12632 #ifdef __STDC__
12633 # include <limits.h>
12634 #else
12635 # include <assert.h>
12636 #endif
12638 #undef $ac_func
12640 /* Override any GCC internal prototype to avoid an error.
12641 Use char because int might match the return type of a GCC
12642 builtin and then its argument prototype would still apply. */
12643 #ifdef __cplusplus
12644 extern "C"
12645 #endif
12646 char $ac_func ();
12647 /* The GNU C library defines this for functions which it implements
12648 to always fail with ENOSYS. Some functions are actually named
12649 something starting with __ and the normal name is an alias. */
12650 #if defined __stub_$ac_func || defined __stub___$ac_func
12651 choke me
12652 #endif
12655 main ()
12657 return $ac_func ();
12659 return 0;
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (ac_try="$ac_link"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_link") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } &&
12676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest$ac_exeext'
12687 { (case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_try") 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 eval "$as_ac_var=no"
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12707 ac_res=`eval echo '${'$as_ac_var'}'`
12708 { echo "$as_me:$LINENO: result: $ac_res" >&5
12709 echo "${ECHO_T}$ac_res" >&6; }
12710 if test `eval echo '${'$as_ac_var'}'` = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 _ACEOF
12714 break
12716 done
12720 for ac_func in memcpy bcopy
12722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12723 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h. */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12736 #define $ac_func innocuous_$ac_func
12738 /* System header to define __stub macros and hopefully few prototypes,
12739 which can conflict with char $ac_func (); below.
12740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12741 <limits.h> exists even on freestanding compilers. */
12743 #ifdef __STDC__
12744 # include <limits.h>
12745 #else
12746 # include <assert.h>
12747 #endif
12749 #undef $ac_func
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 char $ac_func ();
12758 /* The GNU C library defines this for functions which it implements
12759 to always fail with ENOSYS. Some functions are actually named
12760 something starting with __ and the normal name is an alias. */
12761 #if defined __stub_$ac_func || defined __stub___$ac_func
12762 choke me
12763 #endif
12766 main ()
12768 return $ac_func ();
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788 { (case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_try") 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 eval "$as_ac_var=yes"
12808 else
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 eval "$as_ac_var=no"
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12818 ac_res=`eval echo '${'$as_ac_var'}'`
12819 { echo "$as_me:$LINENO: result: $ac_res" >&5
12820 echo "${ECHO_T}$ac_res" >&6; }
12821 if test `eval echo '${'$as_ac_var'}'` = yes; then
12822 cat >>confdefs.h <<_ACEOF
12823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12824 _ACEOF
12825 break
12827 done
12831 for ac_func in memmove strcmp
12833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12847 #define $ac_func innocuous_$ac_func
12849 /* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. */
12854 #ifdef __STDC__
12855 # include <limits.h>
12856 #else
12857 # include <assert.h>
12858 #endif
12860 #undef $ac_func
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char $ac_func ();
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined __stub_$ac_func || defined __stub___$ac_func
12873 choke me
12874 #endif
12877 main ()
12879 return $ac_func ();
12881 return 0;
12883 _ACEOF
12884 rm -f conftest.$ac_objext conftest$ac_exeext
12885 if { (ac_try="$ac_link"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902 esac
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12923 eval "$as_ac_var=no"
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12929 ac_res=`eval echo '${'$as_ac_var'}'`
12930 { echo "$as_me:$LINENO: result: $ac_res" >&5
12931 echo "${ECHO_T}$ac_res" >&6; }
12932 if test `eval echo '${'$as_ac_var'}'` = yes; then
12933 cat >>confdefs.h <<_ACEOF
12934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 _ACEOF
12938 done
12943 for ac_func in closedir opendir readdir
12945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12959 #define $ac_func innocuous_$ac_func
12961 /* System header to define __stub macros and hopefully few prototypes,
12962 which can conflict with char $ac_func (); below.
12963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12964 <limits.h> exists even on freestanding compilers. */
12966 #ifdef __STDC__
12967 # include <limits.h>
12968 #else
12969 # include <assert.h>
12970 #endif
12972 #undef $ac_func
12974 /* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 char $ac_func ();
12981 /* The GNU C library defines this for functions which it implements
12982 to always fail with ENOSYS. Some functions are actually named
12983 something starting with __ and the normal name is an alias. */
12984 #if defined __stub_$ac_func || defined __stub___$ac_func
12985 choke me
12986 #endif
12989 main ()
12991 return $ac_func ();
12993 return 0;
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (ac_try="$ac_link"
12998 case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_link") 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_try") 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 eval "$as_ac_var=yes"
13031 else
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 eval "$as_ac_var=no"
13038 rm -f core conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13041 ac_res=`eval echo '${'$as_ac_var'}'`
13042 { echo "$as_me:$LINENO: result: $ac_res" >&5
13043 echo "${ECHO_T}$ac_res" >&6; }
13044 if test `eval echo '${'$as_ac_var'}'` = yes; then
13045 cat >>confdefs.h <<_ACEOF
13046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13047 _ACEOF
13050 done
13054 if test "$WITH_LLVMGCCDIR" = "default" ; then
13055 LLVMGCC="llvm-gcc${EXEEXT}"
13056 LLVMGXX="llvm-g++${EXEEXT}"
13057 LLVMGCCCOMMAND="$LLVMGCC"
13058 LLVMGXXCOMMAND="$LLVMGXX"
13059 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13061 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13063 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13064 set dummy $LLVMGCC; ac_word=$2
13065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13067 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 case $LLVMGCC in
13071 [\\/]* | ?:[\\/]*)
13072 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13086 done
13087 done
13088 IFS=$as_save_IFS
13091 esac
13093 LLVMGCC=$ac_cv_path_LLVMGCC
13094 if test -n "$LLVMGCC"; then
13095 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13096 echo "${ECHO_T}$LLVMGCC" >&6; }
13097 else
13098 { echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6; }
13103 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13104 set dummy $LLVMGXX; ac_word=$2
13105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13107 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 case $LLVMGXX in
13111 [\\/]* | ?:[\\/]*)
13112 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13126 done
13127 done
13128 IFS=$as_save_IFS
13131 esac
13133 LLVMGXX=$ac_cv_path_LLVMGXX
13134 if test -n "$LLVMGXX"; then
13135 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13136 echo "${ECHO_T}$LLVMGXX" >&6; }
13137 else
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13143 else
13144 if test -z "$LLVMGCC"; then
13145 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13146 LLVMGCCCOMMAND="$LLVMGCC"
13148 if test -z "$LLVMGXX"; then
13149 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13150 LLVMGXXCOMMAND="$LLVMGXX"
13153 LLVMGCC=$LLVMGCC
13155 LLVMGXX=$LLVMGXX
13157 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13159 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13164 # Check whether --with-llvmcc was given.
13165 if test "${with_llvmcc+set}" = set; then
13166 withval=$with_llvmcc;
13167 else
13168 with_llvmcc=check
13171 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13172 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13173 if test "$with_llvmcc" != "check"; then
13174 if (test "$with_llvmcc" != "llvm-gcc" &&
13175 test "$with_llvmcc" != "clang" &&
13176 test "$with_llvmcc" != "none"); then
13177 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13178 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13179 { (exit 1); exit 1; }; }
13181 WITH_LLVMCC="$with_llvmcc"
13182 elif test -n "$LLVMGCC"; then
13183 WITH_LLVMCC=llvm-gcc
13184 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13185 WITH_LLVMCC=clang
13186 else
13187 WITH_LLVMCC=none
13189 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13190 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13191 LLVMCC_OPTION=$WITH_LLVMCC
13194 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13195 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13197 ICC=no
13198 IXX=no
13199 case $CC in
13200 icc*|icpc*)
13201 ICC=yes
13202 IXX=yes
13206 esac
13208 if test "$GCC" != "yes" && test "$ICC" != "yes"
13209 then
13210 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13211 echo "$as_me: error: gcc|icc required but not found" >&2;}
13212 { (exit 1); exit 1; }; }
13215 if test "$GXX" != "yes" && test "$IXX" != "yes"
13216 then
13217 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13218 echo "$as_me: error: g++|icc required but not found" >&2;}
13219 { (exit 1); exit 1; }; }
13222 if test "$GCC" = "yes"
13223 then
13224 cat >conftest.$ac_ext <<_ACEOF
13225 #if !defined(__GNUC__) || __GNUC__ < 3
13226 #error Unsupported GCC version
13227 #endif
13229 _ACEOF
13230 rm -f conftest.$ac_objext
13231 if { (ac_try="$ac_compile"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13261 ac_status=$?
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13270 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13271 { (exit 1); exit 1; }; }
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 if test -z "$llvm_cv_gnu_make_command"
13278 then
13279 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13280 echo "$as_me: error: GNU Make required but not found" >&2;}
13281 { (exit 1); exit 1; }; }
13284 { echo "$as_me:$LINENO: result: ok" >&5
13285 echo "${ECHO_T}ok" >&6; }
13287 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13288 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13289 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13291 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13293 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13294 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13298 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13299 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13300 if test "${ac_cv_lib_m_sin+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-lm $LIBS"
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13312 /* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
13315 #ifdef __cplusplus
13316 extern "C"
13317 #endif
13318 char sin ();
13320 main ()
13322 return sin ();
13324 return 0;
13326 _ACEOF
13327 rm -f conftest.$ac_objext conftest$ac_exeext
13328 if { (ac_try="$ac_link"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } &&
13341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13342 { (case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_try") 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; } &&
13351 { ac_try='test -s conftest$ac_exeext'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 ac_cv_lib_m_sin=yes
13362 else
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_cv_lib_m_sin=no
13369 rm -f core conftest.err conftest.$ac_objext \
13370 conftest$ac_exeext conftest.$ac_ext
13371 LIBS=$ac_check_lib_save_LIBS
13373 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13374 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13375 if test $ac_cv_lib_m_sin = yes; then
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_LIBM 1
13378 _ACEOF
13380 LIBS="-lm $LIBS"
13384 if test "$llvm_cv_os_type" = "MingW" ; then
13386 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13387 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13388 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-limagehlp $LIBS"
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13402 main ()
13404 return main ();
13406 return 0;
13408 _ACEOF
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (ac_try="$ac_link"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13424 { (case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_try") 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try='test -s conftest$ac_exeext'
13434 { (case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13437 esac
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439 (eval "$ac_try") 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_cv_lib_imagehlp_main=yes
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_cv_lib_imagehlp_main=no
13451 rm -f core conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13453 LIBS=$ac_check_lib_save_LIBS
13455 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13456 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13457 if test $ac_cv_lib_imagehlp_main = yes; then
13458 cat >>confdefs.h <<_ACEOF
13459 #define HAVE_LIBIMAGEHLP 1
13460 _ACEOF
13462 LIBS="-limagehlp $LIBS"
13467 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13468 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13469 if test "${ac_cv_lib_psapi_main+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472 ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-lpsapi $LIBS"
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13483 main ()
13485 return main ();
13487 return 0;
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_link") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13505 { (case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510 (eval "$ac_try") 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest$ac_exeext'
13515 { (case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_try") 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 ac_cv_lib_psapi_main=yes
13525 else
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ac_cv_lib_psapi_main=no
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LIBS=$ac_check_lib_save_LIBS
13536 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13537 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13538 if test $ac_cv_lib_psapi_main = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540 #define HAVE_LIBPSAPI 1
13541 _ACEOF
13543 LIBS="-lpsapi $LIBS"
13549 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13550 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13551 if test "${ac_cv_search_dlopen+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 ac_func_search_save_LIBS=$LIBS
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 char dlopen ();
13570 main ()
13572 return dlopen ();
13574 return 0;
13576 _ACEOF
13577 for ac_lib in '' dl; do
13578 if test -z "$ac_lib"; then
13579 ac_res="none required"
13580 else
13581 ac_res=-l$ac_lib
13582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (ac_try="$ac_link"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_link") 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13599 { (case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_try") 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest$ac_exeext'
13609 { (case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_try") 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_search_dlopen=$ac_res
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext
13628 if test "${ac_cv_search_dlopen+set}" = set; then
13629 break
13631 done
13632 if test "${ac_cv_search_dlopen+set}" = set; then
13634 else
13635 ac_cv_search_dlopen=no
13637 rm conftest.$ac_ext
13638 LIBS=$ac_func_search_save_LIBS
13640 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13641 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13642 ac_res=$ac_cv_search_dlopen
13643 if test "$ac_res" != no; then
13644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13646 cat >>confdefs.h <<\_ACEOF
13647 #define HAVE_DLOPEN 1
13648 _ACEOF
13650 else
13651 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13652 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13656 if test "$llvm_cv_enable_libffi" = "yes" ; then
13657 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13658 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13659 if test "${ac_cv_search_ffi_call+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 ac_func_search_save_LIBS=$LIBS
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h. */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 /* Override any GCC internal prototype to avoid an error.
13671 Use char because int might match the return type of a GCC
13672 builtin and then its argument prototype would still apply. */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 char ffi_call ();
13678 main ()
13680 return ffi_call ();
13682 return 0;
13684 _ACEOF
13685 for ac_lib in '' ffi; do
13686 if test -z "$ac_lib"; then
13687 ac_res="none required"
13688 else
13689 ac_res=-l$ac_lib
13690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13692 rm -f conftest.$ac_objext conftest$ac_exeext
13693 if { (ac_try="$ac_link"
13694 case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_link") 2>conftest.er1
13700 ac_status=$?
13701 grep -v '^ *+' conftest.er1 >conftest.err
13702 rm -f conftest.er1
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707 { (case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_try") 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest$ac_exeext'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 ac_cv_search_ffi_call=$ac_res
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13734 rm -f core conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext
13736 if test "${ac_cv_search_ffi_call+set}" = set; then
13737 break
13739 done
13740 if test "${ac_cv_search_ffi_call+set}" = set; then
13742 else
13743 ac_cv_search_ffi_call=no
13745 rm conftest.$ac_ext
13746 LIBS=$ac_func_search_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13749 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13750 ac_res=$ac_cv_search_ffi_call
13751 if test "$ac_res" != no; then
13752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_FFI_CALL 1
13756 _ACEOF
13758 else
13759 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13760 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13761 { (exit 1); exit 1; }; }
13766 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13767 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13768 if test "${ac_cv_search_mallinfo+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771 ac_func_search_save_LIBS=$LIBS
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 #endif
13785 char mallinfo ();
13787 main ()
13789 return mallinfo ();
13791 return 0;
13793 _ACEOF
13794 for ac_lib in '' malloc; do
13795 if test -z "$ac_lib"; then
13796 ac_res="none required"
13797 else
13798 ac_res=-l$ac_lib
13799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (ac_try="$ac_link"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_link") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816 { (case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_try") 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; } &&
13825 { ac_try='test -s conftest$ac_exeext'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_cv_search_mallinfo=$ac_res
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext
13845 if test "${ac_cv_search_mallinfo+set}" = set; then
13846 break
13848 done
13849 if test "${ac_cv_search_mallinfo+set}" = set; then
13851 else
13852 ac_cv_search_mallinfo=no
13854 rm conftest.$ac_ext
13855 LIBS=$ac_func_search_save_LIBS
13857 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13858 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13859 ac_res=$ac_cv_search_mallinfo
13860 if test "$ac_res" != no; then
13861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_MALLINFO 1
13865 _ACEOF
13870 if test "$ENABLE_THREADS" -eq 1 ; then
13872 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13873 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13874 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 else
13877 ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lpthread $LIBS"
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h. */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13886 /* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 char pthread_mutex_init ();
13894 main ()
13896 return pthread_mutex_init ();
13898 return 0;
13900 _ACEOF
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (ac_try="$ac_link"
13903 case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_link") 2>conftest.er1
13909 ac_status=$?
13910 grep -v '^ *+' conftest.er1 >conftest.err
13911 rm -f conftest.er1
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_cv_lib_pthread_pthread_mutex_init=yes
13936 else
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_cv_lib_pthread_pthread_mutex_init=no
13943 rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13948 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13949 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_LIBPTHREAD 1
13952 _ACEOF
13954 LIBS="-lpthread $LIBS"
13958 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13959 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13960 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 ac_func_search_save_LIBS=$LIBS
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char pthread_mutex_lock ();
13979 main ()
13981 return pthread_mutex_lock ();
13983 return 0;
13985 _ACEOF
13986 for ac_lib in '' pthread; do
13987 if test -z "$ac_lib"; then
13988 ac_res="none required"
13989 else
13990 ac_res=-l$ac_lib
13991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13993 rm -f conftest.$ac_objext conftest$ac_exeext
13994 if { (ac_try="$ac_link"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_try") 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_cv_search_pthread_mutex_lock=$ac_res
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext
14037 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14038 break
14040 done
14041 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14043 else
14044 ac_cv_search_pthread_mutex_lock=no
14046 rm conftest.$ac_ext
14047 LIBS=$ac_func_search_save_LIBS
14049 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14050 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14051 ac_res=$ac_cv_search_pthread_mutex_lock
14052 if test "$ac_res" != no; then
14053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14055 cat >>confdefs.h <<\_ACEOF
14056 #define HAVE_PTHREAD_MUTEX_LOCK 1
14057 _ACEOF
14061 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14062 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14063 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_func_search_save_LIBS=$LIBS
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14074 /* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
14077 #ifdef __cplusplus
14078 extern "C"
14079 #endif
14080 char pthread_rwlock_init ();
14082 main ()
14084 return pthread_rwlock_init ();
14086 return 0;
14088 _ACEOF
14089 for ac_lib in '' pthread; do
14090 if test -z "$ac_lib"; then
14091 ac_res="none required"
14092 else
14093 ac_res=-l$ac_lib
14094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14096 rm -f conftest.$ac_objext conftest$ac_exeext
14097 if { (ac_try="$ac_link"
14098 case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101 esac
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_link") 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; } &&
14120 { ac_try='test -s conftest$ac_exeext'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124 esac
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_cv_search_pthread_rwlock_init=$ac_res
14131 else
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext
14140 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14141 break
14143 done
14144 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14146 else
14147 ac_cv_search_pthread_rwlock_init=no
14149 rm conftest.$ac_ext
14150 LIBS=$ac_func_search_save_LIBS
14152 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14153 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14154 ac_res=$ac_cv_search_pthread_rwlock_init
14155 if test "$ac_res" != no; then
14156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_PTHREAD_RWLOCK_INIT 1
14160 _ACEOF
14164 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14165 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14166 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 ac_func_search_save_LIBS=$LIBS
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char pthread_getspecific ();
14185 main ()
14187 return pthread_getspecific ();
14189 return 0;
14191 _ACEOF
14192 for ac_lib in '' pthread; do
14193 if test -z "$ac_lib"; then
14194 ac_res="none required"
14195 else
14196 ac_res=-l$ac_lib
14197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_link") 2>conftest.er1
14207 ac_status=$?
14208 grep -v '^ *+' conftest.er1 >conftest.err
14209 rm -f conftest.er1
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } &&
14213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_try") 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 ac_cv_search_pthread_getspecific=$ac_res
14234 else
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext
14243 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14244 break
14246 done
14247 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14249 else
14250 ac_cv_search_pthread_getspecific=no
14252 rm conftest.$ac_ext
14253 LIBS=$ac_func_search_save_LIBS
14255 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14256 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14257 ac_res=$ac_cv_search_pthread_getspecific
14258 if test "$ac_res" != no; then
14259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_PTHREAD_GETSPECIFIC 1
14263 _ACEOF
14270 # Check whether --with-udis86 was given.
14271 if test "${with_udis86+set}" = set; then
14272 withval=$with_udis86;
14273 USE_UDIS86=1
14275 case "$withval" in
14276 /usr/lib|yes) ;;
14277 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14278 esac
14280 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14281 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14282 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285 ac_check_lib_save_LIBS=$LIBS
14286 LIBS="-ludis86 $LIBS"
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14297 #ifdef __cplusplus
14298 extern "C"
14299 #endif
14300 char ud_init ();
14302 main ()
14304 return ud_init ();
14306 return 0;
14308 _ACEOF
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (ac_try="$ac_link"
14311 case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_link") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327 esac
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_lib_udis86_ud_init=yes
14344 else
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_cv_lib_udis86_ud_init=no
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS
14355 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14356 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14357 if test $ac_cv_lib_udis86_ud_init = yes; then
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_LIBUDIS86 1
14360 _ACEOF
14362 LIBS="-ludis86 $LIBS"
14364 else
14366 echo "Error! You need to have libudis86 around."
14367 exit -1
14372 else
14373 USE_UDIS86=0
14378 cat >>confdefs.h <<_ACEOF
14379 #define USE_UDIS86 $USE_UDIS86
14380 _ACEOF
14384 # Check whether --with-oprofile was given.
14385 if test "${with_oprofile+set}" = set; then
14386 withval=$with_oprofile;
14387 USE_OPROFILE=1
14389 case "$withval" in
14390 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14391 no) llvm_cv_oppath=
14392 USE_OPROFILE=0
14394 *) llvm_cv_oppath="${withval}/lib/oprofile"
14395 CPPFLAGS="-I${withval}/include";;
14396 esac
14397 if test -n "$llvm_cv_oppath" ; then
14398 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14399 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14400 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14401 if test "${ac_cv_search_bfd_init+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404 ac_func_search_save_LIBS=$LIBS
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h. */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14412 /* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 char bfd_init ();
14420 main ()
14422 return bfd_init ();
14424 return 0;
14426 _ACEOF
14427 for ac_lib in '' bfd; do
14428 if test -z "$ac_lib"; then
14429 ac_res="none required"
14430 else
14431 ac_res=-l$ac_lib
14432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14434 rm -f conftest.$ac_objext conftest$ac_exeext
14435 if { (ac_try="$ac_link"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_link") 2>conftest.er1
14442 ac_status=$?
14443 grep -v '^ *+' conftest.er1 >conftest.err
14444 rm -f conftest.er1
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest$ac_exeext'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_try") 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_search_bfd_init=$ac_res
14469 else
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext
14478 if test "${ac_cv_search_bfd_init+set}" = set; then
14479 break
14481 done
14482 if test "${ac_cv_search_bfd_init+set}" = set; then
14484 else
14485 ac_cv_search_bfd_init=no
14487 rm conftest.$ac_ext
14488 LIBS=$ac_func_search_save_LIBS
14490 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14491 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14492 ac_res=$ac_cv_search_bfd_init
14493 if test "$ac_res" != no; then
14494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14499 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14500 if test "${ac_cv_search_op_open_agent+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 ac_func_search_save_LIBS=$LIBS
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char op_open_agent ();
14519 main ()
14521 return op_open_agent ();
14523 return 0;
14525 _ACEOF
14526 for ac_lib in '' opagent; do
14527 if test -z "$ac_lib"; then
14528 ac_res="none required"
14529 else
14530 ac_res=-l$ac_lib
14531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548 { (case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_try") 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_try") 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_search_op_open_agent=$ac_res
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext
14577 if test "${ac_cv_search_op_open_agent+set}" = set; then
14578 break
14580 done
14581 if test "${ac_cv_search_op_open_agent+set}" = set; then
14583 else
14584 ac_cv_search_op_open_agent=no
14586 rm conftest.$ac_ext
14587 LIBS=$ac_func_search_save_LIBS
14589 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14590 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14591 ac_res=$ac_cv_search_op_open_agent
14592 if test "$ac_res" != no; then
14593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14595 else
14597 echo "Error! You need to have libopagent around."
14598 exit -1
14602 if test "${ac_cv_header_opagent_h+set}" = set; then
14603 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14604 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14605 if test "${ac_cv_header_opagent_h+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14609 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14610 else
14611 # Is the header compilable?
14612 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14613 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 $ac_includes_default
14621 #include <opagent.h>
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_header_compiler=yes
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_header_compiler=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667 echo "${ECHO_T}$ac_header_compiler" >&6; }
14669 # Is the header present?
14670 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14671 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <opagent.h>
14679 _ACEOF
14680 if { (ac_try="$ac_cpp conftest.$ac_ext"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null; then
14693 if test -s conftest.err; then
14694 ac_cpp_err=$ac_c_preproc_warn_flag
14695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14696 else
14697 ac_cpp_err=
14699 else
14700 ac_cpp_err=yes
14702 if test -z "$ac_cpp_err"; then
14703 ac_header_preproc=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_preproc=no
14711 rm -f conftest.err conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713 echo "${ECHO_T}$ac_header_preproc" >&6; }
14715 # So? What about this header?
14716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14717 yes:no: )
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14719 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14721 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14724 no:yes:* )
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14726 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14728 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14730 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14732 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14734 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14736 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14737 ( cat <<\_ASBOX
14738 ## ----------------------------------- ##
14739 ## Report this to llvmbugs@cs.uiuc.edu ##
14740 ## ----------------------------------- ##
14741 _ASBOX
14742 ) | sed "s/^/$as_me: WARNING: /" >&2
14744 esac
14745 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14746 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14747 if test "${ac_cv_header_opagent_h+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750 ac_cv_header_opagent_h=$ac_header_preproc
14752 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14753 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14756 if test $ac_cv_header_opagent_h = yes; then
14758 else
14760 echo "Error! You need to have opagent.h around."
14761 exit -1
14768 else
14770 USE_OPROFILE=0
14776 cat >>confdefs.h <<_ACEOF
14777 #define USE_OPROFILE $USE_OPROFILE
14778 _ACEOF
14787 ac_header_dirent=no
14788 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14789 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14790 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14791 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <sys/types.h>
14802 #include <$ac_hdr>
14805 main ()
14807 if ((DIR *) 0)
14808 return 0;
14810 return 0;
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 eval "$as_ac_Header=yes"
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 eval "$as_ac_Header=no"
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 ac_res=`eval echo '${'$as_ac_Header'}'`
14858 { echo "$as_me:$LINENO: result: $ac_res" >&5
14859 echo "${ECHO_T}$ac_res" >&6; }
14860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14861 cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14863 _ACEOF
14865 ac_header_dirent=$ac_hdr; break
14868 done
14869 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14870 if test $ac_header_dirent = dirent.h; then
14871 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14872 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14873 if test "${ac_cv_search_opendir+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876 ac_func_search_save_LIBS=$LIBS
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14884 /* Override any GCC internal prototype to avoid an error.
14885 Use char because int might match the return type of a GCC
14886 builtin and then its argument prototype would still apply. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 char opendir ();
14892 main ()
14894 return opendir ();
14896 return 0;
14898 _ACEOF
14899 for ac_lib in '' dir; do
14900 if test -z "$ac_lib"; then
14901 ac_res="none required"
14902 else
14903 ac_res=-l$ac_lib
14904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (ac_try="$ac_link"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911 esac
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_link") 2>conftest.er1
14914 ac_status=$?
14915 grep -v '^ *+' conftest.er1 >conftest.err
14916 rm -f conftest.er1
14917 cat conftest.err >&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14921 { (case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_try") 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest$ac_exeext'
14931 { (case "(($ac_try" in
14932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933 *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936 (eval "$ac_try") 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_search_opendir=$ac_res
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext
14950 if test "${ac_cv_search_opendir+set}" = set; then
14951 break
14953 done
14954 if test "${ac_cv_search_opendir+set}" = set; then
14956 else
14957 ac_cv_search_opendir=no
14959 rm conftest.$ac_ext
14960 LIBS=$ac_func_search_save_LIBS
14962 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14963 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14964 ac_res=$ac_cv_search_opendir
14965 if test "$ac_res" != no; then
14966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14970 else
14971 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14973 if test "${ac_cv_search_opendir+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976 ac_func_search_save_LIBS=$LIBS
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14984 /* Override any GCC internal prototype to avoid an error.
14985 Use char because int might match the return type of a GCC
14986 builtin and then its argument prototype would still apply. */
14987 #ifdef __cplusplus
14988 extern "C"
14989 #endif
14990 char opendir ();
14992 main ()
14994 return opendir ();
14996 return 0;
14998 _ACEOF
14999 for ac_lib in '' x; do
15000 if test -z "$ac_lib"; then
15001 ac_res="none required"
15002 else
15003 ac_res=-l$ac_lib
15004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_link") 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15021 { (case "(($ac_try" in
15022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_try") 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 ac_cv_search_opendir=$ac_res
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext
15050 if test "${ac_cv_search_opendir+set}" = set; then
15051 break
15053 done
15054 if test "${ac_cv_search_opendir+set}" = set; then
15056 else
15057 ac_cv_search_opendir=no
15059 rm conftest.$ac_ext
15060 LIBS=$ac_func_search_save_LIBS
15062 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15063 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15064 ac_res=$ac_cv_search_opendir
15065 if test "$ac_res" != no; then
15066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15072 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15073 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15074 if test "${ac_cv_header_mmap_anon+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077 ac_ext=c
15078 ac_cpp='$CPP $CPPFLAGS'
15079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <sys/mman.h>
15090 #include <unistd.h>
15091 #include <fcntl.h>
15093 main ()
15095 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15097 return 0;
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (ac_try="$ac_compile"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_compile") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15115 { (case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_try") 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_try") 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_header_mmap_anon=yes
15135 else
15136 echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_cv_header_mmap_anon=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 ac_ext=c
15144 ac_cpp='$CPP $CPPFLAGS'
15145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15152 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15153 if test "$ac_cv_header_mmap_anon" = yes; then
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_MMAP_ANONYMOUS 1
15157 _ACEOF
15161 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15162 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15163 if test "${ac_cv_header_stat_broken+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 cat >conftest.$ac_ext <<_ACEOF
15167 /* confdefs.h. */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 #include <sys/types.h>
15173 #include <sys/stat.h>
15175 #if defined S_ISBLK && defined S_IFDIR
15176 # if S_ISBLK (S_IFDIR)
15177 You lose.
15178 # endif
15179 #endif
15181 #if defined S_ISBLK && defined S_IFCHR
15182 # if S_ISBLK (S_IFCHR)
15183 You lose.
15184 # endif
15185 #endif
15187 #if defined S_ISLNK && defined S_IFREG
15188 # if S_ISLNK (S_IFREG)
15189 You lose.
15190 # endif
15191 #endif
15193 #if defined S_ISSOCK && defined S_IFREG
15194 # if S_ISSOCK (S_IFREG)
15195 You lose.
15196 # endif
15197 #endif
15199 _ACEOF
15200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15201 $EGREP "You lose" >/dev/null 2>&1; then
15202 ac_cv_header_stat_broken=yes
15203 else
15204 ac_cv_header_stat_broken=no
15206 rm -f conftest*
15209 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15210 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15211 if test $ac_cv_header_stat_broken = yes; then
15213 cat >>confdefs.h <<\_ACEOF
15214 #define STAT_MACROS_BROKEN 1
15215 _ACEOF
15219 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15221 if test "${ac_cv_header_stdc+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 #include <stdlib.h>
15231 #include <stdarg.h>
15232 #include <string.h>
15233 #include <float.h>
15236 main ()
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext
15244 if { (ac_try="$ac_compile"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_compile") 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15258 { (case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261 esac
15262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_try") 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_try") 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_header_stdc=yes
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_header_stdc=no
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287 if test $ac_cv_header_stdc = yes; then
15288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <string.h>
15297 _ACEOF
15298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15299 $EGREP "memchr" >/dev/null 2>&1; then
15301 else
15302 ac_cv_header_stdc=no
15304 rm -f conftest*
15308 if test $ac_cv_header_stdc = yes; then
15309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 #include <stdlib.h>
15318 _ACEOF
15319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15320 $EGREP "free" >/dev/null 2>&1; then
15322 else
15323 ac_cv_header_stdc=no
15325 rm -f conftest*
15329 if test $ac_cv_header_stdc = yes; then
15330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15331 if test "$cross_compiling" = yes; then
15333 else
15334 cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h. */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <ctype.h>
15341 #include <stdlib.h>
15342 #if ((' ' & 0x0FF) == 0x020)
15343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15345 #else
15346 # define ISLOWER(c) \
15347 (('a' <= (c) && (c) <= 'i') \
15348 || ('j' <= (c) && (c) <= 'r') \
15349 || ('s' <= (c) && (c) <= 'z'))
15350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15351 #endif
15353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15355 main ()
15357 int i;
15358 for (i = 0; i < 256; i++)
15359 if (XOR (islower (i), ISLOWER (i))
15360 || toupper (i) != TOUPPER (i))
15361 return 2;
15362 return 0;
15364 _ACEOF
15365 rm -f conftest$ac_exeext
15366 if { (ac_try="$ac_link"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_link") 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15376 { (case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_try") 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 else
15387 echo "$as_me: program exited with status $ac_status" >&5
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 ( exit $ac_status )
15392 ac_cv_header_stdc=no
15394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15401 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15402 if test $ac_cv_header_stdc = yes; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define STDC_HEADERS 1
15406 _ACEOF
15410 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15411 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15412 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15422 #include <sys/wait.h>
15423 #ifndef WEXITSTATUS
15424 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15425 #endif
15426 #ifndef WIFEXITED
15427 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15428 #endif
15431 main ()
15433 int s;
15434 wait (&s);
15435 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15437 return 0;
15439 _ACEOF
15440 rm -f conftest.$ac_objext
15441 if { (ac_try="$ac_compile"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } &&
15454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15455 { (case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15458 esac
15459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15460 (eval "$ac_try") 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest.$ac_objext'
15465 { (case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_header_sys_wait_h=yes
15475 else
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_header_sys_wait_h=no
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15485 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15486 if test $ac_cv_header_sys_wait_h = yes; then
15488 cat >>confdefs.h <<\_ACEOF
15489 #define HAVE_SYS_WAIT_H 1
15490 _ACEOF
15494 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15495 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15496 if test "${ac_cv_header_time+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15505 #include <sys/types.h>
15506 #include <sys/time.h>
15507 #include <time.h>
15510 main ()
15512 if ((struct tm *) 0)
15513 return 0;
15515 return 0;
15517 _ACEOF
15518 rm -f conftest.$ac_objext
15519 if { (ac_try="$ac_compile"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_compile") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533 { (case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_try") 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (case "(($ac_try" in
15544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548 (eval "$ac_try") 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_cv_header_time=yes
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_cv_header_time=no
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15563 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15564 if test $ac_cv_header_time = yes; then
15566 cat >>confdefs.h <<\_ACEOF
15567 #define TIME_WITH_SYS_TIME 1
15568 _ACEOF
15579 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 ac_res=`eval echo '${'$as_ac_Header'}'`
15589 { echo "$as_me:$LINENO: result: $ac_res" >&5
15590 echo "${ECHO_T}$ac_res" >&6; }
15591 else
15592 # Is the header compilable?
15593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 $ac_includes_default
15602 #include <$ac_header>
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609 esac
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15612 ac_status=$?
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -f conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15619 { (case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_try") 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_try") 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_header_compiler=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_header_compiler=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648 echo "${ECHO_T}$ac_header_compiler" >&6; }
15650 # Is the header present?
15651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h. */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 #include <$ac_header>
15660 _ACEOF
15661 if { (ac_try="$ac_cpp conftest.$ac_ext"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } >/dev/null; then
15674 if test -s conftest.err; then
15675 ac_cpp_err=$ac_c_preproc_warn_flag
15676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15677 else
15678 ac_cpp_err=
15680 else
15681 ac_cpp_err=yes
15683 if test -z "$ac_cpp_err"; then
15684 ac_header_preproc=yes
15685 else
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_header_preproc=no
15692 rm -f conftest.err conftest.$ac_ext
15693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15694 echo "${ECHO_T}$ac_header_preproc" >&6; }
15696 # So? What about this header?
15697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15698 yes:no: )
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15703 ac_header_preproc=yes
15705 no:yes:* )
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15718 ( cat <<\_ASBOX
15719 ## ----------------------------------- ##
15720 ## Report this to llvmbugs@cs.uiuc.edu ##
15721 ## ----------------------------------- ##
15722 _ASBOX
15723 ) | sed "s/^/$as_me: WARNING: /" >&2
15725 esac
15726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731 eval "$as_ac_Header=\$ac_header_preproc"
15733 ac_res=`eval echo '${'$as_ac_Header'}'`
15734 { echo "$as_me:$LINENO: result: $ac_res" >&5
15735 echo "${ECHO_T}$ac_res" >&6; }
15738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15739 cat >>confdefs.h <<_ACEOF
15740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15741 _ACEOF
15745 done
15753 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 ac_res=`eval echo '${'$as_ac_Header'}'`
15763 { echo "$as_me:$LINENO: result: $ac_res" >&5
15764 echo "${ECHO_T}$ac_res" >&6; }
15765 else
15766 # Is the header compilable?
15767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 $ac_includes_default
15776 #include <$ac_header>
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (ac_try="$ac_compile"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_compile") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15793 { (case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_try") 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
15803 { (case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_try") 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_header_compiler=yes
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_header_compiler=no
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15822 echo "${ECHO_T}$ac_header_compiler" >&6; }
15824 # Is the header present?
15825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 #include <$ac_header>
15834 _ACEOF
15835 if { (ac_try="$ac_cpp conftest.$ac_ext"
15836 case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } >/dev/null; then
15848 if test -s conftest.err; then
15849 ac_cpp_err=$ac_c_preproc_warn_flag
15850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15851 else
15852 ac_cpp_err=
15854 else
15855 ac_cpp_err=yes
15857 if test -z "$ac_cpp_err"; then
15858 ac_header_preproc=yes
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 ac_header_preproc=no
15866 rm -f conftest.err conftest.$ac_ext
15867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6; }
15870 # So? What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872 yes:no: )
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc=yes
15879 no:yes:* )
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15892 ( cat <<\_ASBOX
15893 ## ----------------------------------- ##
15894 ## Report this to llvmbugs@cs.uiuc.edu ##
15895 ## ----------------------------------- ##
15896 _ASBOX
15897 ) | sed "s/^/$as_me: WARNING: /" >&2
15899 esac
15900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905 eval "$as_ac_Header=\$ac_header_preproc"
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15915 _ACEOF
15919 done
15923 for ac_header in utime.h windows.h
15925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ac_res=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15935 else
15936 # Is the header compilable?
15937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 $ac_includes_default
15946 #include <$ac_header>
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953 esac
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966 esac
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 ac_header_compiler=no
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992 echo "${ECHO_T}$ac_header_compiler" >&6; }
15994 # Is the header present?
15995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 #include <$ac_header>
16004 _ACEOF
16005 if { (ac_try="$ac_cpp conftest.$ac_ext"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev/null; then
16018 if test -s conftest.err; then
16019 ac_cpp_err=$ac_c_preproc_warn_flag
16020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16021 else
16022 ac_cpp_err=
16024 else
16025 ac_cpp_err=yes
16027 if test -z "$ac_cpp_err"; then
16028 ac_header_preproc=yes
16029 else
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ac_header_preproc=no
16036 rm -f conftest.err conftest.$ac_ext
16037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038 echo "${ECHO_T}$ac_header_preproc" >&6; }
16040 # So? What about this header?
16041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 yes:no: )
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc=yes
16049 no:yes:* )
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16062 ( cat <<\_ASBOX
16063 ## ----------------------------------- ##
16064 ## Report this to llvmbugs@cs.uiuc.edu ##
16065 ## ----------------------------------- ##
16066 _ASBOX
16067 ) | sed "s/^/$as_me: WARNING: /" >&2
16069 esac
16070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 eval "$as_ac_Header=\$ac_header_preproc"
16077 ac_res=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079 echo "${ECHO_T}$ac_res" >&6; }
16082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16085 _ACEOF
16089 done
16095 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result: $ac_res" >&5
16106 echo "${ECHO_T}$ac_res" >&6; }
16107 else
16108 # Is the header compilable?
16109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h. */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 $ac_includes_default
16118 #include <$ac_header>
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_header_compiler=yes
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_header_compiler=no
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6; }
16166 # Is the header present?
16167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <$ac_header>
16176 _ACEOF
16177 if { (ac_try="$ac_cpp conftest.$ac_ext"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } >/dev/null; then
16190 if test -s conftest.err; then
16191 ac_cpp_err=$ac_c_preproc_warn_flag
16192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16193 else
16194 ac_cpp_err=
16196 else
16197 ac_cpp_err=yes
16199 if test -z "$ac_cpp_err"; then
16200 ac_header_preproc=yes
16201 else
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_header_preproc=no
16208 rm -f conftest.err conftest.$ac_ext
16209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16210 echo "${ECHO_T}$ac_header_preproc" >&6; }
16212 # So? What about this header?
16213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16214 yes:no: )
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16219 ac_header_preproc=yes
16221 no:yes:* )
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16234 ( cat <<\_ASBOX
16235 ## ----------------------------------- ##
16236 ## Report this to llvmbugs@cs.uiuc.edu ##
16237 ## ----------------------------------- ##
16238 _ASBOX
16239 ) | sed "s/^/$as_me: WARNING: /" >&2
16241 esac
16242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 eval "$as_ac_Header=\$ac_header_preproc"
16249 ac_res=`eval echo '${'$as_ac_Header'}'`
16250 { echo "$as_me:$LINENO: result: $ac_res" >&5
16251 echo "${ECHO_T}$ac_res" >&6; }
16254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16257 _ACEOF
16261 done
16267 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 ac_res=`eval echo '${'$as_ac_Header'}'`
16277 { echo "$as_me:$LINENO: result: $ac_res" >&5
16278 echo "${ECHO_T}$ac_res" >&6; }
16279 else
16280 # Is the header compilable?
16281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <$ac_header>
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_compile") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307 { (case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_try") 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_try") 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_header_compiler=yes
16327 else
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ac_header_compiler=no
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16336 echo "${ECHO_T}$ac_header_compiler" >&6; }
16338 # Is the header present?
16339 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h. */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 #include <$ac_header>
16348 _ACEOF
16349 if { (ac_try="$ac_cpp conftest.$ac_ext"
16350 case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16356 ac_status=$?
16357 grep -v '^ *+' conftest.er1 >conftest.err
16358 rm -f conftest.er1
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } >/dev/null; then
16362 if test -s conftest.err; then
16363 ac_cpp_err=$ac_c_preproc_warn_flag
16364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16365 else
16366 ac_cpp_err=
16368 else
16369 ac_cpp_err=yes
16371 if test -z "$ac_cpp_err"; then
16372 ac_header_preproc=yes
16373 else
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_header_preproc=no
16380 rm -f conftest.err conftest.$ac_ext
16381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16382 echo "${ECHO_T}$ac_header_preproc" >&6; }
16384 # So? What about this header?
16385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16386 yes:no: )
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16391 ac_header_preproc=yes
16393 no:yes:* )
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16406 ( cat <<\_ASBOX
16407 ## ----------------------------------- ##
16408 ## Report this to llvmbugs@cs.uiuc.edu ##
16409 ## ----------------------------------- ##
16410 _ASBOX
16411 ) | sed "s/^/$as_me: WARNING: /" >&2
16413 esac
16414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419 eval "$as_ac_Header=\$ac_header_preproc"
16421 ac_res=`eval echo '${'$as_ac_Header'}'`
16422 { echo "$as_me:$LINENO: result: $ac_res" >&5
16423 echo "${ECHO_T}$ac_res" >&6; }
16426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16427 cat >>confdefs.h <<_ACEOF
16428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16429 _ACEOF
16433 done
16436 for ac_header in valgrind/valgrind.h
16438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 ac_res=`eval echo '${'$as_ac_Header'}'`
16446 { echo "$as_me:$LINENO: result: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16448 else
16449 # Is the header compilable?
16450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h. */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 $ac_includes_default
16459 #include <$ac_header>
16460 _ACEOF
16461 rm -f conftest.$ac_objext
16462 if { (ac_try="$ac_compile"
16463 case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476 { (case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_try") 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; } &&
16485 { ac_try='test -s conftest.$ac_objext'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; }; then
16495 ac_header_compiler=yes
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_compiler=no
16503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16505 echo "${ECHO_T}$ac_header_compiler" >&6; }
16507 # Is the header present?
16508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <$ac_header>
16517 _ACEOF
16518 if { (ac_try="$ac_cpp conftest.$ac_ext"
16519 case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522 esac
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
16532 ac_cpp_err=$ac_c_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16534 else
16535 ac_cpp_err=
16537 else
16538 ac_cpp_err=yes
16540 if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_header_preproc=no
16549 rm -f conftest.err conftest.$ac_ext
16550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16551 echo "${ECHO_T}$ac_header_preproc" >&6; }
16553 # So? What about this header?
16554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16555 yes:no: )
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16560 ac_header_preproc=yes
16562 no:yes:* )
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16575 ( cat <<\_ASBOX
16576 ## ----------------------------------- ##
16577 ## Report this to llvmbugs@cs.uiuc.edu ##
16578 ## ----------------------------------- ##
16579 _ASBOX
16580 ) | sed "s/^/$as_me: WARNING: /" >&2
16582 esac
16583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588 eval "$as_ac_Header=\$ac_header_preproc"
16590 ac_res=`eval echo '${'$as_ac_Header'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598 _ACEOF
16602 done
16604 if test "$ENABLE_THREADS" -eq 1 ; then
16606 for ac_header in pthread.h
16608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618 else
16619 # Is the header compilable?
16620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 $ac_includes_default
16629 #include <$ac_header>
16630 _ACEOF
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636 esac
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16666 else
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_header_compiler=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675 echo "${ECHO_T}$ac_header_compiler" >&6; }
16677 # Is the header present?
16678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h. */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <$ac_header>
16687 _ACEOF
16688 if { (ac_try="$ac_cpp conftest.$ac_ext"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev/null; then
16701 if test -s conftest.err; then
16702 ac_cpp_err=$ac_c_preproc_warn_flag
16703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16704 else
16705 ac_cpp_err=
16707 else
16708 ac_cpp_err=yes
16710 if test -z "$ac_cpp_err"; then
16711 ac_header_preproc=yes
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_header_preproc=no
16719 rm -f conftest.err conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6; }
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16725 yes:no: )
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc=yes
16732 no:yes:* )
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16745 ( cat <<\_ASBOX
16746 ## ----------------------------------- ##
16747 ## Report this to llvmbugs@cs.uiuc.edu ##
16748 ## ----------------------------------- ##
16749 _ASBOX
16750 ) | sed "s/^/$as_me: WARNING: /" >&2
16752 esac
16753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16760 ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762 echo "${ECHO_T}$ac_res" >&6; }
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16768 _ACEOF
16769 HAVE_PTHREAD=1
16771 else
16772 HAVE_PTHREAD=0
16776 done
16778 else
16779 HAVE_PTHREAD=0
16783 if test "$llvm_cv_enable_libffi" = "yes" ; then
16786 for ac_header in ffi.h ffi/ffi.h
16788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 ac_res=`eval echo '${'$as_ac_Header'}'`
16796 { echo "$as_me:$LINENO: result: $ac_res" >&5
16797 echo "${ECHO_T}$ac_res" >&6; }
16798 else
16799 # Is the header compilable?
16800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16809 #include <$ac_header>
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846 else
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 ac_header_compiler=no
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855 echo "${ECHO_T}$ac_header_compiler" >&6; }
16857 # Is the header present?
16858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #include <$ac_header>
16867 _ACEOF
16868 if { (ac_try="$ac_cpp conftest.$ac_ext"
16869 case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } >/dev/null; then
16881 if test -s conftest.err; then
16882 ac_cpp_err=$ac_c_preproc_warn_flag
16883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16884 else
16885 ac_cpp_err=
16887 else
16888 ac_cpp_err=yes
16890 if test -z "$ac_cpp_err"; then
16891 ac_header_preproc=yes
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ac_header_preproc=no
16899 rm -f conftest.err conftest.$ac_ext
16900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16901 echo "${ECHO_T}$ac_header_preproc" >&6; }
16903 # So? What about this header?
16904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16905 yes:no: )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16910 ac_header_preproc=yes
16912 no:yes:* )
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16925 ( cat <<\_ASBOX
16926 ## ----------------------------------- ##
16927 ## Report this to llvmbugs@cs.uiuc.edu ##
16928 ## ----------------------------------- ##
16929 _ASBOX
16930 ) | sed "s/^/$as_me: WARNING: /" >&2
16932 esac
16933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 eval "$as_ac_Header=\$ac_header_preproc"
16940 ac_res=`eval echo '${'$as_ac_Header'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16948 _ACEOF
16952 done
16957 for ac_header in CrashReporterClient.h
16959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 ac_res=`eval echo '${'$as_ac_Header'}'`
16967 { echo "$as_me:$LINENO: result: $ac_res" >&5
16968 echo "${ECHO_T}$ac_res" >&6; }
16969 else
16970 # Is the header compilable?
16971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 $ac_includes_default
16980 #include <$ac_header>
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_compile") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000 esac
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_header_compiler=yes
17017 else
17018 echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17021 ac_header_compiler=no
17024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17026 echo "${ECHO_T}$ac_header_compiler" >&6; }
17028 # Is the header present?
17029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 #include <$ac_header>
17038 _ACEOF
17039 if { (ac_try="$ac_cpp conftest.$ac_ext"
17040 case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } >/dev/null; then
17052 if test -s conftest.err; then
17053 ac_cpp_err=$ac_c_preproc_warn_flag
17054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17055 else
17056 ac_cpp_err=
17058 else
17059 ac_cpp_err=yes
17061 if test -z "$ac_cpp_err"; then
17062 ac_header_preproc=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_header_preproc=no
17070 rm -f conftest.err conftest.$ac_ext
17071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17072 echo "${ECHO_T}$ac_header_preproc" >&6; }
17074 # So? What about this header?
17075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17076 yes:no: )
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17081 ac_header_preproc=yes
17083 no:yes:* )
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17096 ( cat <<\_ASBOX
17097 ## ----------------------------------- ##
17098 ## Report this to llvmbugs@cs.uiuc.edu ##
17099 ## ----------------------------------- ##
17100 _ASBOX
17101 ) | sed "s/^/$as_me: WARNING: /" >&2
17103 esac
17104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 eval "$as_ac_Header=\$ac_header_preproc"
17111 ac_res=`eval echo '${'$as_ac_Header'}'`
17112 { echo "$as_me:$LINENO: result: $ac_res" >&5
17113 echo "${ECHO_T}$ac_res" >&6; }
17116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17117 cat >>confdefs.h <<_ACEOF
17118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17119 _ACEOF
17123 done
17127 for ac_header in mach-o/getsect.h
17129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 ac_res=`eval echo '${'$as_ac_Header'}'`
17137 { echo "$as_me:$LINENO: result: $ac_res" >&5
17138 echo "${ECHO_T}$ac_res" >&6; }
17139 else
17140 # Is the header compilable?
17141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h. */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 $ac_includes_default
17150 #include <$ac_header>
17151 _ACEOF
17152 rm -f conftest.$ac_objext
17153 if { (ac_try="$ac_compile"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_compile") 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_header_compiler=yes
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 ac_header_compiler=no
17194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17196 echo "${ECHO_T}$ac_header_compiler" >&6; }
17198 # Is the header present?
17199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h. */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h. */
17207 #include <$ac_header>
17208 _ACEOF
17209 if { (ac_try="$ac_cpp conftest.$ac_ext"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } >/dev/null; then
17222 if test -s conftest.err; then
17223 ac_cpp_err=$ac_c_preproc_warn_flag
17224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17225 else
17226 ac_cpp_err=
17228 else
17229 ac_cpp_err=yes
17231 if test -z "$ac_cpp_err"; then
17232 ac_header_preproc=yes
17233 else
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ac_header_preproc=no
17240 rm -f conftest.err conftest.$ac_ext
17241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17242 echo "${ECHO_T}$ac_header_preproc" >&6; }
17244 # So? What about this header?
17245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17246 yes:no: )
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17251 ac_header_preproc=yes
17253 no:yes:* )
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17266 ( cat <<\_ASBOX
17267 ## ----------------------------------- ##
17268 ## Report this to llvmbugs@cs.uiuc.edu ##
17269 ## ----------------------------------- ##
17270 _ASBOX
17271 ) | sed "s/^/$as_me: WARNING: /" >&2
17273 esac
17274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279 eval "$as_ac_Header=\$ac_header_preproc"
17281 ac_res=`eval echo '${'$as_ac_Header'}'`
17282 { echo "$as_me:$LINENO: result: $ac_res" >&5
17283 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17289 _ACEOF
17293 done
17299 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17300 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17301 if test "${ac_cv_huge_val_sanity+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17305 ac_ext=cpp
17306 ac_cpp='$CXXCPP $CPPFLAGS'
17307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17311 ac_save_CXXFLAGS=$CXXFLAGS
17312 CXXFLAGS=-pedantic
17313 if test "$cross_compiling" = yes; then
17314 ac_cv_huge_val_sanity=yes
17315 else
17316 cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h. */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 #include <math.h>
17324 main ()
17326 double x = HUGE_VAL; return x != x;
17328 return 0;
17330 _ACEOF
17331 rm -f conftest$ac_exeext
17332 if { (ac_try="$ac_link"
17333 case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17336 esac
17337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17338 (eval "$ac_link") 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17342 { (case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_try") 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ac_cv_huge_val_sanity=yes
17352 else
17353 echo "$as_me: program exited with status $ac_status" >&5
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ( exit $ac_status )
17358 ac_cv_huge_val_sanity=no
17360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17364 CXXFLAGS=$ac_save_CXXFLAGS
17365 ac_ext=c
17366 ac_cpp='$CPP $CPPFLAGS'
17367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17373 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17374 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17375 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17378 { echo "$as_me:$LINENO: checking for pid_t" >&5
17379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17380 if test "${ac_cv_type_pid_t+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 typedef pid_t ac__type_new_;
17392 main ()
17394 if ((ac__type_new_ *) 0)
17395 return 0;
17396 if (sizeof (ac__type_new_))
17397 return 0;
17399 return 0;
17401 _ACEOF
17402 rm -f conftest.$ac_objext
17403 if { (ac_try="$ac_compile"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_compile") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_type_pid_t=yes
17437 else
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_type_pid_t=no
17444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17448 if test $ac_cv_type_pid_t = yes; then
17450 else
17452 cat >>confdefs.h <<_ACEOF
17453 #define pid_t int
17454 _ACEOF
17458 { echo "$as_me:$LINENO: checking for size_t" >&5
17459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17460 if test "${ac_cv_type_size_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 $ac_includes_default
17470 typedef size_t ac__type_new_;
17472 main ()
17474 if ((ac__type_new_ *) 0)
17475 return 0;
17476 if (sizeof (ac__type_new_))
17477 return 0;
17479 return 0;
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_type_size_t=yes
17517 else
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_cv_type_size_t=no
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17527 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17528 if test $ac_cv_type_size_t = yes; then
17530 else
17532 cat >>confdefs.h <<_ACEOF
17533 #define size_t unsigned int
17534 _ACEOF
17539 cat >>confdefs.h <<_ACEOF
17540 #define RETSIGTYPE void
17541 _ACEOF
17543 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17544 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17545 if test "${ac_cv_struct_tm+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 else
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 #include <sys/types.h>
17555 #include <time.h>
17558 main ()
17560 struct tm *tp; tp->tm_sec;
17562 return 0;
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (ac_try="$ac_compile"
17567 case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570 esac
17571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_compile") 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17580 { (case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_try") 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_struct_tm=time.h
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_cv_struct_tm=sys/time.h
17607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17609 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17610 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17611 if test $ac_cv_struct_tm = sys/time.h; then
17613 cat >>confdefs.h <<\_ACEOF
17614 #define TM_IN_SYS_TIME 1
17615 _ACEOF
17619 { echo "$as_me:$LINENO: checking for int64_t" >&5
17620 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17621 if test "${ac_cv_type_int64_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 typedef int64_t ac__type_new_;
17633 main ()
17635 if ((ac__type_new_ *) 0)
17636 return 0;
17637 if (sizeof (ac__type_new_))
17638 return 0;
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_int64_t=yes
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 ac_cv_type_int64_t=no
17685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17688 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17689 if test $ac_cv_type_int64_t = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define HAVE_INT64_T 1
17693 _ACEOF
17696 else
17697 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17698 echo "$as_me: error: Type int64_t required but not found" >&2;}
17699 { (exit 1); exit 1; }; }
17702 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17703 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17704 if test "${ac_cv_type_uint64_t+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707 cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h. */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 $ac_includes_default
17714 typedef uint64_t ac__type_new_;
17716 main ()
17718 if ((ac__type_new_ *) 0)
17719 return 0;
17720 if (sizeof (ac__type_new_))
17721 return 0;
17723 return 0;
17725 _ACEOF
17726 rm -f conftest.$ac_objext
17727 if { (ac_try="$ac_compile"
17728 case "(($ac_try" in
17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730 *) ac_try_echo=$ac_try;;
17731 esac
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733 (eval "$ac_compile") 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17741 { (case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_try") 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest.$ac_objext'
17751 { (case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_try") 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_cv_type_uint64_t=yes
17761 else
17762 echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17765 ac_cv_type_uint64_t=no
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17771 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17772 if test $ac_cv_type_uint64_t = yes; then
17774 cat >>confdefs.h <<_ACEOF
17775 #define HAVE_UINT64_T 1
17776 _ACEOF
17779 else
17780 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17781 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17782 if test "${ac_cv_type_u_int64_t+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 else
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17792 typedef u_int64_t ac__type_new_;
17794 main ()
17796 if ((ac__type_new_ *) 0)
17797 return 0;
17798 if (sizeof (ac__type_new_))
17799 return 0;
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_type_u_int64_t=yes
17839 else
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_cv_type_u_int64_t=no
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17849 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17850 if test $ac_cv_type_u_int64_t = yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_U_INT64_T 1
17854 _ACEOF
17857 else
17858 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17859 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17860 { (exit 1); exit 1; }; }
17874 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define $ac_func innocuous_$ac_func
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17897 #ifdef __STDC__
17898 # include <limits.h>
17899 #else
17900 # include <assert.h>
17901 #endif
17903 #undef $ac_func
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 char $ac_func ();
17912 /* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915 #if defined __stub_$ac_func || defined __stub___$ac_func
17916 choke me
17917 #endif
17920 main ()
17922 return $ac_func ();
17924 return 0;
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 eval "$as_ac_var=yes"
17962 else
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 eval "$as_ac_var=no"
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17972 ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result: $ac_res" >&5
17974 echo "${ECHO_T}$ac_res" >&6; }
17975 if test `eval echo '${'$as_ac_var'}'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17978 _ACEOF
17981 done
17987 for ac_func in powf fmodf strtof round
17989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h. */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003 #define $ac_func innocuous_$ac_func
18005 /* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18010 #ifdef __STDC__
18011 # include <limits.h>
18012 #else
18013 # include <assert.h>
18014 #endif
18016 #undef $ac_func
18018 /* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021 #ifdef __cplusplus
18022 extern "C"
18023 #endif
18024 char $ac_func ();
18025 /* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028 #if defined __stub_$ac_func || defined __stub___$ac_func
18029 choke me
18030 #endif
18033 main ()
18035 return $ac_func ();
18037 return 0;
18039 _ACEOF
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (ac_try="$ac_link"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_link") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18055 { (case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18058 esac
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_try") 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest$ac_exeext'
18065 { (case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_try") 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 eval "$as_ac_var=yes"
18075 else
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 eval "$as_ac_var=no"
18082 rm -f core conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18085 ac_res=`eval echo '${'$as_ac_var'}'`
18086 { echo "$as_me:$LINENO: result: $ac_res" >&5
18087 echo "${ECHO_T}$ac_res" >&6; }
18088 if test `eval echo '${'$as_ac_var'}'` = yes; then
18089 cat >>confdefs.h <<_ACEOF
18090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18091 _ACEOF
18094 done
18101 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18117 #define $ac_func innocuous_$ac_func
18119 /* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func (); below.
18121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122 <limits.h> exists even on freestanding compilers. */
18124 #ifdef __STDC__
18125 # include <limits.h>
18126 #else
18127 # include <assert.h>
18128 #endif
18130 #undef $ac_func
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char $ac_func ();
18139 /* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142 #if defined __stub_$ac_func || defined __stub___$ac_func
18143 choke me
18144 #endif
18147 main ()
18149 return $ac_func ();
18151 return 0;
18153 _ACEOF
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (ac_try="$ac_link"
18156 case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } &&
18168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest$ac_exeext'
18179 { (case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_try") 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 eval "$as_ac_var=yes"
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18193 eval "$as_ac_var=no"
18196 rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18199 ac_res=`eval echo '${'$as_ac_var'}'`
18200 { echo "$as_me:$LINENO: result: $ac_res" >&5
18201 echo "${ECHO_T}$ac_res" >&6; }
18202 if test `eval echo '${'$as_ac_var'}'` = yes; then
18203 cat >>confdefs.h <<_ACEOF
18204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18205 _ACEOF
18208 done
18213 for ac_func in isatty mkdtemp mkstemp
18215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h. */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18229 #define $ac_func innocuous_$ac_func
18231 /* System header to define __stub macros and hopefully few prototypes,
18232 which can conflict with char $ac_func (); below.
18233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234 <limits.h> exists even on freestanding compilers. */
18236 #ifdef __STDC__
18237 # include <limits.h>
18238 #else
18239 # include <assert.h>
18240 #endif
18242 #undef $ac_func
18244 /* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 char $ac_func ();
18251 /* The GNU C library defines this for functions which it implements
18252 to always fail with ENOSYS. Some functions are actually named
18253 something starting with __ and the normal name is an alias. */
18254 #if defined __stub_$ac_func || defined __stub___$ac_func
18255 choke me
18256 #endif
18259 main ()
18261 return $ac_func ();
18263 return 0;
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (ac_try="$ac_link"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest$ac_exeext'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 eval "$as_ac_var=yes"
18301 else
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18305 eval "$as_ac_var=no"
18308 rm -f core conftest.err conftest.$ac_objext \
18309 conftest$ac_exeext conftest.$ac_ext
18311 ac_res=`eval echo '${'$as_ac_var'}'`
18312 { echo "$as_me:$LINENO: result: $ac_res" >&5
18313 echo "${ECHO_T}$ac_res" >&6; }
18314 if test `eval echo '${'$as_ac_var'}'` = yes; then
18315 cat >>confdefs.h <<_ACEOF
18316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18317 _ACEOF
18320 done
18328 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h. */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18344 #define $ac_func innocuous_$ac_func
18346 /* System header to define __stub macros and hopefully few prototypes,
18347 which can conflict with char $ac_func (); below.
18348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 <limits.h> exists even on freestanding compilers. */
18351 #ifdef __STDC__
18352 # include <limits.h>
18353 #else
18354 # include <assert.h>
18355 #endif
18357 #undef $ac_func
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 char $ac_func ();
18366 /* The GNU C library defines this for functions which it implements
18367 to always fail with ENOSYS. Some functions are actually named
18368 something starting with __ and the normal name is an alias. */
18369 #if defined __stub_$ac_func || defined __stub___$ac_func
18370 choke me
18371 #endif
18374 main ()
18376 return $ac_func ();
18378 return 0;
18380 _ACEOF
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (ac_try="$ac_link"
18383 case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18386 esac
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_link") 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18396 { (case "(($ac_try" in
18397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398 *) ac_try_echo=$ac_try;;
18399 esac
18400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401 (eval "$ac_try") 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest$ac_exeext'
18406 { (case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 eval "$as_ac_var=yes"
18416 else
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 eval "$as_ac_var=no"
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18426 ac_res=`eval echo '${'$as_ac_var'}'`
18427 { echo "$as_me:$LINENO: result: $ac_res" >&5
18428 echo "${ECHO_T}$ac_res" >&6; }
18429 if test `eval echo '${'$as_ac_var'}'` = yes; then
18430 cat >>confdefs.h <<_ACEOF
18431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 _ACEOF
18435 done
18441 for ac_func in strerror strerror_r strerror_s setenv
18443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18457 #define $ac_func innocuous_$ac_func
18459 /* System header to define __stub macros and hopefully few prototypes,
18460 which can conflict with char $ac_func (); below.
18461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18462 <limits.h> exists even on freestanding compilers. */
18464 #ifdef __STDC__
18465 # include <limits.h>
18466 #else
18467 # include <assert.h>
18468 #endif
18470 #undef $ac_func
18472 /* Override any GCC internal prototype to avoid an error.
18473 Use char because int might match the return type of a GCC
18474 builtin and then its argument prototype would still apply. */
18475 #ifdef __cplusplus
18476 extern "C"
18477 #endif
18478 char $ac_func ();
18479 /* The GNU C library defines this for functions which it implements
18480 to always fail with ENOSYS. Some functions are actually named
18481 something starting with __ and the normal name is an alias. */
18482 #if defined __stub_$ac_func || defined __stub___$ac_func
18483 choke me
18484 #endif
18487 main ()
18489 return $ac_func ();
18491 return 0;
18493 _ACEOF
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 eval "$as_ac_var=yes"
18529 else
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 eval "$as_ac_var=no"
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18539 ac_res=`eval echo '${'$as_ac_var'}'`
18540 { echo "$as_me:$LINENO: result: $ac_res" >&5
18541 echo "${ECHO_T}$ac_res" >&6; }
18542 if test `eval echo '${'$as_ac_var'}'` = yes; then
18543 cat >>confdefs.h <<_ACEOF
18544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18545 _ACEOF
18548 done
18554 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define $ac_func innocuous_$ac_func
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18577 #ifdef __STDC__
18578 # include <limits.h>
18579 #else
18580 # include <assert.h>
18581 #endif
18583 #undef $ac_func
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char $ac_func ();
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined __stub_$ac_func || defined __stub___$ac_func
18596 choke me
18597 #endif
18600 main ()
18602 return $ac_func ();
18604 return 0;
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 eval "$as_ac_var=yes"
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 eval "$as_ac_var=no"
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18652 ac_res=`eval echo '${'$as_ac_var'}'`
18653 { echo "$as_me:$LINENO: result: $ac_res" >&5
18654 echo "${ECHO_T}$ac_res" >&6; }
18655 if test `eval echo '${'$as_ac_var'}'` = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18658 _ACEOF
18661 done
18667 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18683 #define $ac_func innocuous_$ac_func
18685 /* System header to define __stub macros and hopefully few prototypes,
18686 which can conflict with char $ac_func (); below.
18687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18688 <limits.h> exists even on freestanding compilers. */
18690 #ifdef __STDC__
18691 # include <limits.h>
18692 #else
18693 # include <assert.h>
18694 #endif
18696 #undef $ac_func
18698 /* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701 #ifdef __cplusplus
18702 extern "C"
18703 #endif
18704 char $ac_func ();
18705 /* The GNU C library defines this for functions which it implements
18706 to always fail with ENOSYS. Some functions are actually named
18707 something starting with __ and the normal name is an alias. */
18708 #if defined __stub_$ac_func || defined __stub___$ac_func
18709 choke me
18710 #endif
18713 main ()
18715 return $ac_func ();
18717 return 0;
18719 _ACEOF
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725 esac
18726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
18728 ac_status=$?
18729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 eval "$as_ac_var=yes"
18755 else
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 eval "$as_ac_var=no"
18762 rm -f core conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18765 ac_res=`eval echo '${'$as_ac_var'}'`
18766 { echo "$as_me:$LINENO: result: $ac_res" >&5
18767 echo "${ECHO_T}$ac_res" >&6; }
18768 if test `eval echo '${'$as_ac_var'}'` = yes; then
18769 cat >>confdefs.h <<_ACEOF
18770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18771 _ACEOF
18774 done
18776 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18777 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18778 if test "${llvm_cv_c_printf_a+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781 ac_ext=c
18782 ac_cpp='$CPP $CPPFLAGS'
18783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787 if test "$cross_compiling" = yes; then
18788 llvmac_cv_c_printf_a=no
18789 else
18790 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h. */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18798 #include <stdio.h>
18799 #include <stdlib.h>
18802 main ()
18805 volatile double A, B;
18806 char Buffer[100];
18807 A = 1;
18808 A /= 10.0;
18809 sprintf(Buffer, "%a", A);
18810 B = atof(Buffer);
18811 if (A != B)
18812 return (1);
18813 if (A != 0x1.999999999999ap-4)
18814 return (1);
18815 return (0);
18817 return 0;
18819 _ACEOF
18820 rm -f conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_link") 2>&5
18828 ac_status=$?
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831 { (case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834 esac
18835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_try") 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 llvm_cv_c_printf_a=yes
18841 else
18842 echo "$as_me: program exited with status $ac_status" >&5
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ( exit $ac_status )
18847 llvmac_cv_c_printf_a=no
18849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18853 ac_ext=c
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18860 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18861 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18862 if test "$llvm_cv_c_printf_a" = "yes"; then
18864 cat >>confdefs.h <<\_ACEOF
18865 #define HAVE_PRINTF_A 1
18866 _ACEOF
18871 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18872 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18873 if test "${ac_cv_func_rand48+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876 ac_ext=cpp
18877 ac_cpp='$CXXCPP $CPPFLAGS'
18878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18882 cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h. */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <stdlib.h>
18890 main ()
18892 srand48(0);lrand48();drand48();
18894 return 0;
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (ac_try="$ac_compile"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_compile") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915 esac
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_func_rand48=yes
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_cv_func_rand48=no
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 ac_ext=c
18941 ac_cpp='$CPP $CPPFLAGS'
18942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18948 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18950 if test "$ac_cv_func_rand48" = "yes" ; then
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_RAND48 1
18954 _ACEOF
18960 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18961 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18962 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 ac_ext=cpp
18966 ac_cpp='$CXXCPP $CPPFLAGS'
18967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <math.h>
18979 main ()
18981 float f; isnan(f);
18983 return 0;
18985 _ACEOF
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_func_isnan_in_math_h=yes
19021 else
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_func_isnan_in_math_h=no
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19029 ac_ext=c
19030 ac_cpp='$CPP $CPPFLAGS'
19031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19036 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19037 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19040 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE_ISNAN_IN_MATH_H 1
19044 _ACEOF
19048 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19049 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19050 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053 ac_ext=cpp
19054 ac_cpp='$CXXCPP $CPPFLAGS'
19055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h. */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #include <cmath>
19067 main ()
19069 float f; isnan(f);
19071 return 0;
19073 _ACEOF
19074 rm -f conftest.$ac_objext
19075 if { (ac_try="$ac_compile"
19076 case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_compile") 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19089 { (case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19092 esac
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_try") 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest.$ac_objext'
19099 { (case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102 esac
19103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_try") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 ac_cv_func_isnan_in_cmath=yes
19109 else
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19113 ac_cv_func_isnan_in_cmath=no
19116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117 ac_ext=c
19118 ac_cpp='$CPP $CPPFLAGS'
19119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19125 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19127 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE_ISNAN_IN_CMATH 1
19131 _ACEOF
19135 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19136 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19137 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140 ac_ext=cpp
19141 ac_cpp='$CXXCPP $CPPFLAGS'
19142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h. */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 #include <cmath>
19154 main ()
19156 float f; std::isnan(f);
19158 return 0;
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19176 { (case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_try") 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_func_std_isnan_in_cmath=yes
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_func_std_isnan_in_cmath=no
19203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 ac_ext=c
19205 ac_cpp='$CPP $CPPFLAGS'
19206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19211 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19212 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19214 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_STD_ISNAN_IN_CMATH 1
19218 _ACEOF
19223 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19224 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19225 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 ac_ext=cpp
19229 ac_cpp='$CXXCPP $CPPFLAGS'
19230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <math.h>
19242 main ()
19244 float f; isinf(f);
19246 return 0;
19248 _ACEOF
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19264 { (case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_try") 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_func_isinf_in_math_h=yes
19284 else
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_cv_func_isinf_in_math_h=no
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 ac_ext=c
19293 ac_cpp='$CPP $CPPFLAGS'
19294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19299 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19300 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19302 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_ISINF_IN_MATH_H 1
19306 _ACEOF
19310 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19311 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19312 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 ac_ext=cpp
19316 ac_cpp='$CXXCPP $CPPFLAGS'
19317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h. */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 #include <cmath>
19329 main ()
19331 float f; isinf(f);
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_compile") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19351 { (case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_try") 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
19361 { (case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_try") 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_func_isinf_in_cmath=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ac_cv_func_isinf_in_cmath=no
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 ac_ext=c
19380 ac_cpp='$CPP $CPPFLAGS'
19381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19386 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19387 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19389 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE_ISINF_IN_CMATH 1
19393 _ACEOF
19397 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19398 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19399 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 ac_ext=cpp
19403 ac_cpp='$CXXCPP $CPPFLAGS'
19404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <cmath>
19416 main ()
19418 float f; std::isinf(f)}
19420 return 0;
19422 _ACEOF
19423 rm -f conftest.$ac_objext
19424 if { (ac_try="$ac_compile"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_compile") 2>conftest.er1
19431 ac_status=$?
19432 grep -v '^ *+' conftest.er1 >conftest.err
19433 rm -f conftest.er1
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 ac_cv_func_std_isinf_in_cmath=yes
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_cv_func_std_isinf_in_cmath=no
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 ac_ext=c
19467 ac_cpp='$CPP $CPPFLAGS'
19468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19473 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19474 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19476 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19478 cat >>confdefs.h <<\_ACEOF
19479 #define HAVE_STD_ISINF_IN_CMATH 1
19480 _ACEOF
19484 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19485 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19486 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489 ac_ext=cpp
19490 ac_cpp='$CXXCPP $CPPFLAGS'
19491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 #include <ieeefp.h>
19503 main ()
19505 float f; finite(f);
19507 return 0;
19509 _ACEOF
19510 rm -f conftest.$ac_objext
19511 if { (ac_try="$ac_compile"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest.$ac_objext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_try") 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_func_finite_in_ieeefp_h=yes
19545 else
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_func_finite_in_ieeefp_h=no
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 ac_ext=c
19554 ac_cpp='$CPP $CPPFLAGS'
19555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19560 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19561 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19563 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_FINITE_IN_IEEEFP_H 1
19567 _ACEOF
19573 if test "$llvm_cv_platform_type" = "Unix" ; then
19576 for ac_header in stdlib.h unistd.h
19578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 ac_res=`eval echo '${'$as_ac_Header'}'`
19586 { echo "$as_me:$LINENO: result: $ac_res" >&5
19587 echo "${ECHO_T}$ac_res" >&6; }
19588 else
19589 # Is the header compilable?
19590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 $ac_includes_default
19599 #include <$ac_header>
19600 _ACEOF
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19622 ac_status=$?
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_header_compiler=yes
19636 else
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_header_compiler=no
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645 echo "${ECHO_T}$ac_header_compiler" >&6; }
19647 # Is the header present?
19648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #include <$ac_header>
19657 _ACEOF
19658 if { (ac_try="$ac_cpp conftest.$ac_ext"
19659 case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19665 ac_status=$?
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } >/dev/null; then
19671 if test -s conftest.err; then
19672 ac_cpp_err=$ac_c_preproc_warn_flag
19673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19674 else
19675 ac_cpp_err=
19677 else
19678 ac_cpp_err=yes
19680 if test -z "$ac_cpp_err"; then
19681 ac_header_preproc=yes
19682 else
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 ac_header_preproc=no
19689 rm -f conftest.err conftest.$ac_ext
19690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19691 echo "${ECHO_T}$ac_header_preproc" >&6; }
19693 # So? What about this header?
19694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19695 yes:no: )
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19700 ac_header_preproc=yes
19702 no:yes:* )
19703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19715 ( cat <<\_ASBOX
19716 ## ----------------------------------- ##
19717 ## Report this to llvmbugs@cs.uiuc.edu ##
19718 ## ----------------------------------- ##
19719 _ASBOX
19720 ) | sed "s/^/$as_me: WARNING: /" >&2
19722 esac
19723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728 eval "$as_ac_Header=\$ac_header_preproc"
19730 ac_res=`eval echo '${'$as_ac_Header'}'`
19731 { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19736 cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738 _ACEOF
19742 done
19745 for ac_func in getpagesize
19747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753 cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h. */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19761 #define $ac_func innocuous_$ac_func
19763 /* System header to define __stub macros and hopefully few prototypes,
19764 which can conflict with char $ac_func (); below.
19765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19766 <limits.h> exists even on freestanding compilers. */
19768 #ifdef __STDC__
19769 # include <limits.h>
19770 #else
19771 # include <assert.h>
19772 #endif
19774 #undef $ac_func
19776 /* Override any GCC internal prototype to avoid an error.
19777 Use char because int might match the return type of a GCC
19778 builtin and then its argument prototype would still apply. */
19779 #ifdef __cplusplus
19780 extern "C"
19781 #endif
19782 char $ac_func ();
19783 /* The GNU C library defines this for functions which it implements
19784 to always fail with ENOSYS. Some functions are actually named
19785 something starting with __ and the normal name is an alias. */
19786 #if defined __stub_$ac_func || defined __stub___$ac_func
19787 choke me
19788 #endif
19791 main ()
19793 return $ac_func ();
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 eval "$as_ac_var=yes"
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 eval "$as_ac_var=no"
19840 rm -f core conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19843 ac_res=`eval echo '${'$as_ac_var'}'`
19844 { echo "$as_me:$LINENO: result: $ac_res" >&5
19845 echo "${ECHO_T}$ac_res" >&6; }
19846 if test `eval echo '${'$as_ac_var'}'` = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19849 _ACEOF
19852 done
19854 { echo "$as_me:$LINENO: checking for working mmap" >&5
19855 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19856 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859 if test "$cross_compiling" = yes; then
19860 ac_cv_func_mmap_fixed_mapped=no
19861 else
19862 cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h. */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 $ac_includes_default
19869 /* malloc might have been renamed as rpl_malloc. */
19870 #undef malloc
19872 /* Thanks to Mike Haertel and Jim Avera for this test.
19873 Here is a matrix of mmap possibilities:
19874 mmap private not fixed
19875 mmap private fixed at somewhere currently unmapped
19876 mmap private fixed at somewhere already mapped
19877 mmap shared not fixed
19878 mmap shared fixed at somewhere currently unmapped
19879 mmap shared fixed at somewhere already mapped
19880 For private mappings, we should verify that changes cannot be read()
19881 back from the file, nor mmap's back from the file at a different
19882 address. (There have been systems where private was not correctly
19883 implemented like the infamous i386 svr4.0, and systems where the
19884 VM page cache was not coherent with the file system buffer cache
19885 like early versions of FreeBSD and possibly contemporary NetBSD.)
19886 For shared mappings, we should conversely verify that changes get
19887 propagated back to all the places they're supposed to be.
19889 Grep wants private fixed already mapped.
19890 The main things grep needs to know about mmap are:
19891 * does it exist and is it safe to write into the mmap'd area
19892 * how to use it (BSD variants) */
19894 #include <fcntl.h>
19895 #include <sys/mman.h>
19897 #if !STDC_HEADERS && !HAVE_STDLIB_H
19898 char *malloc ();
19899 #endif
19901 /* This mess was copied from the GNU getpagesize.h. */
19902 #if !HAVE_GETPAGESIZE
19903 /* Assume that all systems that can run configure have sys/param.h. */
19904 # if !HAVE_SYS_PARAM_H
19905 # define HAVE_SYS_PARAM_H 1
19906 # endif
19908 # ifdef _SC_PAGESIZE
19909 # define getpagesize() sysconf(_SC_PAGESIZE)
19910 # else /* no _SC_PAGESIZE */
19911 # if HAVE_SYS_PARAM_H
19912 # include <sys/param.h>
19913 # ifdef EXEC_PAGESIZE
19914 # define getpagesize() EXEC_PAGESIZE
19915 # else /* no EXEC_PAGESIZE */
19916 # ifdef NBPG
19917 # define getpagesize() NBPG * CLSIZE
19918 # ifndef CLSIZE
19919 # define CLSIZE 1
19920 # endif /* no CLSIZE */
19921 # else /* no NBPG */
19922 # ifdef NBPC
19923 # define getpagesize() NBPC
19924 # else /* no NBPC */
19925 # ifdef PAGESIZE
19926 # define getpagesize() PAGESIZE
19927 # endif /* PAGESIZE */
19928 # endif /* no NBPC */
19929 # endif /* no NBPG */
19930 # endif /* no EXEC_PAGESIZE */
19931 # else /* no HAVE_SYS_PARAM_H */
19932 # define getpagesize() 8192 /* punt totally */
19933 # endif /* no HAVE_SYS_PARAM_H */
19934 # endif /* no _SC_PAGESIZE */
19936 #endif /* no HAVE_GETPAGESIZE */
19939 main ()
19941 char *data, *data2, *data3;
19942 int i, pagesize;
19943 int fd;
19945 pagesize = getpagesize ();
19947 /* First, make a file with some known garbage in it. */
19948 data = (char *) malloc (pagesize);
19949 if (!data)
19950 return 1;
19951 for (i = 0; i < pagesize; ++i)
19952 *(data + i) = rand ();
19953 umask (0);
19954 fd = creat ("conftest.mmap", 0600);
19955 if (fd < 0)
19956 return 1;
19957 if (write (fd, data, pagesize) != pagesize)
19958 return 1;
19959 close (fd);
19961 /* Next, try to mmap the file at a fixed address which already has
19962 something else allocated at it. If we can, also make sure that
19963 we see the same garbage. */
19964 fd = open ("conftest.mmap", O_RDWR);
19965 if (fd < 0)
19966 return 1;
19967 data2 = (char *) malloc (2 * pagesize);
19968 if (!data2)
19969 return 1;
19970 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19971 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19972 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19973 return 1;
19974 for (i = 0; i < pagesize; ++i)
19975 if (*(data + i) != *(data2 + i))
19976 return 1;
19978 /* Finally, make sure that changes to the mapped area do not
19979 percolate back to the file as seen by read(). (This is a bug on
19980 some variants of i386 svr4.0.) */
19981 for (i = 0; i < pagesize; ++i)
19982 *(data2 + i) = *(data2 + i) + 1;
19983 data3 = (char *) malloc (pagesize);
19984 if (!data3)
19985 return 1;
19986 if (read (fd, data3, pagesize) != pagesize)
19987 return 1;
19988 for (i = 0; i < pagesize; ++i)
19989 if (*(data + i) != *(data3 + i))
19990 return 1;
19991 close (fd);
19992 return 0;
19994 _ACEOF
19995 rm -f conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20006 { (case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_try") 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 ac_cv_func_mmap_fixed_mapped=yes
20016 else
20017 echo "$as_me: program exited with status $ac_status" >&5
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ( exit $ac_status )
20022 ac_cv_func_mmap_fixed_mapped=no
20024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20030 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_MMAP 1
20035 _ACEOF
20038 rm -f conftest.mmap
20040 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20041 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20042 if test "${ac_cv_func_mmap_file+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 ac_ext=c
20046 ac_cpp='$CPP $CPPFLAGS'
20047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20051 if test "$cross_compiling" = yes; then
20052 ac_cv_func_mmap_file=no
20053 else
20054 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 #include <sys/types.h>
20063 #include <sys/mman.h>
20064 #include <fcntl.h>
20067 main ()
20070 int fd;
20071 fd = creat ("foo",0777);
20072 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20073 unlink ("foo");
20074 return (fd != (int) MAP_FAILED);
20076 return 0;
20078 _ACEOF
20079 rm -f conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_func_mmap_file=yes
20100 else
20101 echo "$as_me: program exited with status $ac_status" >&5
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 ( exit $ac_status )
20106 ac_cv_func_mmap_file=no
20108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20112 ac_ext=c
20113 ac_cpp='$CPP $CPPFLAGS'
20114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20120 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20121 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20122 if test "$ac_cv_func_mmap_file" = yes; then
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE_MMAP_FILE
20126 _ACEOF
20128 MMAP_FILE=yes
20132 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20133 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20134 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137 if test "$llvm_cv_os_type" = "Interix" ; then
20138 ac_cv_need_dev_zero_for_mmap=yes
20139 else
20140 ac_cv_need_dev_zero_for_mmap=no
20144 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20145 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20146 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20148 cat >>confdefs.h <<\_ACEOF
20149 #define NEED_DEV_ZERO_FOR_MMAP 1
20150 _ACEOF
20154 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20155 then
20156 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20157 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20159 if test "$ac_cv_func_mmap_file" = "no"
20160 then
20161 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20162 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20166 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20167 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20168 ac_ext=cpp
20169 ac_cpp='$CXXCPP $CPPFLAGS'
20170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180 int main() {
20181 volatile unsigned long val = 1;
20182 __sync_synchronize();
20183 __sync_val_compare_and_swap(&val, 1, 0);
20184 __sync_add_and_fetch(&val, 1);
20185 __sync_sub_and_fetch(&val, 1);
20186 return 0;
20189 _ACEOF
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20205 { (case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_try") 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } &&
20214 { ac_try='test -s conftest$ac_exeext'
20215 { (case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_try") 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_ext=c
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20230 { echo "$as_me:$LINENO: result: yes" >&5
20231 echo "${ECHO_T}yes" >&6; }
20233 cat >>confdefs.h <<\_ACEOF
20234 #define LLVM_MULTITHREADED 1
20235 _ACEOF
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 { echo "$as_me:$LINENO: result: no" >&5
20242 echo "${ECHO_T}no" >&6; }
20244 cat >>confdefs.h <<\_ACEOF
20245 #define LLVM_MULTITHREADED 0
20246 _ACEOF
20248 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20249 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20255 { echo "$as_me:$LINENO: checking for getsect()" >&5
20256 echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 #include <mach-o/getsect.h>
20264 int main() {
20265 unsigned long p;
20266 return (int)getsect("__DATA","__pass_info", &p);
20269 _ACEOF
20270 rm -f conftest.$ac_objext
20271 if { (ac_try="$ac_compile"
20272 case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_compile") 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest.$ac_objext'
20295 { (case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_try") 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 { echo "$as_me:$LINENO: result: yes" >&5
20305 echo "${ECHO_T}yes" >&6; }
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_GETSECT 1
20309 _ACEOF
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 { echo "$as_me:$LINENO: result: no" >&5
20316 echo "${ECHO_T}no" >&6; }
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_GETSECT 1
20320 _ACEOF
20325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20330 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20331 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20332 if test "${llvm_cv_linux_mixed+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 ac_ext=c
20336 ac_cpp='$CPP $CPPFLAGS'
20337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h. */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 #ifndef __x86_64__
20348 error: Not x86-64 even if uname says so!
20349 #endif
20352 main ()
20356 return 0;
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (ac_try="$ac_compile"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_compile") 2>conftest.er1
20367 ac_status=$?
20368 grep -v '^ *+' conftest.er1 >conftest.err
20369 rm -f conftest.er1
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest.$ac_objext'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 llvm_cv_linux_mixed=no
20394 else
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 llvm_cv_linux_mixed=yes
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402 ac_ext=c
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
20410 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20411 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20413 if test "$llvm_cv_linux_mixed" = "yes"; then
20414 llvm_cv_target_arch="x86"
20415 ARCH="x86"
20420 for ac_func in __dso_handle
20422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20436 #define $ac_func innocuous_$ac_func
20438 /* System header to define __stub macros and hopefully few prototypes,
20439 which can conflict with char $ac_func (); below.
20440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20441 <limits.h> exists even on freestanding compilers. */
20443 #ifdef __STDC__
20444 # include <limits.h>
20445 #else
20446 # include <assert.h>
20447 #endif
20449 #undef $ac_func
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char $ac_func ();
20458 /* The GNU C library defines this for functions which it implements
20459 to always fail with ENOSYS. Some functions are actually named
20460 something starting with __ and the normal name is an alias. */
20461 #if defined __stub_$ac_func || defined __stub___$ac_func
20462 choke me
20463 #endif
20466 main ()
20468 return $ac_func ();
20470 return 0;
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_link") 2>conftest.er1
20481 ac_status=$?
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_try") 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } &&
20497 { ac_try='test -s conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500 *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 eval "$as_ac_var=yes"
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 eval "$as_ac_var=no"
20515 rm -f core conftest.err conftest.$ac_objext \
20516 conftest$ac_exeext conftest.$ac_ext
20518 ac_res=`eval echo '${'$as_ac_var'}'`
20519 { echo "$as_me:$LINENO: result: $ac_res" >&5
20520 echo "${ECHO_T}$ac_res" >&6; }
20521 if test `eval echo '${'$as_ac_var'}'` = yes; then
20522 cat >>confdefs.h <<_ACEOF
20523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20524 _ACEOF
20527 done
20530 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20531 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20532 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 llvm_cv_llvmgcc_sanity="no"
20536 if test -x "$LLVMGCC" ; then
20537 cp /dev/null conftest.c
20538 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20539 grep 'target datalayout =' > /dev/null 2>&1
20540 if test $? -eq 0 ; then
20541 llvm_cv_llvmgcc_sanity="yes"
20543 rm conftest.c
20546 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20547 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20549 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20550 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20551 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20552 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20553 LLVMCC1=$llvmcc1path
20555 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20556 LLVMCC1PLUS=$llvmcc1pluspath
20558 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20559 LLVMGCCDIR=$llvmgccdir
20561 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20562 LLVMGCC_LANGS=$llvmgcclangs
20564 { echo "$as_me:$LINENO: result: ok" >&5
20565 echo "${ECHO_T}ok" >&6; }
20568 SHLIBEXT=$libltdl_cv_shlibext
20571 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20574 # Translate the various configuration directories and other basic
20575 # information into substitutions that will end up in Makefile.config.in
20576 # that these configured values can be used by the makefiles
20577 if test "${prefix}" = "NONE" ; then
20578 prefix="/usr/local"
20580 eval LLVM_PREFIX="${prefix}";
20581 eval LLVM_BINDIR="${prefix}/bin";
20582 eval LLVM_LIBDIR="${prefix}/lib";
20583 eval LLVM_DATADIR="${prefix}/share/llvm";
20584 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20585 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20586 eval LLVM_INCLUDEDIR="${prefix}/include";
20587 eval LLVM_INFODIR="${prefix}/info";
20588 eval LLVM_MANDIR="${prefix}/man";
20589 LLVM_CONFIGTIME=`date`
20601 # Place the various directores into the config.h file as #defines so that we
20602 # can know about the installation paths within LLVM.
20604 cat >>confdefs.h <<_ACEOF
20605 #define LLVM_PREFIX "$LLVM_PREFIX"
20606 _ACEOF
20609 cat >>confdefs.h <<_ACEOF
20610 #define LLVM_BINDIR "$LLVM_BINDIR"
20611 _ACEOF
20614 cat >>confdefs.h <<_ACEOF
20615 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20616 _ACEOF
20619 cat >>confdefs.h <<_ACEOF
20620 #define LLVM_DATADIR "$LLVM_DATADIR"
20621 _ACEOF
20624 cat >>confdefs.h <<_ACEOF
20625 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20626 _ACEOF
20629 cat >>confdefs.h <<_ACEOF
20630 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20631 _ACEOF
20634 cat >>confdefs.h <<_ACEOF
20635 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20636 _ACEOF
20639 cat >>confdefs.h <<_ACEOF
20640 #define LLVM_INFODIR "$LLVM_INFODIR"
20641 _ACEOF
20644 cat >>confdefs.h <<_ACEOF
20645 #define LLVM_MANDIR "$LLVM_MANDIR"
20646 _ACEOF
20649 cat >>confdefs.h <<_ACEOF
20650 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20651 _ACEOF
20654 cat >>confdefs.h <<_ACEOF
20655 #define LLVM_HOSTTRIPLE "$host"
20656 _ACEOF
20659 # Determine which bindings to build.
20660 if test "$BINDINGS_TO_BUILD" = auto ; then
20661 BINDINGS_TO_BUILD=""
20662 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20663 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20666 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20669 # This isn't really configurey, but it avoids having to repeat the list in
20670 # other files.
20671 ALL_BINDINGS=ocaml
20674 # Do any work necessary to ensure that bindings have what they need.
20675 binding_prereqs_failed=0
20676 for a_binding in $BINDINGS_TO_BUILD ; do
20677 case "$a_binding" in
20678 ocaml)
20679 if test "x$OCAMLC" = x ; then
20680 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20681 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20682 binding_prereqs_failed=1
20684 if test "x$OCAMLDEP" = x ; then
20685 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20686 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20687 binding_prereqs_failed=1
20689 if test "x$OCAMLOPT" = x ; then
20690 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20691 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20693 if test "x$with_ocaml_libdir" != xauto ; then
20694 OCAML_LIBDIR=$with_ocaml_libdir
20696 else
20697 ocaml_stdlib="`"$OCAMLC" -where`"
20698 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20699 then
20700 # ocaml stdlib is beneath our prefix; use stdlib
20701 OCAML_LIBDIR=$ocaml_stdlib
20703 else
20704 # ocaml stdlib is outside our prefix; use libdir/ocaml
20705 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20710 esac
20711 done
20712 if test "$binding_prereqs_failed" = 1 ; then
20713 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20714 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20715 { (exit 1); exit 1; }; }
20718 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20719 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20720 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723 ac_ext=cpp
20724 ac_cpp='$CXXCPP $CPPFLAGS'
20725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20729 oldcxxflags="$CXXFLAGS"
20730 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h. */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20739 main ()
20743 return 0;
20745 _ACEOF
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_compile") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20761 { (case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_try") 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest.$ac_objext'
20771 { (case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774 esac
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_try") 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 llvm_cv_cxx_visibility_inlines_hidden=yes
20781 else
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 llvm_cv_cxx_visibility_inlines_hidden=no
20788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20789 CXXFLAGS="$oldcxxflags"
20790 ac_ext=c
20791 ac_cpp='$CPP $CPPFLAGS'
20792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20799 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20800 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20801 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20803 else
20804 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20809 if test "$llvm_cv_link_use_r" = "yes" ; then
20810 RPATH="-Wl,-R"
20811 else
20812 RPATH="-Wl,-rpath"
20816 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20817 RDYNAMIC="-Wl,-export-dynamic"
20818 else
20819 RDYNAMIC=""
20824 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20826 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20828 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20830 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20832 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20834 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20837 ac_config_files="$ac_config_files Makefile.config"
20840 ac_config_files="$ac_config_files llvm.spec"
20843 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20846 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20849 ac_config_commands="$ac_config_commands setup"
20851 ac_config_commands="$ac_config_commands Makefile"
20854 ac_config_commands="$ac_config_commands Makefile.common"
20857 ac_config_commands="$ac_config_commands examples/Makefile"
20860 ac_config_commands="$ac_config_commands lib/Makefile"
20863 ac_config_commands="$ac_config_commands runtime/Makefile"
20866 ac_config_commands="$ac_config_commands test/Makefile"
20869 ac_config_commands="$ac_config_commands test/Makefile.tests"
20872 ac_config_commands="$ac_config_commands unittests/Makefile"
20875 ac_config_commands="$ac_config_commands tools/Makefile"
20878 ac_config_commands="$ac_config_commands utils/Makefile"
20881 ac_config_commands="$ac_config_commands projects/Makefile"
20884 ac_config_commands="$ac_config_commands bindings/Makefile"
20887 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20891 cat >confcache <<\_ACEOF
20892 # This file is a shell script that caches the results of configure
20893 # tests run on this system so they can be shared between configure
20894 # scripts and configure runs, see configure's option --config-cache.
20895 # It is not useful on other systems. If it contains results you don't
20896 # want to keep, you may remove or edit it.
20898 # config.status only pays attention to the cache file if you give it
20899 # the --recheck option to rerun configure.
20901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20903 # following values.
20905 _ACEOF
20907 # The following way of writing the cache mishandles newlines in values,
20908 # but we know of no workaround that is simple, portable, and efficient.
20909 # So, we kill variables containing newlines.
20910 # Ultrix sh set writes to stderr and can't be redirected directly,
20911 # and sets the high bit in the cache file unless we assign to the vars.
20913 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20914 eval ac_val=\$$ac_var
20915 case $ac_val in #(
20916 *${as_nl}*)
20917 case $ac_var in #(
20918 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20919 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20920 esac
20921 case $ac_var in #(
20922 _ | IFS | as_nl) ;; #(
20923 *) $as_unset $ac_var ;;
20924 esac ;;
20925 esac
20926 done
20928 (set) 2>&1 |
20929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20930 *${as_nl}ac_space=\ *)
20931 # `set' does not quote correctly, so add quotes (double-quote
20932 # substitution turns \\\\ into \\, and sed turns \\ into \).
20933 sed -n \
20934 "s/'/'\\\\''/g;
20935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20936 ;; #(
20938 # `set' quotes correctly as required by POSIX, so do not add quotes.
20939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20941 esac |
20942 sort
20944 sed '
20945 /^ac_cv_env_/b end
20946 t clear
20947 :clear
20948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20949 t end
20950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20951 :end' >>confcache
20952 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20953 if test -w "$cache_file"; then
20954 test "x$cache_file" != "x/dev/null" &&
20955 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20956 echo "$as_me: updating cache $cache_file" >&6;}
20957 cat confcache >$cache_file
20958 else
20959 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20960 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20963 rm -f confcache
20965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20966 # Let make expand exec_prefix.
20967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20969 DEFS=-DHAVE_CONFIG_H
20971 ac_libobjs=
20972 ac_ltlibobjs=
20973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20974 # 1. Remove the extension, and $U if already installed.
20975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20976 ac_i=`echo "$ac_i" | sed "$ac_script"`
20977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20978 # will be set to the directory where LIBOBJS objects are built.
20979 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20980 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20981 done
20982 LIBOBJS=$ac_libobjs
20984 LTLIBOBJS=$ac_ltlibobjs
20987 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20988 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&5
20990 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20991 Usually this means the macro was only invoked conditionally." >&2;}
20992 { (exit 1); exit 1; }; }
20994 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20995 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20996 Usually this means the macro was only invoked conditionally." >&5
20997 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&2;}
20999 { (exit 1); exit 1; }; }
21002 : ${CONFIG_STATUS=./config.status}
21003 ac_clean_files_save=$ac_clean_files
21004 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21005 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21006 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21007 cat >$CONFIG_STATUS <<_ACEOF
21008 #! $SHELL
21009 # Generated by $as_me.
21010 # Run this file to recreate the current configuration.
21011 # Compiler output produced by configure, useful for debugging
21012 # configure, is in config.log if it exists.
21014 debug=false
21015 ac_cs_recheck=false
21016 ac_cs_silent=false
21017 SHELL=\${CONFIG_SHELL-$SHELL}
21018 _ACEOF
21020 cat >>$CONFIG_STATUS <<\_ACEOF
21021 ## --------------------- ##
21022 ## M4sh Initialization. ##
21023 ## --------------------- ##
21025 # Be Bourne compatible
21026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21027 emulate sh
21028 NULLCMD=:
21029 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21030 # is contrary to our usage. Disable this feature.
21031 alias -g '${1+"$@"}'='"$@"'
21032 setopt NO_GLOB_SUBST
21033 else
21034 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21036 BIN_SH=xpg4; export BIN_SH # for Tru64
21037 DUALCASE=1; export DUALCASE # for MKS sh
21040 # PATH needs CR
21041 # Avoid depending upon Character Ranges.
21042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21045 as_cr_digits='0123456789'
21046 as_cr_alnum=$as_cr_Letters$as_cr_digits
21048 # The user is always right.
21049 if test "${PATH_SEPARATOR+set}" != set; then
21050 echo "#! /bin/sh" >conf$$.sh
21051 echo "exit 0" >>conf$$.sh
21052 chmod +x conf$$.sh
21053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21054 PATH_SEPARATOR=';'
21055 else
21056 PATH_SEPARATOR=:
21058 rm -f conf$$.sh
21061 # Support unset when possible.
21062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21063 as_unset=unset
21064 else
21065 as_unset=false
21069 # IFS
21070 # We need space, tab and new line, in precisely that order. Quoting is
21071 # there to prevent editors from complaining about space-tab.
21072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21073 # splitting by setting IFS to empty value.)
21074 as_nl='
21076 IFS=" "" $as_nl"
21078 # Find who we are. Look in the path if we contain no directory separator.
21079 case $0 in
21080 *[\\/]* ) as_myself=$0 ;;
21081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21082 for as_dir in $PATH
21084 IFS=$as_save_IFS
21085 test -z "$as_dir" && as_dir=.
21086 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21087 done
21088 IFS=$as_save_IFS
21091 esac
21092 # We did not find ourselves, most probably we were run as `sh COMMAND'
21093 # in which case we are not to be found in the path.
21094 if test "x$as_myself" = x; then
21095 as_myself=$0
21097 if test ! -f "$as_myself"; then
21098 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21099 { (exit 1); exit 1; }
21102 # Work around bugs in pre-3.0 UWIN ksh.
21103 for as_var in ENV MAIL MAILPATH
21104 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21105 done
21106 PS1='$ '
21107 PS2='> '
21108 PS4='+ '
21110 # NLS nuisances.
21111 for as_var in \
21112 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21113 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21114 LC_TELEPHONE LC_TIME
21116 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21117 eval $as_var=C; export $as_var
21118 else
21119 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21121 done
21123 # Required to use basename.
21124 if expr a : '\(a\)' >/dev/null 2>&1 &&
21125 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21126 as_expr=expr
21127 else
21128 as_expr=false
21131 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21132 as_basename=basename
21133 else
21134 as_basename=false
21138 # Name of the executable.
21139 as_me=`$as_basename -- "$0" ||
21140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21141 X"$0" : 'X\(//\)$' \| \
21142 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21143 echo X/"$0" |
21144 sed '/^.*\/\([^/][^/]*\)\/*$/{
21145 s//\1/
21148 /^X\/\(\/\/\)$/{
21149 s//\1/
21152 /^X\/\(\/\).*/{
21153 s//\1/
21156 s/.*/./; q'`
21158 # CDPATH.
21159 $as_unset CDPATH
21163 as_lineno_1=$LINENO
21164 as_lineno_2=$LINENO
21165 test "x$as_lineno_1" != "x$as_lineno_2" &&
21166 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21169 # uniformly replaced by the line number. The first 'sed' inserts a
21170 # line-number line after each line using $LINENO; the second 'sed'
21171 # does the real work. The second script uses 'N' to pair each
21172 # line-number line with the line containing $LINENO, and appends
21173 # trailing '-' during substitution so that $LINENO is not a special
21174 # case at line end.
21175 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21176 # scripts with optimization help from Paolo Bonzini. Blame Lee
21177 # E. McMahon (1931-1989) for sed's syntax. :-)
21178 sed -n '
21180 /[$]LINENO/=
21181 ' <$as_myself |
21182 sed '
21183 s/[$]LINENO.*/&-/
21184 t lineno
21186 :lineno
21188 :loop
21189 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21190 t loop
21191 s/-\n.*//
21192 ' >$as_me.lineno &&
21193 chmod +x "$as_me.lineno" ||
21194 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21195 { (exit 1); exit 1; }; }
21197 # Don't try to exec as it changes $[0], causing all sort of problems
21198 # (the dirname of $[0] is not the place where we might find the
21199 # original and so on. Autoconf is especially sensitive to this).
21200 . "./$as_me.lineno"
21201 # Exit status is that of the last command.
21202 exit
21206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21207 as_dirname=dirname
21208 else
21209 as_dirname=false
21212 ECHO_C= ECHO_N= ECHO_T=
21213 case `echo -n x` in
21214 -n*)
21215 case `echo 'x\c'` in
21216 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21217 *) ECHO_C='\c';;
21218 esac;;
21220 ECHO_N='-n';;
21221 esac
21223 if expr a : '\(a\)' >/dev/null 2>&1 &&
21224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21225 as_expr=expr
21226 else
21227 as_expr=false
21230 rm -f conf$$ conf$$.exe conf$$.file
21231 if test -d conf$$.dir; then
21232 rm -f conf$$.dir/conf$$.file
21233 else
21234 rm -f conf$$.dir
21235 mkdir conf$$.dir
21237 echo >conf$$.file
21238 if ln -s conf$$.file conf$$ 2>/dev/null; then
21239 as_ln_s='ln -s'
21240 # ... but there are two gotchas:
21241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21243 # In both cases, we have to default to `cp -p'.
21244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21245 as_ln_s='cp -p'
21246 elif ln conf$$.file conf$$ 2>/dev/null; then
21247 as_ln_s=ln
21248 else
21249 as_ln_s='cp -p'
21251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21252 rmdir conf$$.dir 2>/dev/null
21254 if mkdir -p . 2>/dev/null; then
21255 as_mkdir_p=:
21256 else
21257 test -d ./-p && rmdir ./-p
21258 as_mkdir_p=false
21261 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21262 # systems may use methods other than mode bits to determine executability.
21263 cat >conf$$.file <<_ASEOF
21264 #! /bin/sh
21265 exit 0
21266 _ASEOF
21267 chmod +x conf$$.file
21268 if test -x conf$$.file >/dev/null 2>&1; then
21269 as_executable_p="test -x"
21270 else
21271 as_executable_p=:
21273 rm -f conf$$.file
21275 # Sed expression to map a string onto a valid CPP name.
21276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21278 # Sed expression to map a string onto a valid variable name.
21279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21282 exec 6>&1
21284 # Save the log message, to keep $[0] and so on meaningful, and to
21285 # report actual input values of CONFIG_FILES etc. instead of their
21286 # values after options handling.
21287 ac_log="
21288 This file was extended by llvm $as_me 2.8svn, which was
21289 generated by GNU Autoconf 2.60. Invocation command line was
21291 CONFIG_FILES = $CONFIG_FILES
21292 CONFIG_HEADERS = $CONFIG_HEADERS
21293 CONFIG_LINKS = $CONFIG_LINKS
21294 CONFIG_COMMANDS = $CONFIG_COMMANDS
21295 $ $0 $@
21297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21300 _ACEOF
21302 cat >>$CONFIG_STATUS <<_ACEOF
21303 # Files that config.status was made for.
21304 config_files="$ac_config_files"
21305 config_headers="$ac_config_headers"
21306 config_commands="$ac_config_commands"
21308 _ACEOF
21310 cat >>$CONFIG_STATUS <<\_ACEOF
21311 ac_cs_usage="\
21312 \`$as_me' instantiates files from templates according to the
21313 current configuration.
21315 Usage: $0 [OPTIONS] [FILE]...
21317 -h, --help print this help, then exit
21318 -V, --version print version number, then exit
21319 -q, --quiet do not print progress messages
21320 -d, --debug don't remove temporary files
21321 --recheck update $as_me by reconfiguring in the same conditions
21322 --file=FILE[:TEMPLATE]
21323 instantiate the configuration file FILE
21324 --header=FILE[:TEMPLATE]
21325 instantiate the configuration header FILE
21327 Configuration files:
21328 $config_files
21330 Configuration headers:
21331 $config_headers
21333 Configuration commands:
21334 $config_commands
21336 Report bugs to <bug-autoconf@gnu.org>."
21338 _ACEOF
21339 cat >>$CONFIG_STATUS <<_ACEOF
21340 ac_cs_version="\\
21341 llvm config.status 2.8svn
21342 configured by $0, generated by GNU Autoconf 2.60,
21343 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21345 Copyright (C) 2006 Free Software Foundation, Inc.
21346 This config.status script is free software; the Free Software Foundation
21347 gives unlimited permission to copy, distribute and modify it."
21349 ac_pwd='$ac_pwd'
21350 srcdir='$srcdir'
21351 INSTALL='$INSTALL'
21352 _ACEOF
21354 cat >>$CONFIG_STATUS <<\_ACEOF
21355 # If no file are specified by the user, then we need to provide default
21356 # value. By we need to know if files were specified by the user.
21357 ac_need_defaults=:
21358 while test $# != 0
21360 case $1 in
21361 --*=*)
21362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21364 ac_shift=:
21367 ac_option=$1
21368 ac_optarg=$2
21369 ac_shift=shift
21371 esac
21373 case $ac_option in
21374 # Handling of the options.
21375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21376 ac_cs_recheck=: ;;
21377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21378 echo "$ac_cs_version"; exit ;;
21379 --debug | --debu | --deb | --de | --d | -d )
21380 debug=: ;;
21381 --file | --fil | --fi | --f )
21382 $ac_shift
21383 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21384 ac_need_defaults=false;;
21385 --header | --heade | --head | --hea )
21386 $ac_shift
21387 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21388 ac_need_defaults=false;;
21389 --he | --h)
21390 # Conflict between --help and --header
21391 { echo "$as_me: error: ambiguous option: $1
21392 Try \`$0 --help' for more information." >&2
21393 { (exit 1); exit 1; }; };;
21394 --help | --hel | -h )
21395 echo "$ac_cs_usage"; exit ;;
21396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21398 ac_cs_silent=: ;;
21400 # This is an error.
21401 -*) { echo "$as_me: error: unrecognized option: $1
21402 Try \`$0 --help' for more information." >&2
21403 { (exit 1); exit 1; }; } ;;
21405 *) ac_config_targets="$ac_config_targets $1"
21406 ac_need_defaults=false ;;
21408 esac
21409 shift
21410 done
21412 ac_configure_extra_args=
21414 if $ac_cs_silent; then
21415 exec 6>/dev/null
21416 ac_configure_extra_args="$ac_configure_extra_args --silent"
21419 _ACEOF
21420 cat >>$CONFIG_STATUS <<_ACEOF
21421 if \$ac_cs_recheck; then
21422 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21423 CONFIG_SHELL=$SHELL
21424 export CONFIG_SHELL
21425 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21428 _ACEOF
21429 cat >>$CONFIG_STATUS <<\_ACEOF
21430 exec 5>>config.log
21432 echo
21433 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21434 ## Running $as_me. ##
21435 _ASBOX
21436 echo "$ac_log"
21437 } >&5
21439 _ACEOF
21440 cat >>$CONFIG_STATUS <<_ACEOF
21442 # INIT-COMMANDS
21444 llvm_src="${srcdir}"
21446 _ACEOF
21448 cat >>$CONFIG_STATUS <<\_ACEOF
21450 # Handling of arguments.
21451 for ac_config_target in $ac_config_targets
21453 case $ac_config_target in
21454 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21455 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21456 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21457 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21458 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21459 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21460 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21461 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21462 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21463 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21464 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21465 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21466 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21467 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21468 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21469 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21470 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21471 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21472 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21473 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21474 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21475 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21476 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21477 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21481 { (exit 1); exit 1; }; };;
21482 esac
21483 done
21486 # If the user did not use the arguments to specify the items to instantiate,
21487 # then the envvar interface is used. Set only those that are not.
21488 # We use the long form for the default assignment because of an extremely
21489 # bizarre bug on SunOS 4.1.3.
21490 if $ac_need_defaults; then
21491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21496 # Have a temporary directory for convenience. Make it in the build tree
21497 # simply because there is no reason against having it here, and in addition,
21498 # creating and moving files from /tmp can sometimes cause problems.
21499 # Hook for its removal unless debugging.
21500 # Note that there is a small window in which the directory will not be cleaned:
21501 # after its creation but before its name has been assigned to `$tmp'.
21502 $debug ||
21504 tmp=
21505 trap 'exit_status=$?
21506 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21508 trap '{ (exit 1); exit 1; }' 1 2 13 15
21510 # Create a (secure) tmp directory for tmp files.
21513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21514 test -n "$tmp" && test -d "$tmp"
21515 } ||
21517 tmp=./conf$$-$RANDOM
21518 (umask 077 && mkdir "$tmp")
21519 } ||
21521 echo "$me: cannot create a temporary directory in ." >&2
21522 { (exit 1); exit 1; }
21526 # Set up the sed scripts for CONFIG_FILES section.
21529 # No need to generate the scripts if there are no CONFIG_FILES.
21530 # This happens for instance when ./config.status config.h
21531 if test -n "$CONFIG_FILES"; then
21533 _ACEOF
21537 ac_delim='%!_!# '
21538 for ac_last_try in false false false false false :; do
21539 cat >conf$$subs.sed <<_ACEOF
21540 SHELL!$SHELL$ac_delim
21541 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21542 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21543 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21544 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21545 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21546 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21547 exec_prefix!$exec_prefix$ac_delim
21548 prefix!$prefix$ac_delim
21549 program_transform_name!$program_transform_name$ac_delim
21550 bindir!$bindir$ac_delim
21551 sbindir!$sbindir$ac_delim
21552 libexecdir!$libexecdir$ac_delim
21553 datarootdir!$datarootdir$ac_delim
21554 datadir!$datadir$ac_delim
21555 sysconfdir!$sysconfdir$ac_delim
21556 sharedstatedir!$sharedstatedir$ac_delim
21557 localstatedir!$localstatedir$ac_delim
21558 includedir!$includedir$ac_delim
21559 oldincludedir!$oldincludedir$ac_delim
21560 docdir!$docdir$ac_delim
21561 infodir!$infodir$ac_delim
21562 htmldir!$htmldir$ac_delim
21563 dvidir!$dvidir$ac_delim
21564 pdfdir!$pdfdir$ac_delim
21565 psdir!$psdir$ac_delim
21566 libdir!$libdir$ac_delim
21567 localedir!$localedir$ac_delim
21568 mandir!$mandir$ac_delim
21569 DEFS!$DEFS$ac_delim
21570 ECHO_C!$ECHO_C$ac_delim
21571 ECHO_N!$ECHO_N$ac_delim
21572 ECHO_T!$ECHO_T$ac_delim
21573 LIBS!$LIBS$ac_delim
21574 build_alias!$build_alias$ac_delim
21575 host_alias!$host_alias$ac_delim
21576 target_alias!$target_alias$ac_delim
21577 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21578 subdirs!$subdirs$ac_delim
21579 build!$build$ac_delim
21580 build_cpu!$build_cpu$ac_delim
21581 build_vendor!$build_vendor$ac_delim
21582 build_os!$build_os$ac_delim
21583 host!$host$ac_delim
21584 host_cpu!$host_cpu$ac_delim
21585 host_vendor!$host_vendor$ac_delim
21586 host_os!$host_os$ac_delim
21587 target!$target$ac_delim
21588 target_cpu!$target_cpu$ac_delim
21589 target_vendor!$target_vendor$ac_delim
21590 target_os!$target_os$ac_delim
21591 OS!$OS$ac_delim
21592 HOST_OS!$HOST_OS$ac_delim
21593 TARGET_OS!$TARGET_OS$ac_delim
21594 LINKALL!$LINKALL$ac_delim
21595 NOLINKALL!$NOLINKALL$ac_delim
21596 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21597 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21598 ARCH!$ARCH$ac_delim
21599 ENDIAN!$ENDIAN$ac_delim
21600 CC!$CC$ac_delim
21601 CFLAGS!$CFLAGS$ac_delim
21602 LDFLAGS!$LDFLAGS$ac_delim
21603 CPPFLAGS!$CPPFLAGS$ac_delim
21604 ac_ct_CC!$ac_ct_CC$ac_delim
21605 EXEEXT!$EXEEXT$ac_delim
21606 OBJEXT!$OBJEXT$ac_delim
21607 CPP!$CPP$ac_delim
21608 GREP!$GREP$ac_delim
21609 EGREP!$EGREP$ac_delim
21610 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21611 BUILD_CC!$BUILD_CC$ac_delim
21612 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21613 BUILD_CXX!$BUILD_CXX$ac_delim
21614 CVSBUILD!$CVSBUILD$ac_delim
21615 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21616 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21617 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21618 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21619 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21620 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21621 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21622 JIT!$JIT$ac_delim
21623 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21624 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21625 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21626 ENABLE_PIC!$ENABLE_PIC$ac_delim
21627 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21628 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21629 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21630 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21631 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21632 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21633 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21634 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21635 CLANGPATH!$CLANGPATH$ac_delim
21636 CLANGXXPATH!$CLANGXXPATH$ac_delim
21637 _ACEOF
21639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21640 break
21641 elif $ac_last_try; then
21642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21644 { (exit 1); exit 1; }; }
21645 else
21646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21648 done
21650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21651 if test -n "$ac_eof"; then
21652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21653 ac_eof=`expr $ac_eof + 1`
21656 cat >>$CONFIG_STATUS <<_ACEOF
21657 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21659 _ACEOF
21660 sed '
21661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21662 s/^/s,@/; s/!/@,|#_!!_#|/
21665 s/'"$ac_delim"'$/,g/; t
21666 s/$/\\/; p
21667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21668 ' >>$CONFIG_STATUS <conf$$subs.sed
21669 rm -f conf$$subs.sed
21670 cat >>$CONFIG_STATUS <<_ACEOF
21671 CEOF$ac_eof
21672 _ACEOF
21675 ac_delim='%!_!# '
21676 for ac_last_try in false false false false false :; do
21677 cat >conf$$subs.sed <<_ACEOF
21678 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21679 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21680 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21681 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21682 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21683 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21684 CXX!$CXX$ac_delim
21685 CXXFLAGS!$CXXFLAGS$ac_delim
21686 ac_ct_CXX!$ac_ct_CXX$ac_delim
21687 NM!$NM$ac_delim
21688 ifGNUmake!$ifGNUmake$ac_delim
21689 LN_S!$LN_S$ac_delim
21690 CMP!$CMP$ac_delim
21691 CP!$CP$ac_delim
21692 DATE!$DATE$ac_delim
21693 FIND!$FIND$ac_delim
21694 MKDIR!$MKDIR$ac_delim
21695 MV!$MV$ac_delim
21696 RANLIB!$RANLIB$ac_delim
21697 AR!$AR$ac_delim
21698 RM!$RM$ac_delim
21699 SED!$SED$ac_delim
21700 TAR!$TAR$ac_delim
21701 BINPWD!$BINPWD$ac_delim
21702 GRAPHVIZ!$GRAPHVIZ$ac_delim
21703 DOT!$DOT$ac_delim
21704 FDP!$FDP$ac_delim
21705 NEATO!$NEATO$ac_delim
21706 TWOPI!$TWOPI$ac_delim
21707 CIRCO!$CIRCO$ac_delim
21708 GV!$GV$ac_delim
21709 DOTTY!$DOTTY$ac_delim
21710 PERL!$PERL$ac_delim
21711 HAVE_PERL!$HAVE_PERL$ac_delim
21712 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21713 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21714 INSTALL_DATA!$INSTALL_DATA$ac_delim
21715 BZIP2!$BZIP2$ac_delim
21716 CAT!$CAT$ac_delim
21717 DOXYGEN!$DOXYGEN$ac_delim
21718 GROFF!$GROFF$ac_delim
21719 GZIP!$GZIP$ac_delim
21720 POD2HTML!$POD2HTML$ac_delim
21721 POD2MAN!$POD2MAN$ac_delim
21722 PDFROFF!$PDFROFF$ac_delim
21723 RUNTEST!$RUNTEST$ac_delim
21724 TCLSH!$TCLSH$ac_delim
21725 ZIP!$ZIP$ac_delim
21726 OCAMLC!$OCAMLC$ac_delim
21727 OCAMLOPT!$OCAMLOPT$ac_delim
21728 OCAMLDEP!$OCAMLDEP$ac_delim
21729 OCAMLDOC!$OCAMLDOC$ac_delim
21730 GAS!$GAS$ac_delim
21731 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21732 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21733 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21734 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21735 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21736 LIBADD_DL!$LIBADD_DL$ac_delim
21737 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21738 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21739 LLVMGCC!$LLVMGCC$ac_delim
21740 LLVMGXX!$LLVMGXX$ac_delim
21741 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21742 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21743 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21744 USE_UDIS86!$USE_UDIS86$ac_delim
21745 USE_OPROFILE!$USE_OPROFILE$ac_delim
21746 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21747 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21748 MMAP_FILE!$MMAP_FILE$ac_delim
21749 LLVMCC1!$LLVMCC1$ac_delim
21750 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21751 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21752 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21753 SHLIBEXT!$SHLIBEXT$ac_delim
21754 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21755 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21756 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21757 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21758 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21759 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21760 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21761 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21762 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21763 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21764 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21765 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21766 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21767 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21768 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21769 RPATH!$RPATH$ac_delim
21770 RDYNAMIC!$RDYNAMIC$ac_delim
21771 LIBOBJS!$LIBOBJS$ac_delim
21772 LTLIBOBJS!$LTLIBOBJS$ac_delim
21773 _ACEOF
21775 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
21776 break
21777 elif $ac_last_try; then
21778 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21779 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21780 { (exit 1); exit 1; }; }
21781 else
21782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21784 done
21786 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21787 if test -n "$ac_eof"; then
21788 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21789 ac_eof=`expr $ac_eof + 1`
21792 cat >>$CONFIG_STATUS <<_ACEOF
21793 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21795 _ACEOF
21796 sed '
21797 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21798 s/^/s,@/; s/!/@,|#_!!_#|/
21801 s/'"$ac_delim"'$/,g/; t
21802 s/$/\\/; p
21803 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21804 ' >>$CONFIG_STATUS <conf$$subs.sed
21805 rm -f conf$$subs.sed
21806 cat >>$CONFIG_STATUS <<_ACEOF
21807 :end
21808 s/|#_!!_#|//g
21809 CEOF$ac_eof
21810 _ACEOF
21813 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21814 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21815 # trailing colons and then remove the whole line if VPATH becomes empty
21816 # (actually we leave an empty line to preserve line numbers).
21817 if test "x$srcdir" = x.; then
21818 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21819 s/:*\$(srcdir):*/:/
21820 s/:*\${srcdir}:*/:/
21821 s/:*@srcdir@:*/:/
21822 s/^\([^=]*=[ ]*\):*/\1/
21823 s/:*$//
21824 s/^[^=]*=[ ]*$//
21828 cat >>$CONFIG_STATUS <<\_ACEOF
21829 fi # test -n "$CONFIG_FILES"
21832 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21834 case $ac_tag in
21835 :[FHLC]) ac_mode=$ac_tag; continue;;
21836 esac
21837 case $ac_mode$ac_tag in
21838 :[FHL]*:*);;
21839 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21840 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21841 { (exit 1); exit 1; }; };;
21842 :[FH]-) ac_tag=-:-;;
21843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21844 esac
21845 ac_save_IFS=$IFS
21846 IFS=:
21847 set x $ac_tag
21848 IFS=$ac_save_IFS
21849 shift
21850 ac_file=$1
21851 shift
21853 case $ac_mode in
21854 :L) ac_source=$1;;
21855 :[FH])
21856 ac_file_inputs=
21857 for ac_f
21859 case $ac_f in
21860 -) ac_f="$tmp/stdin";;
21861 *) # Look for the file first in the build tree, then in the source tree
21862 # (if the path is not absolute). The absolute path cannot be DOS-style,
21863 # because $ac_f cannot contain `:'.
21864 test -f "$ac_f" ||
21865 case $ac_f in
21866 [\\/$]*) false;;
21867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21868 esac ||
21869 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21870 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21871 { (exit 1); exit 1; }; };;
21872 esac
21873 ac_file_inputs="$ac_file_inputs $ac_f"
21874 done
21876 # Let's still pretend it is `configure' which instantiates (i.e., don't
21877 # use $as_me), people would be surprised to read:
21878 # /* config.h. Generated by config.status. */
21879 configure_input="Generated from "`IFS=:
21880 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21881 if test x"$ac_file" != x-; then
21882 configure_input="$ac_file. $configure_input"
21883 { echo "$as_me:$LINENO: creating $ac_file" >&5
21884 echo "$as_me: creating $ac_file" >&6;}
21887 case $ac_tag in
21888 *:-:* | *:-) cat >"$tmp/stdin";;
21889 esac
21891 esac
21893 ac_dir=`$as_dirname -- "$ac_file" ||
21894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21895 X"$ac_file" : 'X\(//\)[^/]' \| \
21896 X"$ac_file" : 'X\(//\)$' \| \
21897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21898 echo X"$ac_file" |
21899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21900 s//\1/
21903 /^X\(\/\/\)[^/].*/{
21904 s//\1/
21907 /^X\(\/\/\)$/{
21908 s//\1/
21911 /^X\(\/\).*/{
21912 s//\1/
21915 s/.*/./; q'`
21916 { as_dir="$ac_dir"
21917 case $as_dir in #(
21918 -*) as_dir=./$as_dir;;
21919 esac
21920 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21921 as_dirs=
21922 while :; do
21923 case $as_dir in #(
21924 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21925 *) as_qdir=$as_dir;;
21926 esac
21927 as_dirs="'$as_qdir' $as_dirs"
21928 as_dir=`$as_dirname -- "$as_dir" ||
21929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21930 X"$as_dir" : 'X\(//\)[^/]' \| \
21931 X"$as_dir" : 'X\(//\)$' \| \
21932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21933 echo X"$as_dir" |
21934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21935 s//\1/
21938 /^X\(\/\/\)[^/].*/{
21939 s//\1/
21942 /^X\(\/\/\)$/{
21943 s//\1/
21946 /^X\(\/\).*/{
21947 s//\1/
21950 s/.*/./; q'`
21951 test -d "$as_dir" && break
21952 done
21953 test -z "$as_dirs" || eval "mkdir $as_dirs"
21954 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21955 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21956 { (exit 1); exit 1; }; }; }
21957 ac_builddir=.
21959 case "$ac_dir" in
21960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21962 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21963 # A ".." for each directory in $ac_dir_suffix.
21964 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21965 case $ac_top_builddir_sub in
21966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21968 esac ;;
21969 esac
21970 ac_abs_top_builddir=$ac_pwd
21971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21972 # for backward compatibility:
21973 ac_top_builddir=$ac_top_build_prefix
21975 case $srcdir in
21976 .) # We are building in place.
21977 ac_srcdir=.
21978 ac_top_srcdir=$ac_top_builddir_sub
21979 ac_abs_top_srcdir=$ac_pwd ;;
21980 [\\/]* | ?:[\\/]* ) # Absolute name.
21981 ac_srcdir=$srcdir$ac_dir_suffix;
21982 ac_top_srcdir=$srcdir
21983 ac_abs_top_srcdir=$srcdir ;;
21984 *) # Relative name.
21985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21986 ac_top_srcdir=$ac_top_build_prefix$srcdir
21987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21988 esac
21989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21992 case $ac_mode in
21995 # CONFIG_FILE
21998 case $INSTALL in
21999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22000 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22001 esac
22002 _ACEOF
22004 cat >>$CONFIG_STATUS <<\_ACEOF
22005 # If the template does not know about datarootdir, expand it.
22006 # FIXME: This hack should be removed a few years after 2.60.
22007 ac_datarootdir_hack=; ac_datarootdir_seen=
22009 case `sed -n '/datarootdir/ {
22013 /@datadir@/p
22014 /@docdir@/p
22015 /@infodir@/p
22016 /@localedir@/p
22017 /@mandir@/p
22018 ' $ac_file_inputs` in
22019 *datarootdir*) ac_datarootdir_seen=yes;;
22020 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22021 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22022 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22023 _ACEOF
22024 cat >>$CONFIG_STATUS <<_ACEOF
22025 ac_datarootdir_hack='
22026 s&@datadir@&$datadir&g
22027 s&@docdir@&$docdir&g
22028 s&@infodir@&$infodir&g
22029 s&@localedir@&$localedir&g
22030 s&@mandir@&$mandir&g
22031 s&\\\${datarootdir}&$datarootdir&g' ;;
22032 esac
22033 _ACEOF
22035 # Neutralize VPATH when `$srcdir' = `.'.
22036 # Shell code in configure.ac might set extrasub.
22037 # FIXME: do we really want to maintain this feature?
22038 cat >>$CONFIG_STATUS <<_ACEOF
22039 sed "$ac_vpsub
22040 $extrasub
22041 _ACEOF
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22045 s&@configure_input@&$configure_input&;t t
22046 s&@top_builddir@&$ac_top_builddir_sub&;t t
22047 s&@srcdir@&$ac_srcdir&;t t
22048 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22049 s&@top_srcdir@&$ac_top_srcdir&;t t
22050 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22051 s&@builddir@&$ac_builddir&;t t
22052 s&@abs_builddir@&$ac_abs_builddir&;t t
22053 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22054 s&@INSTALL@&$ac_INSTALL&;t t
22055 $ac_datarootdir_hack
22056 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22061 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22062 which seems to be undefined. Please make sure it is defined." >&5
22063 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22064 which seems to be undefined. Please make sure it is defined." >&2;}
22066 rm -f "$tmp/stdin"
22067 case $ac_file in
22068 -) cat "$tmp/out"; rm -f "$tmp/out";;
22069 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22070 esac
22074 # CONFIG_HEADER
22076 _ACEOF
22078 # Transform confdefs.h into a sed script `conftest.defines', that
22079 # substitutes the proper values into config.h.in to produce config.h.
22080 rm -f conftest.defines conftest.tail
22081 # First, append a space to every undef/define line, to ease matching.
22082 echo 's/$/ /' >conftest.defines
22083 # Then, protect against being on the right side of a sed subst, or in
22084 # an unquoted here document, in config.status. If some macros were
22085 # called several times there might be several #defines for the same
22086 # symbol, which is useless. But do not sort them, since the last
22087 # AC_DEFINE must be honored.
22088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22089 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22090 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22091 # PARAMS is the parameter list in the macro definition--in most cases, it's
22092 # just an empty string.
22093 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22094 ac_dB='\\)[ (].*,\\1define\\2'
22095 ac_dC=' '
22096 ac_dD=' ,'
22098 uniq confdefs.h |
22099 sed -n '
22100 t rset
22101 :rset
22102 s/^[ ]*#[ ]*define[ ][ ]*//
22103 t ok
22106 s/[\\&,]/\\&/g
22107 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22108 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22109 ' >>conftest.defines
22111 # Remove the space that was appended to ease matching.
22112 # Then replace #undef with comments. This is necessary, for
22113 # example, in the case of _POSIX_SOURCE, which is predefined and required
22114 # on some systems where configure will not decide to define it.
22115 # (The regexp can be short, since the line contains either #define or #undef.)
22116 echo 's/ $//
22117 s,^[ #]*u.*,/* & */,' >>conftest.defines
22119 # Break up conftest.defines:
22120 ac_max_sed_lines=50
22122 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22123 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22124 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22125 # et cetera.
22126 ac_in='$ac_file_inputs'
22127 ac_out='"$tmp/out1"'
22128 ac_nxt='"$tmp/out2"'
22130 while :
22132 # Write a here document:
22133 cat >>$CONFIG_STATUS <<_ACEOF
22134 # First, check the format of the line:
22135 cat >"\$tmp/defines.sed" <<\\CEOF
22136 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22137 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22139 :def
22140 _ACEOF
22141 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22142 echo 'CEOF
22143 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22144 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22145 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22146 grep . conftest.tail >/dev/null || break
22147 rm -f conftest.defines
22148 mv conftest.tail conftest.defines
22149 done
22150 rm -f conftest.defines conftest.tail
22152 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22153 cat >>$CONFIG_STATUS <<\_ACEOF
22154 if test x"$ac_file" != x-; then
22155 echo "/* $configure_input */" >"$tmp/config.h"
22156 cat "$ac_result" >>"$tmp/config.h"
22157 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22158 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22159 echo "$as_me: $ac_file is unchanged" >&6;}
22160 else
22161 rm -f $ac_file
22162 mv "$tmp/config.h" $ac_file
22164 else
22165 echo "/* $configure_input */"
22166 cat "$ac_result"
22168 rm -f "$tmp/out12"
22171 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22172 echo "$as_me: executing $ac_file commands" >&6;}
22174 esac
22177 case $ac_file$ac_mode in
22178 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22180 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22182 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22184 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22186 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22188 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22190 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22192 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22194 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22196 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22198 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22200 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22202 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22205 esac
22206 done # for ac_tag
22209 { (exit 0); exit 0; }
22210 _ACEOF
22211 chmod +x $CONFIG_STATUS
22212 ac_clean_files=$ac_clean_files_save
22215 # configure is writing to config.log, and then calls config.status.
22216 # config.status does its own redirection, appending to config.log.
22217 # Unfortunately, on DOS this fails, as config.log is still kept open
22218 # by configure, so config.status won't be able to write to it; its
22219 # output is simply discarded. So we exec the FD to /dev/null,
22220 # effectively closing config.log, so it can be properly (re)opened and
22221 # appended to by config.status. When coming back to configure, we
22222 # need to make the FD available again.
22223 if test "$no_create" != yes; then
22224 ac_cs_success=:
22225 ac_config_status_args=
22226 test "$silent" = yes &&
22227 ac_config_status_args="$ac_config_status_args --quiet"
22228 exec 5>/dev/null
22229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22230 exec 5>>config.log
22231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22232 # would make configure fail if this is the last instruction.
22233 $ac_cs_success || { (exit 1); exit 1; }
22237 # CONFIG_SUBDIRS section.
22239 if test "$no_recursion" != yes; then
22241 # Remove --cache-file and --srcdir arguments so they do not pile up.
22242 ac_sub_configure_args=
22243 ac_prev=
22244 eval "set x $ac_configure_args"
22245 shift
22246 for ac_arg
22248 if test -n "$ac_prev"; then
22249 ac_prev=
22250 continue
22252 case $ac_arg in
22253 -cache-file | --cache-file | --cache-fil | --cache-fi \
22254 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22255 ac_prev=cache_file ;;
22256 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22257 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22258 | --c=*)
22260 --config-cache | -C)
22262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22263 ac_prev=srcdir ;;
22264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22267 ac_prev=prefix ;;
22268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22271 case $ac_arg in
22272 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22273 esac
22274 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22275 esac
22276 done
22278 # Always prepend --prefix to ensure using the same prefix
22279 # in subdir configurations.
22280 ac_arg="--prefix=$prefix"
22281 case $ac_arg in
22282 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22283 esac
22284 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22286 ac_popdir=`pwd`
22287 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22289 # Do not complain, so a configure script can configure whichever
22290 # parts of a large source tree are present.
22291 test -d "$srcdir/$ac_dir" || continue
22293 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22294 echo "$as_me:$LINENO: $ac_msg" >&5
22295 echo "$ac_msg" >&6
22296 { as_dir="$ac_dir"
22297 case $as_dir in #(
22298 -*) as_dir=./$as_dir;;
22299 esac
22300 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22301 as_dirs=
22302 while :; do
22303 case $as_dir in #(
22304 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22305 *) as_qdir=$as_dir;;
22306 esac
22307 as_dirs="'$as_qdir' $as_dirs"
22308 as_dir=`$as_dirname -- "$as_dir" ||
22309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310 X"$as_dir" : 'X\(//\)[^/]' \| \
22311 X"$as_dir" : 'X\(//\)$' \| \
22312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22313 echo X"$as_dir" |
22314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22315 s//\1/
22318 /^X\(\/\/\)[^/].*/{
22319 s//\1/
22322 /^X\(\/\/\)$/{
22323 s//\1/
22326 /^X\(\/\).*/{
22327 s//\1/
22330 s/.*/./; q'`
22331 test -d "$as_dir" && break
22332 done
22333 test -z "$as_dirs" || eval "mkdir $as_dirs"
22334 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22335 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22336 { (exit 1); exit 1; }; }; }
22337 ac_builddir=.
22339 case "$ac_dir" in
22340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22343 # A ".." for each directory in $ac_dir_suffix.
22344 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22345 case $ac_top_builddir_sub in
22346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22348 esac ;;
22349 esac
22350 ac_abs_top_builddir=$ac_pwd
22351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22352 # for backward compatibility:
22353 ac_top_builddir=$ac_top_build_prefix
22355 case $srcdir in
22356 .) # We are building in place.
22357 ac_srcdir=.
22358 ac_top_srcdir=$ac_top_builddir_sub
22359 ac_abs_top_srcdir=$ac_pwd ;;
22360 [\\/]* | ?:[\\/]* ) # Absolute name.
22361 ac_srcdir=$srcdir$ac_dir_suffix;
22362 ac_top_srcdir=$srcdir
22363 ac_abs_top_srcdir=$srcdir ;;
22364 *) # Relative name.
22365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22366 ac_top_srcdir=$ac_top_build_prefix$srcdir
22367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22368 esac
22369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22372 cd "$ac_dir"
22374 # Check for guested configure; otherwise get Cygnus style configure.
22375 if test -f "$ac_srcdir/configure.gnu"; then
22376 ac_sub_configure=$ac_srcdir/configure.gnu
22377 elif test -f "$ac_srcdir/configure"; then
22378 ac_sub_configure=$ac_srcdir/configure
22379 elif test -f "$ac_srcdir/configure.in"; then
22380 # This should be Cygnus configure.
22381 ac_sub_configure=$ac_aux_dir/configure
22382 else
22383 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22384 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22385 ac_sub_configure=
22388 # The recursion is here.
22389 if test -n "$ac_sub_configure"; then
22390 # Make the cache file name correct relative to the subdirectory.
22391 case $cache_file in
22392 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22393 *) # Relative name.
22394 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22395 esac
22397 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22398 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22399 # The eval makes quoting arguments work.
22400 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22401 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22402 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22403 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22404 { (exit 1); exit 1; }; }
22407 cd "$ac_popdir"
22408 done