MSVC9 does not support upper_bound with an asymmetric comparator.
[llvm.git] / configure
blob0cd2d53ceea48e9676299da246cb468e35e166a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
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.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
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
707 CXXFLAGS
708 ac_ct_CXX
710 ifGNUmake
711 LN_S
714 DATE
715 FIND
716 MKDIR
718 RANLIB
723 BINPWD
724 GRAPHVIZ
727 NEATO
728 TWOPI
729 CIRCO
731 DOTTY
732 PERL
733 HAVE_PERL
734 INSTALL_PROGRAM
735 INSTALL_SCRIPT
736 INSTALL_DATA
737 BZIP2
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 PDFROFF
745 RUNTEST
746 TCLSH
748 OCAMLC
749 OCAMLOPT
750 OCAMLDEP
751 OCAMLDOC
753 HAVE_LINK_VERSION_SCRIPT
754 INSTALL_LTDL_TRUE
755 INSTALL_LTDL_FALSE
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
758 LIBADD_DL
759 LLVMGCCCOMMAND
760 LLVMGXXCOMMAND
761 LLVMGCC
762 LLVMGXX
763 LLVMCC_OPTION
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 LLVMCC1
772 LLVMCC1PLUS
773 LLVMGCCDIR
774 LLVMGCC_LANGS
775 SHLIBEXT
776 SHLIBPATH_VAR
777 LLVM_PREFIX
778 LLVM_BINDIR
779 LLVM_LIBDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 ALL_BINDINGS
789 OCAML_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
791 RPATH
792 RDYNAMIC
793 LIBOBJS
794 LTLIBOBJS'
795 ac_subst_files=''
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
800 CFLAGS
801 LDFLAGS
802 CPPFLAGS
805 CXXFLAGS
806 CCC'
807 ac_subdirs_all='projects/llvm-gcc
808 projects/test-suite
809 projects/llvm-test
810 projects/poolalloc
811 projects/llvm-poolalloc
812 projects/sample
813 projects/privbracket
814 projects/llvm-stacker
815 projects/llvm-reopt
816 projects/llvm-java
817 projects/llvm-tv
818 projects/safecode
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
867 ac_prev=
868 ac_dashdash=
869 for ac_option
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
887 ac_dashdash=yes ;;
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
906 --config-cache | -C)
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1137 -with-* | --with-*)
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 esac
1196 done
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1217 done
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1271 /^X\(\/\/\)$/{
1272 s//\1/
1275 /^X\(\/\).*/{
1276 s//\1/
1279 s/.*/./; q'`
1280 srcdir=$ac_confdir
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 srcdir=..
1284 else
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1388 esac
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1409 is YES)
1410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
1412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1418 and cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
1435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
1439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
1444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1484 ac_builddir=.
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 llvm configure 2.9svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546 exit
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.9svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1555 $ $0 $@
1557 _ACEOF
1558 exec 5>>config.log
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 _ASUNAME
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1593 } >&5
1595 cat >&5 <<_ACEOF
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1602 _ACEOF
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1616 for ac_arg
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 esac
1626 case $ac_pass in
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 esac
1648 done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1661 echo
1663 cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1682 esac ;;
1683 esac
1684 done
1685 (set) 2>&1 |
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1688 sed -n \
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 esac |
1696 sort
1698 echo
1700 cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1709 case $ac_val in
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 esac
1712 echo "$ac_var='\''$ac_val'\''"
1713 done | sort
1714 echo
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1726 case $ac_val in
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 esac
1729 echo "$ac_var='\''$ac_val'\''"
1730 done | sort
1731 echo
1734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740 echo
1741 cat confdefs.h
1742 echo
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1747 } >&5
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 exit $exit_status
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1797 shift
1798 for ac_site_file
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1806 done
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814 case $cache_file in
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1817 esac
1819 else
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822 >$cache_file
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1834 set,)
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1838 ,set)
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1842 ,);;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 esac
1865 done
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1929 done
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
1985 sample) subdirs="$subdirs projects/sample"
1987 privbracket) subdirs="$subdirs projects/privbracket"
1989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 safecode) subdirs="$subdirs projects/safecode"
1999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2010 esac
2012 done
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068 else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105 else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_target
2124 shift
2125 target_cpu=$1
2126 target_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 target_os=$*
2131 IFS=$ac_save_IFS
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 case $host in
2148 *-*-aix*)
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
2153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
2158 *-*-cygwin*)
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
2164 llvm_cv_link_all_option="-Wl,-all_load"
2165 llvm_cv_no_link_all_option="-Wl,-noall_load"
2166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
2168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
2173 *-*-freebsd*)
2174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
2178 *-*-openbsd*)
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
2183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
2188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
2193 *-*-hpux*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-*-interix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
2209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
2213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
2218 *-*-win32*)
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
2228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
2246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
2248 esac
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
2267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
2269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
2285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
2287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
2291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
2293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2296 llvm_cv_target_os_type="Unknown" ;;
2297 esac
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2308 OS=$llvm_cv_os_type
2310 HOST_OS=$llvm_cv_os_type
2312 TARGET_OS=$llvm_cv_target_os_type
2315 LINKALL=$llvm_cv_link_all_option
2317 NOLINKALL=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2321 Unix)
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2325 _ACEOF
2327 LLVM_ON_UNIX=1
2329 LLVM_ON_WIN32=0
2332 Win32)
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2336 _ACEOF
2338 LLVM_ON_UNIX=0
2340 LLVM_ON_WIN32=1
2343 esac
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 case $target in
2351 i?86-*) llvm_cv_target_arch="x86" ;;
2352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2356 arm*-*) llvm_cv_target_arch="ARM" ;;
2357 mips-*) llvm_cv_target_arch="Mips" ;;
2358 pic16-*) llvm_cv_target_arch="PIC16" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 ptx-*) llvm_cv_target_arch="PTX" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2366 esac
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381 esac
2383 ARCH=$llvm_cv_target_arch
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2415 IFS=$as_save_IFS
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2453 done
2454 done
2455 IFS=$as_save_IFS
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481 CC=$ac_ct_CC
2483 else
2484 CC="$ac_cv_prog_CC"
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2551 ac_cv_prog_CC="cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2555 done
2556 done
2557 IFS=$as_save_IFS
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2626 done
2628 if test -z "$CC"; then
2629 ac_ct_CC=$CC
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2670 done
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685 CC=$ac_ct_CC
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 main ()
2744 return 0;
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2767 case $ac_file in
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771 done
2772 rm -f $ac_rmfiles
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 [ab].out )
2796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
2799 *.* )
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
2809 break;;
2811 break;;
2812 esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896 break;;
2897 * ) break;;
2898 esac
2899 done
2900 else
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2948 case $ac_file in
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953 done
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h. */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2984 main ()
2986 #ifndef __GNUC__
2987 choke me
2988 #endif
2991 return 0;
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 ac_compiler_gnu=yes
3029 else
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 ac_compiler_gnu=no
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3062 main ()
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_prog_cc_g=yes
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3117 main ()
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3164 CFLAGS="-g"
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_prog_cc_g=yes
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3241 else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253 ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269 char **p;
3270 int i;
3272 return p[i];
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3305 main ()
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 return 0;
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370 xno)
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3446 else
3447 ac_cpp_err=yes
3449 if test -z "$ac_cpp_err"; then
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3456 continue
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3490 else
3491 ac_cpp_err=yes
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3495 continue
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3505 rm -f conftest.err conftest.$ac_ext
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511 break
3514 done
3515 ac_cv_prog_CPP=$CPP
3518 CPP=$ac_cv_prog_CPP
3519 else
3520 ac_cv_prog_CPP=$CPP
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #ifdef __STDC__
3540 # include <limits.h>
3541 #else
3542 # include <assert.h>
3543 #endif
3544 Syntax error
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3565 else
3566 ac_cpp_err=yes
3568 if test -z "$ac_cpp_err"; then
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3575 continue
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3609 else
3610 ac_cpp_err=yes
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3614 continue
3615 else
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3620 ac_preproc_ok=:
3621 break
3624 rm -f conftest.err conftest.$ac_ext
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3631 else
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3671 *GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674 ac_count=0
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676 while :
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3697 $ac_path_GREP_found && break 3
3698 done
3699 done
3701 done
3702 IFS=$as_save_IFS
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3714 else
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3753 *GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 ac_count=0
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758 while :
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3779 $ac_path_EGREP_found && break 3
3780 done
3781 done
3783 done
3784 IFS=$as_save_IFS
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3796 else
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3825 main ()
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <string.h>
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3890 else
3891 ac_cv_header_stdc=no
3893 rm -f conftest*
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <stdlib.h>
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3911 else
3912 ac_cv_header_stdc=no
3914 rm -f conftest*
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3922 else
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 main ()
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3950 return 2;
3951 return 0;
3953 _ACEOF
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3975 else
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063 else
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4082 done
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4101 main ()
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105 #endif
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4156 main ()
4158 #if BYTE_ORDER != BIG_ENDIAN
4159 not big endian
4160 #endif
4163 return 0;
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230 main ()
4232 _ascii (); _ebcdic ();
4234 return 0;
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4299 main ()
4302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
4312 return 0;
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4336 else
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 ( exit $ac_status )
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4359 ENDIAN=little
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367 esac
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381 else
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 else
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4443 done
4444 done
4445 IFS=$as_save_IFS
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 else
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 else
4470 ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 else
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4529 case $file in
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 else
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 else
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637 ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 else
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4683 else
4684 LLVM_CROSS_COMPILING=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4693 else
4694 cvsbuild="no"
4695 optimize="yes"
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4702 else
4703 enableval=$optimize
4706 if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4709 else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4717 else
4718 enableval="no"
4721 if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4724 else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4732 else
4733 enableval="yes"
4736 if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4739 else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4747 else
4748 enableval="no"
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4756 else
4757 ENABLE_EXPENSIVE_CHECKS=
4759 EXPENSIVE_CHECKS=no
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4766 else
4767 enableval=no
4770 if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4773 else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4781 else
4782 enableval=no
4785 if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4788 else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4796 else
4797 enableval=default
4800 if test ${enableval} = "no"
4801 then
4802 JIT=
4804 else
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 PIC16) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4832 PTX) TARGET_HAS_JIT=0
4834 *) TARGET_HAS_JIT=0
4836 esac
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then
4841 enableval=$enable_doxygen;
4842 else
4843 enableval=default
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4849 no) ENABLE_DOXYGEN=0
4851 default) ENABLE_DOXYGEN=0
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4856 esac
4858 # Check whether --enable-threads was given.
4859 if test "${enable_threads+set}" = set; then
4860 enableval=$enable_threads;
4861 else
4862 enableval=default
4865 case "$enableval" in
4866 yes) ENABLE_THREADS=1
4868 no) ENABLE_THREADS=0
4870 default) ENABLE_THREADS=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4875 esac
4877 cat >>confdefs.h <<_ACEOF
4878 #define ENABLE_THREADS $ENABLE_THREADS
4879 _ACEOF
4882 # Check whether --enable-pic was given.
4883 if test "${enable_pic+set}" = set; then
4884 enableval=$enable_pic;
4885 else
4886 enableval=default
4889 case "$enableval" in
4890 yes) ENABLE_PIC=1
4892 no) ENABLE_PIC=0
4894 default) ENABLE_PIC=1
4896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4899 esac
4901 cat >>confdefs.h <<_ACEOF
4902 #define ENABLE_PIC $ENABLE_PIC
4903 _ACEOF
4906 # Check whether --enable-shared was given.
4907 if test "${enable_shared+set}" = set; then
4908 enableval=$enable_shared;
4909 else
4910 enableval=default
4913 case "$enableval" in
4914 yes) ENABLE_SHARED=1
4916 no) ENABLE_SHARED=0
4918 default) ENABLE_SHARED=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923 esac
4925 # Check whether --enable-timestamps was given.
4926 if test "${enable_timestamps+set}" = set; then
4927 enableval=$enable_timestamps;
4928 else
4929 enableval=default
4932 case "$enableval" in
4933 yes) ENABLE_TIMESTAMPS=1
4935 no) ENABLE_TIMESTAMPS=0
4937 default) ENABLE_TIMESTAMPS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942 esac
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4946 _ACEOF
4949 TARGETS_TO_BUILD=""
4950 # Check whether --enable-targets was given.
4951 if test "${enable_targets+set}" = set; then
4952 enableval=$enable_targets;
4953 else
4954 enableval=all
4957 if test "$enableval" = host-only ; then
4958 enableval=host
4960 case "$enableval" in
4961 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4963 case "$a_target" in
4964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4992 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4993 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4994 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4995 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4996 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4997 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4998 echo "$as_me: error: Can not set target to build" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000 esac ;;
5001 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5002 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5003 { (exit 1); exit 1; }; } ;;
5004 esac
5005 done
5007 esac
5008 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011 # Determine whether we are building LLVM support for the native architecture.
5012 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5013 for a_target in $TARGETS_TO_BUILD; do
5014 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5018 _ACEOF
5020 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5021 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5022 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5026 _ACEOF
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5031 _ACEOF
5034 cat >>confdefs.h <<_ACEOF
5035 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5036 _ACEOF
5039 done
5041 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5042 # target feature def files.
5043 LLVM_ENUM_TARGETS=""
5044 LLVM_ENUM_ASM_PRINTERS=""
5045 LLVM_ENUM_ASM_PARSERS=""
5046 LLVM_ENUM_DISASSEMBLERS=""
5047 for target_to_build in $TARGETS_TO_BUILD; do
5048 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5058 done
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066 enableval=$enable_cbe_printf_a;
5067 else
5068 enableval=default
5071 case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5074 no) ENABLE_CBE_PRINTF_A=0
5076 default) ENABLE_CBE_PRINTF_A=1
5078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081 esac
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5085 _ACEOF
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091 withval=$with_llvmgccdir;
5092 else
5093 withval=default
5096 case "$withval" in
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5102 esac
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108 WITH_LLVMGCCDIR=""
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5116 WITH_LLVMGCCDIR=""
5120 if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5124 if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5144 else
5145 with_clang=default
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5153 else
5154 with_built_clang=check
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5160 WITH_CLANGPATH=""
5161 WITH_BUILT_CLANG=0
5162 if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5169 elif test "$with_built_clang" = "yes"; then
5170 WITH_BUILT_CLANG=1
5171 elif test "$with_built_clang" = "no"; then
5172 WITH_BUILT_CLANG=0
5173 else
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5181 WITH_BUILT_CLANG=1
5185 if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5192 else
5193 { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5196 CLANGPATH=$WITH_CLANGPATH
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206 withval=$with_optimize_option;
5207 else
5208 withval=default
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5213 case "$withval" in
5214 default)
5215 case "$llvm_cv_os_type" in
5216 FreeBSD) optimize_option=-O2 ;;
5217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
5219 esac ;;
5220 *) optimize_option="$withval" ;;
5221 esac
5222 OPTIMIZE_OPTION=$optimize_option
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230 withval=$with_extra_options;
5231 else
5232 withval=default
5235 case "$withval" in
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5238 esac
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244 enableval=$enable_bindings;
5245 else
5246 enableval=default
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
5260 esac
5261 done
5263 esac
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268 withval=$with_ocaml_libdir;
5269 else
5270 withval=auto
5273 case "$withval" in
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
5279 esac
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284 withval=$with_c_include_dirs;
5285 else
5286 withval=""
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5292 _ACEOF
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298 withval=$with_cxx_include_root;
5299 else
5300 withval=""
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5306 _ACEOF
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312 withval=$with_cxx_include_arch;
5313 else
5314 withval=""
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5320 _ACEOF
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326 withval=$with_cxx_include_32bit_dir;
5327 else
5328 withval=""
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5334 _ACEOF
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340 withval=$with_cxx_include_64bit_dir;
5341 else
5342 withval=""
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5348 _ACEOF
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354 withval=$with_binutils_include;
5355 else
5356 withval=default
5359 case "$withval" in
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
5365 esac
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
5385 esac
5386 else
5387 llvm_cv_enable_libffi=no
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5401 CPP=
5403 if test -z "$CPP"; then
5404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410 ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #ifdef __STDC__
5426 # include <limits.h>
5427 #else
5428 # include <assert.h>
5429 #endif
5430 Syntax error
5431 _ACEOF
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448 else
5449 ac_cpp_err=
5451 else
5452 ac_cpp_err=yes
5454 if test -z "$ac_cpp_err"; then
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Broken: fails on valid input.
5461 continue
5464 rm -f conftest.err conftest.$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <ac_nonexistent.h>
5475 _ACEOF
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5495 else
5496 ac_cpp_err=yes
5498 if test -z "$ac_cpp_err"; then
5499 # Broken: success on invalid input.
5500 continue
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Passes both tests.
5506 ac_preproc_ok=:
5507 break
5510 rm -f conftest.err conftest.$ac_ext
5512 done
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5516 break
5519 done
5520 ac_cv_prog_CPP=$CPP
5523 CPP=$ac_cv_prog_CPP
5524 else
5525 ac_cv_prog_CPP=$CPP
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5529 ac_preproc_ok=false
5530 for ac_c_preproc_warn_flag in '' yes
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #ifdef __STDC__
5545 # include <limits.h>
5546 #else
5547 # include <assert.h>
5548 #endif
5549 Syntax error
5550 _ACEOF
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567 else
5568 ac_cpp_err=
5570 else
5571 ac_cpp_err=yes
5573 if test -z "$ac_cpp_err"; then
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 # Broken: fails on valid input.
5580 continue
5583 rm -f conftest.err conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h. */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 else
5612 ac_cpp_err=
5614 else
5615 ac_cpp_err=yes
5617 if test -z "$ac_cpp_err"; then
5618 # Broken: success on invalid input.
5619 continue
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5629 rm -f conftest.err conftest.$ac_ext
5631 done
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5636 else
5637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
5644 ac_ext=c
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5656 for ac_prog in gcc
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5679 done
5680 done
5681 IFS=$as_save_IFS
5685 CC=$ac_cv_prog_CC
5686 if test -n "$CC"; then
5687 { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5689 else
5690 { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5695 test -n "$CC" && break
5696 done
5698 if test -z "$CC"; then
5699 ac_ct_CC=$CC
5700 for ac_prog in gcc
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_CC="$ac_prog"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5725 IFS=$as_save_IFS
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5733 else
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5739 test -n "$ac_ct_CC" && break
5740 done
5742 if test "x$ac_ct_CC" = x; then
5743 CC=""
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet. If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet. If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755 CC=$ac_ct_CC
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 main ()
5815 #ifndef __GNUC__
5816 choke me
5817 #endif
5820 return 0;
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_compiler_gnu=yes
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 ac_compiler_gnu=no
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5881 ac_cv_prog_cc_g=no
5882 CFLAGS="-g"
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5891 main ()
5895 return 0;
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903 esac
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_prog_cc_g=yes
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 CFLAGS=""
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5946 main ()
5950 return 0;
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5988 else
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_c_werror_flag=$ac_save_c_werror_flag
5993 CFLAGS="-g"
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6002 main ()
6006 return 0;
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_prog_cc_g=yes
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6066 CFLAGS="-g -O2"
6067 else
6068 CFLAGS="-g"
6070 else
6071 if test "$GCC" = yes; then
6072 CFLAGS="-O2"
6073 else
6074 CFLAGS=
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 ac_cv_prog_cc_c89=no
6083 ac_save_CC=$CC
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <stdarg.h>
6091 #include <stdio.h>
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6098 char **p;
6099 int i;
6101 return p[i];
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6105 char *s;
6106 va_list v;
6107 va_start (v,p);
6108 s = g (p, va_arg (v,int));
6109 va_end (v);
6110 return s;
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6124 #define FOO(x) 'x'
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 int argc;
6132 char **argv;
6134 main ()
6136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6138 return 0;
6140 _ACEOF
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144 CC="$ac_save_CC $ac_arg"
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6147 case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_prog_cc_c89=$ac_arg
6180 else
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6187 rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6189 done
6190 rm -f conftest.$ac_ext
6191 CC=$ac_save_CC
6194 # AC_CACHE_VAL
6195 case "x$ac_cv_prog_cc_c89" in
6197 { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6199 xno)
6200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6203 CC="$CC $ac_cv_prog_cc_c89"
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6206 esac
6209 ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215 ac_ext=cpp
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6222 CXX=$CCC
6223 else
6224 if test -n "$ac_tool_prefix"; then
6225 for ac_prog in g++
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6248 done
6249 done
6250 IFS=$as_save_IFS
6254 CXX=$ac_cv_prog_CXX
6255 if test -n "$CXX"; then
6256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6258 else
6259 { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6264 test -n "$CXX" && break
6265 done
6267 if test -z "$CXX"; then
6268 ac_ct_CXX=$CXX
6269 for ac_prog in g++
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_CXX="$ac_prog"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6292 done
6293 done
6294 IFS=$as_save_IFS
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6302 else
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6308 test -n "$ac_ct_CXX" && break
6309 done
6311 if test "x$ac_ct_CXX" = x; then
6312 CXX="g++"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet. If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 CXX=$ac_ct_CXX
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6334 case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6377 main ()
6379 #ifndef __GNUC__
6380 choke me
6381 #endif
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_compiler_gnu=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_compiler_gnu=no
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6445 ac_cv_prog_cxx_g=no
6446 CXXFLAGS="-g"
6447 cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h. */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6455 main ()
6459 return 0;
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6464 case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 ac_cv_prog_cxx_g=yes
6497 else
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 CXXFLAGS=""
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6510 main ()
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6557 CXXFLAGS="-g"
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6566 main ()
6570 return 0;
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6630 CXXFLAGS="-g -O2"
6631 else
6632 CXXFLAGS="-g"
6634 else
6635 if test "$GXX" = yes; then
6636 CXXFLAGS="-O2"
6637 else
6638 CXXFLAGS=
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6655 lt_cv_path_NM="$NM"
6656 else
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6675 break
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6679 */dev/null*)
6680 lt_cv_path_NM="$tmp_nm -p"
6681 break
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6687 esac
6689 esac
6691 done
6692 IFS="$lt_save_ifs"
6693 done
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6699 NM="$lt_cv_path_NM"
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6712 then
6713 llvm_cv_gnu_make_command=$a ;
6714 break;
6716 done
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6721 ifGNUmake='' ;
6722 else
6723 ifGNUmake='#' ;
6724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6731 LN_S=$as_ln_s
6732 if test "$LN_S" = "ln -s"; then
6733 { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6735 else
6736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 case $CMP in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6763 done
6764 done
6765 IFS=$as_save_IFS
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6769 esac
6771 CMP=$ac_cv_path_CMP
6772 if test -n "$CMP"; then
6773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6775 else
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 case $CP in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6804 done
6805 done
6806 IFS=$as_save_IFS
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6810 esac
6812 CP=$ac_cv_path_CP
6813 if test -n "$CP"; then
6814 { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6816 else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 case $DATE in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6851 esac
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6857 else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 case $FIND in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6886 done
6887 done
6888 IFS=$as_save_IFS
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6892 esac
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6898 else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 case $GREP in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6927 done
6928 done
6929 IFS=$as_save_IFS
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6933 esac
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6939 else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 case $MKDIR in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6972 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6974 esac
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6980 else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 case $MV in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7009 done
7010 done
7011 IFS=$as_save_IFS
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7015 esac
7017 MV=$ac_cv_path_MV
7018 if test -n "$MV"; then
7019 { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7021 else
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7059 else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_ac_ct_RANLIB="ranlib"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7099 else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7104 if test "x$ac_ct_RANLIB" = x; then
7105 RANLIB=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet. If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet. If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7116 esac
7117 RANLIB=$ac_ct_RANLIB
7119 else
7120 RANLIB="$ac_cv_prog_RANLIB"
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_AR="${ac_tool_prefix}ar"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7145 done
7146 done
7147 IFS=$as_save_IFS
7151 AR=$ac_cv_prog_AR
7152 if test -n "$AR"; then
7153 { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7155 else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7162 if test -z "$ac_cv_prog_AR"; then
7163 ac_ct_AR=$AR
7164 # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_prog_ac_ct_AR="ar"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7187 IFS=$as_save_IFS
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7195 else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7200 if test "x$ac_ct_AR" = x; then
7201 AR="false"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet. If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet. If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 AR=$ac_ct_AR
7215 else
7216 AR="$ac_cv_prog_AR"
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 case $RM in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7244 IFS=$as_save_IFS
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7248 esac
7250 RM=$ac_cv_path_RM
7251 if test -n "$RM"; then
7252 { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7254 else
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 case $SED in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7289 esac
7291 SED=$ac_cv_path_SED
7292 if test -n "$SED"; then
7293 { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7295 else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 case $TAR in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7326 IFS=$as_save_IFS
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7330 esac
7332 TAR=$ac_cv_path_TAR
7333 if test -n "$TAR"; then
7334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7336 else
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 case $BINPWD in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7371 esac
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7377 else
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 case $GRAPHVIZ in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7409 IFS=$as_save_IFS
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7413 esac
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7419 else
7420 { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7429 _ACEOF
7431 if test "$llvm_cv_os_type" = "MingW" ; then
7432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7437 _ACEOF
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 case $DOT in
7448 [\\/]* | ?:[\\/]*)
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7469 esac
7471 DOT=$ac_cv_path_DOT
7472 if test -n "$DOT"; then
7473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7475 else
7476 { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7481 if test "$DOT" != "echo dot" ; then
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_DOT 1
7485 _ACEOF
7487 if test "$llvm_cv_os_type" = "MingW" ; then
7488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7493 _ACEOF
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 case $FDP in
7504 [\\/]* | ?:[\\/]*)
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7525 esac
7527 FDP=$ac_cv_path_FDP
7528 if test -n "$FDP"; then
7529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7531 else
7532 { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7537 if test "$FDP" != "echo fdp" ; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_FDP 1
7541 _ACEOF
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7549 _ACEOF
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 case $NEATO in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7581 esac
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7587 else
7588 { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7593 if test "$NEATO" != "echo neato" ; then
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7597 _ACEOF
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7605 _ACEOF
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 case $TWOPI in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7637 esac
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7643 else
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test "$TWOPI" != "echo twopi" ; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7653 _ACEOF
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7661 _ACEOF
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 case $CIRCO in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7687 done
7688 done
7689 IFS=$as_save_IFS
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7693 esac
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7699 else
7700 { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7705 if test "$CIRCO" != "echo circo" ; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7709 _ACEOF
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7717 _ACEOF
7720 for ac_prog in gv gsview32
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 case $GV in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7745 done
7746 done
7747 IFS=$as_save_IFS
7750 esac
7752 GV=$ac_cv_path_GV
7753 if test -n "$GV"; then
7754 { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7756 else
7757 { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7762 test -n "$GV" && break
7763 done
7764 test -n "$GV" || GV="echo gv"
7766 if test "$GV" != "echo gv" ; then
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_GV 1
7770 _ACEOF
7772 if test "$llvm_cv_os_type" = "MingW" ; then
7773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7778 _ACEOF
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 case $DOTTY in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7810 esac
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7816 else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 if test "$DOTTY" != "echo dotty" ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7826 _ACEOF
7828 if test "$llvm_cv_os_type" = "MingW" ; then
7829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834 _ACEOF
7839 # Extract the first word of "perl", so it can be a program name with args.
7840 set dummy perl; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_path_PERL+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 case $PERL in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7866 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7868 esac
7870 PERL=$ac_cv_path_PERL
7871 if test -n "$PERL"; then
7872 { echo "$as_me:$LINENO: result: $PERL" >&5
7873 echo "${ECHO_T}$PERL" >&6; }
7874 else
7875 { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7880 if test "$PERL" != "none"; then
7881 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7882 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7883 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }
7886 else
7887 PERL=none
7888 { echo "$as_me:$LINENO: result: not found" >&5
7889 echo "${ECHO_T}not found" >&6; }
7894 if test x"$PERL" = xnone; then
7895 HAVE_PERL=0
7897 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7898 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7899 { (exit 1); exit 1; }; }
7900 else
7901 HAVE_PERL=1
7905 # Find a good install program. We prefer a C program (faster),
7906 # so one script is as good as another. But avoid the broken or
7907 # incompatible versions:
7908 # SysV /etc/install, /usr/sbin/install
7909 # SunOS /usr/etc/install
7910 # IRIX /sbin/install
7911 # AIX /bin/install
7912 # AmigaOS /C/install, which installs bootblocks on floppy discs
7913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7916 # OS/2's system install, which has a completely different semantic
7917 # ./install, which can be erroneously created by make from ./install.sh.
7918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7920 if test -z "$INSTALL"; then
7921 if test "${ac_cv_path_install+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 # Account for people who put trailing slashes in PATH elements.
7930 case $as_dir/ in
7931 ./ | .// | /cC/* | \
7932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7934 /usr/ucb/* ) ;;
7936 # OSF1 and SCO ODT 3.0 have their own names for install.
7937 # Don't use installbsd from OSF since it installs stuff as root
7938 # by default.
7939 for ac_prog in ginstall scoinst install; do
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7942 if test $ac_prog = install &&
7943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7946 elif test $ac_prog = install &&
7947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7948 # program-specific install script used by HP pwplus--don't use.
7950 else
7951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7952 break 3
7955 done
7956 done
7958 esac
7959 done
7960 IFS=$as_save_IFS
7964 if test "${ac_cv_path_install+set}" = set; then
7965 INSTALL=$ac_cv_path_install
7966 else
7967 # As a last resort, use the slow shell script. Don't cache a
7968 # value for INSTALL within a source directory, because that will
7969 # break other packages using the cache if that directory is
7970 # removed, or if the value is a relative name.
7971 INSTALL=$ac_install_sh
7974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7975 echo "${ECHO_T}$INSTALL" >&6; }
7977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7978 # It thinks the first close brace ends the variable substitution.
7979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7985 case "$INSTALL" in
7986 [\\/$]* | ?:[\\/]* ) ;;
7987 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7988 esac
7990 # Extract the first word of "bzip2", so it can be a program name with args.
7991 set dummy bzip2; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_BZIP2+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 case $BZIP2 in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8018 esac
8020 BZIP2=$ac_cv_path_BZIP2
8021 if test -n "$BZIP2"; then
8022 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8023 echo "${ECHO_T}$BZIP2" >&6; }
8024 else
8025 { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8030 # Extract the first word of "cat", so it can be a program name with args.
8031 set dummy cat; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_CAT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 case $CAT in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8058 esac
8060 CAT=$ac_cv_path_CAT
8061 if test -n "$CAT"; then
8062 { echo "$as_me:$LINENO: result: $CAT" >&5
8063 echo "${ECHO_T}$CAT" >&6; }
8064 else
8065 { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8070 # Extract the first word of "doxygen", so it can be a program name with args.
8071 set dummy doxygen; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077 case $DOXYGEN in
8078 [\\/]* | ?:[\\/]*)
8079 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8093 done
8094 done
8095 IFS=$as_save_IFS
8098 esac
8100 DOXYGEN=$ac_cv_path_DOXYGEN
8101 if test -n "$DOXYGEN"; then
8102 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8103 echo "${ECHO_T}$DOXYGEN" >&6; }
8104 else
8105 { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8110 # Extract the first word of "groff", so it can be a program name with args.
8111 set dummy groff; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_GROFF+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 case $GROFF in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8138 esac
8140 GROFF=$ac_cv_path_GROFF
8141 if test -n "$GROFF"; then
8142 { echo "$as_me:$LINENO: result: $GROFF" >&5
8143 echo "${ECHO_T}$GROFF" >&6; }
8144 else
8145 { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8150 # Extract the first word of "gzip", so it can be a program name with args.
8151 set dummy gzip; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_GZIP+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 case $GZIP in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 GZIP=$ac_cv_path_GZIP
8181 if test -n "$GZIP"; then
8182 { echo "$as_me:$LINENO: result: $GZIP" >&5
8183 echo "${ECHO_T}$GZIP" >&6; }
8184 else
8185 { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8190 # Extract the first word of "pod2html", so it can be a program name with args.
8191 set dummy pod2html; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_POD2HTML+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 case $POD2HTML in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8213 done
8214 done
8215 IFS=$as_save_IFS
8218 esac
8220 POD2HTML=$ac_cv_path_POD2HTML
8221 if test -n "$POD2HTML"; then
8222 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8223 echo "${ECHO_T}$POD2HTML" >&6; }
8224 else
8225 { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8230 # Extract the first word of "pod2man", so it can be a program name with args.
8231 set dummy pod2man; ac_word=$2
8232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234 if test "${ac_cv_path_POD2MAN+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 case $POD2MAN in
8238 [\\/]* | ?:[\\/]*)
8239 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8258 esac
8260 POD2MAN=$ac_cv_path_POD2MAN
8261 if test -n "$POD2MAN"; then
8262 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8263 echo "${ECHO_T}$POD2MAN" >&6; }
8264 else
8265 { echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6; }
8270 # Extract the first word of "pdfroff", so it can be a program name with args.
8271 set dummy pdfroff; ac_word=$2
8272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274 if test "${ac_cv_path_PDFROFF+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 case $PDFROFF in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8298 esac
8300 PDFROFF=$ac_cv_path_PDFROFF
8301 if test -n "$PDFROFF"; then
8302 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8303 echo "${ECHO_T}$PDFROFF" >&6; }
8304 else
8305 { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8310 # Extract the first word of "runtest", so it can be a program name with args.
8311 set dummy runtest; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_RUNTEST+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317 case $RUNTEST in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8338 esac
8340 RUNTEST=$ac_cv_path_RUNTEST
8341 if test -n "$RUNTEST"; then
8342 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8343 echo "${ECHO_T}$RUNTEST" >&6; }
8344 else
8345 { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8351 no_itcl=true
8352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8355 # Check whether --with-tclinclude was given.
8356 if test "${with_tclinclude+set}" = set; then
8357 withval=$with_tclinclude; with_tclinclude=${withval}
8358 else
8359 with_tclinclude=''
8362 if test "${ac_cv_path_tclsh+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8366 if test x"${with_tclinclude}" != x ; then
8367 if test -f ${with_tclinclude}/tclsh ; then
8368 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8369 elif test -f ${with_tclinclude}/src/tclsh ; then
8370 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8371 else
8372 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8374 { (exit 1); exit 1; }; }
8380 if test x"${ac_cv_path_tclsh}" = x ; then
8381 { echo "$as_me:$LINENO: result: none" >&5
8382 echo "${ECHO_T}none" >&6; }
8383 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
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386 set dummy $ac_prog; ac_word=$2
8387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389 if test "${ac_cv_path_TCLSH+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 case $TCLSH in
8393 [\\/]* | ?:[\\/]*)
8394 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8408 done
8409 done
8410 IFS=$as_save_IFS
8413 esac
8415 TCLSH=$ac_cv_path_TCLSH
8416 if test -n "$TCLSH"; then
8417 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8418 echo "${ECHO_T}$TCLSH" >&6; }
8419 else
8420 { echo "$as_me:$LINENO: result: no" >&5
8421 echo "${ECHO_T}no" >&6; }
8425 test -n "$TCLSH" && break
8426 done
8428 if test x"${TCLSH}" = x ; then
8429 ac_cv_path_tclsh='';
8430 else
8431 ac_cv_path_tclsh="${TCLSH}";
8433 else
8434 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8436 TCLSH="${ac_cv_path_tclsh}"
8440 # Extract the first word of "zip", so it can be a program name with args.
8441 set dummy zip; ac_word=$2
8442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444 if test "${ac_cv_path_ZIP+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447 case $ZIP in
8448 [\\/]* | ?:[\\/]*)
8449 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8463 done
8464 done
8465 IFS=$as_save_IFS
8468 esac
8470 ZIP=$ac_cv_path_ZIP
8471 if test -n "$ZIP"; then
8472 { echo "$as_me:$LINENO: result: $ZIP" >&5
8473 echo "${ECHO_T}$ZIP" >&6; }
8474 else
8475 { echo "$as_me:$LINENO: result: no" >&5
8476 echo "${ECHO_T}no" >&6; }
8480 for ac_prog in ocamlc
8482 # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486 if test "${ac_cv_path_OCAMLC+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 case $OCAMLC in
8490 [\\/]* | ?:[\\/]*)
8491 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8505 done
8506 done
8507 IFS=$as_save_IFS
8510 esac
8512 OCAMLC=$ac_cv_path_OCAMLC
8513 if test -n "$OCAMLC"; then
8514 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8515 echo "${ECHO_T}$OCAMLC" >&6; }
8516 else
8517 { echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6; }
8522 test -n "$OCAMLC" && break
8523 done
8525 for ac_prog in ocamlopt
8527 # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 case $OCAMLOPT in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8552 IFS=$as_save_IFS
8555 esac
8557 OCAMLOPT=$ac_cv_path_OCAMLOPT
8558 if test -n "$OCAMLOPT"; then
8559 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8560 echo "${ECHO_T}$OCAMLOPT" >&6; }
8561 else
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8567 test -n "$OCAMLOPT" && break
8568 done
8570 for ac_prog in ocamldep
8572 # Extract the first word of "$ac_prog", so it can be a program name with args.
8573 set dummy $ac_prog; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 case $OCAMLDEP in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8595 done
8596 done
8597 IFS=$as_save_IFS
8600 esac
8602 OCAMLDEP=$ac_cv_path_OCAMLDEP
8603 if test -n "$OCAMLDEP"; then
8604 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8605 echo "${ECHO_T}$OCAMLDEP" >&6; }
8606 else
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8612 test -n "$OCAMLDEP" && break
8613 done
8615 for ac_prog in ocamldoc
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 case $OCAMLDOC in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8640 done
8641 done
8642 IFS=$as_save_IFS
8645 esac
8647 OCAMLDOC=$ac_cv_path_OCAMLDOC
8648 if test -n "$OCAMLDOC"; then
8649 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8650 echo "${ECHO_T}$OCAMLDOC" >&6; }
8651 else
8652 { echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6; }
8657 test -n "$OCAMLDOC" && break
8658 done
8660 for ac_prog in gas as
8662 # Extract the first word of "$ac_prog", so it can be a program name with args.
8663 set dummy $ac_prog; ac_word=$2
8664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666 if test "${ac_cv_path_GAS+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 case $GAS in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8685 done
8686 done
8687 IFS=$as_save_IFS
8690 esac
8692 GAS=$ac_cv_path_GAS
8693 if test -n "$GAS"; then
8694 { echo "$as_me:$LINENO: result: $GAS" >&5
8695 echo "${ECHO_T}$GAS" >&6; }
8696 else
8697 { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8702 test -n "$GAS" && break
8703 done
8706 { echo "$as_me:$LINENO: checking for linker version" >&5
8707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8708 if test "${llvm_cv_link_version+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8712 version_string="$(ld -v 2>&1 | head -1)"
8714 # Check for ld64.
8715 if (echo "$version_string" | grep -q "ld64"); then
8716 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8717 else
8718 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8725 cat >>confdefs.h <<_ACEOF
8726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8727 _ACEOF
8731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8733 if test "${llvm_cv_link_use_r+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 ac_ext=c
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8742 oldcflags="$CFLAGS"
8743 CFLAGS="$CFLAGS -Wl,-R."
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8752 main ()
8756 return 0;
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 llvm_cv_link_use_r=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 llvm_cv_link_use_r=no
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 CFLAGS="$oldcflags"
8804 ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8814 if test "$llvm_cv_link_use_r" = yes ; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define HAVE_LINK_R 1
8818 _ACEOF
8823 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8824 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 ac_ext=c
8829 ac_cpp='$CPP $CPPFLAGS'
8830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8834 oldcflags="$CFLAGS"
8835 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8844 main ()
8848 return 0;
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
8853 case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879 esac
8880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 llvm_cv_link_use_export_dynamic=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 llvm_cv_link_use_export_dynamic=no
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 CFLAGS="$oldcflags"
8896 ac_ext=c
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_LINK_EXPORT_DYNAMIC 1
8910 _ACEOF
8915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8917 if test "${llvm_cv_link_use_version_script+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 ac_ext=c
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 oldcflags="$CFLAGS"
8928 # The following code is from the autoconf manual,
8929 # "11.13: Limitations of Usual Tools".
8930 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8931 # Use mktemp if possible; otherwise fall back on mkdir,
8932 # with $RANDOM to make collisions less likely.
8933 : ${TMPDIR=/tmp}
8935 tmp=`
8936 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8937 ` &&
8938 test -n "$tmp" && test -d "$tmp"
8939 } || {
8940 tmp=$TMPDIR/foo$$-$RANDOM
8941 (umask 077 && mkdir "$tmp")
8942 } || exit $?
8944 echo "{" > "$tmp/export.map"
8945 echo " global: main;" >> "$tmp/export.map"
8946 echo " local: *;" >> "$tmp/export.map"
8947 echo "};" >> "$tmp/export.map"
8949 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h. */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8958 main ()
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8967 case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_link") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 llvm_cv_link_use_version_script=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 llvm_cv_link_use_version_script=no
9007 rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 rm "$tmp/export.map"
9010 rmdir "$tmp"
9011 CFLAGS="$oldcflags"
9012 ac_ext=c
9013 ac_cpp='$CPP $CPPFLAGS'
9014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9022 if test "$llvm_cv_link_use_version_script" = yes ; then
9023 HAVE_LINK_VERSION_SCRIPT=1
9030 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9032 if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h. */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9043 main ()
9045 /* FIXME: Include the comments suggested by Paul. */
9046 #ifndef __cplusplus
9047 /* Ultrix mips cc rejects this. */
9048 typedef int charset[2];
9049 const charset x;
9050 /* SunOS 4.1.1 cc rejects this. */
9051 char const *const *ccp;
9052 char **p;
9053 /* NEC SVR4.0.2 mips cc rejects this. */
9054 struct point {int x, y;};
9055 static struct point const zero = {0,0};
9056 /* AIX XL C 1.02.0.0 rejects this.
9057 It does not let you subtract one const X* pointer from another in
9058 an arm of an if-expression whose if-part is not a constant
9059 expression */
9060 const char *g = "string";
9061 ccp = &g + (g ? g-g : 0);
9062 /* HPUX 7.0 cc rejects these. */
9063 ++ccp;
9064 p = (char**) ccp;
9065 ccp = (char const *const *) p;
9066 { /* SCO 3.2v4 cc rejects this. */
9067 char *t;
9068 char const *s = 0 ? (char *) 0 : (char const *) 0;
9070 *t++ = 0;
9071 if (s) return 0;
9073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9074 int x[] = {25, 17};
9075 const int *foo = &x[0];
9076 ++foo;
9078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9079 typedef const int *iptr;
9080 iptr p = 0;
9081 ++p;
9083 { /* AIX XL C 1.02.0.0 rejects this saying
9084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9085 struct s { int j; const int *ap[3]; };
9086 struct s *b; b->j = 5;
9088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9089 const int foo = 10;
9090 if (!foo) return 0;
9092 return !x[0] && !zero.x;
9093 #endif
9096 return 0;
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9101 case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104 esac
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117 esac
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_c_const=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_c_const=no
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9144 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9145 if test $ac_cv_c_const = no; then
9147 cat >>confdefs.h <<\_ACEOF
9148 #define const
9149 _ACEOF
9158 ac_header_dirent=no
9159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9161 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9162 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 #include <sys/types.h>
9173 #include <$ac_hdr>
9176 main ()
9178 if ((DIR *) 0)
9179 return 0;
9181 return 0;
9183 _ACEOF
9184 rm -f conftest.$ac_objext
9185 if { (ac_try="$ac_compile"
9186 case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_try") 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212 esac
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_try") 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 eval "$as_ac_Header=yes"
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 eval "$as_ac_Header=no"
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 ac_res=`eval echo '${'$as_ac_Header'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9232 cat >>confdefs.h <<_ACEOF
9233 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9234 _ACEOF
9236 ac_header_dirent=$ac_hdr; break
9239 done
9240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241 if test $ac_header_dirent = dirent.h; then
9242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9243 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9244 if test "${ac_cv_search_opendir+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247 ac_func_search_save_LIBS=$LIBS
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char opendir ();
9263 main ()
9265 return opendir ();
9267 return 0;
9269 _ACEOF
9270 for ac_lib in '' dir; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9273 else
9274 ac_res=-l$ac_lib
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_try") 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_search_opendir=$ac_res
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext
9321 if test "${ac_cv_search_opendir+set}" = set; then
9322 break
9324 done
9325 if test "${ac_cv_search_opendir+set}" = set; then
9327 else
9328 ac_cv_search_opendir=no
9330 rm conftest.$ac_ext
9331 LIBS=$ac_func_search_save_LIBS
9333 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9334 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9335 ac_res=$ac_cv_search_opendir
9336 if test "$ac_res" != no; then
9337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9341 else
9342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9344 if test "${ac_cv_search_opendir+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 ac_func_search_save_LIBS=$LIBS
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h. */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char opendir ();
9363 main ()
9365 return opendir ();
9367 return 0;
9369 _ACEOF
9370 for ac_lib in '' x; do
9371 if test -z "$ac_lib"; then
9372 ac_res="none required"
9373 else
9374 ac_res=-l$ac_lib
9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_try") 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (case "(($ac_try" in
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9405 esac
9406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407 (eval "$ac_try") 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_search_opendir=$ac_res
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext
9421 if test "${ac_cv_search_opendir+set}" = set; then
9422 break
9424 done
9425 if test "${ac_cv_search_opendir+set}" = set; then
9427 else
9428 ac_cv_search_opendir=no
9430 rm conftest.$ac_ext
9431 LIBS=$ac_func_search_save_LIBS
9433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9435 ac_res=$ac_cv_search_opendir
9436 if test "$ac_res" != no; then
9437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444 for ac_header in dlfcn.h
9446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_res=`eval echo '${'$as_ac_Header'}'`
9454 { echo "$as_me:$LINENO: result: $ac_res" >&5
9455 echo "${ECHO_T}$ac_res" >&6; }
9456 else
9457 # Is the header compilable?
9458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9460 cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 $ac_includes_default
9467 #include <$ac_header>
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9471 case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_header_compiler=yes
9504 else
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_header_compiler=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h. */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <$ac_header>
9525 _ACEOF
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } >/dev/null; then
9539 if test -s conftest.err; then
9540 ac_cpp_err=$ac_c_preproc_warn_flag
9541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9542 else
9543 ac_cpp_err=
9545 else
9546 ac_cpp_err=yes
9548 if test -z "$ac_cpp_err"; then
9549 ac_header_preproc=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6; }
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563 yes:no: )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9570 no:yes:* )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583 ( cat <<\_ASBOX
9584 ## ----------------------------------- ##
9585 ## Report this to llvmbugs@cs.uiuc.edu ##
9586 ## ----------------------------------- ##
9587 _ASBOX
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9590 esac
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600 echo "${ECHO_T}$ac_res" >&6; }
9603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9606 _ACEOF
9610 done
9612 # Check whether --enable-ltdl-install was given.
9613 if test "${enable_ltdl_install+set}" = set; then
9614 enableval=$enable_ltdl_install;
9620 if test x"${enable_ltdl_install-no}" != xno; then
9621 INSTALL_LTDL_TRUE=
9622 INSTALL_LTDL_FALSE='#'
9623 else
9624 INSTALL_LTDL_TRUE='#'
9625 INSTALL_LTDL_FALSE=
9630 if test x"${enable_ltdl_convenience-no}" != xno; then
9631 CONVENIENCE_LTDL_TRUE=
9632 CONVENIENCE_LTDL_FALSE='#'
9633 else
9634 CONVENIENCE_LTDL_TRUE='#'
9635 CONVENIENCE_LTDL_FALSE=
9639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9641 library_names_spec=
9642 libname_spec='lib$name'
9643 soname_spec=
9644 shrext_cmds=".so"
9645 postinstall_cmds=
9646 postuninstall_cmds=
9647 finish_cmds=
9648 finish_eval=
9649 shlibpath_var=
9650 shlibpath_overrides_runpath=unknown
9651 version_type=none
9652 dynamic_linker="$host_os ld.so"
9653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654 if test "$GCC" = yes; then
9655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9656 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9657 # if the path contains ";" then we assume it to be the separator
9658 # otherwise default to the standard path separator (i.e. ":") - it is
9659 # assumed that no part of a normal pathname contains ";" but that should
9660 # okay in the real world where ";" in dirpaths is itself problematic.
9661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9662 else
9663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9665 else
9666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9668 need_lib_prefix=unknown
9669 hardcode_into_libs=no
9671 # when you set need_version to no, make sure it does not cause -set_version
9672 # flags to be left without arguments
9673 need_version=unknown
9675 case $host_os in
9676 aix3*)
9677 version_type=linux
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679 shlibpath_var=LIBPATH
9681 # AIX 3 has no versioning support, so we append a major version to the name.
9682 soname_spec='${libname}${release}${shared_ext}$major'
9685 aix4* | aix5*)
9686 version_type=linux
9687 need_lib_prefix=no
9688 need_version=no
9689 hardcode_into_libs=yes
9690 if test "$host_cpu" = ia64; then
9691 # AIX 5 supports IA64
9692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 else
9695 # With GCC up to 2.95.x, collect2 would create an import file
9696 # for dependence libraries. The import file would start with
9697 # the line `#! .'. This would cause the generated library to
9698 # depend on `.', always an invalid library. This was fixed in
9699 # development snapshots of GCC prior to 3.0.
9700 case $host_os in
9701 aix4 | aix4.[01] | aix4.[01].*)
9702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9703 echo ' yes '
9704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9706 else
9707 can_build_shared=no
9710 esac
9711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712 # soname into executable. Probably we can add versioning support to
9713 # collect2, so additional links can be useful in future.
9714 if test "$aix_use_runtimelinking" = yes; then
9715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716 # instead of lib<name>.a to let people know that these are not
9717 # typical AIX shared libraries.
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719 else
9720 # We preserve .a as extension for shared libraries through AIX4.2
9721 # and later when we are not doing run time linking.
9722 library_names_spec='${libname}${release}.a $libname.a'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LIBPATH
9729 amigaos*)
9730 library_names_spec='$libname.ixlibrary $libname.a'
9731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9732 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'
9735 beos*)
9736 library_names_spec='${libname}${shared_ext}'
9737 dynamic_linker="$host_os ld.so"
9738 shlibpath_var=LIBRARY_PATH
9741 bsdi[45]*)
9742 version_type=linux
9743 need_version=no
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9750 # the default ld.so.conf also contains /usr/contrib/lib and
9751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9752 # libtool to hard-code these into programs
9755 cygwin* | mingw* | pw32*)
9756 version_type=windows
9757 shrext_cmds=".dll"
9758 need_version=no
9759 need_lib_prefix=no
9761 case $GCC,$host_os in
9762 yes,cygwin* | yes,mingw* | yes,pw32*)
9763 library_names_spec='$libname.dll.a'
9764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9765 postinstall_cmds='base_file=`basename \${file}`~
9766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9767 dldir=$destdir/`dirname \$dlpath`~
9768 test -d \$dldir || mkdir -p \$dldir~
9769 $install_prog $dir/$dlname \$dldir/$dlname~
9770 chmod a+x \$dldir/$dlname'
9771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9772 dlpath=$dir/\$dldll~
9773 $rm \$dlpath'
9774 shlibpath_overrides_runpath=yes
9776 case $host_os in
9777 cygwin*)
9778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9782 mingw*)
9783 # MinGW DLLs use traditional 'lib' prefix
9784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9787 # It is most probably a Windows format PATH printed by
9788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9789 # path with ; separators, and with drive letters. We can handle the
9790 # drive letters (cygwin fileutils understands them), so leave them,
9791 # especially as we might pass files found there to a mingw objdump,
9792 # which wouldn't understand a cygwinified path. Ahh.
9793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9794 else
9795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9798 pw32*)
9799 # pw32 DLLs use 'pw' prefix rather than 'lib'
9800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9802 esac
9806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9808 esac
9809 dynamic_linker='Win32 ld.exe'
9810 # FIXME: first we should search . and the directory the executable is in
9811 shlibpath_var=PATH
9814 darwin* | rhapsody*)
9815 dynamic_linker="$host_os dyld"
9816 version_type=darwin
9817 need_lib_prefix=no
9818 need_version=no
9819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9820 soname_spec='${libname}${release}${major}$shared_ext'
9821 shlibpath_overrides_runpath=yes
9822 shlibpath_var=DYLD_LIBRARY_PATH
9823 shrext_cmds='.dylib'
9824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9825 if test "$GCC" = yes; then
9826 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"`
9827 else
9828 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9833 dgux*)
9834 version_type=linux
9835 need_lib_prefix=no
9836 need_version=no
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9842 freebsd1*)
9843 dynamic_linker=no
9846 kfreebsd*-gnu)
9847 version_type=linux
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='GNU ld.so'
9858 freebsd* | dragonfly*)
9859 # DragonFly does not have aout. When/if they implement a new
9860 # versioning mechanism, adjust this.
9861 if test -x /usr/bin/objformat; then
9862 objformat=`/usr/bin/objformat`
9863 else
9864 case $host_os in
9865 freebsd[123]*) objformat=aout ;;
9866 *) objformat=elf ;;
9867 esac
9869 version_type=freebsd-$objformat
9870 case $version_type in
9871 freebsd-elf*)
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9873 need_version=no
9874 need_lib_prefix=no
9876 freebsd-*)
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9878 need_version=yes
9880 esac
9881 shlibpath_var=LD_LIBRARY_PATH
9882 case $host_os in
9883 freebsd2*)
9884 shlibpath_overrides_runpath=yes
9886 freebsd3.[01]* | freebsdelf3.[01]*)
9887 shlibpath_overrides_runpath=yes
9888 hardcode_into_libs=yes
9890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9892 shlibpath_overrides_runpath=no
9893 hardcode_into_libs=yes
9895 freebsd*) # from 4.6 on
9896 shlibpath_overrides_runpath=yes
9897 hardcode_into_libs=yes
9899 esac
9902 gnu*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 hardcode_into_libs=yes
9912 hpux9* | hpux10* | hpux11*)
9913 # Give a soname corresponding to the major version so that dld.sl refuses to
9914 # link against other versions.
9915 version_type=sunos
9916 need_lib_prefix=no
9917 need_version=no
9918 case $host_cpu in
9919 ia64*)
9920 shrext_cmds='.so'
9921 hardcode_into_libs=yes
9922 dynamic_linker="$host_os dld.so"
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 if test "X$HPUX_IA64_MODE" = X32; then
9928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9929 else
9930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9934 hppa*64*)
9935 shrext_cmds='.sl'
9936 hardcode_into_libs=yes
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9946 shrext_cmds='.sl'
9947 dynamic_linker="$host_os dld.sl"
9948 shlibpath_var=SHLIB_PATH
9949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9953 esac
9954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9955 postinstall_cmds='chmod 555 $lib'
9958 interix3*)
9959 version_type=linux
9960 need_lib_prefix=no
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=no
9967 hardcode_into_libs=yes
9970 irix5* | irix6* | nonstopux*)
9971 case $host_os in
9972 nonstopux*) version_type=nonstopux ;;
9974 if test "$lt_cv_prog_gnu_ld" = yes; then
9975 version_type=linux
9976 else
9977 version_type=irix
9978 fi ;;
9979 esac
9980 need_lib_prefix=no
9981 need_version=no
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 case $host_os in
9985 irix5* | nonstopux*)
9986 libsuff= shlibsuff=
9989 case $LD in # libtool.m4 will add one of these switches to LD
9990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9991 libsuff= shlibsuff= libmagic=32-bit;;
9992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9993 libsuff=32 shlibsuff=N32 libmagic=N32;;
9994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9996 *) libsuff= shlibsuff= libmagic=never-match;;
9997 esac
9999 esac
10000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10001 shlibpath_overrides_runpath=no
10002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10004 hardcode_into_libs=yes
10007 # No shared lib support for Linux oldld, aout, or coff.
10008 linux*oldld* | linux*aout* | linux*coff*)
10009 dynamic_linker=no
10012 # This must be Linux ELF.
10013 linux*)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 # This implies no fast_install, which is unacceptable.
10023 # Some rework will be needed to allow for fast_install
10024 # before this can be enabled.
10025 hardcode_into_libs=yes
10027 # Append ld.so.conf contents to the search path
10028 if test -f /etc/ld.so.conf; then
10029 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' ' '`
10030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10033 # We used to test for /lib/ld.so.1 and disable shared libraries on
10034 # powerpc, because MkLinux only supported shared libraries with the
10035 # GNU dynamic linker. Since this was broken with cross compilers,
10036 # most powerpc-linux boxes support dynamic linking these days and
10037 # people can always --disable-shared, the test was removed, and we
10038 # assume the GNU/Linux dynamic linker is in use.
10039 dynamic_linker='GNU/Linux ld.so'
10042 knetbsd*-gnu)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10054 netbsd*)
10055 version_type=sunos
10056 need_lib_prefix=no
10057 need_version=no
10058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10061 dynamic_linker='NetBSD (a.out) ld.so'
10062 else
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 dynamic_linker='NetBSD ld.elf_so'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10072 newsos6)
10073 version_type=linux
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10079 nto-qnx*)
10080 version_type=linux
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10089 openbsd*)
10090 version_type=sunos
10091 sys_lib_dlsearch_path_spec="/usr/lib"
10092 need_lib_prefix=no
10093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10094 case $host_os in
10095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10096 *) need_version=no ;;
10097 esac
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10102 case $host_os in
10103 openbsd2.[89] | openbsd2.[89].*)
10104 shlibpath_overrides_runpath=no
10107 shlibpath_overrides_runpath=yes
10109 esac
10110 else
10111 shlibpath_overrides_runpath=yes
10115 os2*)
10116 libname_spec='$name'
10117 shrext_cmds=".dll"
10118 need_lib_prefix=no
10119 library_names_spec='$libname${shared_ext} $libname.a'
10120 dynamic_linker='OS/2 ld.exe'
10121 shlibpath_var=LIBPATH
10124 osf3* | osf4* | osf5*)
10125 version_type=osf
10126 need_lib_prefix=no
10127 need_version=no
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10135 solaris*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 # ldd complains unless libraries are executable
10145 postinstall_cmds='chmod +x $lib'
10148 sunos4*)
10149 version_type=sunos
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 if test "$with_gnu_ld" = yes; then
10155 need_lib_prefix=no
10157 need_version=yes
10160 sysv4 | sysv4.3*)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 case $host_vendor in
10166 sni)
10167 shlibpath_overrides_runpath=no
10168 need_lib_prefix=no
10169 export_dynamic_flag_spec='${wl}-Blargedynsym'
10170 runpath_var=LD_RUN_PATH
10172 siemens)
10173 need_lib_prefix=no
10175 motorola)
10176 need_lib_prefix=no
10177 need_version=no
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10181 esac
10184 sysv4*MP*)
10185 if test -d /usr/nec ;then
10186 version_type=linux
10187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10188 soname_spec='$libname${shared_ext}.$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10194 version_type=freebsd-elf
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10201 if test "$with_gnu_ld" = yes; then
10202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10203 shlibpath_overrides_runpath=no
10204 else
10205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10206 shlibpath_overrides_runpath=yes
10207 case $host_os in
10208 sco3.2v5*)
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10211 esac
10213 sys_lib_dlsearch_path_spec='/usr/lib'
10216 uts4*)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10224 dynamic_linker=no
10226 esac
10227 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228 echo "${ECHO_T}$dynamic_linker" >&6; }
10229 test "$dynamic_linker" = no && can_build_shared=no
10231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232 if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10238 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10239 if test "${libltdl_cv_shlibext+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10243 module=yes
10244 eval libltdl_cv_shlibext=$shrext_cmds
10247 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10248 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10249 if test -n "$libltdl_cv_shlibext"; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10253 _ACEOF
10258 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10259 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 libltdl_cv_shlibpath_var="$shlibpath_var"
10265 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10266 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10267 if test -n "$libltdl_cv_shlibpath_var"; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10271 _ACEOF
10276 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10277 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10278 if test "${libltdl_cv_sys_search_path+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10283 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10284 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10285 if test -n "$libltdl_cv_sys_search_path"; then
10286 sys_search_path=
10287 for dir in $libltdl_cv_sys_search_path; do
10288 if test -z "$sys_search_path"; then
10289 sys_search_path="$dir"
10290 else
10291 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10293 done
10295 cat >>confdefs.h <<_ACEOF
10296 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10297 _ACEOF
10301 { echo "$as_me:$LINENO: checking for objdir" >&5
10302 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10303 if test "${libltdl_cv_objdir+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 libltdl_cv_objdir="$objdir"
10307 if test -n "$objdir"; then
10309 else
10310 rm -f .libs 2>/dev/null
10311 mkdir .libs 2>/dev/null
10312 if test -d .libs; then
10313 libltdl_cv_objdir=.libs
10314 else
10315 # MS-DOS does not allow filenames that begin with a dot.
10316 libltdl_cv_objdir=_libs
10318 rmdir .libs 2>/dev/null
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10323 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10327 _ACEOF
10334 # Check for command to grab the raw symbol name followed by C symbol from nm.
10335 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10336 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10337 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10341 # These are sane defaults that work on at least a few old systems.
10342 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10344 # Character class describing NM global symbol codes.
10345 symcode='[BCDEGRST]'
10347 # Regexp to match symbols that can be accessed directly from C.
10348 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10350 # Transform an extracted symbol line into a proper C declaration
10351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10353 # Transform an extracted symbol line into symbol name and symbol address
10354 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'"
10356 # Define system-specific variables.
10357 case $host_os in
10358 aix*)
10359 symcode='[BCDT]'
10361 cygwin* | mingw* | pw32*)
10362 symcode='[ABCDGISTW]'
10364 hpux*) # Its linker distinguishes data from code symbols
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDEGRST]'
10368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10369 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'"
10371 linux*)
10372 if test "$host_cpu" = ia64; then
10373 symcode='[ABCDGIRSTW]'
10374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10375 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'"
10378 irix* | nonstopux*)
10379 symcode='[BCDEGRST]'
10381 osf*)
10382 symcode='[BCDEGQRST]'
10384 solaris*)
10385 symcode='[BDRT]'
10387 sco3.2v5*)
10388 symcode='[DT]'
10390 sysv4.2uw2*)
10391 symcode='[DT]'
10393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10394 symcode='[ABDT]'
10396 sysv4)
10397 symcode='[DFNSTU]'
10399 esac
10401 # Handle CRLF in mingw tool chain
10402 opt_cr=
10403 case $build_os in
10404 mingw*)
10405 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10407 esac
10409 # If we're using GNU nm, then use its standard symbol codes.
10410 case `$NM -V 2>&1` in
10411 *GNU* | *'with BFD'*)
10412 symcode='[ABCDGIRSTW]' ;;
10413 esac
10415 # Try without a prefix undercore, then with it.
10416 for ac_symprfx in "" "_"; do
10418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10419 symxfrm="\\1 $ac_symprfx\\2 \\2"
10421 # Write the raw and C identifiers.
10422 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10424 # Check to see that the pipe works correctly.
10425 pipe_works=no
10427 rm -f conftest*
10428 cat > conftest.$ac_ext <<EOF
10429 #ifdef __cplusplus
10430 extern "C" {
10431 #endif
10432 char nm_test_var;
10433 void nm_test_func(){}
10434 #ifdef __cplusplus
10436 #endif
10437 int main(){nm_test_var='a';nm_test_func();return(0);}
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 # Now try to grab the symbols.
10446 nlist=conftest.nm
10447 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$nlist"; then
10452 # Try sorting and uniquifying the output.
10453 if sort "$nlist" | uniq > "$nlist"T; then
10454 mv -f "$nlist"T "$nlist"
10455 else
10456 rm -f "$nlist"T
10459 # Make sure that we snagged all the symbols we need.
10460 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10461 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10462 cat <<EOF > conftest.$ac_ext
10463 #ifdef __cplusplus
10464 extern "C" {
10465 #endif
10468 # Now generate the symbol file.
10469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10471 cat <<EOF >> conftest.$ac_ext
10472 #if defined (__STDC__) && __STDC__
10473 # define lt_ptr_t void *
10474 #else
10475 # define lt_ptr_t char *
10476 # define const
10477 #endif
10479 /* The mapping between symbol names and symbols. */
10480 const struct {
10481 const char *name;
10482 lt_ptr_t address;
10484 lt_preloaded_symbols[] =
10487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10488 cat <<\EOF >> conftest.$ac_ext
10489 {0, (lt_ptr_t) 0}
10492 #ifdef __cplusplus
10494 #endif
10496 # Now try linking the two files.
10497 mv conftest.$ac_objext conftstm.$ac_objext
10498 lt_save_LIBS="$LIBS"
10499 lt_save_CFLAGS="$CFLAGS"
10500 LIBS="conftstm.$ac_objext"
10501 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503 (eval $ac_link) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10507 pipe_works=yes
10509 LIBS="$lt_save_LIBS"
10510 CFLAGS="$lt_save_CFLAGS"
10511 else
10512 echo "cannot find nm_test_func in $nlist" >&5
10514 else
10515 echo "cannot find nm_test_var in $nlist" >&5
10517 else
10518 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10520 else
10521 echo "$progname: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10524 rm -f conftest* conftst*
10526 # Do not use the global_symbol_pipe unless it works.
10527 if test "$pipe_works" = yes; then
10528 break
10529 else
10530 lt_cv_sys_global_symbol_pipe=
10532 done
10536 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10537 lt_cv_sys_global_symbol_to_cdecl=
10539 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10540 { echo "$as_me:$LINENO: result: failed" >&5
10541 echo "${ECHO_T}failed" >&6; }
10542 else
10543 { echo "$as_me:$LINENO: result: ok" >&5
10544 echo "${ECHO_T}ok" >&6; }
10548 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10549 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10550 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10554 libltdl_cv_preloaded_symbols=yes
10555 else
10556 libltdl_cv_preloaded_symbols=no
10560 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10561 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10562 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_PRELOADED_SYMBOLS 1
10566 _ACEOF
10570 LIBADD_DL=
10572 ac_ext=c
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10579 { echo "$as_me:$LINENO: checking for shl_load" >&5
10580 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10581 if test "${ac_cv_func_shl_load+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10592 #define shl_load innocuous_shl_load
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char shl_load (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10599 #ifdef __STDC__
10600 # include <limits.h>
10601 #else
10602 # include <assert.h>
10603 #endif
10605 #undef shl_load
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char shl_load ();
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined __stub_shl_load || defined __stub___shl_load
10618 choke me
10619 #endif
10622 main ()
10624 return shl_load ();
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_shl_load=yes
10664 else
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_cv_func_shl_load=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10676 if test $ac_cv_func_shl_load = yes; then
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_SHL_LOAD 1
10680 _ACEOF
10682 else
10683 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldld $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char shl_load ();
10705 main ()
10707 return shl_load ();
10709 return 0;
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740 esac
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_dld_shl_load=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_dld_shl_load=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10760 if test $ac_cv_lib_dld_shl_load = yes; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_SHL_LOAD 1
10764 _ACEOF
10766 LIBADD_DL="$LIBADD_DL -ldld"
10767 else
10768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-ldl $LIBS"
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 char dlopen ();
10790 main ()
10792 return dlopen ();
10794 return 0;
10796 _ACEOF
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_dl_dlopen=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dl_dlopen=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10845 if test $ac_cv_lib_dl_dlopen = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_LIBDL 1
10849 _ACEOF
10851 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10852 else
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #if HAVE_DLFCN_H
10860 # include <dlfcn.h>
10861 #endif
10864 main ()
10866 dlopen(0, 0);
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_link") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_LIBDL 1
10908 _ACEOF
10909 libltdl_cv_func_dlopen="yes"
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-lsvld $LIBS"
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 /* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char dlopen ();
10936 main ()
10938 return dlopen ();
10940 return 0;
10942 _ACEOF
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (ac_try="$ac_link"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_cv_lib_svld_dlopen=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_cv_lib_svld_dlopen=no
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10990 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10991 if test $ac_cv_lib_svld_dlopen = yes; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_LIBDL 1
10995 _ACEOF
10997 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10998 else
10999 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-ldld $LIBS"
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11013 /* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char dld_link ();
11021 main ()
11023 return dld_link ();
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (ac_try="$ac_link"
11030 case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_lib_dld_dld_link=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_lib_dld_dld_link=no
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LIBS=$ac_check_lib_save_LIBS
11074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11075 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11076 if test $ac_cv_lib_dld_dld_link = yes; then
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_DLD 1
11080 _ACEOF
11082 LIBADD_DL="$LIBADD_DL -ldld"
11083 else
11084 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11085 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11086 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097 #define _dyld_func_lookup innocuous__dyld_func_lookup
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char _dyld_func_lookup (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
11104 #ifdef __STDC__
11105 # include <limits.h>
11106 #else
11107 # include <assert.h>
11108 #endif
11110 #undef _dyld_func_lookup
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char _dyld_func_lookup ();
11119 /* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11123 choke me
11124 #endif
11127 main ()
11129 return _dyld_func_lookup ();
11131 return 0;
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_func__dyld_func_lookup=yes
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_func__dyld_func_lookup=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11180 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11181 if test $ac_cv_func__dyld_func_lookup = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_DYLD 1
11185 _ACEOF
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11210 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11211 then
11212 lt_save_LIBS="$LIBS"
11213 LIBS="$LIBS $LIBADD_DL"
11215 for ac_func in dlerror
11217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231 #define $ac_func innocuous_$ac_func
11233 /* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11238 #ifdef __STDC__
11239 # include <limits.h>
11240 #else
11241 # include <assert.h>
11242 #endif
11244 #undef $ac_func
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char $ac_func ();
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11257 choke me
11258 #endif
11261 main ()
11263 return $ac_func ();
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (ac_try="$ac_link"
11270 case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_link") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 eval "$as_ac_var=yes"
11303 else
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 eval "$as_ac_var=no"
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11322 done
11324 LIBS="$lt_save_LIBS"
11326 ac_ext=c
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11335 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11336 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 ac_cv_sys_symbol_underscore=no
11340 cat > conftest.$ac_ext <<EOF
11341 void nm_test_func(){}
11342 int main(){nm_test_func;return 0;}
11344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; then
11349 # Now try to grab the symbols.
11350 ac_nlist=conftest.nm
11351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && test -s "$ac_nlist"; then
11356 # See whether the symbols have a leading underscore.
11357 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11358 ac_cv_sys_symbol_underscore=yes
11359 else
11360 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11362 else
11363 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11366 else
11367 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11369 else
11370 echo "configure: failed program was:" >&5
11371 cat conftest.c >&5
11373 rm -rf conftest*
11376 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11377 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11380 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11381 if test x"$libltdl_cv_func_dlopen" = xyes ||
11382 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11383 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11384 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11385 if test "${libltdl_cv_need_uscore+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 libltdl_cv_need_uscore=unknown
11389 save_LIBS="$LIBS"
11390 LIBS="$LIBS $LIBADD_DL"
11391 if test "$cross_compiling" = yes; then :
11392 libltdl_cv_need_uscore=cross
11393 else
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11400 #if HAVE_DLFCN_H
11401 #include <dlfcn.h>
11402 #endif
11404 #include <stdio.h>
11406 #ifdef RTLD_GLOBAL
11407 # define LT_DLGLOBAL RTLD_GLOBAL
11408 #else
11409 # ifdef DL_GLOBAL
11410 # define LT_DLGLOBAL DL_GLOBAL
11411 # else
11412 # define LT_DLGLOBAL 0
11413 # endif
11414 #endif
11416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418 #ifndef LT_DLLAZY_OR_NOW
11419 # ifdef RTLD_LAZY
11420 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11421 # else
11422 # ifdef DL_LAZY
11423 # define LT_DLLAZY_OR_NOW DL_LAZY
11424 # else
11425 # ifdef RTLD_NOW
11426 # define LT_DLLAZY_OR_NOW RTLD_NOW
11427 # else
11428 # ifdef DL_NOW
11429 # define LT_DLLAZY_OR_NOW DL_NOW
11430 # else
11431 # define LT_DLLAZY_OR_NOW 0
11432 # endif
11433 # endif
11434 # endif
11435 # endif
11436 #endif
11438 #ifdef __cplusplus
11439 extern "C" void exit (int);
11440 #endif
11442 void fnord() { int i=42;}
11443 int main ()
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11448 if (self)
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 /* dlclose (self); */
11454 else
11455 puts (dlerror ());
11457 exit (status);
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11465 (./conftest; exit; ) >&5 2>/dev/null
11466 lt_status=$?
11467 case x$lt_status in
11468 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11469 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11470 x$lt_dlunknown|x*) ;;
11471 esac
11472 else :
11473 # compilation failed
11477 rm -fr conftest*
11479 LIBS="$save_LIBS"
11482 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11483 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11487 if test x"$libltdl_cv_need_uscore" = xyes; then
11489 cat >>confdefs.h <<\_ACEOF
11490 #define NEED_USCORE 1
11491 _ACEOF
11496 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11497 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11498 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 # PORTME does your system automatically load deplibs for dlopen?
11502 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11503 # For now, we just catch OSes we know something about -- in the
11504 # future, we'll try test this programmatically.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11506 case "$host_os" in
11507 aix3*|aix4.1.*|aix4.2.*)
11508 # Unknown whether this is true for these versions of AIX, but
11509 # we want this `case' here to explicitly catch those versions.
11510 libltdl_cv_sys_dlopen_deplibs=unknown
11512 aix[45]*)
11513 libltdl_cv_sys_dlopen_deplibs=yes
11515 darwin*)
11516 # Assuming the user has installed a libdl from somewhere, this is true
11517 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11518 libltdl_cv_sys_dlopen_deplibs=yes
11520 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11521 # GNU and its variants, using gnu ld.so (Glibc)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11524 hpux10*|hpux11*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11527 interix*)
11528 libltdl_cv_sys_dlopen_deplibs=yes
11530 irix[12345]*|irix6.[01]*)
11531 # Catch all versions of IRIX before 6.2, and indicate that we don't
11532 # know how it worked for any of those versions.
11533 libltdl_cv_sys_dlopen_deplibs=unknown
11535 irix*)
11536 # The case above catches anything before 6.2, and it's known that
11537 # at 6.2 and later dlopen does load deplibs.
11538 libltdl_cv_sys_dlopen_deplibs=yes
11540 netbsd*)
11541 libltdl_cv_sys_dlopen_deplibs=yes
11543 openbsd*)
11544 libltdl_cv_sys_dlopen_deplibs=yes
11546 osf[1234]*)
11547 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11548 # it did *not* use an RPATH in a shared library to find objects the
11549 # library depends on, so we explictly say `no'.
11550 libltdl_cv_sys_dlopen_deplibs=no
11552 osf5.0|osf5.0a|osf5.1)
11553 # dlopen *does* load deplibs and with the right loader patch applied
11554 # it even uses RPATH in a shared library to search for shared objects
11555 # that the library depends on, but there's no easy way to know if that
11556 # patch is installed. Since this is the case, all we can really
11557 # say is unknown -- it depends on the patch being installed. If
11558 # it is, this changes to `yes'. Without it, it would be `no'.
11559 libltdl_cv_sys_dlopen_deplibs=unknown
11561 osf*)
11562 # the two cases above should catch all versions of osf <= 5.1. Read
11563 # the comments above for what we know about them.
11564 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11565 # is used to find them so we can finally say `yes'.
11566 libltdl_cv_sys_dlopen_deplibs=yes
11568 solaris*)
11569 libltdl_cv_sys_dlopen_deplibs=yes
11571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572 libltdl_cv_sys_dlopen_deplibs=yes
11574 esac
11577 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11578 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11579 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11581 cat >>confdefs.h <<\_ACEOF
11582 #define LTDL_DLOPEN_DEPLIBS 1
11583 _ACEOF
11588 for ac_header in argz.h
11590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600 else
11601 # Is the header compilable?
11602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 #include <$ac_header>
11612 _ACEOF
11613 rm -f conftest.$ac_objext
11614 if { (ac_try="$ac_compile"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631 esac
11632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_header_compiler=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657 echo "${ECHO_T}$ac_header_compiler" >&6; }
11659 # Is the header present?
11660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <$ac_header>
11669 _ACEOF
11670 if { (ac_try="$ac_cpp conftest.$ac_ext"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 else
11687 ac_cpp_err=
11689 else
11690 ac_cpp_err=yes
11692 if test -z "$ac_cpp_err"; then
11693 ac_header_preproc=yes
11694 else
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_preproc=no
11701 rm -f conftest.err conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703 echo "${ECHO_T}$ac_header_preproc" >&6; }
11705 # So? What about this header?
11706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707 yes:no: )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11714 no:yes:* )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727 ( cat <<\_ASBOX
11728 ## ----------------------------------- ##
11729 ## Report this to llvmbugs@cs.uiuc.edu ##
11730 ## ----------------------------------- ##
11731 _ASBOX
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11734 esac
11735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740 eval "$as_ac_Header=\$ac_header_preproc"
11742 ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750 _ACEOF
11754 done
11757 { echo "$as_me:$LINENO: checking for error_t" >&5
11758 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11759 if test "${ac_cv_type_error_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #if HAVE_ARGZ_H
11769 # include <argz.h>
11770 #endif
11772 typedef error_t ac__type_new_;
11774 main ()
11776 if ((ac__type_new_ *) 0)
11777 return 0;
11778 if (sizeof (ac__type_new_))
11779 return 0;
11781 return 0;
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_type_error_t=yes
11819 else
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_cv_type_error_t=no
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11830 if test $ac_cv_type_error_t = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define HAVE_ERROR_T 1
11834 _ACEOF
11837 else
11839 cat >>confdefs.h <<\_ACEOF
11840 #define error_t int
11841 _ACEOF
11851 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867 #define $ac_func innocuous_$ac_func
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11874 #ifdef __STDC__
11875 # include <limits.h>
11876 #else
11877 # include <assert.h>
11878 #endif
11880 #undef $ac_func
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char $ac_func ();
11889 /* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892 #if defined __stub_$ac_func || defined __stub___$ac_func
11893 choke me
11894 #endif
11897 main ()
11899 return $ac_func ();
11901 return 0;
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (ac_try="$ac_link"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11939 else
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11952 if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 _ACEOF
11958 done
11987 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11988 stdio.h unistd.h
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 else
12001 # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 #include <$ac_header>
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12048 else
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_header_compiler=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <$ac_header>
12069 _ACEOF
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086 else
12087 ac_cpp_err=
12089 else
12090 ac_cpp_err=yes
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ( cat <<\_ASBOX
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12131 _ASBOX
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12154 done
12160 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_res=`eval echo '${'$as_ac_Header'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171 echo "${ECHO_T}$ac_res" >&6; }
12172 else
12173 # Is the header compilable?
12174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 $ac_includes_default
12183 #include <$ac_header>
12184 _ACEOF
12185 rm -f conftest.$ac_objext
12186 if { (ac_try="$ac_compile"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_header_compiler=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_header_compiler=no
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 echo "${ECHO_T}$ac_header_compiler" >&6; }
12231 # Is the header present?
12232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #include <$ac_header>
12241 _ACEOF
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12258 else
12259 ac_cpp_err=
12261 else
12262 ac_cpp_err=yes
12264 if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_preproc=no
12273 rm -f conftest.err conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 yes:no: )
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12286 no:yes:* )
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299 ( cat <<\_ASBOX
12300 ## ----------------------------------- ##
12301 ## Report this to llvmbugs@cs.uiuc.edu ##
12302 ## ----------------------------------- ##
12303 _ASBOX
12304 ) | sed "s/^/$as_me: WARNING: /" >&2
12306 esac
12307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 eval "$as_ac_Header=\$ac_header_preproc"
12314 ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316 echo "${ECHO_T}$ac_res" >&6; }
12319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322 _ACEOF
12326 done
12330 for ac_header in string.h strings.h
12332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_res=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12342 else
12343 # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 #include <$ac_header>
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_header_compiler=yes
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_header_compiler=no
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399 echo "${ECHO_T}$ac_header_compiler" >&6; }
12401 # Is the header present?
12402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 #include <$ac_header>
12411 _ACEOF
12412 if { (ac_try="$ac_cpp conftest.$ac_ext"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } >/dev/null; then
12425 if test -s conftest.err; then
12426 ac_cpp_err=$ac_c_preproc_warn_flag
12427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12428 else
12429 ac_cpp_err=
12431 else
12432 ac_cpp_err=yes
12434 if test -z "$ac_cpp_err"; then
12435 ac_header_preproc=yes
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_header_preproc=no
12443 rm -f conftest.err conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6; }
12447 # So? What about this header?
12448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12449 yes:no: )
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12454 ac_header_preproc=yes
12456 no:yes:* )
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12469 ( cat <<\_ASBOX
12470 ## ----------------------------------- ##
12471 ## Report this to llvmbugs@cs.uiuc.edu ##
12472 ## ----------------------------------- ##
12473 _ASBOX
12474 ) | sed "s/^/$as_me: WARNING: /" >&2
12476 esac
12477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 else
12482 eval "$as_ac_Header=\$ac_header_preproc"
12484 ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486 echo "${ECHO_T}$ac_res" >&6; }
12489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12492 _ACEOF
12493 break
12496 done
12501 for ac_func in strchr index
12503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h. */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12517 #define $ac_func innocuous_$ac_func
12519 /* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below.
12521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 <limits.h> exists even on freestanding compilers. */
12524 #ifdef __STDC__
12525 # include <limits.h>
12526 #else
12527 # include <assert.h>
12528 #endif
12530 #undef $ac_func
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 char $ac_func ();
12539 /* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542 #if defined __stub_$ac_func || defined __stub___$ac_func
12543 choke me
12544 #endif
12547 main ()
12549 return $ac_func ();
12551 return 0;
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 eval "$as_ac_var=no"
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12599 ac_res=`eval echo '${'$as_ac_var'}'`
12600 { echo "$as_me:$LINENO: result: $ac_res" >&5
12601 echo "${ECHO_T}$ac_res" >&6; }
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 _ACEOF
12606 break
12608 done
12612 for ac_func in strrchr rindex
12614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12628 #define $ac_func innocuous_$ac_func
12630 /* System header to define __stub macros and hopefully few prototypes,
12631 which can conflict with char $ac_func (); below.
12632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12633 <limits.h> exists even on freestanding compilers. */
12635 #ifdef __STDC__
12636 # include <limits.h>
12637 #else
12638 # include <assert.h>
12639 #endif
12641 #undef $ac_func
12643 /* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12646 #ifdef __cplusplus
12647 extern "C"
12648 #endif
12649 char $ac_func ();
12650 /* The GNU C library defines this for functions which it implements
12651 to always fail with ENOSYS. Some functions are actually named
12652 something starting with __ and the normal name is an alias. */
12653 #if defined __stub_$ac_func || defined __stub___$ac_func
12654 choke me
12655 #endif
12658 main ()
12660 return $ac_func ();
12662 return 0;
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12700 else
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 eval "$as_ac_var=no"
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 ac_res=`eval echo '${'$as_ac_var'}'`
12711 { echo "$as_me:$LINENO: result: $ac_res" >&5
12712 echo "${ECHO_T}$ac_res" >&6; }
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 _ACEOF
12717 break
12719 done
12723 for ac_func in memcpy bcopy
12725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12739 #define $ac_func innocuous_$ac_func
12741 /* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below.
12743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744 <limits.h> exists even on freestanding compilers. */
12746 #ifdef __STDC__
12747 # include <limits.h>
12748 #else
12749 # include <assert.h>
12750 #endif
12752 #undef $ac_func
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char $ac_func ();
12761 /* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764 #if defined __stub_$ac_func || defined __stub___$ac_func
12765 choke me
12766 #endif
12769 main ()
12771 return $ac_func ();
12773 return 0;
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 eval "$as_ac_var=yes"
12811 else
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 eval "$as_ac_var=no"
12818 rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12821 ac_res=`eval echo '${'$as_ac_var'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825 cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 _ACEOF
12828 break
12830 done
12834 for ac_func in memmove strcmp
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12857 #ifdef __STDC__
12858 # include <limits.h>
12859 #else
12860 # include <assert.h>
12861 #endif
12863 #undef $ac_func
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char $ac_func ();
12872 /* The GNU C library defines this for functions which it implements
12873 to always fail with ENOSYS. Some functions are actually named
12874 something starting with __ and the normal name is an alias. */
12875 #if defined __stub_$ac_func || defined __stub___$ac_func
12876 choke me
12877 #endif
12880 main ()
12882 return $ac_func ();
12884 return 0;
12886 _ACEOF
12887 rm -f conftest.$ac_objext conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892 esac
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 eval "$as_ac_var=no"
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12932 ac_res=`eval echo '${'$as_ac_var'}'`
12933 { echo "$as_me:$LINENO: result: $ac_res" >&5
12934 echo "${ECHO_T}$ac_res" >&6; }
12935 if test `eval echo '${'$as_ac_var'}'` = yes; then
12936 cat >>confdefs.h <<_ACEOF
12937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 _ACEOF
12941 done
12946 for ac_func in closedir opendir readdir
12948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h. */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12962 #define $ac_func innocuous_$ac_func
12964 /* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12969 #ifdef __STDC__
12970 # include <limits.h>
12971 #else
12972 # include <assert.h>
12973 #endif
12975 #undef $ac_func
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char $ac_func ();
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined __stub_$ac_func || defined __stub___$ac_func
12988 choke me
12989 #endif
12992 main ()
12994 return $ac_func ();
12996 return 0;
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_try") 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 eval "$as_ac_var=yes"
13034 else
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 eval "$as_ac_var=no"
13041 rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13044 ac_res=`eval echo '${'$as_ac_var'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046 echo "${ECHO_T}$ac_res" >&6; }
13047 if test `eval echo '${'$as_ac_var'}'` = yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 _ACEOF
13053 done
13057 if test "$WITH_LLVMGCCDIR" = "default" ; then
13058 LLVMGCC="llvm-gcc${EXEEXT}"
13059 LLVMGXX="llvm-g++${EXEEXT}"
13060 LLVMGCCCOMMAND="$LLVMGCC"
13061 LLVMGXXCOMMAND="$LLVMGXX"
13062 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13064 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13066 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13067 set dummy $LLVMGCC; ac_word=$2
13068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13070 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 else
13073 case $LLVMGCC in
13074 [\\/]* | ?:[\\/]*)
13075 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13089 done
13090 done
13091 IFS=$as_save_IFS
13094 esac
13096 LLVMGCC=$ac_cv_path_LLVMGCC
13097 if test -n "$LLVMGCC"; then
13098 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13099 echo "${ECHO_T}$LLVMGCC" >&6; }
13100 else
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13106 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13107 set dummy $LLVMGXX; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 case $LLVMGXX in
13114 [\\/]* | ?:[\\/]*)
13115 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13129 done
13130 done
13131 IFS=$as_save_IFS
13134 esac
13136 LLVMGXX=$ac_cv_path_LLVMGXX
13137 if test -n "$LLVMGXX"; then
13138 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13139 echo "${ECHO_T}$LLVMGXX" >&6; }
13140 else
13141 { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13146 else
13147 if test -z "$LLVMGCC"; then
13148 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13149 LLVMGCCCOMMAND="$LLVMGCC"
13151 if test -z "$LLVMGXX"; then
13152 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13153 LLVMGXXCOMMAND="$LLVMGXX"
13156 LLVMGCC=$LLVMGCC
13158 LLVMGXX=$LLVMGXX
13160 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13162 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13167 # Check whether --with-llvmcc was given.
13168 if test "${with_llvmcc+set}" = set; then
13169 withval=$with_llvmcc;
13170 else
13171 with_llvmcc=check
13174 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13175 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13176 if test "$with_llvmcc" != "check"; then
13177 if (test "$with_llvmcc" != "llvm-gcc" &&
13178 test "$with_llvmcc" != "clang" &&
13179 test "$with_llvmcc" != "none"); then
13180 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13181 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13182 { (exit 1); exit 1; }; }
13184 WITH_LLVMCC="$with_llvmcc"
13185 elif test -n "$LLVMGCC"; then
13186 WITH_LLVMCC=llvm-gcc
13187 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13188 WITH_LLVMCC=clang
13189 else
13190 WITH_LLVMCC=none
13192 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13193 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13194 LLVMCC_OPTION=$WITH_LLVMCC
13197 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13198 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13200 ICC=no
13201 IXX=no
13202 case $CC in
13203 icc*|icpc*)
13204 ICC=yes
13205 IXX=yes
13209 esac
13211 if test "$GCC" != "yes" && test "$ICC" != "yes"
13212 then
13213 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13214 echo "$as_me: error: gcc|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
13218 if test "$GXX" != "yes" && test "$IXX" != "yes"
13219 then
13220 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13221 echo "$as_me: error: g++|icc required but not found" >&2;}
13222 { (exit 1); exit 1; }; }
13225 if test "$GCC" = "yes"
13226 then
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #if !defined(__GNUC__) || __GNUC__ < 3
13229 #error Unsupported GCC version
13230 #endif
13232 _ACEOF
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13268 else
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13273 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13274 { (exit 1); exit 1; }; }
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 if test -z "$llvm_cv_gnu_make_command"
13281 then
13282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13283 echo "$as_me: error: GNU Make required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
13287 { echo "$as_me:$LINENO: result: ok" >&5
13288 echo "${ECHO_T}ok" >&6; }
13290 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13291 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13292 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13294 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13296 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13297 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13301 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13302 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13303 if test "${ac_cv_lib_m_sin+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 ac_check_lib_save_LIBS=$LIBS
13307 LIBS="-lm $LIBS"
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13315 /* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13318 #ifdef __cplusplus
13319 extern "C"
13320 #endif
13321 char sin ();
13323 main ()
13325 return sin ();
13327 return 0;
13329 _ACEOF
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_lib_m_sin=yes
13365 else
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_cv_lib_m_sin=no
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13377 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13378 if test $ac_cv_lib_m_sin = yes; then
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_LIBM 1
13381 _ACEOF
13383 LIBS="-lm $LIBS"
13387 if test "$llvm_cv_os_type" = "MingW" ; then
13389 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13390 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13391 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-limagehlp $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13405 main ()
13407 return main ();
13409 return 0;
13411 _ACEOF
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430 esac
13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_cv_lib_imagehlp_main=yes
13447 else
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_cv_lib_imagehlp_main=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13459 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13460 if test $ac_cv_lib_imagehlp_main = yes; then
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBIMAGEHLP 1
13463 _ACEOF
13465 LIBS="-limagehlp $LIBS"
13470 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13471 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13472 if test "${ac_cv_lib_psapi_main+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lpsapi $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13486 main ()
13488 return main ();
13490 return 0;
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511 esac
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_psapi_main=yes
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_lib_psapi_main=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13540 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13541 if test $ac_cv_lib_psapi_main = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBPSAPI 1
13544 _ACEOF
13546 LIBS="-lpsapi $LIBS"
13552 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13553 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13554 if test "${ac_cv_search_dlopen+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 ac_func_search_save_LIBS=$LIBS
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 /* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
13568 #ifdef __cplusplus
13569 extern "C"
13570 #endif
13571 char dlopen ();
13573 main ()
13575 return dlopen ();
13577 return 0;
13579 _ACEOF
13580 for ac_lib in '' dl; do
13581 if test -z "$ac_lib"; then
13582 ac_res="none required"
13583 else
13584 ac_res=-l$ac_lib
13585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_cv_search_dlopen=$ac_res
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13629 rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext
13631 if test "${ac_cv_search_dlopen+set}" = set; then
13632 break
13634 done
13635 if test "${ac_cv_search_dlopen+set}" = set; then
13637 else
13638 ac_cv_search_dlopen=no
13640 rm conftest.$ac_ext
13641 LIBS=$ac_func_search_save_LIBS
13643 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13644 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13645 ac_res=$ac_cv_search_dlopen
13646 if test "$ac_res" != no; then
13647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649 cat >>confdefs.h <<\_ACEOF
13650 #define HAVE_DLOPEN 1
13651 _ACEOF
13653 else
13654 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13655 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13659 if test "$llvm_cv_enable_libffi" = "yes" ; then
13660 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13661 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13662 if test "${ac_cv_search_ffi_call+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 ac_func_search_save_LIBS=$LIBS
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char ffi_call ();
13681 main ()
13683 return ffi_call ();
13685 return 0;
13687 _ACEOF
13688 for ac_lib in '' ffi; do
13689 if test -z "$ac_lib"; then
13690 ac_res="none required"
13691 else
13692 ac_res=-l$ac_lib
13693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713 esac
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_search_ffi_call=$ac_res
13730 else
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13737 rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext
13739 if test "${ac_cv_search_ffi_call+set}" = set; then
13740 break
13742 done
13743 if test "${ac_cv_search_ffi_call+set}" = set; then
13745 else
13746 ac_cv_search_ffi_call=no
13748 rm conftest.$ac_ext
13749 LIBS=$ac_func_search_save_LIBS
13751 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13752 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13753 ac_res=$ac_cv_search_ffi_call
13754 if test "$ac_res" != no; then
13755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_FFI_CALL 1
13759 _ACEOF
13761 else
13762 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13763 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13764 { (exit 1); exit 1; }; }
13769 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13770 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13771 if test "${ac_cv_search_mallinfo+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 ac_func_search_save_LIBS=$LIBS
13775 cat >conftest.$ac_ext <<_ACEOF
13776 /* confdefs.h. */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13785 #ifdef __cplusplus
13786 extern "C"
13787 #endif
13788 char mallinfo ();
13790 main ()
13792 return mallinfo ();
13794 return 0;
13796 _ACEOF
13797 for ac_lib in '' malloc; do
13798 if test -z "$ac_lib"; then
13799 ac_res="none required"
13800 else
13801 ac_res=-l$ac_lib
13802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (ac_try="$ac_link"
13806 case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_search_mallinfo=$ac_res
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f core conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext
13848 if test "${ac_cv_search_mallinfo+set}" = set; then
13849 break
13851 done
13852 if test "${ac_cv_search_mallinfo+set}" = set; then
13854 else
13855 ac_cv_search_mallinfo=no
13857 rm conftest.$ac_ext
13858 LIBS=$ac_func_search_save_LIBS
13860 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13861 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13862 ac_res=$ac_cv_search_mallinfo
13863 if test "$ac_res" != no; then
13864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13866 cat >>confdefs.h <<\_ACEOF
13867 #define HAVE_MALLINFO 1
13868 _ACEOF
13873 if test "$ENABLE_THREADS" -eq 1 ; then
13875 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13876 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13877 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lpthread $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char pthread_mutex_init ();
13897 main ()
13899 return pthread_mutex_init ();
13901 return 0;
13903 _ACEOF
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (ac_try="$ac_link"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_lib_pthread_pthread_mutex_init=yes
13939 else
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ac_cv_lib_pthread_pthread_mutex_init=no
13946 rm -f core conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948 LIBS=$ac_check_lib_save_LIBS
13950 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13951 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13952 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_LIBPTHREAD 1
13955 _ACEOF
13957 LIBS="-lpthread $LIBS"
13961 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13962 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13963 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966 ac_func_search_save_LIBS=$LIBS
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char pthread_mutex_lock ();
13982 main ()
13984 return pthread_mutex_lock ();
13986 return 0;
13988 _ACEOF
13989 for ac_lib in '' pthread; do
13990 if test -z "$ac_lib"; then
13991 ac_res="none required"
13992 else
13993 ac_res=-l$ac_lib
13994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (ac_try="$ac_link"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014 esac
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 ac_cv_search_pthread_mutex_lock=$ac_res
14031 else
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext
14040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14041 break
14043 done
14044 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14046 else
14047 ac_cv_search_pthread_mutex_lock=no
14049 rm conftest.$ac_ext
14050 LIBS=$ac_func_search_save_LIBS
14052 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14053 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14054 ac_res=$ac_cv_search_pthread_mutex_lock
14055 if test "$ac_res" != no; then
14056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_PTHREAD_MUTEX_LOCK 1
14060 _ACEOF
14064 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14065 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14066 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 ac_func_search_save_LIBS=$LIBS
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h. */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080 #ifdef __cplusplus
14081 extern "C"
14082 #endif
14083 char pthread_rwlock_init ();
14085 main ()
14087 return pthread_rwlock_init ();
14089 return 0;
14091 _ACEOF
14092 for ac_lib in '' pthread; do
14093 if test -z "$ac_lib"; then
14094 ac_res="none required"
14095 else
14096 ac_res=-l$ac_lib
14097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (ac_try="$ac_link"
14101 case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104 esac
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_link") 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117 esac
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_cv_search_pthread_rwlock_init=$ac_res
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext
14143 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14144 break
14146 done
14147 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14149 else
14150 ac_cv_search_pthread_rwlock_init=no
14152 rm conftest.$ac_ext
14153 LIBS=$ac_func_search_save_LIBS
14155 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14156 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14157 ac_res=$ac_cv_search_pthread_rwlock_init
14158 if test "$ac_res" != no; then
14159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161 cat >>confdefs.h <<\_ACEOF
14162 #define HAVE_PTHREAD_RWLOCK_INIT 1
14163 _ACEOF
14167 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14168 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14169 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172 ac_func_search_save_LIBS=$LIBS
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14180 /* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183 #ifdef __cplusplus
14184 extern "C"
14185 #endif
14186 char pthread_getspecific ();
14188 main ()
14190 return pthread_getspecific ();
14192 return 0;
14194 _ACEOF
14195 for ac_lib in '' pthread; do
14196 if test -z "$ac_lib"; then
14197 ac_res="none required"
14198 else
14199 ac_res=-l$ac_lib
14200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230 esac
14231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 ac_cv_search_pthread_getspecific=$ac_res
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext
14246 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14247 break
14249 done
14250 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14252 else
14253 ac_cv_search_pthread_getspecific=no
14255 rm conftest.$ac_ext
14256 LIBS=$ac_func_search_save_LIBS
14258 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14259 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14260 ac_res=$ac_cv_search_pthread_getspecific
14261 if test "$ac_res" != no; then
14262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_PTHREAD_GETSPECIFIC 1
14266 _ACEOF
14273 # Check whether --with-udis86 was given.
14274 if test "${with_udis86+set}" = set; then
14275 withval=$with_udis86;
14276 USE_UDIS86=1
14278 case "$withval" in
14279 /usr/lib|yes) ;;
14280 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14281 esac
14283 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14284 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14285 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 ac_check_lib_save_LIBS=$LIBS
14289 LIBS="-ludis86 $LIBS"
14290 cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h. */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14300 #ifdef __cplusplus
14301 extern "C"
14302 #endif
14303 char ud_init ();
14305 main ()
14307 return ud_init ();
14309 return 0;
14311 _ACEOF
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_lib_udis86_ud_init=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 ac_cv_lib_udis86_ud_init=no
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 LIBS=$ac_check_lib_save_LIBS
14358 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14359 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14360 if test $ac_cv_lib_udis86_ud_init = yes; then
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_LIBUDIS86 1
14363 _ACEOF
14365 LIBS="-ludis86 $LIBS"
14367 else
14369 echo "Error! You need to have libudis86 around."
14370 exit -1
14375 else
14376 USE_UDIS86=0
14381 cat >>confdefs.h <<_ACEOF
14382 #define USE_UDIS86 $USE_UDIS86
14383 _ACEOF
14387 # Check whether --with-oprofile was given.
14388 if test "${with_oprofile+set}" = set; then
14389 withval=$with_oprofile;
14390 USE_OPROFILE=1
14392 case "$withval" in
14393 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14394 no) llvm_cv_oppath=
14395 USE_OPROFILE=0
14397 *) llvm_cv_oppath="${withval}/lib/oprofile"
14398 CPPFLAGS="-I${withval}/include";;
14399 esac
14400 if test -n "$llvm_cv_oppath" ; then
14401 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14402 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14403 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14404 if test "${ac_cv_search_bfd_init+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 ac_func_search_save_LIBS=$LIBS
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 char bfd_init ();
14423 main ()
14425 return bfd_init ();
14427 return 0;
14429 _ACEOF
14430 for ac_lib in '' bfd; do
14431 if test -z "$ac_lib"; then
14432 ac_res="none required"
14433 else
14434 ac_res=-l$ac_lib
14435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14437 rm -f conftest.$ac_objext conftest$ac_exeext
14438 if { (ac_try="$ac_link"
14439 case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_link") 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455 esac
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest$ac_exeext'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465 esac
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_search_bfd_init=$ac_res
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14479 rm -f core conftest.err conftest.$ac_objext \
14480 conftest$ac_exeext
14481 if test "${ac_cv_search_bfd_init+set}" = set; then
14482 break
14484 done
14485 if test "${ac_cv_search_bfd_init+set}" = set; then
14487 else
14488 ac_cv_search_bfd_init=no
14490 rm conftest.$ac_ext
14491 LIBS=$ac_func_search_save_LIBS
14493 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14494 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14495 ac_res=$ac_cv_search_bfd_init
14496 if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14501 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14502 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14503 if test "${ac_cv_search_op_open_agent+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 ac_func_search_save_LIBS=$LIBS
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h. */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14514 /* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517 #ifdef __cplusplus
14518 extern "C"
14519 #endif
14520 char op_open_agent ();
14522 main ()
14524 return op_open_agent ();
14526 return 0;
14528 _ACEOF
14529 for ac_lib in '' opagent; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14532 else
14533 ac_res=-l$ac_lib
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541 esac
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_cv_search_op_open_agent=$ac_res
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext
14580 if test "${ac_cv_search_op_open_agent+set}" = set; then
14581 break
14583 done
14584 if test "${ac_cv_search_op_open_agent+set}" = set; then
14586 else
14587 ac_cv_search_op_open_agent=no
14589 rm conftest.$ac_ext
14590 LIBS=$ac_func_search_save_LIBS
14592 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14593 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14594 ac_res=$ac_cv_search_op_open_agent
14595 if test "$ac_res" != no; then
14596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14598 else
14600 echo "Error! You need to have libopagent around."
14601 exit -1
14605 if test "${ac_cv_header_opagent_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14607 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_opagent_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14613 else
14614 # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14616 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <opagent.h>
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_header_compiler=yes
14661 else
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_header_compiler=no
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14670 echo "${ECHO_T}$ac_header_compiler" >&6; }
14672 # Is the header present?
14673 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14674 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <opagent.h>
14682 _ACEOF
14683 if { (ac_try="$ac_cpp conftest.$ac_ext"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } >/dev/null; then
14696 if test -s conftest.err; then
14697 ac_cpp_err=$ac_c_preproc_warn_flag
14698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14699 else
14700 ac_cpp_err=
14702 else
14703 ac_cpp_err=yes
14705 if test -z "$ac_cpp_err"; then
14706 ac_header_preproc=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_preproc=no
14714 rm -f conftest.err conftest.$ac_ext
14715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14716 echo "${ECHO_T}$ac_header_preproc" >&6; }
14718 # So? What about this header?
14719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14720 yes:no: )
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14722 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14724 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14725 ac_header_preproc=yes
14727 no:yes:* )
14728 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14729 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14731 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14733 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14735 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14737 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14739 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14740 ( cat <<\_ASBOX
14741 ## ----------------------------------- ##
14742 ## Report this to llvmbugs@cs.uiuc.edu ##
14743 ## ----------------------------------- ##
14744 _ASBOX
14745 ) | sed "s/^/$as_me: WARNING: /" >&2
14747 esac
14748 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14749 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_opagent_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753 ac_cv_header_opagent_h=$ac_header_preproc
14755 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14756 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14759 if test $ac_cv_header_opagent_h = yes; then
14761 else
14763 echo "Error! You need to have opagent.h around."
14764 exit -1
14771 else
14773 USE_OPROFILE=0
14779 cat >>confdefs.h <<_ACEOF
14780 #define USE_OPROFILE $USE_OPROFILE
14781 _ACEOF
14790 ac_header_dirent=no
14791 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14792 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14793 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14794 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798 cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14805 #include <$ac_hdr>
14808 main ()
14810 if ((DIR *) 0)
14811 return 0;
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 eval "$as_ac_Header=yes"
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 eval "$as_ac_Header=no"
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14866 _ACEOF
14868 ac_header_dirent=$ac_hdr; break
14871 done
14872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14873 if test $ac_header_dirent = dirent.h; then
14874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14876 if test "${ac_cv_search_opendir+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879 ac_func_search_save_LIBS=$LIBS
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char opendir ();
14895 main ()
14897 return opendir ();
14899 return 0;
14901 _ACEOF
14902 for ac_lib in '' dir; do
14903 if test -z "$ac_lib"; then
14904 ac_res="none required"
14905 else
14906 ac_res=-l$ac_lib
14907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_search_opendir=$ac_res
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext
14953 if test "${ac_cv_search_opendir+set}" = set; then
14954 break
14956 done
14957 if test "${ac_cv_search_opendir+set}" = set; then
14959 else
14960 ac_cv_search_opendir=no
14962 rm conftest.$ac_ext
14963 LIBS=$ac_func_search_save_LIBS
14965 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14966 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14967 ac_res=$ac_cv_search_opendir
14968 if test "$ac_res" != no; then
14969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14973 else
14974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14975 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14976 if test "${ac_cv_search_opendir+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 ac_func_search_save_LIBS=$LIBS
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h. */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14987 /* Override any GCC internal prototype to avoid an error.
14988 Use char because int might match the return type of a GCC
14989 builtin and then its argument prototype would still apply. */
14990 #ifdef __cplusplus
14991 extern "C"
14992 #endif
14993 char opendir ();
14995 main ()
14997 return opendir ();
14999 return 0;
15001 _ACEOF
15002 for ac_lib in '' x; do
15003 if test -z "$ac_lib"; then
15004 ac_res="none required"
15005 else
15006 ac_res=-l$ac_lib
15007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15009 rm -f conftest.$ac_objext conftest$ac_exeext
15010 if { (ac_try="$ac_link"
15011 case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014 esac
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
15043 ac_cv_search_opendir=$ac_res
15044 else
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext
15053 if test "${ac_cv_search_opendir+set}" = set; then
15054 break
15056 done
15057 if test "${ac_cv_search_opendir+set}" = set; then
15059 else
15060 ac_cv_search_opendir=no
15062 rm conftest.$ac_ext
15063 LIBS=$ac_func_search_save_LIBS
15065 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15066 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15067 ac_res=$ac_cv_search_opendir
15068 if test "$ac_res" != no; then
15069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15075 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15076 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_mmap_anon+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080 ac_ext=c
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <sys/mman.h>
15093 #include <unistd.h>
15094 #include <fcntl.h>
15096 main ()
15098 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15100 return 0;
15102 _ACEOF
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_cv_header_mmap_anon=yes
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_cv_header_mmap_anon=no
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 ac_ext=c
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15154 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15155 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15156 if test "$ac_cv_header_mmap_anon" = yes; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_MMAP_ANONYMOUS 1
15160 _ACEOF
15164 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15165 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15166 if test "${ac_cv_header_stat_broken+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h. */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 #include <sys/types.h>
15176 #include <sys/stat.h>
15178 #if defined S_ISBLK && defined S_IFDIR
15179 # if S_ISBLK (S_IFDIR)
15180 You lose.
15181 # endif
15182 #endif
15184 #if defined S_ISBLK && defined S_IFCHR
15185 # if S_ISBLK (S_IFCHR)
15186 You lose.
15187 # endif
15188 #endif
15190 #if defined S_ISLNK && defined S_IFREG
15191 # if S_ISLNK (S_IFREG)
15192 You lose.
15193 # endif
15194 #endif
15196 #if defined S_ISSOCK && defined S_IFREG
15197 # if S_ISSOCK (S_IFREG)
15198 You lose.
15199 # endif
15200 #endif
15202 _ACEOF
15203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "You lose" >/dev/null 2>&1; then
15205 ac_cv_header_stat_broken=yes
15206 else
15207 ac_cv_header_stat_broken=no
15209 rm -f conftest*
15212 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15213 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15214 if test $ac_cv_header_stat_broken = yes; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define STAT_MACROS_BROKEN 1
15218 _ACEOF
15222 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15224 if test "${ac_cv_header_stdc+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <stdlib.h>
15234 #include <stdarg.h>
15235 #include <string.h>
15236 #include <float.h>
15239 main ()
15243 return 0;
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_cv_header_stdc=yes
15281 else
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_cv_header_stdc=no
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290 if test $ac_cv_header_stdc = yes; then
15291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <string.h>
15300 _ACEOF
15301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15302 $EGREP "memchr" >/dev/null 2>&1; then
15304 else
15305 ac_cv_header_stdc=no
15307 rm -f conftest*
15311 if test $ac_cv_header_stdc = yes; then
15312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h. */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <stdlib.h>
15321 _ACEOF
15322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15323 $EGREP "free" >/dev/null 2>&1; then
15325 else
15326 ac_cv_header_stdc=no
15328 rm -f conftest*
15332 if test $ac_cv_header_stdc = yes; then
15333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15334 if test "$cross_compiling" = yes; then
15336 else
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 #include <ctype.h>
15344 #include <stdlib.h>
15345 #if ((' ' & 0x0FF) == 0x020)
15346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15348 #else
15349 # define ISLOWER(c) \
15350 (('a' <= (c) && (c) <= 'i') \
15351 || ('j' <= (c) && (c) <= 'r') \
15352 || ('s' <= (c) && (c) <= 'z'))
15353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15354 #endif
15356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15358 main ()
15360 int i;
15361 for (i = 0; i < 256; i++)
15362 if (XOR (islower (i), ISLOWER (i))
15363 || toupper (i) != TOUPPER (i))
15364 return 2;
15365 return 0;
15367 _ACEOF
15368 rm -f conftest$ac_exeext
15369 if { (ac_try="$ac_link"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_link") 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15389 else
15390 echo "$as_me: program exited with status $ac_status" >&5
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ( exit $ac_status )
15395 ac_cv_header_stdc=no
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15404 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15405 if test $ac_cv_header_stdc = yes; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define STDC_HEADERS 1
15409 _ACEOF
15413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418 cat >conftest.$ac_ext <<_ACEOF
15419 /* confdefs.h. */
15420 _ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 #include <sys/types.h>
15425 #include <sys/wait.h>
15426 #ifndef WEXITSTATUS
15427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15428 #endif
15429 #ifndef WIFEXITED
15430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15431 #endif
15434 main ()
15436 int s;
15437 wait (&s);
15438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15440 return 0;
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_header_sys_wait_h=yes
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_header_sys_wait_h=no
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15489 if test $ac_cv_header_sys_wait_h = yes; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SYS_WAIT_H 1
15493 _ACEOF
15497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15499 if test "${ac_cv_header_time+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 cat >conftest.$ac_ext <<_ACEOF
15503 /* confdefs.h. */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <sys/types.h>
15509 #include <sys/time.h>
15510 #include <time.h>
15513 main ()
15515 if ((struct tm *) 0)
15516 return 0;
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_header_time=yes
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_header_time=no
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15567 if test $ac_cv_header_time = yes; then
15569 cat >>confdefs.h <<\_ACEOF
15570 #define TIME_WITH_SYS_TIME 1
15571 _ACEOF
15582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 ac_res=`eval echo '${'$as_ac_Header'}'`
15592 { echo "$as_me:$LINENO: result: $ac_res" >&5
15593 echo "${ECHO_T}$ac_res" >&6; }
15594 else
15595 # Is the header compilable?
15596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 $ac_includes_default
15605 #include <$ac_header>
15606 _ACEOF
15607 rm -f conftest.$ac_objext
15608 if { (ac_try="$ac_compile"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_compile") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622 { (case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_try") 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_compiler=no
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651 echo "${ECHO_T}$ac_header_compiler" >&6; }
15653 # Is the header present?
15654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h. */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <$ac_header>
15663 _ACEOF
15664 if { (ac_try="$ac_cpp conftest.$ac_ext"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680 else
15681 ac_cpp_err=
15683 else
15684 ac_cpp_err=yes
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15688 else
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_header_preproc=no
15695 rm -f conftest.err conftest.$ac_ext
15696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697 echo "${ECHO_T}$ac_header_preproc" >&6; }
15699 # So? What about this header?
15700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 yes:no: )
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15706 ac_header_preproc=yes
15708 no:yes:* )
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15721 ( cat <<\_ASBOX
15722 ## ----------------------------------- ##
15723 ## Report this to llvmbugs@cs.uiuc.edu ##
15724 ## ----------------------------------- ##
15725 _ASBOX
15726 ) | sed "s/^/$as_me: WARNING: /" >&2
15728 esac
15729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734 eval "$as_ac_Header=\$ac_header_preproc"
15736 ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738 echo "${ECHO_T}$ac_res" >&6; }
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15744 _ACEOF
15748 done
15756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767 echo "${ECHO_T}$ac_res" >&6; }
15768 else
15769 # Is the header compilable?
15770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 #include <$ac_header>
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (ac_try="$ac_compile"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h. */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15837 _ACEOF
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854 else
15855 ac_cpp_err=
15857 else
15858 ac_cpp_err=yes
15860 if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15862 else
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ac_header_preproc=no
15869 rm -f conftest.err conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871 echo "${ECHO_T}$ac_header_preproc" >&6; }
15873 # So? What about this header?
15874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 yes:no: )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15882 no:yes:* )
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895 ( cat <<\_ASBOX
15896 ## ----------------------------------- ##
15897 ## Report this to llvmbugs@cs.uiuc.edu ##
15898 ## ----------------------------------- ##
15899 _ASBOX
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15902 esac
15903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908 eval "$as_ac_Header=\$ac_header_preproc"
15910 ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15918 _ACEOF
15922 done
15926 for ac_header in utime.h windows.h
15928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937 echo "${ECHO_T}$ac_res" >&6; }
15938 else
15939 # Is the header compilable?
15940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h. */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 $ac_includes_default
15949 #include <$ac_header>
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_header_compiler=yes
15986 else
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_header_compiler=no
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16007 _ACEOF
16008 if { (ac_try="$ac_cpp conftest.$ac_ext"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16024 else
16025 ac_cpp_err=
16027 else
16028 ac_cpp_err=yes
16030 if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16032 else
16033 echo "$as_me: failed program was:" >&5
16034 sed 's/^/| /' conftest.$ac_ext >&5
16036 ac_header_preproc=no
16039 rm -f conftest.err conftest.$ac_ext
16040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16041 echo "${ECHO_T}$ac_header_preproc" >&6; }
16043 # So? What about this header?
16044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16045 yes:no: )
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16050 ac_header_preproc=yes
16052 no:yes:* )
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16065 ( cat <<\_ASBOX
16066 ## ----------------------------------- ##
16067 ## Report this to llvmbugs@cs.uiuc.edu ##
16068 ## ----------------------------------- ##
16069 _ASBOX
16070 ) | sed "s/^/$as_me: WARNING: /" >&2
16072 esac
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 _ACEOF
16092 done
16098 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 ac_res=`eval echo '${'$as_ac_Header'}'`
16108 { echo "$as_me:$LINENO: result: $ac_res" >&5
16109 echo "${ECHO_T}$ac_res" >&6; }
16110 else
16111 # Is the header compilable?
16112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 $ac_includes_default
16121 #include <$ac_header>
16122 _ACEOF
16123 rm -f conftest.$ac_objext
16124 if { (ac_try="$ac_compile"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141 esac
16142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler=yes
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_header_compiler=no
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167 echo "${ECHO_T}$ac_header_compiler" >&6; }
16169 # Is the header present?
16170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <$ac_header>
16179 _ACEOF
16180 if { (ac_try="$ac_cpp conftest.$ac_ext"
16181 case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } >/dev/null; then
16193 if test -s conftest.err; then
16194 ac_cpp_err=$ac_c_preproc_warn_flag
16195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16196 else
16197 ac_cpp_err=
16199 else
16200 ac_cpp_err=yes
16202 if test -z "$ac_cpp_err"; then
16203 ac_header_preproc=yes
16204 else
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_preproc=no
16211 rm -f conftest.err conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213 echo "${ECHO_T}$ac_header_preproc" >&6; }
16215 # So? What about this header?
16216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16217 yes:no: )
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16224 no:yes:* )
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16237 ( cat <<\_ASBOX
16238 ## ----------------------------------- ##
16239 ## Report this to llvmbugs@cs.uiuc.edu ##
16240 ## ----------------------------------- ##
16241 _ASBOX
16242 ) | sed "s/^/$as_me: WARNING: /" >&2
16244 esac
16245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 eval "$as_ac_Header=\$ac_header_preproc"
16252 ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16258 cat >>confdefs.h <<_ACEOF
16259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16260 _ACEOF
16264 done
16270 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_res=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16282 else
16283 # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_header_compiler=yes
16330 else
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_header_compiler=no
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16339 echo "${ECHO_T}$ac_header_compiler" >&6; }
16341 # Is the header present?
16342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 #include <$ac_header>
16351 _ACEOF
16352 if { (ac_try="$ac_cpp conftest.$ac_ext"
16353 case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16368 else
16369 ac_cpp_err=
16371 else
16372 ac_cpp_err=yes
16374 if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16376 else
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_preproc=no
16383 rm -f conftest.err conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6; }
16387 # So? What about this header?
16388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16389 yes:no: )
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16394 ac_header_preproc=yes
16396 no:yes:* )
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16409 ( cat <<\_ASBOX
16410 ## ----------------------------------- ##
16411 ## Report this to llvmbugs@cs.uiuc.edu ##
16412 ## ----------------------------------- ##
16413 _ASBOX
16414 ) | sed "s/^/$as_me: WARNING: /" >&2
16416 esac
16417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422 eval "$as_ac_Header=\$ac_header_preproc"
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16436 done
16439 for ac_header in valgrind/valgrind.h
16441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 ac_res=`eval echo '${'$as_ac_Header'}'`
16449 { echo "$as_me:$LINENO: result: $ac_res" >&5
16450 echo "${ECHO_T}$ac_res" >&6; }
16451 else
16452 # Is the header compilable?
16453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 #include <$ac_header>
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_header_compiler=yes
16499 else
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_header_compiler=no
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16508 echo "${ECHO_T}$ac_header_compiler" >&6; }
16510 # Is the header present?
16511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 #include <$ac_header>
16520 _ACEOF
16521 if { (ac_try="$ac_cpp conftest.$ac_ext"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16537 else
16538 ac_cpp_err=
16540 else
16541 ac_cpp_err=yes
16543 if test -z "$ac_cpp_err"; then
16544 ac_header_preproc=yes
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_preproc=no
16552 rm -f conftest.err conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16554 echo "${ECHO_T}$ac_header_preproc" >&6; }
16556 # So? What about this header?
16557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16558 yes:no: )
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16563 ac_header_preproc=yes
16565 no:yes:* )
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16578 ( cat <<\_ASBOX
16579 ## ----------------------------------- ##
16580 ## Report this to llvmbugs@cs.uiuc.edu ##
16581 ## ----------------------------------- ##
16582 _ASBOX
16583 ) | sed "s/^/$as_me: WARNING: /" >&2
16585 esac
16586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591 eval "$as_ac_Header=\$ac_header_preproc"
16593 ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601 _ACEOF
16605 done
16608 for ac_header in fenv.h
16610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 ac_res=`eval echo '${'$as_ac_Header'}'`
16618 { echo "$as_me:$LINENO: result: $ac_res" >&5
16619 echo "${ECHO_T}$ac_res" >&6; }
16620 else
16621 # Is the header compilable?
16622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16631 #include <$ac_header>
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_header_compiler=yes
16668 else
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_header_compiler=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16677 echo "${ECHO_T}$ac_header_compiler" >&6; }
16679 # Is the header present?
16680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16682 cat >conftest.$ac_ext <<_ACEOF
16683 /* confdefs.h. */
16684 _ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <$ac_header>
16689 _ACEOF
16690 if { (ac_try="$ac_cpp conftest.$ac_ext"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } >/dev/null; then
16703 if test -s conftest.err; then
16704 ac_cpp_err=$ac_c_preproc_warn_flag
16705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16706 else
16707 ac_cpp_err=
16709 else
16710 ac_cpp_err=yes
16712 if test -z "$ac_cpp_err"; then
16713 ac_header_preproc=yes
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_header_preproc=no
16721 rm -f conftest.err conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16723 echo "${ECHO_T}$ac_header_preproc" >&6; }
16725 # So? What about this header?
16726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16727 yes:no: )
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16732 ac_header_preproc=yes
16734 no:yes:* )
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16747 ( cat <<\_ASBOX
16748 ## ----------------------------------- ##
16749 ## Report this to llvmbugs@cs.uiuc.edu ##
16750 ## ----------------------------------- ##
16751 _ASBOX
16752 ) | sed "s/^/$as_me: WARNING: /" >&2
16754 esac
16755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760 eval "$as_ac_Header=\$ac_header_preproc"
16762 ac_res=`eval echo '${'$as_ac_Header'}'`
16763 { echo "$as_me:$LINENO: result: $ac_res" >&5
16764 echo "${ECHO_T}$ac_res" >&6; }
16767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16768 cat >>confdefs.h <<_ACEOF
16769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16770 _ACEOF
16774 done
16776 if test "$ENABLE_THREADS" -eq 1 ; then
16778 for ac_header in pthread.h
16780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 ac_res=`eval echo '${'$as_ac_Header'}'`
16788 { echo "$as_me:$LINENO: result: $ac_res" >&5
16789 echo "${ECHO_T}$ac_res" >&6; }
16790 else
16791 # Is the header compilable?
16792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 $ac_includes_default
16801 #include <$ac_header>
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_compile") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest.$ac_objext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_header_compiler=yes
16838 else
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 ac_header_compiler=no
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16847 echo "${ECHO_T}$ac_header_compiler" >&6; }
16849 # Is the header present?
16850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 #include <$ac_header>
16859 _ACEOF
16860 if { (ac_try="$ac_cpp conftest.$ac_ext"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16876 else
16877 ac_cpp_err=
16879 else
16880 ac_cpp_err=yes
16882 if test -z "$ac_cpp_err"; then
16883 ac_header_preproc=yes
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16888 ac_header_preproc=no
16891 rm -f conftest.err conftest.$ac_ext
16892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16893 echo "${ECHO_T}$ac_header_preproc" >&6; }
16895 # So? What about this header?
16896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16897 yes:no: )
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16902 ac_header_preproc=yes
16904 no:yes:* )
16905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16917 ( cat <<\_ASBOX
16918 ## ----------------------------------- ##
16919 ## Report this to llvmbugs@cs.uiuc.edu ##
16920 ## ----------------------------------- ##
16921 _ASBOX
16922 ) | sed "s/^/$as_me: WARNING: /" >&2
16924 esac
16925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930 eval "$as_ac_Header=\$ac_header_preproc"
16932 ac_res=`eval echo '${'$as_ac_Header'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940 _ACEOF
16941 HAVE_PTHREAD=1
16943 else
16944 HAVE_PTHREAD=0
16948 done
16950 else
16951 HAVE_PTHREAD=0
16955 if test "$llvm_cv_enable_libffi" = "yes" ; then
16958 for ac_header in ffi.h ffi/ffi.h
16960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 ac_res=`eval echo '${'$as_ac_Header'}'`
16968 { echo "$as_me:$LINENO: result: $ac_res" >&5
16969 echo "${ECHO_T}$ac_res" >&6; }
16970 else
16971 # Is the header compilable?
16972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h. */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 $ac_includes_default
16981 #include <$ac_header>
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16998 { (case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17001 esac
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_try") 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
17008 { (case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_try") 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_header_compiler=yes
17018 else
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_header_compiler=no
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17027 echo "${ECHO_T}$ac_header_compiler" >&6; }
17029 # Is the header present?
17030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 #include <$ac_header>
17039 _ACEOF
17040 if { (ac_try="$ac_cpp conftest.$ac_ext"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } >/dev/null; then
17053 if test -s conftest.err; then
17054 ac_cpp_err=$ac_c_preproc_warn_flag
17055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17056 else
17057 ac_cpp_err=
17059 else
17060 ac_cpp_err=yes
17062 if test -z "$ac_cpp_err"; then
17063 ac_header_preproc=yes
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_header_preproc=no
17071 rm -f conftest.err conftest.$ac_ext
17072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17073 echo "${ECHO_T}$ac_header_preproc" >&6; }
17075 # So? What about this header?
17076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17077 yes:no: )
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17082 ac_header_preproc=yes
17084 no:yes:* )
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17097 ( cat <<\_ASBOX
17098 ## ----------------------------------- ##
17099 ## Report this to llvmbugs@cs.uiuc.edu ##
17100 ## ----------------------------------- ##
17101 _ASBOX
17102 ) | sed "s/^/$as_me: WARNING: /" >&2
17104 esac
17105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110 eval "$as_ac_Header=\$ac_header_preproc"
17112 ac_res=`eval echo '${'$as_ac_Header'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17118 cat >>confdefs.h <<_ACEOF
17119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17120 _ACEOF
17124 done
17129 for ac_header in CrashReporterClient.h
17131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 ac_res=`eval echo '${'$as_ac_Header'}'`
17139 { echo "$as_me:$LINENO: result: $ac_res" >&5
17140 echo "${ECHO_T}$ac_res" >&6; }
17141 else
17142 # Is the header compilable?
17143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 $ac_includes_default
17152 #include <$ac_header>
17153 _ACEOF
17154 rm -f conftest.$ac_objext
17155 if { (ac_try="$ac_compile"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_compile") 2>conftest.er1
17162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest.$ac_objext'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_header_compiler=yes
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_header_compiler=no
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17198 echo "${ECHO_T}$ac_header_compiler" >&6; }
17200 # Is the header present?
17201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 #include <$ac_header>
17210 _ACEOF
17211 if { (ac_try="$ac_cpp conftest.$ac_ext"
17212 case "(($ac_try" in
17213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214 *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } >/dev/null; then
17224 if test -s conftest.err; then
17225 ac_cpp_err=$ac_c_preproc_warn_flag
17226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17227 else
17228 ac_cpp_err=
17230 else
17231 ac_cpp_err=yes
17233 if test -z "$ac_cpp_err"; then
17234 ac_header_preproc=yes
17235 else
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_preproc=no
17242 rm -f conftest.err conftest.$ac_ext
17243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17244 echo "${ECHO_T}$ac_header_preproc" >&6; }
17246 # So? What about this header?
17247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17248 yes:no: )
17249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17253 ac_header_preproc=yes
17255 no:yes:* )
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17268 ( cat <<\_ASBOX
17269 ## ----------------------------------- ##
17270 ## Report this to llvmbugs@cs.uiuc.edu ##
17271 ## ----------------------------------- ##
17272 _ASBOX
17273 ) | sed "s/^/$as_me: WARNING: /" >&2
17275 esac
17276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281 eval "$as_ac_Header=\$ac_header_preproc"
17283 ac_res=`eval echo '${'$as_ac_Header'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17289 cat >>confdefs.h <<_ACEOF
17290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17291 _ACEOF
17295 done
17301 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17302 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17303 if test "${ac_cv_huge_val_sanity+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17307 ac_ext=cpp
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17313 ac_save_CXXFLAGS=$CXXFLAGS
17314 CXXFLAGS=-pedantic
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_huge_val_sanity=yes
17317 else
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 #include <math.h>
17326 main ()
17328 double x = HUGE_VAL; return x != x;
17330 return 0;
17332 _ACEOF
17333 rm -f conftest$ac_exeext
17334 if { (ac_try="$ac_link"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_link") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17344 { (case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_try") 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_huge_val_sanity=yes
17354 else
17355 echo "$as_me: program exited with status $ac_status" >&5
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ( exit $ac_status )
17360 ac_cv_huge_val_sanity=no
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17366 CXXFLAGS=$ac_save_CXXFLAGS
17367 ac_ext=c
17368 ac_cpp='$CPP $CPPFLAGS'
17369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17375 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17376 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17377 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17380 { echo "$as_me:$LINENO: checking for pid_t" >&5
17381 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17382 if test "${ac_cv_type_pid_t+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17392 typedef pid_t ac__type_new_;
17394 main ()
17396 if ((ac__type_new_ *) 0)
17397 return 0;
17398 if (sizeof (ac__type_new_))
17399 return 0;
17401 return 0;
17403 _ACEOF
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest.$ac_objext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_type_pid_t=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_type_pid_t=no
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17449 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17450 if test $ac_cv_type_pid_t = yes; then
17452 else
17454 cat >>confdefs.h <<_ACEOF
17455 #define pid_t int
17456 _ACEOF
17460 { echo "$as_me:$LINENO: checking for size_t" >&5
17461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17462 if test "${ac_cv_type_size_t+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 typedef size_t ac__type_new_;
17474 main ()
17476 if ((ac__type_new_ *) 0)
17477 return 0;
17478 if (sizeof (ac__type_new_))
17479 return 0;
17481 return 0;
17483 _ACEOF
17484 rm -f conftest.$ac_objext
17485 if { (ac_try="$ac_compile"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_compile") 2>conftest.er1
17492 ac_status=$?
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
17509 { (case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_try") 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_type_size_t=yes
17519 else
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_cv_type_size_t=no
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17528 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17529 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17530 if test $ac_cv_type_size_t = yes; then
17532 else
17534 cat >>confdefs.h <<_ACEOF
17535 #define size_t unsigned int
17536 _ACEOF
17541 cat >>confdefs.h <<_ACEOF
17542 #define RETSIGTYPE void
17543 _ACEOF
17545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17547 if test "${ac_cv_struct_tm+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550 cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h. */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 #include <sys/types.h>
17557 #include <time.h>
17560 main ()
17562 struct tm *tp; tp->tm_sec;
17564 return 0;
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } &&
17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; } &&
17591 { ac_try='test -s conftest.$ac_objext'
17592 { (case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_try") 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_struct_tm=time.h
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_struct_tm=sys/time.h
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17613 if test $ac_cv_struct_tm = sys/time.h; then
17615 cat >>confdefs.h <<\_ACEOF
17616 #define TM_IN_SYS_TIME 1
17617 _ACEOF
17621 { echo "$as_me:$LINENO: checking for int64_t" >&5
17622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17623 if test "${ac_cv_type_int64_t+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626 cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h. */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h. */
17632 $ac_includes_default
17633 typedef int64_t ac__type_new_;
17635 main ()
17637 if ((ac__type_new_ *) 0)
17638 return 0;
17639 if (sizeof (ac__type_new_))
17640 return 0;
17642 return 0;
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_try") 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_type_int64_t=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_type_int64_t=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17691 if test $ac_cv_type_int64_t = yes; then
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_INT64_T 1
17695 _ACEOF
17698 else
17699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17700 echo "$as_me: error: Type int64_t required but not found" >&2;}
17701 { (exit 1); exit 1; }; }
17704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17706 if test "${ac_cv_type_uint64_t+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h. */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 $ac_includes_default
17716 typedef uint64_t ac__type_new_;
17718 main ()
17720 if ((ac__type_new_ *) 0)
17721 return 0;
17722 if (sizeof (ac__type_new_))
17723 return 0;
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (ac_try="$ac_compile"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_compile") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756 esac
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 ac_cv_type_uint64_t=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 ac_cv_type_uint64_t=no
17770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17774 if test $ac_cv_type_uint64_t = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define HAVE_UINT64_T 1
17778 _ACEOF
17781 else
17782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17784 if test "${ac_cv_type_u_int64_t+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 $ac_includes_default
17794 typedef u_int64_t ac__type_new_;
17796 main ()
17798 if ((ac__type_new_ *) 0)
17799 return 0;
17800 if (sizeof (ac__type_new_))
17801 return 0;
17803 return 0;
17805 _ACEOF
17806 rm -f conftest.$ac_objext
17807 if { (ac_try="$ac_compile"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_type_u_int64_t=yes
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_cv_type_u_int64_t=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17852 if test $ac_cv_type_u_int64_t = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_U_INT64_T 1
17856 _ACEOF
17859 else
17860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17862 { (exit 1); exit 1; }; }
17876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17892 #define $ac_func innocuous_$ac_func
17894 /* System header to define __stub macros and hopefully few prototypes,
17895 which can conflict with char $ac_func (); below.
17896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17897 <limits.h> exists even on freestanding compilers. */
17899 #ifdef __STDC__
17900 # include <limits.h>
17901 #else
17902 # include <assert.h>
17903 #endif
17905 #undef $ac_func
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17910 #ifdef __cplusplus
17911 extern "C"
17912 #endif
17913 char $ac_func ();
17914 /* The GNU C library defines this for functions which it implements
17915 to always fail with ENOSYS. Some functions are actually named
17916 something starting with __ and the normal name is an alias. */
17917 #if defined __stub_$ac_func || defined __stub___$ac_func
17918 choke me
17919 #endif
17922 main ()
17924 return $ac_func ();
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (ac_try="$ac_link"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_link") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } &&
17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_try") 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 eval "$as_ac_var=yes"
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17980 _ACEOF
17983 done
17989 for ac_func in powf fmodf strtof round
17991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18005 #define $ac_func innocuous_$ac_func
18007 /* System header to define __stub macros and hopefully few prototypes,
18008 which can conflict with char $ac_func (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18012 #ifdef __STDC__
18013 # include <limits.h>
18014 #else
18015 # include <assert.h>
18016 #endif
18018 #undef $ac_func
18020 /* Override any GCC internal prototype to avoid an error.
18021 Use char because int might match the return type of a GCC
18022 builtin and then its argument prototype would still apply. */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 char $ac_func ();
18027 /* The GNU C library defines this for functions which it implements
18028 to always fail with ENOSYS. Some functions are actually named
18029 something starting with __ and the normal name is an alias. */
18030 #if defined __stub_$ac_func || defined __stub___$ac_func
18031 choke me
18032 #endif
18035 main ()
18037 return $ac_func ();
18039 return 0;
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18057 { (case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_try") 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; } &&
18066 { ac_try='test -s conftest$ac_exeext'
18067 { (case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070 esac
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_try") 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 eval "$as_ac_var=yes"
18077 else
18078 echo "$as_me: failed program was:" >&5
18079 sed 's/^/| /' conftest.$ac_ext >&5
18081 eval "$as_ac_var=no"
18084 rm -f core conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18087 ac_res=`eval echo '${'$as_ac_var'}'`
18088 { echo "$as_me:$LINENO: result: $ac_res" >&5
18089 echo "${ECHO_T}$ac_res" >&6; }
18090 if test `eval echo '${'$as_ac_var'}'` = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18093 _ACEOF
18096 done
18103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119 #define $ac_func innocuous_$ac_func
18121 /* System header to define __stub macros and hopefully few prototypes,
18122 which can conflict with char $ac_func (); below.
18123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124 <limits.h> exists even on freestanding compilers. */
18126 #ifdef __STDC__
18127 # include <limits.h>
18128 #else
18129 # include <assert.h>
18130 #endif
18132 #undef $ac_func
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 char $ac_func ();
18141 /* The GNU C library defines this for functions which it implements
18142 to always fail with ENOSYS. Some functions are actually named
18143 something starting with __ and the normal name is an alias. */
18144 #if defined __stub_$ac_func || defined __stub___$ac_func
18145 choke me
18146 #endif
18149 main ()
18151 return $ac_func ();
18153 return 0;
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (ac_try="$ac_link"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18161 esac
18162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_link") 2>conftest.er1
18164 ac_status=$?
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
18170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } &&
18180 { ac_try='test -s conftest$ac_exeext'
18181 { (case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_try") 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 eval "$as_ac_var=yes"
18191 else
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 eval "$as_ac_var=no"
18198 rm -f core conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18201 ac_res=`eval echo '${'$as_ac_var'}'`
18202 { echo "$as_me:$LINENO: result: $ac_res" >&5
18203 echo "${ECHO_T}$ac_res" >&6; }
18204 if test `eval echo '${'$as_ac_var'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18207 _ACEOF
18210 done
18215 for ac_func in isatty mkdtemp mkstemp
18217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18231 #define $ac_func innocuous_$ac_func
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18238 #ifdef __STDC__
18239 # include <limits.h>
18240 #else
18241 # include <assert.h>
18242 #endif
18244 #undef $ac_func
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char $ac_func ();
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18257 choke me
18258 #endif
18261 main ()
18263 return $ac_func ();
18265 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 eval "$as_ac_var=yes"
18303 else
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 eval "$as_ac_var=no"
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18313 ac_res=`eval echo '${'$as_ac_var'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_var'}'` = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18319 _ACEOF
18322 done
18330 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h. */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18346 #define $ac_func innocuous_$ac_func
18348 /* System header to define __stub macros and hopefully few prototypes,
18349 which can conflict with char $ac_func (); below.
18350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18351 <limits.h> exists even on freestanding compilers. */
18353 #ifdef __STDC__
18354 # include <limits.h>
18355 #else
18356 # include <assert.h>
18357 #endif
18359 #undef $ac_func
18361 /* Override any GCC internal prototype to avoid an error.
18362 Use char because int might match the return type of a GCC
18363 builtin and then its argument prototype would still apply. */
18364 #ifdef __cplusplus
18365 extern "C"
18366 #endif
18367 char $ac_func ();
18368 /* The GNU C library defines this for functions which it implements
18369 to always fail with ENOSYS. Some functions are actually named
18370 something starting with __ and the normal name is an alias. */
18371 #if defined __stub_$ac_func || defined __stub___$ac_func
18372 choke me
18373 #endif
18376 main ()
18378 return $ac_func ();
18380 return 0;
18382 _ACEOF
18383 rm -f conftest.$ac_objext conftest$ac_exeext
18384 if { (ac_try="$ac_link"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_link") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18398 { (case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_try") 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try='test -s conftest$ac_exeext'
18408 { (case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_try") 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 eval "$as_ac_var=yes"
18418 else
18419 echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 eval "$as_ac_var=no"
18425 rm -f core conftest.err conftest.$ac_objext \
18426 conftest$ac_exeext conftest.$ac_ext
18428 ac_res=`eval echo '${'$as_ac_var'}'`
18429 { echo "$as_me:$LINENO: result: $ac_res" >&5
18430 echo "${ECHO_T}$ac_res" >&6; }
18431 if test `eval echo '${'$as_ac_var'}'` = yes; then
18432 cat >>confdefs.h <<_ACEOF
18433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18434 _ACEOF
18437 done
18443 for ac_func in strerror strerror_r strerror_s setenv
18445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h. */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18459 #define $ac_func innocuous_$ac_func
18461 /* System header to define __stub macros and hopefully few prototypes,
18462 which can conflict with char $ac_func (); below.
18463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464 <limits.h> exists even on freestanding compilers. */
18466 #ifdef __STDC__
18467 # include <limits.h>
18468 #else
18469 # include <assert.h>
18470 #endif
18472 #undef $ac_func
18474 /* Override any GCC internal prototype to avoid an error.
18475 Use char because int might match the return type of a GCC
18476 builtin and then its argument prototype would still apply. */
18477 #ifdef __cplusplus
18478 extern "C"
18479 #endif
18480 char $ac_func ();
18481 /* The GNU C library defines this for functions which it implements
18482 to always fail with ENOSYS. Some functions are actually named
18483 something starting with __ and the normal name is an alias. */
18484 #if defined __stub_$ac_func || defined __stub___$ac_func
18485 choke me
18486 #endif
18489 main ()
18491 return $ac_func ();
18493 return 0;
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
18504 ac_status=$?
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 eval "$as_ac_var=yes"
18531 else
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 eval "$as_ac_var=no"
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18541 ac_res=`eval echo '${'$as_ac_var'}'`
18542 { echo "$as_me:$LINENO: result: $ac_res" >&5
18543 echo "${ECHO_T}$ac_res" >&6; }
18544 if test `eval echo '${'$as_ac_var'}'` = yes; then
18545 cat >>confdefs.h <<_ACEOF
18546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18547 _ACEOF
18550 done
18556 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18572 #define $ac_func innocuous_$ac_func
18574 /* System header to define __stub macros and hopefully few prototypes,
18575 which can conflict with char $ac_func (); below.
18576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577 <limits.h> exists even on freestanding compilers. */
18579 #ifdef __STDC__
18580 # include <limits.h>
18581 #else
18582 # include <assert.h>
18583 #endif
18585 #undef $ac_func
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18590 #ifdef __cplusplus
18591 extern "C"
18592 #endif
18593 char $ac_func ();
18594 /* The GNU C library defines this for functions which it implements
18595 to always fail with ENOSYS. Some functions are actually named
18596 something starting with __ and the normal name is an alias. */
18597 #if defined __stub_$ac_func || defined __stub___$ac_func
18598 choke me
18599 #endif
18602 main ()
18604 return $ac_func ();
18606 return 0;
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest$ac_exeext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 eval "$as_ac_var=yes"
18644 else
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 eval "$as_ac_var=no"
18651 rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18654 ac_res=`eval echo '${'$as_ac_var'}'`
18655 { echo "$as_me:$LINENO: result: $ac_res" >&5
18656 echo "${ECHO_T}$ac_res" >&6; }
18657 if test `eval echo '${'$as_ac_var'}'` = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 _ACEOF
18663 done
18669 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18698 #undef $ac_func
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char $ac_func ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18711 choke me
18712 #endif
18715 main ()
18717 return $ac_func ();
18719 return 0;
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest$ac_exeext'
18747 { (case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_try") 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 eval "$as_ac_var=yes"
18757 else
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 eval "$as_ac_var=no"
18764 rm -f core conftest.err conftest.$ac_objext \
18765 conftest$ac_exeext conftest.$ac_ext
18767 ac_res=`eval echo '${'$as_ac_var'}'`
18768 { echo "$as_me:$LINENO: result: $ac_res" >&5
18769 echo "${ECHO_T}$ac_res" >&6; }
18770 if test `eval echo '${'$as_ac_var'}'` = yes; then
18771 cat >>confdefs.h <<_ACEOF
18772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18773 _ACEOF
18776 done
18778 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18779 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18780 if test "${llvm_cv_c_printf_a+set}" = set; then
18781 echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783 ac_ext=c
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18789 if test "$cross_compiling" = yes; then
18790 llvmac_cv_c_printf_a=no
18791 else
18792 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 #include <stdio.h>
18801 #include <stdlib.h>
18804 main ()
18807 volatile double A, B;
18808 char Buffer[100];
18809 A = 1;
18810 A /= 10.0;
18811 sprintf(Buffer, "%a", A);
18812 B = atof(Buffer);
18813 if (A != B)
18814 return (1);
18815 if (A != 0x1.999999999999ap-4)
18816 return (1);
18817 return (0);
18819 return 0;
18821 _ACEOF
18822 rm -f conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18833 { (case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_try") 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 llvm_cv_c_printf_a=yes
18843 else
18844 echo "$as_me: program exited with status $ac_status" >&5
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ( exit $ac_status )
18849 llvmac_cv_c_printf_a=no
18851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18855 ac_ext=c
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18863 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18864 if test "$llvm_cv_c_printf_a" = "yes"; then
18866 cat >>confdefs.h <<\_ACEOF
18867 #define HAVE_PRINTF_A 1
18868 _ACEOF
18873 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18874 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18875 if test "${ac_cv_func_rand48+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 ac_ext=cpp
18879 ac_cpp='$CXXCPP $CPPFLAGS'
18880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 #include <stdlib.h>
18892 main ()
18894 srand48(0);lrand48();drand48();
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest.$ac_objext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_cv_func_rand48=yes
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_cv_func_rand48=no
18941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 ac_ext=c
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18949 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18950 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18952 if test "$ac_cv_func_rand48" = "yes" ; then
18954 cat >>confdefs.h <<\_ACEOF
18955 #define HAVE_RAND48 1
18956 _ACEOF
18962 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18963 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18964 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967 ac_ext=cpp
18968 ac_cpp='$CXXCPP $CPPFLAGS'
18969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973 cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h. */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18979 #include <math.h>
18981 main ()
18983 float f; isnan(f);
18985 return 0;
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest.$ac_objext'
19013 { (case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_try") 2>&5
19019 ac_status=$?
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 ac_cv_func_isnan_in_math_h=yes
19023 else
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 ac_cv_func_isnan_in_math_h=no
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031 ac_ext=c
19032 ac_cpp='$CPP $CPPFLAGS'
19033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19038 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19039 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19042 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_ISNAN_IN_MATH_H 1
19046 _ACEOF
19050 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19051 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19052 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055 ac_ext=cpp
19056 ac_cpp='$CXXCPP $CPPFLAGS'
19057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <cmath>
19069 main ()
19071 float f; isnan(f);
19073 return 0;
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_compile") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
19090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094 esac
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_cv_func_isnan_in_cmath=yes
19111 else
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 ac_cv_func_isnan_in_cmath=no
19118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19119 ac_ext=c
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19126 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19127 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19129 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_ISNAN_IN_CMATH 1
19133 _ACEOF
19137 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19138 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19139 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142 ac_ext=cpp
19143 ac_cpp='$CXXCPP $CPPFLAGS'
19144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148 cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h. */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <cmath>
19156 main ()
19158 float f; std::isnan(f);
19160 return 0;
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_compile") 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181 esac
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; } &&
19187 { ac_try='test -s conftest.$ac_objext'
19188 { (case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_func_std_isnan_in_cmath=yes
19198 else
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_func_std_isnan_in_cmath=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 ac_ext=c
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19213 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19214 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19216 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_STD_ISNAN_IN_CMATH 1
19220 _ACEOF
19225 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19226 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19227 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 ac_ext=cpp
19231 ac_cpp='$CXXCPP $CPPFLAGS'
19232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <math.h>
19244 main ()
19246 float f; isinf(f);
19248 return 0;
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279 esac
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 ac_cv_func_isinf_in_math_h=yes
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_func_isinf_in_math_h=no
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19294 ac_ext=c
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19302 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19304 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE_ISINF_IN_MATH_H 1
19308 _ACEOF
19312 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19313 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19314 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317 ac_ext=cpp
19318 ac_cpp='$CXXCPP $CPPFLAGS'
19319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <cmath>
19331 main ()
19333 float f; isinf(f);
19335 return 0;
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_func_isinf_in_cmath=yes
19373 else
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_isinf_in_cmath=no
19380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 ac_ext=c
19382 ac_cpp='$CPP $CPPFLAGS'
19383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19388 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19389 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19391 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19393 cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_ISINF_IN_CMATH 1
19395 _ACEOF
19399 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19400 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19401 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 ac_ext=cpp
19405 ac_cpp='$CXXCPP $CPPFLAGS'
19406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 #include <cmath>
19418 main ()
19420 float f; std::isinf(f)}
19422 return 0;
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19440 { (case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_try") 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19459 ac_cv_func_std_isinf_in_cmath=yes
19460 else
19461 echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19464 ac_cv_func_std_isinf_in_cmath=no
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 ac_ext=c
19469 ac_cpp='$CPP $CPPFLAGS'
19470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19475 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19476 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19478 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_STD_ISINF_IN_CMATH 1
19482 _ACEOF
19486 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19487 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19488 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491 ac_ext=cpp
19492 ac_cpp='$CXXCPP $CPPFLAGS'
19493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19497 cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h. */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <ieeefp.h>
19505 main ()
19507 float f; finite(f);
19509 return 0;
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (ac_try="$ac_compile"
19514 case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_compile") 2>conftest.er1
19520 ac_status=$?
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
19526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest.$ac_objext'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540 esac
19541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_cv_func_finite_in_ieeefp_h=yes
19547 else
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_func_finite_in_ieeefp_h=no
19554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555 ac_ext=c
19556 ac_cpp='$CPP $CPPFLAGS'
19557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19562 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19563 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19565 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_FINITE_IN_IEEEFP_H 1
19569 _ACEOF
19575 if test "$llvm_cv_platform_type" = "Unix" ; then
19578 for ac_header in stdlib.h unistd.h
19580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 ac_res=`eval echo '${'$as_ac_Header'}'`
19588 { echo "$as_me:$LINENO: result: $ac_res" >&5
19589 echo "${ECHO_T}$ac_res" >&6; }
19590 else
19591 # Is the header compilable?
19592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 $ac_includes_default
19601 #include <$ac_header>
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_compile") 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler=yes
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_header_compiler=no
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19647 echo "${ECHO_T}$ac_header_compiler" >&6; }
19649 # Is the header present?
19650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <$ac_header>
19659 _ACEOF
19660 if { (ac_try="$ac_cpp conftest.$ac_ext"
19661 case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19667 ac_status=$?
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } >/dev/null; then
19673 if test -s conftest.err; then
19674 ac_cpp_err=$ac_c_preproc_warn_flag
19675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19676 else
19677 ac_cpp_err=
19679 else
19680 ac_cpp_err=yes
19682 if test -z "$ac_cpp_err"; then
19683 ac_header_preproc=yes
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_header_preproc=no
19691 rm -f conftest.err conftest.$ac_ext
19692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19693 echo "${ECHO_T}$ac_header_preproc" >&6; }
19695 # So? What about this header?
19696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19697 yes:no: )
19698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19702 ac_header_preproc=yes
19704 no:yes:* )
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19717 ( cat <<\_ASBOX
19718 ## ----------------------------------- ##
19719 ## Report this to llvmbugs@cs.uiuc.edu ##
19720 ## ----------------------------------- ##
19721 _ASBOX
19722 ) | sed "s/^/$as_me: WARNING: /" >&2
19724 esac
19725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 eval "$as_ac_Header=\$ac_header_preproc"
19732 ac_res=`eval echo '${'$as_ac_Header'}'`
19733 { echo "$as_me:$LINENO: result: $ac_res" >&5
19734 echo "${ECHO_T}$ac_res" >&6; }
19737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19738 cat >>confdefs.h <<_ACEOF
19739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19740 _ACEOF
19744 done
19747 for ac_func in getpagesize
19749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 else
19755 cat >conftest.$ac_ext <<_ACEOF
19756 /* confdefs.h. */
19757 _ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19763 #define $ac_func innocuous_$ac_func
19765 /* System header to define __stub macros and hopefully few prototypes,
19766 which can conflict with char $ac_func (); below.
19767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19768 <limits.h> exists even on freestanding compilers. */
19770 #ifdef __STDC__
19771 # include <limits.h>
19772 #else
19773 # include <assert.h>
19774 #endif
19776 #undef $ac_func
19778 /* Override any GCC internal prototype to avoid an error.
19779 Use char because int might match the return type of a GCC
19780 builtin and then its argument prototype would still apply. */
19781 #ifdef __cplusplus
19782 extern "C"
19783 #endif
19784 char $ac_func ();
19785 /* The GNU C library defines this for functions which it implements
19786 to always fail with ENOSYS. Some functions are actually named
19787 something starting with __ and the normal name is an alias. */
19788 #if defined __stub_$ac_func || defined __stub___$ac_func
19789 choke me
19790 #endif
19793 main ()
19795 return $ac_func ();
19797 return 0;
19799 _ACEOF
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (ac_try="$ac_link"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_link") 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest$ac_exeext'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828 esac
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 eval "$as_ac_var=yes"
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 eval "$as_ac_var=no"
19842 rm -f core conftest.err conftest.$ac_objext \
19843 conftest$ac_exeext conftest.$ac_ext
19845 ac_res=`eval echo '${'$as_ac_var'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851 _ACEOF
19854 done
19856 { echo "$as_me:$LINENO: checking for working mmap" >&5
19857 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861 if test "$cross_compiling" = yes; then
19862 ac_cv_func_mmap_fixed_mapped=no
19863 else
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 $ac_includes_default
19871 /* malloc might have been renamed as rpl_malloc. */
19872 #undef malloc
19874 /* Thanks to Mike Haertel and Jim Avera for this test.
19875 Here is a matrix of mmap possibilities:
19876 mmap private not fixed
19877 mmap private fixed at somewhere currently unmapped
19878 mmap private fixed at somewhere already mapped
19879 mmap shared not fixed
19880 mmap shared fixed at somewhere currently unmapped
19881 mmap shared fixed at somewhere already mapped
19882 For private mappings, we should verify that changes cannot be read()
19883 back from the file, nor mmap's back from the file at a different
19884 address. (There have been systems where private was not correctly
19885 implemented like the infamous i386 svr4.0, and systems where the
19886 VM page cache was not coherent with the file system buffer cache
19887 like early versions of FreeBSD and possibly contemporary NetBSD.)
19888 For shared mappings, we should conversely verify that changes get
19889 propagated back to all the places they're supposed to be.
19891 Grep wants private fixed already mapped.
19892 The main things grep needs to know about mmap are:
19893 * does it exist and is it safe to write into the mmap'd area
19894 * how to use it (BSD variants) */
19896 #include <fcntl.h>
19897 #include <sys/mman.h>
19899 #if !STDC_HEADERS && !HAVE_STDLIB_H
19900 char *malloc ();
19901 #endif
19903 /* This mess was copied from the GNU getpagesize.h. */
19904 #if !HAVE_GETPAGESIZE
19905 /* Assume that all systems that can run configure have sys/param.h. */
19906 # if !HAVE_SYS_PARAM_H
19907 # define HAVE_SYS_PARAM_H 1
19908 # endif
19910 # ifdef _SC_PAGESIZE
19911 # define getpagesize() sysconf(_SC_PAGESIZE)
19912 # else /* no _SC_PAGESIZE */
19913 # if HAVE_SYS_PARAM_H
19914 # include <sys/param.h>
19915 # ifdef EXEC_PAGESIZE
19916 # define getpagesize() EXEC_PAGESIZE
19917 # else /* no EXEC_PAGESIZE */
19918 # ifdef NBPG
19919 # define getpagesize() NBPG * CLSIZE
19920 # ifndef CLSIZE
19921 # define CLSIZE 1
19922 # endif /* no CLSIZE */
19923 # else /* no NBPG */
19924 # ifdef NBPC
19925 # define getpagesize() NBPC
19926 # else /* no NBPC */
19927 # ifdef PAGESIZE
19928 # define getpagesize() PAGESIZE
19929 # endif /* PAGESIZE */
19930 # endif /* no NBPC */
19931 # endif /* no NBPG */
19932 # endif /* no EXEC_PAGESIZE */
19933 # else /* no HAVE_SYS_PARAM_H */
19934 # define getpagesize() 8192 /* punt totally */
19935 # endif /* no HAVE_SYS_PARAM_H */
19936 # endif /* no _SC_PAGESIZE */
19938 #endif /* no HAVE_GETPAGESIZE */
19941 main ()
19943 char *data, *data2, *data3;
19944 int i, pagesize;
19945 int fd;
19947 pagesize = getpagesize ();
19949 /* First, make a file with some known garbage in it. */
19950 data = (char *) malloc (pagesize);
19951 if (!data)
19952 return 1;
19953 for (i = 0; i < pagesize; ++i)
19954 *(data + i) = rand ();
19955 umask (0);
19956 fd = creat ("conftest.mmap", 0600);
19957 if (fd < 0)
19958 return 1;
19959 if (write (fd, data, pagesize) != pagesize)
19960 return 1;
19961 close (fd);
19963 /* Next, try to mmap the file at a fixed address which already has
19964 something else allocated at it. If we can, also make sure that
19965 we see the same garbage. */
19966 fd = open ("conftest.mmap", O_RDWR);
19967 if (fd < 0)
19968 return 1;
19969 data2 = (char *) malloc (2 * pagesize);
19970 if (!data2)
19971 return 1;
19972 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19973 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19975 return 1;
19976 for (i = 0; i < pagesize; ++i)
19977 if (*(data + i) != *(data2 + i))
19978 return 1;
19980 /* Finally, make sure that changes to the mapped area do not
19981 percolate back to the file as seen by read(). (This is a bug on
19982 some variants of i386 svr4.0.) */
19983 for (i = 0; i < pagesize; ++i)
19984 *(data2 + i) = *(data2 + i) + 1;
19985 data3 = (char *) malloc (pagesize);
19986 if (!data3)
19987 return 1;
19988 if (read (fd, data3, pagesize) != pagesize)
19989 return 1;
19990 for (i = 0; i < pagesize; ++i)
19991 if (*(data + i) != *(data3 + i))
19992 return 1;
19993 close (fd);
19994 return 0;
19996 _ACEOF
19997 rm -f conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_link") 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_func_mmap_fixed_mapped=yes
20018 else
20019 echo "$as_me: program exited with status $ac_status" >&5
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 ( exit $ac_status )
20024 ac_cv_func_mmap_fixed_mapped=no
20026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20032 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20033 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20035 cat >>confdefs.h <<\_ACEOF
20036 #define HAVE_MMAP 1
20037 _ACEOF
20040 rm -f conftest.mmap
20042 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20043 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20044 if test "${ac_cv_func_mmap_file+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20046 else
20047 ac_ext=c
20048 ac_cpp='$CPP $CPPFLAGS'
20049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053 if test "$cross_compiling" = yes; then
20054 ac_cv_func_mmap_file=no
20055 else
20056 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20064 #include <sys/types.h>
20065 #include <sys/mman.h>
20066 #include <fcntl.h>
20069 main ()
20072 int fd;
20073 fd = creat ("foo",0777);
20074 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20075 unlink ("foo");
20076 return (fd != (int) MAP_FAILED);
20078 return 0;
20080 _ACEOF
20081 rm -f conftest$ac_exeext
20082 if { (ac_try="$ac_link"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_link") 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_func_mmap_file=yes
20102 else
20103 echo "$as_me: program exited with status $ac_status" >&5
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ( exit $ac_status )
20108 ac_cv_func_mmap_file=no
20110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20114 ac_ext=c
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20122 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20123 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20124 if test "$ac_cv_func_mmap_file" = yes; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_MMAP_FILE
20128 _ACEOF
20130 MMAP_FILE=yes
20134 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20135 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20136 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 if test "$llvm_cv_os_type" = "Interix" ; then
20140 ac_cv_need_dev_zero_for_mmap=yes
20141 else
20142 ac_cv_need_dev_zero_for_mmap=no
20146 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20147 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20148 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20150 cat >>confdefs.h <<\_ACEOF
20151 #define NEED_DEV_ZERO_FOR_MMAP 1
20152 _ACEOF
20156 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20157 then
20158 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20159 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20161 if test "$ac_cv_func_mmap_file" = "no"
20162 then
20163 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20164 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20168 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20169 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20170 ac_ext=cpp
20171 ac_cpp='$CXXCPP $CPPFLAGS'
20172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182 int main() {
20183 volatile unsigned long val = 1;
20184 __sync_synchronize();
20185 __sync_val_compare_and_swap(&val, 1, 0);
20186 __sync_add_and_fetch(&val, 1);
20187 __sync_sub_and_fetch(&val, 1);
20188 return 0;
20191 _ACEOF
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_link") 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207 { (case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_try") 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest$ac_exeext'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 ac_ext=c
20227 ac_cpp='$CPP $CPPFLAGS'
20228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20232 { echo "$as_me:$LINENO: result: yes" >&5
20233 echo "${ECHO_T}yes" >&6; }
20235 cat >>confdefs.h <<\_ACEOF
20236 #define LLVM_MULTITHREADED 1
20237 _ACEOF
20239 else
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 { echo "$as_me:$LINENO: result: no" >&5
20244 echo "${ECHO_T}no" >&6; }
20246 cat >>confdefs.h <<\_ACEOF
20247 #define LLVM_MULTITHREADED 0
20248 _ACEOF
20250 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20251 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20258 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20259 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20260 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20261 if test "${llvm_cv_linux_mixed+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264 ac_ext=c
20265 ac_cpp='$CPP $CPPFLAGS'
20266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 #ifndef __x86_64__
20277 error: Not x86-64 even if uname says so!
20278 #endif
20281 main ()
20285 return 0;
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_try") 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 llvm_cv_linux_mixed=no
20323 else
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 llvm_cv_linux_mixed=yes
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 ac_ext=c
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20340 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20342 if test "$llvm_cv_linux_mixed" = "yes"; then
20343 llvm_cv_target_arch="x86"
20344 ARCH="x86"
20349 for ac_func in __dso_handle
20351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20352 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h. */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20365 #define $ac_func innocuous_$ac_func
20367 /* System header to define __stub macros and hopefully few prototypes,
20368 which can conflict with char $ac_func (); below.
20369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20370 <limits.h> exists even on freestanding compilers. */
20372 #ifdef __STDC__
20373 # include <limits.h>
20374 #else
20375 # include <assert.h>
20376 #endif
20378 #undef $ac_func
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20383 #ifdef __cplusplus
20384 extern "C"
20385 #endif
20386 char $ac_func ();
20387 /* The GNU C library defines this for functions which it implements
20388 to always fail with ENOSYS. Some functions are actually named
20389 something starting with __ and the normal name is an alias. */
20390 #if defined __stub_$ac_func || defined __stub___$ac_func
20391 choke me
20392 #endif
20395 main ()
20397 return $ac_func ();
20399 return 0;
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_try") 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 eval "$as_ac_var=yes"
20437 else
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 eval "$as_ac_var=no"
20444 rm -f core conftest.err conftest.$ac_objext \
20445 conftest$ac_exeext conftest.$ac_ext
20447 ac_res=`eval echo '${'$as_ac_var'}'`
20448 { echo "$as_me:$LINENO: result: $ac_res" >&5
20449 echo "${ECHO_T}$ac_res" >&6; }
20450 if test `eval echo '${'$as_ac_var'}'` = yes; then
20451 cat >>confdefs.h <<_ACEOF
20452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453 _ACEOF
20456 done
20459 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20460 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20461 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 llvm_cv_llvmgcc_sanity="no"
20465 if test -x "$LLVMGCC" ; then
20466 cp /dev/null conftest.c
20467 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20468 grep 'target datalayout =' > /dev/null 2>&1
20469 if test $? -eq 0 ; then
20470 llvm_cv_llvmgcc_sanity="yes"
20472 rm conftest.c
20475 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20476 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20478 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20479 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20480 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20481 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20482 LLVMCC1=$llvmcc1path
20484 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20485 LLVMCC1PLUS=$llvmcc1pluspath
20487 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20488 LLVMGCCDIR=$llvmgccdir
20490 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20491 LLVMGCC_LANGS=$llvmgcclangs
20493 { echo "$as_me:$LINENO: result: ok" >&5
20494 echo "${ECHO_T}ok" >&6; }
20497 SHLIBEXT=$libltdl_cv_shlibext
20500 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20503 # Translate the various configuration directories and other basic
20504 # information into substitutions that will end up in Makefile.config.in
20505 # that these configured values can be used by the makefiles
20506 if test "${prefix}" = "NONE" ; then
20507 prefix="/usr/local"
20509 eval LLVM_PREFIX="${prefix}";
20510 eval LLVM_BINDIR="${prefix}/bin";
20511 eval LLVM_LIBDIR="${prefix}/lib";
20512 eval LLVM_DATADIR="${prefix}/share/llvm";
20513 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20514 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20515 eval LLVM_INCLUDEDIR="${prefix}/include";
20516 eval LLVM_INFODIR="${prefix}/info";
20517 eval LLVM_MANDIR="${prefix}/man";
20518 LLVM_CONFIGTIME=`date`
20530 # Place the various directores into the config.h file as #defines so that we
20531 # can know about the installation paths within LLVM.
20533 cat >>confdefs.h <<_ACEOF
20534 #define LLVM_PREFIX "$LLVM_PREFIX"
20535 _ACEOF
20538 cat >>confdefs.h <<_ACEOF
20539 #define LLVM_BINDIR "$LLVM_BINDIR"
20540 _ACEOF
20543 cat >>confdefs.h <<_ACEOF
20544 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20545 _ACEOF
20548 cat >>confdefs.h <<_ACEOF
20549 #define LLVM_DATADIR "$LLVM_DATADIR"
20550 _ACEOF
20553 cat >>confdefs.h <<_ACEOF
20554 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20555 _ACEOF
20558 cat >>confdefs.h <<_ACEOF
20559 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20560 _ACEOF
20563 cat >>confdefs.h <<_ACEOF
20564 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20565 _ACEOF
20568 cat >>confdefs.h <<_ACEOF
20569 #define LLVM_INFODIR "$LLVM_INFODIR"
20570 _ACEOF
20573 cat >>confdefs.h <<_ACEOF
20574 #define LLVM_MANDIR "$LLVM_MANDIR"
20575 _ACEOF
20578 cat >>confdefs.h <<_ACEOF
20579 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20580 _ACEOF
20583 cat >>confdefs.h <<_ACEOF
20584 #define LLVM_HOSTTRIPLE "$host"
20585 _ACEOF
20588 # Determine which bindings to build.
20589 if test "$BINDINGS_TO_BUILD" = auto ; then
20590 BINDINGS_TO_BUILD=""
20591 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20592 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20595 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20598 # This isn't really configurey, but it avoids having to repeat the list in
20599 # other files.
20600 ALL_BINDINGS=ocaml
20603 # Do any work necessary to ensure that bindings have what they need.
20604 binding_prereqs_failed=0
20605 for a_binding in $BINDINGS_TO_BUILD ; do
20606 case "$a_binding" in
20607 ocaml)
20608 if test "x$OCAMLC" = x ; then
20609 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20610 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20611 binding_prereqs_failed=1
20613 if test "x$OCAMLDEP" = x ; then
20614 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20615 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20616 binding_prereqs_failed=1
20618 if test "x$OCAMLOPT" = x ; then
20619 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20620 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20622 if test "x$with_ocaml_libdir" != xauto ; then
20623 OCAML_LIBDIR=$with_ocaml_libdir
20625 else
20626 ocaml_stdlib="`"$OCAMLC" -where`"
20627 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20628 then
20629 # ocaml stdlib is beneath our prefix; use stdlib
20630 OCAML_LIBDIR=$ocaml_stdlib
20632 else
20633 # ocaml stdlib is outside our prefix; use libdir/ocaml
20634 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20639 esac
20640 done
20641 if test "$binding_prereqs_failed" = 1 ; then
20642 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20643 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20644 { (exit 1); exit 1; }; }
20647 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20648 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20649 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 else
20652 ac_ext=cpp
20653 ac_cpp='$CXXCPP $CPPFLAGS'
20654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658 oldcxxflags="$CXXFLAGS"
20659 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h. */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20668 main ()
20672 return 0;
20674 _ACEOF
20675 rm -f conftest.$ac_objext
20676 if { (ac_try="$ac_compile"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
20683 ac_status=$?
20684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20690 { (case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_try") 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
20700 { (case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_try") 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 llvm_cv_cxx_visibility_inlines_hidden=yes
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 llvm_cv_cxx_visibility_inlines_hidden=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 CXXFLAGS="$oldcxxflags"
20719 ac_ext=c
20720 ac_cpp='$CPP $CPPFLAGS'
20721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20728 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20729 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20730 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20732 else
20733 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20738 if test "$llvm_cv_link_use_r" = "yes" ; then
20739 RPATH="-Wl,-R"
20740 else
20741 RPATH="-Wl,-rpath"
20745 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20746 RDYNAMIC="-Wl,-export-dynamic"
20747 else
20748 RDYNAMIC=""
20753 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20760 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20762 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20764 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20766 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20768 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20771 ac_config_files="$ac_config_files Makefile.config"
20774 ac_config_files="$ac_config_files llvm.spec"
20777 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20780 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20783 ac_config_commands="$ac_config_commands setup"
20785 ac_config_commands="$ac_config_commands Makefile"
20788 ac_config_commands="$ac_config_commands Makefile.common"
20791 ac_config_commands="$ac_config_commands examples/Makefile"
20794 ac_config_commands="$ac_config_commands lib/Makefile"
20797 ac_config_commands="$ac_config_commands runtime/Makefile"
20800 ac_config_commands="$ac_config_commands test/Makefile"
20803 ac_config_commands="$ac_config_commands test/Makefile.tests"
20806 ac_config_commands="$ac_config_commands unittests/Makefile"
20809 ac_config_commands="$ac_config_commands tools/Makefile"
20812 ac_config_commands="$ac_config_commands utils/Makefile"
20815 ac_config_commands="$ac_config_commands projects/Makefile"
20818 ac_config_commands="$ac_config_commands bindings/Makefile"
20821 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20825 cat >confcache <<\_ACEOF
20826 # This file is a shell script that caches the results of configure
20827 # tests run on this system so they can be shared between configure
20828 # scripts and configure runs, see configure's option --config-cache.
20829 # It is not useful on other systems. If it contains results you don't
20830 # want to keep, you may remove or edit it.
20832 # config.status only pays attention to the cache file if you give it
20833 # the --recheck option to rerun configure.
20835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20837 # following values.
20839 _ACEOF
20841 # The following way of writing the cache mishandles newlines in values,
20842 # but we know of no workaround that is simple, portable, and efficient.
20843 # So, we kill variables containing newlines.
20844 # Ultrix sh set writes to stderr and can't be redirected directly,
20845 # and sets the high bit in the cache file unless we assign to the vars.
20847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20848 eval ac_val=\$$ac_var
20849 case $ac_val in #(
20850 *${as_nl}*)
20851 case $ac_var in #(
20852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20854 esac
20855 case $ac_var in #(
20856 _ | IFS | as_nl) ;; #(
20857 *) $as_unset $ac_var ;;
20858 esac ;;
20859 esac
20860 done
20862 (set) 2>&1 |
20863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20864 *${as_nl}ac_space=\ *)
20865 # `set' does not quote correctly, so add quotes (double-quote
20866 # substitution turns \\\\ into \\, and sed turns \\ into \).
20867 sed -n \
20868 "s/'/'\\\\''/g;
20869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20870 ;; #(
20872 # `set' quotes correctly as required by POSIX, so do not add quotes.
20873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20875 esac |
20876 sort
20878 sed '
20879 /^ac_cv_env_/b end
20880 t clear
20881 :clear
20882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20883 t end
20884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20885 :end' >>confcache
20886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20887 if test -w "$cache_file"; then
20888 test "x$cache_file" != "x/dev/null" &&
20889 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20890 echo "$as_me: updating cache $cache_file" >&6;}
20891 cat confcache >$cache_file
20892 else
20893 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20897 rm -f confcache
20899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20900 # Let make expand exec_prefix.
20901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20903 DEFS=-DHAVE_CONFIG_H
20905 ac_libobjs=
20906 ac_ltlibobjs=
20907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20908 # 1. Remove the extension, and $U if already installed.
20909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20910 ac_i=`echo "$ac_i" | sed "$ac_script"`
20911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20912 # will be set to the directory where LIBOBJS objects are built.
20913 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20914 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20915 done
20916 LIBOBJS=$ac_libobjs
20918 LTLIBOBJS=$ac_ltlibobjs
20921 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20922 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20923 Usually this means the macro was only invoked conditionally." >&5
20924 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20925 Usually this means the macro was only invoked conditionally." >&2;}
20926 { (exit 1); exit 1; }; }
20928 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20929 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20930 Usually this means the macro was only invoked conditionally." >&5
20931 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20932 Usually this means the macro was only invoked conditionally." >&2;}
20933 { (exit 1); exit 1; }; }
20936 : ${CONFIG_STATUS=./config.status}
20937 ac_clean_files_save=$ac_clean_files
20938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20941 cat >$CONFIG_STATUS <<_ACEOF
20942 #! $SHELL
20943 # Generated by $as_me.
20944 # Run this file to recreate the current configuration.
20945 # Compiler output produced by configure, useful for debugging
20946 # configure, is in config.log if it exists.
20948 debug=false
20949 ac_cs_recheck=false
20950 ac_cs_silent=false
20951 SHELL=\${CONFIG_SHELL-$SHELL}
20952 _ACEOF
20954 cat >>$CONFIG_STATUS <<\_ACEOF
20955 ## --------------------- ##
20956 ## M4sh Initialization. ##
20957 ## --------------------- ##
20959 # Be Bourne compatible
20960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20961 emulate sh
20962 NULLCMD=:
20963 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20964 # is contrary to our usage. Disable this feature.
20965 alias -g '${1+"$@"}'='"$@"'
20966 setopt NO_GLOB_SUBST
20967 else
20968 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20970 BIN_SH=xpg4; export BIN_SH # for Tru64
20971 DUALCASE=1; export DUALCASE # for MKS sh
20974 # PATH needs CR
20975 # Avoid depending upon Character Ranges.
20976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20979 as_cr_digits='0123456789'
20980 as_cr_alnum=$as_cr_Letters$as_cr_digits
20982 # The user is always right.
20983 if test "${PATH_SEPARATOR+set}" != set; then
20984 echo "#! /bin/sh" >conf$$.sh
20985 echo "exit 0" >>conf$$.sh
20986 chmod +x conf$$.sh
20987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20988 PATH_SEPARATOR=';'
20989 else
20990 PATH_SEPARATOR=:
20992 rm -f conf$$.sh
20995 # Support unset when possible.
20996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20997 as_unset=unset
20998 else
20999 as_unset=false
21003 # IFS
21004 # We need space, tab and new line, in precisely that order. Quoting is
21005 # there to prevent editors from complaining about space-tab.
21006 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21007 # splitting by setting IFS to empty value.)
21008 as_nl='
21010 IFS=" "" $as_nl"
21012 # Find who we are. Look in the path if we contain no directory separator.
21013 case $0 in
21014 *[\\/]* ) as_myself=$0 ;;
21015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21018 IFS=$as_save_IFS
21019 test -z "$as_dir" && as_dir=.
21020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21021 done
21022 IFS=$as_save_IFS
21025 esac
21026 # We did not find ourselves, most probably we were run as `sh COMMAND'
21027 # in which case we are not to be found in the path.
21028 if test "x$as_myself" = x; then
21029 as_myself=$0
21031 if test ! -f "$as_myself"; then
21032 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21033 { (exit 1); exit 1; }
21036 # Work around bugs in pre-3.0 UWIN ksh.
21037 for as_var in ENV MAIL MAILPATH
21038 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21039 done
21040 PS1='$ '
21041 PS2='> '
21042 PS4='+ '
21044 # NLS nuisances.
21045 for as_var in \
21046 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21047 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21048 LC_TELEPHONE LC_TIME
21050 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21051 eval $as_var=C; export $as_var
21052 else
21053 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21055 done
21057 # Required to use basename.
21058 if expr a : '\(a\)' >/dev/null 2>&1 &&
21059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21060 as_expr=expr
21061 else
21062 as_expr=false
21065 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21066 as_basename=basename
21067 else
21068 as_basename=false
21072 # Name of the executable.
21073 as_me=`$as_basename -- "$0" ||
21074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21075 X"$0" : 'X\(//\)$' \| \
21076 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21077 echo X/"$0" |
21078 sed '/^.*\/\([^/][^/]*\)\/*$/{
21079 s//\1/
21082 /^X\/\(\/\/\)$/{
21083 s//\1/
21086 /^X\/\(\/\).*/{
21087 s//\1/
21090 s/.*/./; q'`
21092 # CDPATH.
21093 $as_unset CDPATH
21097 as_lineno_1=$LINENO
21098 as_lineno_2=$LINENO
21099 test "x$as_lineno_1" != "x$as_lineno_2" &&
21100 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21103 # uniformly replaced by the line number. The first 'sed' inserts a
21104 # line-number line after each line using $LINENO; the second 'sed'
21105 # does the real work. The second script uses 'N' to pair each
21106 # line-number line with the line containing $LINENO, and appends
21107 # trailing '-' during substitution so that $LINENO is not a special
21108 # case at line end.
21109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21110 # scripts with optimization help from Paolo Bonzini. Blame Lee
21111 # E. McMahon (1931-1989) for sed's syntax. :-)
21112 sed -n '
21114 /[$]LINENO/=
21115 ' <$as_myself |
21116 sed '
21117 s/[$]LINENO.*/&-/
21118 t lineno
21120 :lineno
21122 :loop
21123 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21124 t loop
21125 s/-\n.*//
21126 ' >$as_me.lineno &&
21127 chmod +x "$as_me.lineno" ||
21128 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21129 { (exit 1); exit 1; }; }
21131 # Don't try to exec as it changes $[0], causing all sort of problems
21132 # (the dirname of $[0] is not the place where we might find the
21133 # original and so on. Autoconf is especially sensitive to this).
21134 . "./$as_me.lineno"
21135 # Exit status is that of the last command.
21136 exit
21140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21141 as_dirname=dirname
21142 else
21143 as_dirname=false
21146 ECHO_C= ECHO_N= ECHO_T=
21147 case `echo -n x` in
21148 -n*)
21149 case `echo 'x\c'` in
21150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21151 *) ECHO_C='\c';;
21152 esac;;
21154 ECHO_N='-n';;
21155 esac
21157 if expr a : '\(a\)' >/dev/null 2>&1 &&
21158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21159 as_expr=expr
21160 else
21161 as_expr=false
21164 rm -f conf$$ conf$$.exe conf$$.file
21165 if test -d conf$$.dir; then
21166 rm -f conf$$.dir/conf$$.file
21167 else
21168 rm -f conf$$.dir
21169 mkdir conf$$.dir
21171 echo >conf$$.file
21172 if ln -s conf$$.file conf$$ 2>/dev/null; then
21173 as_ln_s='ln -s'
21174 # ... but there are two gotchas:
21175 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21176 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21177 # In both cases, we have to default to `cp -p'.
21178 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21179 as_ln_s='cp -p'
21180 elif ln conf$$.file conf$$ 2>/dev/null; then
21181 as_ln_s=ln
21182 else
21183 as_ln_s='cp -p'
21185 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21186 rmdir conf$$.dir 2>/dev/null
21188 if mkdir -p . 2>/dev/null; then
21189 as_mkdir_p=:
21190 else
21191 test -d ./-p && rmdir ./-p
21192 as_mkdir_p=false
21195 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21196 # systems may use methods other than mode bits to determine executability.
21197 cat >conf$$.file <<_ASEOF
21198 #! /bin/sh
21199 exit 0
21200 _ASEOF
21201 chmod +x conf$$.file
21202 if test -x conf$$.file >/dev/null 2>&1; then
21203 as_executable_p="test -x"
21204 else
21205 as_executable_p=:
21207 rm -f conf$$.file
21209 # Sed expression to map a string onto a valid CPP name.
21210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21212 # Sed expression to map a string onto a valid variable name.
21213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21216 exec 6>&1
21218 # Save the log message, to keep $[0] and so on meaningful, and to
21219 # report actual input values of CONFIG_FILES etc. instead of their
21220 # values after options handling.
21221 ac_log="
21222 This file was extended by llvm $as_me 2.9svn, which was
21223 generated by GNU Autoconf 2.60. Invocation command line was
21225 CONFIG_FILES = $CONFIG_FILES
21226 CONFIG_HEADERS = $CONFIG_HEADERS
21227 CONFIG_LINKS = $CONFIG_LINKS
21228 CONFIG_COMMANDS = $CONFIG_COMMANDS
21229 $ $0 $@
21231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21234 _ACEOF
21236 cat >>$CONFIG_STATUS <<_ACEOF
21237 # Files that config.status was made for.
21238 config_files="$ac_config_files"
21239 config_headers="$ac_config_headers"
21240 config_commands="$ac_config_commands"
21242 _ACEOF
21244 cat >>$CONFIG_STATUS <<\_ACEOF
21245 ac_cs_usage="\
21246 \`$as_me' instantiates files from templates according to the
21247 current configuration.
21249 Usage: $0 [OPTIONS] [FILE]...
21251 -h, --help print this help, then exit
21252 -V, --version print version number, then exit
21253 -q, --quiet do not print progress messages
21254 -d, --debug don't remove temporary files
21255 --recheck update $as_me by reconfiguring in the same conditions
21256 --file=FILE[:TEMPLATE]
21257 instantiate the configuration file FILE
21258 --header=FILE[:TEMPLATE]
21259 instantiate the configuration header FILE
21261 Configuration files:
21262 $config_files
21264 Configuration headers:
21265 $config_headers
21267 Configuration commands:
21268 $config_commands
21270 Report bugs to <bug-autoconf@gnu.org>."
21272 _ACEOF
21273 cat >>$CONFIG_STATUS <<_ACEOF
21274 ac_cs_version="\\
21275 llvm config.status 2.9svn
21276 configured by $0, generated by GNU Autoconf 2.60,
21277 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21279 Copyright (C) 2006 Free Software Foundation, Inc.
21280 This config.status script is free software; the Free Software Foundation
21281 gives unlimited permission to copy, distribute and modify it."
21283 ac_pwd='$ac_pwd'
21284 srcdir='$srcdir'
21285 INSTALL='$INSTALL'
21286 _ACEOF
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 # If no file are specified by the user, then we need to provide default
21290 # value. By we need to know if files were specified by the user.
21291 ac_need_defaults=:
21292 while test $# != 0
21294 case $1 in
21295 --*=*)
21296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21298 ac_shift=:
21301 ac_option=$1
21302 ac_optarg=$2
21303 ac_shift=shift
21305 esac
21307 case $ac_option in
21308 # Handling of the options.
21309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21310 ac_cs_recheck=: ;;
21311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21312 echo "$ac_cs_version"; exit ;;
21313 --debug | --debu | --deb | --de | --d | -d )
21314 debug=: ;;
21315 --file | --fil | --fi | --f )
21316 $ac_shift
21317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21318 ac_need_defaults=false;;
21319 --header | --heade | --head | --hea )
21320 $ac_shift
21321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21322 ac_need_defaults=false;;
21323 --he | --h)
21324 # Conflict between --help and --header
21325 { echo "$as_me: error: ambiguous option: $1
21326 Try \`$0 --help' for more information." >&2
21327 { (exit 1); exit 1; }; };;
21328 --help | --hel | -h )
21329 echo "$ac_cs_usage"; exit ;;
21330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21332 ac_cs_silent=: ;;
21334 # This is an error.
21335 -*) { echo "$as_me: error: unrecognized option: $1
21336 Try \`$0 --help' for more information." >&2
21337 { (exit 1); exit 1; }; } ;;
21339 *) ac_config_targets="$ac_config_targets $1"
21340 ac_need_defaults=false ;;
21342 esac
21343 shift
21344 done
21346 ac_configure_extra_args=
21348 if $ac_cs_silent; then
21349 exec 6>/dev/null
21350 ac_configure_extra_args="$ac_configure_extra_args --silent"
21353 _ACEOF
21354 cat >>$CONFIG_STATUS <<_ACEOF
21355 if \$ac_cs_recheck; then
21356 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21357 CONFIG_SHELL=$SHELL
21358 export CONFIG_SHELL
21359 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21362 _ACEOF
21363 cat >>$CONFIG_STATUS <<\_ACEOF
21364 exec 5>>config.log
21366 echo
21367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21368 ## Running $as_me. ##
21369 _ASBOX
21370 echo "$ac_log"
21371 } >&5
21373 _ACEOF
21374 cat >>$CONFIG_STATUS <<_ACEOF
21376 # INIT-COMMANDS
21378 llvm_src="${srcdir}"
21380 _ACEOF
21382 cat >>$CONFIG_STATUS <<\_ACEOF
21384 # Handling of arguments.
21385 for ac_config_target in $ac_config_targets
21387 case $ac_config_target in
21388 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21389 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21390 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21391 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21392 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21393 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21394 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21395 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21396 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21397 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21398 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21399 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21400 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21401 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21402 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21403 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21404 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21405 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21406 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21407 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21408 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21409 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21410 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21411 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21412 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21414 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21415 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21416 { (exit 1); exit 1; }; };;
21417 esac
21418 done
21421 # If the user did not use the arguments to specify the items to instantiate,
21422 # then the envvar interface is used. Set only those that are not.
21423 # We use the long form for the default assignment because of an extremely
21424 # bizarre bug on SunOS 4.1.3.
21425 if $ac_need_defaults; then
21426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21431 # Have a temporary directory for convenience. Make it in the build tree
21432 # simply because there is no reason against having it here, and in addition,
21433 # creating and moving files from /tmp can sometimes cause problems.
21434 # Hook for its removal unless debugging.
21435 # Note that there is a small window in which the directory will not be cleaned:
21436 # after its creation but before its name has been assigned to `$tmp'.
21437 $debug ||
21439 tmp=
21440 trap 'exit_status=$?
21441 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21443 trap '{ (exit 1); exit 1; }' 1 2 13 15
21445 # Create a (secure) tmp directory for tmp files.
21448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21449 test -n "$tmp" && test -d "$tmp"
21450 } ||
21452 tmp=./conf$$-$RANDOM
21453 (umask 077 && mkdir "$tmp")
21454 } ||
21456 echo "$me: cannot create a temporary directory in ." >&2
21457 { (exit 1); exit 1; }
21461 # Set up the sed scripts for CONFIG_FILES section.
21464 # No need to generate the scripts if there are no CONFIG_FILES.
21465 # This happens for instance when ./config.status config.h
21466 if test -n "$CONFIG_FILES"; then
21468 _ACEOF
21472 ac_delim='%!_!# '
21473 for ac_last_try in false false false false false :; do
21474 cat >conf$$subs.sed <<_ACEOF
21475 SHELL!$SHELL$ac_delim
21476 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21477 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21478 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21479 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21480 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21481 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21482 exec_prefix!$exec_prefix$ac_delim
21483 prefix!$prefix$ac_delim
21484 program_transform_name!$program_transform_name$ac_delim
21485 bindir!$bindir$ac_delim
21486 sbindir!$sbindir$ac_delim
21487 libexecdir!$libexecdir$ac_delim
21488 datarootdir!$datarootdir$ac_delim
21489 datadir!$datadir$ac_delim
21490 sysconfdir!$sysconfdir$ac_delim
21491 sharedstatedir!$sharedstatedir$ac_delim
21492 localstatedir!$localstatedir$ac_delim
21493 includedir!$includedir$ac_delim
21494 oldincludedir!$oldincludedir$ac_delim
21495 docdir!$docdir$ac_delim
21496 infodir!$infodir$ac_delim
21497 htmldir!$htmldir$ac_delim
21498 dvidir!$dvidir$ac_delim
21499 pdfdir!$pdfdir$ac_delim
21500 psdir!$psdir$ac_delim
21501 libdir!$libdir$ac_delim
21502 localedir!$localedir$ac_delim
21503 mandir!$mandir$ac_delim
21504 DEFS!$DEFS$ac_delim
21505 ECHO_C!$ECHO_C$ac_delim
21506 ECHO_N!$ECHO_N$ac_delim
21507 ECHO_T!$ECHO_T$ac_delim
21508 LIBS!$LIBS$ac_delim
21509 build_alias!$build_alias$ac_delim
21510 host_alias!$host_alias$ac_delim
21511 target_alias!$target_alias$ac_delim
21512 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21513 subdirs!$subdirs$ac_delim
21514 build!$build$ac_delim
21515 build_cpu!$build_cpu$ac_delim
21516 build_vendor!$build_vendor$ac_delim
21517 build_os!$build_os$ac_delim
21518 host!$host$ac_delim
21519 host_cpu!$host_cpu$ac_delim
21520 host_vendor!$host_vendor$ac_delim
21521 host_os!$host_os$ac_delim
21522 target!$target$ac_delim
21523 target_cpu!$target_cpu$ac_delim
21524 target_vendor!$target_vendor$ac_delim
21525 target_os!$target_os$ac_delim
21526 OS!$OS$ac_delim
21527 HOST_OS!$HOST_OS$ac_delim
21528 TARGET_OS!$TARGET_OS$ac_delim
21529 LINKALL!$LINKALL$ac_delim
21530 NOLINKALL!$NOLINKALL$ac_delim
21531 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21532 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21533 ARCH!$ARCH$ac_delim
21534 ENDIAN!$ENDIAN$ac_delim
21535 CC!$CC$ac_delim
21536 CFLAGS!$CFLAGS$ac_delim
21537 LDFLAGS!$LDFLAGS$ac_delim
21538 CPPFLAGS!$CPPFLAGS$ac_delim
21539 ac_ct_CC!$ac_ct_CC$ac_delim
21540 EXEEXT!$EXEEXT$ac_delim
21541 OBJEXT!$OBJEXT$ac_delim
21542 CPP!$CPP$ac_delim
21543 GREP!$GREP$ac_delim
21544 EGREP!$EGREP$ac_delim
21545 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21546 BUILD_CC!$BUILD_CC$ac_delim
21547 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21548 BUILD_CXX!$BUILD_CXX$ac_delim
21549 CVSBUILD!$CVSBUILD$ac_delim
21550 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21551 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21552 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21553 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21554 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21555 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21556 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21557 JIT!$JIT$ac_delim
21558 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21559 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21560 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21561 ENABLE_PIC!$ENABLE_PIC$ac_delim
21562 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21563 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21564 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21565 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21566 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21567 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21568 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21569 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21570 CLANGPATH!$CLANGPATH$ac_delim
21571 CLANGXXPATH!$CLANGXXPATH$ac_delim
21572 _ACEOF
21574 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21575 break
21576 elif $ac_last_try; then
21577 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21578 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21579 { (exit 1); exit 1; }; }
21580 else
21581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21583 done
21585 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21586 if test -n "$ac_eof"; then
21587 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21588 ac_eof=`expr $ac_eof + 1`
21591 cat >>$CONFIG_STATUS <<_ACEOF
21592 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21594 _ACEOF
21595 sed '
21596 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21597 s/^/s,@/; s/!/@,|#_!!_#|/
21600 s/'"$ac_delim"'$/,g/; t
21601 s/$/\\/; p
21602 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21603 ' >>$CONFIG_STATUS <conf$$subs.sed
21604 rm -f conf$$subs.sed
21605 cat >>$CONFIG_STATUS <<_ACEOF
21606 CEOF$ac_eof
21607 _ACEOF
21610 ac_delim='%!_!# '
21611 for ac_last_try in false false false false false :; do
21612 cat >conf$$subs.sed <<_ACEOF
21613 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21614 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21615 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21616 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21617 CXX!$CXX$ac_delim
21618 CXXFLAGS!$CXXFLAGS$ac_delim
21619 ac_ct_CXX!$ac_ct_CXX$ac_delim
21620 NM!$NM$ac_delim
21621 ifGNUmake!$ifGNUmake$ac_delim
21622 LN_S!$LN_S$ac_delim
21623 CMP!$CMP$ac_delim
21624 CP!$CP$ac_delim
21625 DATE!$DATE$ac_delim
21626 FIND!$FIND$ac_delim
21627 MKDIR!$MKDIR$ac_delim
21628 MV!$MV$ac_delim
21629 RANLIB!$RANLIB$ac_delim
21630 AR!$AR$ac_delim
21631 RM!$RM$ac_delim
21632 SED!$SED$ac_delim
21633 TAR!$TAR$ac_delim
21634 BINPWD!$BINPWD$ac_delim
21635 GRAPHVIZ!$GRAPHVIZ$ac_delim
21636 DOT!$DOT$ac_delim
21637 FDP!$FDP$ac_delim
21638 NEATO!$NEATO$ac_delim
21639 TWOPI!$TWOPI$ac_delim
21640 CIRCO!$CIRCO$ac_delim
21641 GV!$GV$ac_delim
21642 DOTTY!$DOTTY$ac_delim
21643 PERL!$PERL$ac_delim
21644 HAVE_PERL!$HAVE_PERL$ac_delim
21645 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21646 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21647 INSTALL_DATA!$INSTALL_DATA$ac_delim
21648 BZIP2!$BZIP2$ac_delim
21649 CAT!$CAT$ac_delim
21650 DOXYGEN!$DOXYGEN$ac_delim
21651 GROFF!$GROFF$ac_delim
21652 GZIP!$GZIP$ac_delim
21653 POD2HTML!$POD2HTML$ac_delim
21654 POD2MAN!$POD2MAN$ac_delim
21655 PDFROFF!$PDFROFF$ac_delim
21656 RUNTEST!$RUNTEST$ac_delim
21657 TCLSH!$TCLSH$ac_delim
21658 ZIP!$ZIP$ac_delim
21659 OCAMLC!$OCAMLC$ac_delim
21660 OCAMLOPT!$OCAMLOPT$ac_delim
21661 OCAMLDEP!$OCAMLDEP$ac_delim
21662 OCAMLDOC!$OCAMLDOC$ac_delim
21663 GAS!$GAS$ac_delim
21664 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21665 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21666 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21667 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21668 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21669 LIBADD_DL!$LIBADD_DL$ac_delim
21670 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21671 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21672 LLVMGCC!$LLVMGCC$ac_delim
21673 LLVMGXX!$LLVMGXX$ac_delim
21674 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21675 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21676 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21677 USE_UDIS86!$USE_UDIS86$ac_delim
21678 USE_OPROFILE!$USE_OPROFILE$ac_delim
21679 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21680 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21681 MMAP_FILE!$MMAP_FILE$ac_delim
21682 LLVMCC1!$LLVMCC1$ac_delim
21683 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21684 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21685 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21686 SHLIBEXT!$SHLIBEXT$ac_delim
21687 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21688 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21689 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21690 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21691 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21692 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21693 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21694 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21695 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21696 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21697 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21698 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21699 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21700 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21701 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21702 RPATH!$RPATH$ac_delim
21703 RDYNAMIC!$RDYNAMIC$ac_delim
21704 LIBOBJS!$LIBOBJS$ac_delim
21705 LTLIBOBJS!$LTLIBOBJS$ac_delim
21706 _ACEOF
21708 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21709 break
21710 elif $ac_last_try; then
21711 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21713 { (exit 1); exit 1; }; }
21714 else
21715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21717 done
21719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21720 if test -n "$ac_eof"; then
21721 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21722 ac_eof=`expr $ac_eof + 1`
21725 cat >>$CONFIG_STATUS <<_ACEOF
21726 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21728 _ACEOF
21729 sed '
21730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21731 s/^/s,@/; s/!/@,|#_!!_#|/
21734 s/'"$ac_delim"'$/,g/; t
21735 s/$/\\/; p
21736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21737 ' >>$CONFIG_STATUS <conf$$subs.sed
21738 rm -f conf$$subs.sed
21739 cat >>$CONFIG_STATUS <<_ACEOF
21740 :end
21741 s/|#_!!_#|//g
21742 CEOF$ac_eof
21743 _ACEOF
21746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21748 # trailing colons and then remove the whole line if VPATH becomes empty
21749 # (actually we leave an empty line to preserve line numbers).
21750 if test "x$srcdir" = x.; then
21751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21752 s/:*\$(srcdir):*/:/
21753 s/:*\${srcdir}:*/:/
21754 s/:*@srcdir@:*/:/
21755 s/^\([^=]*=[ ]*\):*/\1/
21756 s/:*$//
21757 s/^[^=]*=[ ]*$//
21761 cat >>$CONFIG_STATUS <<\_ACEOF
21762 fi # test -n "$CONFIG_FILES"
21765 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21767 case $ac_tag in
21768 :[FHLC]) ac_mode=$ac_tag; continue;;
21769 esac
21770 case $ac_mode$ac_tag in
21771 :[FHL]*:*);;
21772 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21773 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21774 { (exit 1); exit 1; }; };;
21775 :[FH]-) ac_tag=-:-;;
21776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21777 esac
21778 ac_save_IFS=$IFS
21779 IFS=:
21780 set x $ac_tag
21781 IFS=$ac_save_IFS
21782 shift
21783 ac_file=$1
21784 shift
21786 case $ac_mode in
21787 :L) ac_source=$1;;
21788 :[FH])
21789 ac_file_inputs=
21790 for ac_f
21792 case $ac_f in
21793 -) ac_f="$tmp/stdin";;
21794 *) # Look for the file first in the build tree, then in the source tree
21795 # (if the path is not absolute). The absolute path cannot be DOS-style,
21796 # because $ac_f cannot contain `:'.
21797 test -f "$ac_f" ||
21798 case $ac_f in
21799 [\\/$]*) false;;
21800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21801 esac ||
21802 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21803 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21804 { (exit 1); exit 1; }; };;
21805 esac
21806 ac_file_inputs="$ac_file_inputs $ac_f"
21807 done
21809 # Let's still pretend it is `configure' which instantiates (i.e., don't
21810 # use $as_me), people would be surprised to read:
21811 # /* config.h. Generated by config.status. */
21812 configure_input="Generated from "`IFS=:
21813 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21814 if test x"$ac_file" != x-; then
21815 configure_input="$ac_file. $configure_input"
21816 { echo "$as_me:$LINENO: creating $ac_file" >&5
21817 echo "$as_me: creating $ac_file" >&6;}
21820 case $ac_tag in
21821 *:-:* | *:-) cat >"$tmp/stdin";;
21822 esac
21824 esac
21826 ac_dir=`$as_dirname -- "$ac_file" ||
21827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21828 X"$ac_file" : 'X\(//\)[^/]' \| \
21829 X"$ac_file" : 'X\(//\)$' \| \
21830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21831 echo X"$ac_file" |
21832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21833 s//\1/
21836 /^X\(\/\/\)[^/].*/{
21837 s//\1/
21840 /^X\(\/\/\)$/{
21841 s//\1/
21844 /^X\(\/\).*/{
21845 s//\1/
21848 s/.*/./; q'`
21849 { as_dir="$ac_dir"
21850 case $as_dir in #(
21851 -*) as_dir=./$as_dir;;
21852 esac
21853 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21854 as_dirs=
21855 while :; do
21856 case $as_dir in #(
21857 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21858 *) as_qdir=$as_dir;;
21859 esac
21860 as_dirs="'$as_qdir' $as_dirs"
21861 as_dir=`$as_dirname -- "$as_dir" ||
21862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863 X"$as_dir" : 'X\(//\)[^/]' \| \
21864 X"$as_dir" : 'X\(//\)$' \| \
21865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21866 echo X"$as_dir" |
21867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21868 s//\1/
21871 /^X\(\/\/\)[^/].*/{
21872 s//\1/
21875 /^X\(\/\/\)$/{
21876 s//\1/
21879 /^X\(\/\).*/{
21880 s//\1/
21883 s/.*/./; q'`
21884 test -d "$as_dir" && break
21885 done
21886 test -z "$as_dirs" || eval "mkdir $as_dirs"
21887 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21888 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21889 { (exit 1); exit 1; }; }; }
21890 ac_builddir=.
21892 case "$ac_dir" in
21893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21896 # A ".." for each directory in $ac_dir_suffix.
21897 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21898 case $ac_top_builddir_sub in
21899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21901 esac ;;
21902 esac
21903 ac_abs_top_builddir=$ac_pwd
21904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21905 # for backward compatibility:
21906 ac_top_builddir=$ac_top_build_prefix
21908 case $srcdir in
21909 .) # We are building in place.
21910 ac_srcdir=.
21911 ac_top_srcdir=$ac_top_builddir_sub
21912 ac_abs_top_srcdir=$ac_pwd ;;
21913 [\\/]* | ?:[\\/]* ) # Absolute name.
21914 ac_srcdir=$srcdir$ac_dir_suffix;
21915 ac_top_srcdir=$srcdir
21916 ac_abs_top_srcdir=$srcdir ;;
21917 *) # Relative name.
21918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21919 ac_top_srcdir=$ac_top_build_prefix$srcdir
21920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21921 esac
21922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21925 case $ac_mode in
21928 # CONFIG_FILE
21931 case $INSTALL in
21932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21933 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21934 esac
21935 _ACEOF
21937 cat >>$CONFIG_STATUS <<\_ACEOF
21938 # If the template does not know about datarootdir, expand it.
21939 # FIXME: This hack should be removed a few years after 2.60.
21940 ac_datarootdir_hack=; ac_datarootdir_seen=
21942 case `sed -n '/datarootdir/ {
21946 /@datadir@/p
21947 /@docdir@/p
21948 /@infodir@/p
21949 /@localedir@/p
21950 /@mandir@/p
21951 ' $ac_file_inputs` in
21952 *datarootdir*) ac_datarootdir_seen=yes;;
21953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21954 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21955 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21956 _ACEOF
21957 cat >>$CONFIG_STATUS <<_ACEOF
21958 ac_datarootdir_hack='
21959 s&@datadir@&$datadir&g
21960 s&@docdir@&$docdir&g
21961 s&@infodir@&$infodir&g
21962 s&@localedir@&$localedir&g
21963 s&@mandir@&$mandir&g
21964 s&\\\${datarootdir}&$datarootdir&g' ;;
21965 esac
21966 _ACEOF
21968 # Neutralize VPATH when `$srcdir' = `.'.
21969 # Shell code in configure.ac might set extrasub.
21970 # FIXME: do we really want to maintain this feature?
21971 cat >>$CONFIG_STATUS <<_ACEOF
21972 sed "$ac_vpsub
21973 $extrasub
21974 _ACEOF
21975 cat >>$CONFIG_STATUS <<\_ACEOF
21977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21978 s&@configure_input@&$configure_input&;t t
21979 s&@top_builddir@&$ac_top_builddir_sub&;t t
21980 s&@srcdir@&$ac_srcdir&;t t
21981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21982 s&@top_srcdir@&$ac_top_srcdir&;t t
21983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21984 s&@builddir@&$ac_builddir&;t t
21985 s&@abs_builddir@&$ac_abs_builddir&;t t
21986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21987 s&@INSTALL@&$ac_INSTALL&;t t
21988 $ac_datarootdir_hack
21989 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21992 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21993 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21994 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21995 which seems to be undefined. Please make sure it is defined." >&5
21996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21997 which seems to be undefined. Please make sure it is defined." >&2;}
21999 rm -f "$tmp/stdin"
22000 case $ac_file in
22001 -) cat "$tmp/out"; rm -f "$tmp/out";;
22002 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22003 esac
22007 # CONFIG_HEADER
22009 _ACEOF
22011 # Transform confdefs.h into a sed script `conftest.defines', that
22012 # substitutes the proper values into config.h.in to produce config.h.
22013 rm -f conftest.defines conftest.tail
22014 # First, append a space to every undef/define line, to ease matching.
22015 echo 's/$/ /' >conftest.defines
22016 # Then, protect against being on the right side of a sed subst, or in
22017 # an unquoted here document, in config.status. If some macros were
22018 # called several times there might be several #defines for the same
22019 # symbol, which is useless. But do not sort them, since the last
22020 # AC_DEFINE must be honored.
22021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22024 # PARAMS is the parameter list in the macro definition--in most cases, it's
22025 # just an empty string.
22026 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22027 ac_dB='\\)[ (].*,\\1define\\2'
22028 ac_dC=' '
22029 ac_dD=' ,'
22031 uniq confdefs.h |
22032 sed -n '
22033 t rset
22034 :rset
22035 s/^[ ]*#[ ]*define[ ][ ]*//
22036 t ok
22039 s/[\\&,]/\\&/g
22040 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22041 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22042 ' >>conftest.defines
22044 # Remove the space that was appended to ease matching.
22045 # Then replace #undef with comments. This is necessary, for
22046 # example, in the case of _POSIX_SOURCE, which is predefined and required
22047 # on some systems where configure will not decide to define it.
22048 # (The regexp can be short, since the line contains either #define or #undef.)
22049 echo 's/ $//
22050 s,^[ #]*u.*,/* & */,' >>conftest.defines
22052 # Break up conftest.defines:
22053 ac_max_sed_lines=50
22055 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22056 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22057 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22058 # et cetera.
22059 ac_in='$ac_file_inputs'
22060 ac_out='"$tmp/out1"'
22061 ac_nxt='"$tmp/out2"'
22063 while :
22065 # Write a here document:
22066 cat >>$CONFIG_STATUS <<_ACEOF
22067 # First, check the format of the line:
22068 cat >"\$tmp/defines.sed" <<\\CEOF
22069 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22070 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22072 :def
22073 _ACEOF
22074 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22075 echo 'CEOF
22076 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22077 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22078 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22079 grep . conftest.tail >/dev/null || break
22080 rm -f conftest.defines
22081 mv conftest.tail conftest.defines
22082 done
22083 rm -f conftest.defines conftest.tail
22085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22086 cat >>$CONFIG_STATUS <<\_ACEOF
22087 if test x"$ac_file" != x-; then
22088 echo "/* $configure_input */" >"$tmp/config.h"
22089 cat "$ac_result" >>"$tmp/config.h"
22090 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22092 echo "$as_me: $ac_file is unchanged" >&6;}
22093 else
22094 rm -f $ac_file
22095 mv "$tmp/config.h" $ac_file
22097 else
22098 echo "/* $configure_input */"
22099 cat "$ac_result"
22101 rm -f "$tmp/out12"
22104 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22105 echo "$as_me: executing $ac_file commands" >&6;}
22107 esac
22110 case $ac_file$ac_mode in
22111 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22112 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22113 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22114 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22115 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22116 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22117 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22118 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22119 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22120 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22121 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22122 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22123 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22124 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22125 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22126 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22127 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22128 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22129 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22130 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22131 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22132 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22133 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22134 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22135 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22136 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22138 esac
22139 done # for ac_tag
22142 { (exit 0); exit 0; }
22143 _ACEOF
22144 chmod +x $CONFIG_STATUS
22145 ac_clean_files=$ac_clean_files_save
22148 # configure is writing to config.log, and then calls config.status.
22149 # config.status does its own redirection, appending to config.log.
22150 # Unfortunately, on DOS this fails, as config.log is still kept open
22151 # by configure, so config.status won't be able to write to it; its
22152 # output is simply discarded. So we exec the FD to /dev/null,
22153 # effectively closing config.log, so it can be properly (re)opened and
22154 # appended to by config.status. When coming back to configure, we
22155 # need to make the FD available again.
22156 if test "$no_create" != yes; then
22157 ac_cs_success=:
22158 ac_config_status_args=
22159 test "$silent" = yes &&
22160 ac_config_status_args="$ac_config_status_args --quiet"
22161 exec 5>/dev/null
22162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22163 exec 5>>config.log
22164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22165 # would make configure fail if this is the last instruction.
22166 $ac_cs_success || { (exit 1); exit 1; }
22170 # CONFIG_SUBDIRS section.
22172 if test "$no_recursion" != yes; then
22174 # Remove --cache-file and --srcdir arguments so they do not pile up.
22175 ac_sub_configure_args=
22176 ac_prev=
22177 eval "set x $ac_configure_args"
22178 shift
22179 for ac_arg
22181 if test -n "$ac_prev"; then
22182 ac_prev=
22183 continue
22185 case $ac_arg in
22186 -cache-file | --cache-file | --cache-fil | --cache-fi \
22187 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22188 ac_prev=cache_file ;;
22189 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22190 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22191 | --c=*)
22193 --config-cache | -C)
22195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22196 ac_prev=srcdir ;;
22197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22200 ac_prev=prefix ;;
22201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22204 case $ac_arg in
22205 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22206 esac
22207 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22208 esac
22209 done
22211 # Always prepend --prefix to ensure using the same prefix
22212 # in subdir configurations.
22213 ac_arg="--prefix=$prefix"
22214 case $ac_arg in
22215 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22216 esac
22217 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22219 ac_popdir=`pwd`
22220 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22222 # Do not complain, so a configure script can configure whichever
22223 # parts of a large source tree are present.
22224 test -d "$srcdir/$ac_dir" || continue
22226 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22227 echo "$as_me:$LINENO: $ac_msg" >&5
22228 echo "$ac_msg" >&6
22229 { as_dir="$ac_dir"
22230 case $as_dir in #(
22231 -*) as_dir=./$as_dir;;
22232 esac
22233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22234 as_dirs=
22235 while :; do
22236 case $as_dir in #(
22237 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22238 *) as_qdir=$as_dir;;
22239 esac
22240 as_dirs="'$as_qdir' $as_dirs"
22241 as_dir=`$as_dirname -- "$as_dir" ||
22242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22243 X"$as_dir" : 'X\(//\)[^/]' \| \
22244 X"$as_dir" : 'X\(//\)$' \| \
22245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22246 echo X"$as_dir" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22248 s//\1/
22251 /^X\(\/\/\)[^/].*/{
22252 s//\1/
22255 /^X\(\/\/\)$/{
22256 s//\1/
22259 /^X\(\/\).*/{
22260 s//\1/
22263 s/.*/./; q'`
22264 test -d "$as_dir" && break
22265 done
22266 test -z "$as_dirs" || eval "mkdir $as_dirs"
22267 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22268 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22269 { (exit 1); exit 1; }; }; }
22270 ac_builddir=.
22272 case "$ac_dir" in
22273 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22276 # A ".." for each directory in $ac_dir_suffix.
22277 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22278 case $ac_top_builddir_sub in
22279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22281 esac ;;
22282 esac
22283 ac_abs_top_builddir=$ac_pwd
22284 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22285 # for backward compatibility:
22286 ac_top_builddir=$ac_top_build_prefix
22288 case $srcdir in
22289 .) # We are building in place.
22290 ac_srcdir=.
22291 ac_top_srcdir=$ac_top_builddir_sub
22292 ac_abs_top_srcdir=$ac_pwd ;;
22293 [\\/]* | ?:[\\/]* ) # Absolute name.
22294 ac_srcdir=$srcdir$ac_dir_suffix;
22295 ac_top_srcdir=$srcdir
22296 ac_abs_top_srcdir=$srcdir ;;
22297 *) # Relative name.
22298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22299 ac_top_srcdir=$ac_top_build_prefix$srcdir
22300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22301 esac
22302 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22305 cd "$ac_dir"
22307 # Check for guested configure; otherwise get Cygnus style configure.
22308 if test -f "$ac_srcdir/configure.gnu"; then
22309 ac_sub_configure=$ac_srcdir/configure.gnu
22310 elif test -f "$ac_srcdir/configure"; then
22311 ac_sub_configure=$ac_srcdir/configure
22312 elif test -f "$ac_srcdir/configure.in"; then
22313 # This should be Cygnus configure.
22314 ac_sub_configure=$ac_aux_dir/configure
22315 else
22316 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22317 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22318 ac_sub_configure=
22321 # The recursion is here.
22322 if test -n "$ac_sub_configure"; then
22323 # Make the cache file name correct relative to the subdirectory.
22324 case $cache_file in
22325 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22326 *) # Relative name.
22327 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22328 esac
22330 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22331 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22332 # The eval makes quoting arguments work.
22333 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22334 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22335 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22336 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22337 { (exit 1); exit 1; }; }
22340 cd "$ac_popdir"
22341 done