Silence compiler warning.
[llvm.git] / configure
blob1dec712f89b14a01f8062640b49c57e50771b90c
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 XDOT_PY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
740 DOXYGEN
741 GROFF
742 GZIP
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 LLVMGCCCOMMAND
761 LLVMGXXCOMMAND
762 LLVMGCC
763 LLVMGXX
764 LLVMCC_OPTION
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 LLVMCC1
773 LLVMCC1PLUS
774 LLVMGCCDIR
775 LLVMGCC_LANGS
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
806 CXXFLAGS
807 CCC'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
868 ac_prev=
869 ac_dashdash=
870 for ac_option
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
888 ac_dashdash=yes ;;
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
907 --config-cache | -C)
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
911 ac_prev=datadir ;;
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1138 -with-* | --with-*)
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1218 done
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1272 /^X\(\/\/\)$/{
1273 s//\1/
1276 /^X\(\/\).*/{
1277 s//\1/
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1285 else
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383 _ACEOF
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of llvm 2.9svn:";;
1389 esac
1390 cat <<\_ACEOF
1392 Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1410 is YES)
1411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
1413 --enable-timestamps Enable embedding timestamp information in build
1414 (default is YES)
1415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419 and cpp (default=all)
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1427 Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
1436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
1440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
1445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 llvm configure 2.9svn
1538 generated by GNU Autoconf 2.60
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547 exit
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1556 $ $0 $@
1558 _ACEOF
1559 exec 5>>config.log
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 _ASUNAME
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
1590 echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1594 } >&5
1596 cat >&5 <<_ACEOF
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1603 _ACEOF
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1617 for ac_arg
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
1624 *\'*)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 esac
1627 case $ac_pass in
1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true; then
1632 ac_must_keep_next=false # Got value, back to normal.
1633 else
1634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1643 -* ) ac_must_keep_next=true ;;
1644 esac
1646 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 esac
1649 done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1662 echo
1664 cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1683 esac ;;
1684 esac
1685 done
1686 (set) 2>&1 |
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1689 sed -n \
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 esac |
1697 sort
1699 echo
1701 cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1710 case $ac_val in
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 esac
1713 echo "$ac_var='\''$ac_val'\''"
1714 done | sort
1715 echo
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741 echo
1742 cat confdefs.h
1743 echo
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1748 } >&5
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 exit $exit_status
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1798 shift
1799 for ac_site_file
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1807 done
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815 case $cache_file in
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
1818 esac
1820 else
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823 >$cache_file
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1835 set,)
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1839 ,set)
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1843 ,);;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
1853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 esac
1866 done
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1930 done
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1982 for i in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
1986 sample) subdirs="$subdirs projects/sample"
1988 privbracket) subdirs="$subdirs projects/privbracket"
1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1994 llvm-java) subdirs="$subdirs projects/llvm-java"
1996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1998 safecode) subdirs="$subdirs projects/safecode"
2000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2011 esac
2013 done
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069 else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106 else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2121 esac
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_target
2125 shift
2126 target_cpu=$1
2127 target_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 target_os=$*
2132 IFS=$ac_save_IFS
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 case $host in
2149 *-*-aix*)
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
2154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-cygwin*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
2165 llvm_cv_link_all_option="-Wl,-all_load"
2166 llvm_cv_no_link_all_option="-Wl,-noall_load"
2167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
2174 *-*-freebsd*)
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-openbsd*)
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-netbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-dragonfly*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-hpux*)
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-interix*)
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
2219 *-*-win32*)
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
2229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
2234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
2247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
2249 esac
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
2268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
2270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
2286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
2288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
2292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
2294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2297 llvm_cv_target_os_type="Unknown" ;;
2298 esac
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2309 OS=$llvm_cv_os_type
2311 HOST_OS=$llvm_cv_os_type
2313 TARGET_OS=$llvm_cv_target_os_type
2316 LINKALL=$llvm_cv_link_all_option
2318 NOLINKALL=$llvm_cv_no_link_all_option
2321 case $llvm_cv_platform_type in
2322 Unix)
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2326 _ACEOF
2328 LLVM_ON_UNIX=1
2330 LLVM_ON_WIN32=0
2333 Win32)
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2337 _ACEOF
2339 LLVM_ON_UNIX=0
2341 LLVM_ON_WIN32=1
2344 esac
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 case $target in
2352 i?86-*) llvm_cv_target_arch="x86" ;;
2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2357 arm*-*) llvm_cv_target_arch="ARM" ;;
2358 mips-*) llvm_cv_target_arch="Mips" ;;
2359 pic16-*) llvm_cv_target_arch="PIC16" ;;
2360 xcore-*) llvm_cv_target_arch="XCore" ;;
2361 msp430-*) llvm_cv_target_arch="MSP430" ;;
2362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2365 ptx-*) llvm_cv_target_arch="PTX" ;;
2366 *) llvm_cv_target_arch="Unknown" ;;
2367 esac
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382 esac
2384 ARCH=$llvm_cv_target_arch
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2414 done
2415 done
2416 IFS=$as_save_IFS
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2454 done
2455 done
2456 IFS=$as_save_IFS
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482 CC=$ac_ct_CC
2484 else
2485 CC="$ac_cv_prog_CC"
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2552 ac_cv_prog_CC="cc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 break 2
2556 done
2557 done
2558 IFS=$as_save_IFS
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2627 done
2629 if test -z "$CC"; then
2630 ac_ct_CC=$CC
2631 for ac_prog in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2671 done
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 CC=$ac_ct_CC
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2741 main ()
2745 return 0;
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2768 case $ac_file in
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772 done
2773 rm -f $ac_rmfiles
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files
2792 test -f "$ac_file" || continue
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 [ab].out )
2797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
2800 *.* )
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
2810 break;;
2812 break;;
2813 esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 # `rm'.
2892 for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 break;;
2898 * ) break;;
2899 esac
2900 done
2901 else
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954 done
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2985 main ()
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_compiler_gnu=yes
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 ac_compiler_gnu=no
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 main ()
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_g=yes
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3118 main ()
3122 return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3242 else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371 xno)
3372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426 Syntax error
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3447 else
3448 ac_cpp_err=yes
3450 if test -z "$ac_cpp_err"; then
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3457 continue
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3491 else
3492 ac_cpp_err=yes
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3512 break
3515 done
3516 ac_cv_prog_CPP=$CPP
3519 CPP=$ac_cv_prog_CPP
3520 else
3521 ac_cv_prog_CPP=$CPP
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3566 else
3567 ac_cpp_err=yes
3569 if test -z "$ac_cpp_err"; then
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3576 continue
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3610 else
3611 ac_cpp_err=yes
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3615 continue
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3625 rm -f conftest.err conftest.$ac_ext
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3632 else
3633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 ac_count=0
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 while :
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3698 $ac_path_GREP_found && break 3
3699 done
3700 done
3702 done
3703 IFS=$as_save_IFS
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3715 else
3716 ac_cv_path_GREP=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3754 *GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 ac_count=0
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 while :
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767 ac_count=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 esac
3780 $ac_path_EGREP_found && break 3
3781 done
3782 done
3784 done
3785 IFS=$as_save_IFS
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3797 else
3798 ac_cv_path_EGREP=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <stdlib.h>
3821 #include <stdarg.h>
3822 #include <string.h>
3823 #include <float.h>
3826 main ()
3830 return 0;
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h. */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3885 #include <string.h>
3887 _ACEOF
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3891 else
3892 ac_cv_header_stdc=no
3894 rm -f conftest*
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3912 else
3913 ac_cv_header_stdc=no
3915 rm -f conftest*
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3923 else
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 #include <ctype.h>
3931 #include <stdlib.h>
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 #else
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #endif
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 main ()
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3951 return 2;
3952 return 0;
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3976 else
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 ( exit $ac_status )
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
3996 _ACEOF
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064 else
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4083 done
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4102 main ()
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106 #endif
4109 return 0;
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4157 main ()
4159 #if BYTE_ORDER != BIG_ENDIAN
4160 not big endian
4161 #endif
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_c_bigendian=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 main ()
4233 _ascii (); _ebcdic ();
4235 return 0;
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 else
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4300 main ()
4303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
4313 return 0;
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4337 else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ( exit $ac_status )
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4360 ENDIAN=little
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368 esac
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382 else
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4408 IFS=$as_save_IFS
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471 ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4530 case $file in
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 BUILD_EXEEXT=""
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4573 done
4574 done
4575 IFS=$as_save_IFS
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 else
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4611 done
4612 done
4613 IFS=$as_save_IFS
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 else
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 else
4638 ac_prog_rejected=no
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4648 continue
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 else
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4684 else
4685 LLVM_CROSS_COMPILING=0
4689 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4690 cvsbuild="yes"
4691 optimize="no"
4692 CVSBUILD=CVSBUILD=1
4694 else
4695 cvsbuild="no"
4696 optimize="yes"
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4703 else
4704 enableval=$optimize
4707 if test ${enableval} = "no" ; then
4708 ENABLE_OPTIMIZED=
4710 else
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4718 else
4719 enableval="no"
4722 if test ${enableval} = "no" ; then
4723 ENABLE_PROFILING=
4725 else
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4733 else
4734 enableval="yes"
4737 if test ${enableval} = "yes" ; then
4738 DISABLE_ASSERTIONS=
4740 else
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4748 else
4749 enableval="no"
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4757 else
4758 ENABLE_EXPENSIVE_CHECKS=
4760 EXPENSIVE_CHECKS=no
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4767 else
4768 enableval=no
4771 if test ${enableval} = "no" ; then
4772 DEBUG_RUNTIME=
4774 else
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4782 else
4783 enableval=no
4786 if test ${enableval} = "no" ; then
4787 DEBUG_SYMBOLS=
4789 else
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4797 else
4798 enableval=default
4801 if test ${enableval} = "no"
4802 then
4803 JIT=
4805 else
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4833 PTX) TARGET_HAS_JIT=0
4835 *) TARGET_HAS_JIT=0
4837 esac
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842 enableval=$enable_doxygen;
4843 else
4844 enableval=default
4847 case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4850 no) ENABLE_DOXYGEN=0
4852 default) ENABLE_DOXYGEN=0
4854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4857 esac
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861 enableval=$enable_threads;
4862 else
4863 enableval=default
4866 case "$enableval" in
4867 yes) ENABLE_THREADS=1
4869 no) ENABLE_THREADS=0
4871 default) ENABLE_THREADS=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4876 esac
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4880 _ACEOF
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885 enableval=$enable_pic;
4886 else
4887 enableval=default
4890 case "$enableval" in
4891 yes) ENABLE_PIC=1
4893 no) ENABLE_PIC=0
4895 default) ENABLE_PIC=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4900 esac
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4904 _ACEOF
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4910 else
4911 enableval=default
4914 case "$enableval" in
4915 yes) ENABLE_SHARED=1
4917 no) ENABLE_SHARED=0
4919 default) ENABLE_SHARED=0
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924 esac
4926 # Check whether --enable-timestamps was given.
4927 if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4929 else
4930 enableval=default
4933 case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4936 no) ENABLE_TIMESTAMPS=0
4938 default) ENABLE_TIMESTAMPS=1
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4943 esac
4945 cat >>confdefs.h <<_ACEOF
4946 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 _ACEOF
4950 TARGETS_TO_BUILD=""
4951 # Check whether --enable-targets was given.
4952 if test "${enable_targets+set}" = set; then
4953 enableval=$enable_targets;
4954 else
4955 enableval=all
4958 if test "$enableval" = host-only ; then
4959 enableval=host
4961 case "$enableval" in
4962 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4963 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 case "$a_target" in
4965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4980 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4981 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4982 host) case "$llvm_cv_target_arch" in
4983 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4990 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4991 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4995 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4997 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4998 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999 echo "$as_me: error: Can not set target to build" >&2;}
5000 { (exit 1); exit 1; }; } ;;
5001 esac ;;
5002 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005 esac
5006 done
5008 esac
5009 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5012 # Determine whether we are building LLVM support for the native architecture.
5013 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014 for a_target in $TARGETS_TO_BUILD; do
5015 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5019 _ACEOF
5021 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5027 _ACEOF
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5032 _ACEOF
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5037 _ACEOF
5040 done
5042 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043 # target feature def files.
5044 LLVM_ENUM_TARGETS=""
5045 LLVM_ENUM_ASM_PRINTERS=""
5046 LLVM_ENUM_ASM_PARSERS=""
5047 LLVM_ENUM_DISASSEMBLERS=""
5048 for target_to_build in $TARGETS_TO_BUILD; do
5049 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5053 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5054 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5056 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5057 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5059 done
5065 # Check whether --enable-cbe-printf-a was given.
5066 if test "${enable_cbe_printf_a+set}" = set; then
5067 enableval=$enable_cbe_printf_a;
5068 else
5069 enableval=default
5072 case "$enableval" in
5073 yes) ENABLE_CBE_PRINTF_A=1
5075 no) ENABLE_CBE_PRINTF_A=0
5077 default) ENABLE_CBE_PRINTF_A=1
5079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5080 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5081 { (exit 1); exit 1; }; } ;;
5082 esac
5084 cat >>confdefs.h <<_ACEOF
5085 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5086 _ACEOF
5090 # Check whether --with-llvmgccdir was given.
5091 if test "${with_llvmgccdir+set}" = set; then
5092 withval=$with_llvmgccdir;
5093 else
5094 withval=default
5097 case "$withval" in
5098 default) WITH_LLVMGCCDIR=default ;;
5099 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5101 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5106 # Check whether --with-llvmgcc was given.
5107 if test "${with_llvmgcc+set}" = set; then
5108 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5109 WITH_LLVMGCCDIR=""
5114 # Check whether --with-llvmgxx was given.
5115 if test "${with_llvmgxx+set}" = set; then
5116 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5117 WITH_LLVMGCCDIR=""
5121 if test -n "$LLVMGCC"; then
5122 LLVMGCCCOMMAND="$LLVMGCC"
5125 if test -n "$LLVMGXX"; then
5126 LLVMGXXCOMMAND="$LLVMGXX"
5129 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5130 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5131 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5132 { (exit 1); exit 1; }; };
5135 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5136 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5137 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5138 { (exit 1); exit 1; }; };
5142 # Check whether --with-clang was given.
5143 if test "${with_clang+set}" = set; then
5144 withval=$with_clang;
5145 else
5146 with_clang=default
5151 # Check whether --with-built-clang was given.
5152 if test "${with_built_clang+set}" = set; then
5153 withval=$with_built_clang;
5154 else
5155 with_built_clang=check
5159 { echo "$as_me:$LINENO: checking clang compiler" >&5
5160 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5161 WITH_CLANGPATH=""
5162 WITH_BUILT_CLANG=0
5163 if test "$with_clang" != "default"; then
5164 WITH_CLANGPATH="$with_clang"
5165 if ! test -x "$WITH_CLANGPATH"; then
5166 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5167 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5168 { (exit 1); exit 1; }; }
5170 elif test "$with_built_clang" = "yes"; then
5171 WITH_BUILT_CLANG=1
5172 elif test "$with_built_clang" = "no"; then
5173 WITH_BUILT_CLANG=0
5174 else
5175 if test "$with_built_clang" != "check"; then
5176 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5177 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5178 { (exit 1); exit 1; }; }
5181 if test -f ${srcdir}/tools/clang/README.txt; then
5182 WITH_BUILT_CLANG=1
5186 if ! test -z "$WITH_CLANGPATH"; then
5187 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5188 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5189 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5190 elif test "$WITH_BUILT_CLANG" = "1"; then
5191 { echo "$as_me:$LINENO: result: built" >&5
5192 echo "${ECHO_T}built" >&6; }
5193 else
5194 { echo "$as_me:$LINENO: result: none" >&5
5195 echo "${ECHO_T}none" >&6; }
5197 CLANGPATH=$WITH_CLANGPATH
5199 CLANGXXPATH=$WITH_CLANGXXPATH
5201 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5205 # Check whether --with-optimize-option was given.
5206 if test "${with_optimize_option+set}" = set; then
5207 withval=$with_optimize_option;
5208 else
5209 withval=default
5212 { echo "$as_me:$LINENO: checking optimization flags" >&5
5213 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5214 case "$withval" in
5215 default)
5216 case "$llvm_cv_os_type" in
5217 FreeBSD) optimize_option=-O2 ;;
5218 MingW) optimize_option=-O2 ;;
5219 *) optimize_option=-O3 ;;
5220 esac ;;
5221 *) optimize_option="$withval" ;;
5222 esac
5223 OPTIMIZE_OPTION=$optimize_option
5225 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5226 echo "${ECHO_T}$optimize_option" >&6; }
5229 # Check whether --with-extra-options was given.
5230 if test "${with_extra_options+set}" = set; then
5231 withval=$with_extra_options;
5232 else
5233 withval=default
5236 case "$withval" in
5237 default) EXTRA_OPTIONS= ;;
5238 *) EXTRA_OPTIONS=$withval ;;
5239 esac
5240 EXTRA_OPTIONS=$EXTRA_OPTIONS
5243 # Check whether --enable-bindings was given.
5244 if test "${enable_bindings+set}" = set; then
5245 enableval=$enable_bindings;
5246 else
5247 enableval=default
5250 BINDINGS_TO_BUILD=""
5251 case "$enableval" in
5252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5253 all ) BINDINGS_TO_BUILD="ocaml" ;;
5254 none | no) BINDINGS_TO_BUILD="" ;;
5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256 case "$a_binding" in
5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261 esac
5262 done
5264 esac
5267 # Check whether --with-ocaml-libdir was given.
5268 if test "${with_ocaml_libdir+set}" = set; then
5269 withval=$with_ocaml_libdir;
5270 else
5271 withval=auto
5274 case "$withval" in
5275 auto) with_ocaml_libdir="$withval" ;;
5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279 { (exit 1); exit 1; }; } ;;
5280 esac
5283 # Check whether --with-c-include-dirs was given.
5284 if test "${with_c_include_dirs+set}" = set; then
5285 withval=$with_c_include_dirs;
5286 else
5287 withval=""
5291 cat >>confdefs.h <<_ACEOF
5292 #define C_INCLUDE_DIRS "$withval"
5293 _ACEOF
5297 # Check whether --with-cxx-include-root was given.
5298 if test "${with_cxx_include_root+set}" = set; then
5299 withval=$with_cxx_include_root;
5300 else
5301 withval=""
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_ROOT "$withval"
5307 _ACEOF
5311 # Check whether --with-cxx-include-arch was given.
5312 if test "${with_cxx_include_arch+set}" = set; then
5313 withval=$with_cxx_include_arch;
5314 else
5315 withval=""
5319 cat >>confdefs.h <<_ACEOF
5320 #define CXX_INCLUDE_ARCH "$withval"
5321 _ACEOF
5325 # Check whether --with-cxx-include-32bit-dir was given.
5326 if test "${with_cxx_include_32bit_dir+set}" = set; then
5327 withval=$with_cxx_include_32bit_dir;
5328 else
5329 withval=""
5333 cat >>confdefs.h <<_ACEOF
5334 #define CXX_INCLUDE_32BIT_DIR "$withval"
5335 _ACEOF
5339 # Check whether --with-cxx-include-64bit-dir was given.
5340 if test "${with_cxx_include_64bit_dir+set}" = set; then
5341 withval=$with_cxx_include_64bit_dir;
5342 else
5343 withval=""
5347 cat >>confdefs.h <<_ACEOF
5348 #define CXX_INCLUDE_64BIT_DIR "$withval"
5349 _ACEOF
5353 # Check whether --with-binutils-include was given.
5354 if test "${with_binutils_include+set}" = set; then
5355 withval=$with_binutils_include;
5356 else
5357 withval=default
5360 case "$withval" in
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5366 esac
5367 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
5378 # Check whether --enable-libffi was given.
5379 if test "${enable_libffi+set}" = set; then
5380 enableval=$enable_libffi; case "$enableval" in
5381 yes) llvm_cv_enable_libffi="yes" ;;
5382 no) llvm_cv_enable_libffi="no" ;;
5383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5384 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5386 esac
5387 else
5388 llvm_cv_enable_libffi=no
5393 ac_ext=c
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5400 # On Suns, sometimes $CPP names a directory.
5401 if test -n "$CPP" && test -d "$CPP"; then
5402 CPP=
5404 if test -z "$CPP"; then
5405 if test "${ac_cv_prog_CPP+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 # Double quotes because CPP needs to be expanded
5409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5411 ac_preproc_ok=false
5412 for ac_c_preproc_warn_flag in '' yes
5414 # Use a header file that comes with gcc, so configuring glibc
5415 # with a fresh cross-compiler works.
5416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417 # <limits.h> exists even on freestanding compilers.
5418 # On the NeXT, cc -E runs the code through the compiler's parser,
5419 # not just through cpp. "Syntax error" is here to catch this case.
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #ifdef __STDC__
5427 # include <limits.h>
5428 #else
5429 # include <assert.h>
5430 #endif
5431 Syntax error
5432 _ACEOF
5433 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null; then
5446 if test -s conftest.err; then
5447 ac_cpp_err=$ac_c_preproc_warn_flag
5448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5449 else
5450 ac_cpp_err=
5452 else
5453 ac_cpp_err=yes
5455 if test -z "$ac_cpp_err"; then
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 # Broken: fails on valid input.
5462 continue
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_c_preproc_warn_flag
5492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493 else
5494 ac_cpp_err=
5496 else
5497 ac_cpp_err=yes
5499 if test -z "$ac_cpp_err"; then
5500 # Broken: success on invalid input.
5501 continue
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 # Passes both tests.
5507 ac_preproc_ok=:
5508 break
5511 rm -f conftest.err conftest.$ac_ext
5513 done
5514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515 rm -f conftest.err conftest.$ac_ext
5516 if $ac_preproc_ok; then
5517 break
5520 done
5521 ac_cv_prog_CPP=$CPP
5524 CPP=$ac_cv_prog_CPP
5525 else
5526 ac_cv_prog_CPP=$CPP
5528 { echo "$as_me:$LINENO: result: $CPP" >&5
5529 echo "${ECHO_T}$CPP" >&6; }
5530 ac_preproc_ok=false
5531 for ac_c_preproc_warn_flag in '' yes
5533 # Use a header file that comes with gcc, so configuring glibc
5534 # with a fresh cross-compiler works.
5535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 # <limits.h> exists even on freestanding compilers.
5537 # On the NeXT, cc -E runs the code through the compiler's parser,
5538 # not just through cpp. "Syntax error" is here to catch this case.
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #ifdef __STDC__
5546 # include <limits.h>
5547 #else
5548 # include <assert.h>
5549 #endif
5550 Syntax error
5551 _ACEOF
5552 if { (ac_try="$ac_cpp conftest.$ac_ext"
5553 case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } >/dev/null; then
5565 if test -s conftest.err; then
5566 ac_cpp_err=$ac_c_preproc_warn_flag
5567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5568 else
5569 ac_cpp_err=
5571 else
5572 ac_cpp_err=yes
5574 if test -z "$ac_cpp_err"; then
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 # Broken: fails on valid input.
5581 continue
5584 rm -f conftest.err conftest.$ac_ext
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
5588 cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612 else
5613 ac_cpp_err=
5615 else
5616 ac_cpp_err=yes
5618 if test -z "$ac_cpp_err"; then
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 # Passes both tests.
5626 ac_preproc_ok=:
5627 break
5630 rm -f conftest.err conftest.$ac_ext
5632 done
5633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634 rm -f conftest.err conftest.$ac_ext
5635 if $ac_preproc_ok; then
5637 else
5638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5639 See \`config.log' for more details." >&5
5640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5641 See \`config.log' for more details." >&2;}
5642 { (exit 1); exit 1; }; }
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 if test -n "$ac_tool_prefix"; then
5657 for ac_prog in gcc
5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_CC+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5680 done
5681 done
5682 IFS=$as_save_IFS
5686 CC=$ac_cv_prog_CC
5687 if test -n "$CC"; then
5688 { echo "$as_me:$LINENO: result: $CC" >&5
5689 echo "${ECHO_T}$CC" >&6; }
5690 else
5691 { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5696 test -n "$CC" && break
5697 done
5699 if test -z "$CC"; then
5700 ac_ct_CC=$CC
5701 for ac_prog in gcc
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 if test -n "$ac_ct_CC"; then
5711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_ac_ct_CC="$ac_prog"
5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5726 IFS=$as_save_IFS
5730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5731 if test -n "$ac_ct_CC"; then
5732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5733 echo "${ECHO_T}$ac_ct_CC" >&6; }
5734 else
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5740 test -n "$ac_ct_CC" && break
5741 done
5743 if test "x$ac_ct_CC" = x; then
5744 CC=""
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5749 whose name does not start with the host triplet. If you think this
5750 configuration is useful to you, please write to autoconf@gnu.org." >&5
5751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet. If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756 CC=$ac_ct_CC
5761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5762 See \`config.log' for more details." >&5
5763 echo "$as_me: error: no acceptable C compiler found in \$PATH
5764 See \`config.log' for more details." >&2;}
5765 { (exit 1); exit 1; }; }
5767 # Provide some information about the compiler.
5768 echo "$as_me:$LINENO: checking for C compiler version" >&5
5769 ac_compiler=`set X $ac_compile; echo $2`
5770 { (ac_try="$ac_compiler --version >&5"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler --version >&5") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780 { (ac_try="$ac_compiler -v >&5"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -v >&5") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5790 { (ac_try="$ac_compiler -V >&5"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compiler -V >&5") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }
5801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5814 main ()
5816 #ifndef __GNUC__
5817 choke me
5818 #endif
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_try") 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_compiler_gnu=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_compiler_gnu=no
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5872 GCC=`test $ac_compiler_gnu = yes && echo yes`
5873 ac_test_CFLAGS=${CFLAGS+set}
5874 ac_save_CFLAGS=$CFLAGS
5875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5877 if test "${ac_cv_prog_cc_g+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 ac_save_c_werror_flag=$ac_c_werror_flag
5881 ac_c_werror_flag=yes
5882 ac_cv_prog_cc_g=no
5883 CFLAGS="-g"
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5892 main ()
5896 return 0;
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (ac_try="$ac_compile"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_prog_cc_g=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 CFLAGS=""
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5947 main ()
5951 return 0;
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_c_werror_flag=$ac_save_c_werror_flag
5994 CFLAGS="-g"
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6003 main ()
6007 return 0;
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6012 case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_try") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 ac_cv_prog_cc_g=yes
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_c_werror_flag=$ac_save_c_werror_flag
6061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6063 if test "$ac_test_CFLAGS" = set; then
6064 CFLAGS=$ac_save_CFLAGS
6065 elif test $ac_cv_prog_cc_g = yes; then
6066 if test "$GCC" = yes; then
6067 CFLAGS="-g -O2"
6068 else
6069 CFLAGS="-g"
6071 else
6072 if test "$GCC" = yes; then
6073 CFLAGS="-O2"
6074 else
6075 CFLAGS=
6078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_cc_c89+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 ac_cv_prog_cc_c89=no
6084 ac_save_CC=$CC
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <stdarg.h>
6092 #include <stdio.h>
6093 #include <sys/types.h>
6094 #include <sys/stat.h>
6095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6096 struct buf { int x; };
6097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6098 static char *e (p, i)
6099 char **p;
6100 int i;
6102 return p[i];
6104 static char *f (char * (*g) (char **, int), char **p, ...)
6106 char *s;
6107 va_list v;
6108 va_start (v,p);
6109 s = g (p, va_arg (v,int));
6110 va_end (v);
6111 return s;
6114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6115 function prototypes and stuff, but not '\xHH' hex character constants.
6116 These don't provoke an error unfortunately, instead are silently treated
6117 as 'x'. The following induces an error, until -std is added to get
6118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6119 array size at least. It's necessary to write '\x00'==0 to get something
6120 that's true only with -std. */
6121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6124 inside strings and character constants. */
6125 #define FOO(x) 'x'
6126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6128 int test (int i, double x);
6129 struct s1 {int (*f) (int a);};
6130 struct s2 {int (*f) (double a);};
6131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6132 int argc;
6133 char **argv;
6135 main ()
6137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6139 return 0;
6141 _ACEOF
6142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6145 CC="$ac_save_CC $ac_arg"
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174 esac
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_try") 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_prog_cc_c89=$ac_arg
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f core conftest.err conftest.$ac_objext
6189 test "x$ac_cv_prog_cc_c89" != "xno" && break
6190 done
6191 rm -f conftest.$ac_ext
6192 CC=$ac_save_CC
6195 # AC_CACHE_VAL
6196 case "x$ac_cv_prog_cc_c89" in
6198 { echo "$as_me:$LINENO: result: none needed" >&5
6199 echo "${ECHO_T}none needed" >&6; } ;;
6200 xno)
6201 { echo "$as_me:$LINENO: result: unsupported" >&5
6202 echo "${ECHO_T}unsupported" >&6; } ;;
6204 CC="$CC $ac_cv_prog_cc_c89"
6205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6207 esac
6210 ac_ext=c
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 ac_ext=cpp
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 if test -z "$CXX"; then
6222 if test -n "$CCC"; then
6223 CXX=$CCC
6224 else
6225 if test -n "$ac_tool_prefix"; then
6226 for ac_prog in g++
6228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_CXX+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 if test -n "$CXX"; then
6236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6249 done
6250 done
6251 IFS=$as_save_IFS
6255 CXX=$ac_cv_prog_CXX
6256 if test -n "$CXX"; then
6257 { echo "$as_me:$LINENO: result: $CXX" >&5
6258 echo "${ECHO_T}$CXX" >&6; }
6259 else
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 test -n "$CXX" && break
6266 done
6268 if test -z "$CXX"; then
6269 ac_ct_CXX=$CXX
6270 for ac_prog in g++
6272 # Extract the first word of "$ac_prog", so it can be a program name with args.
6273 set dummy $ac_prog; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 if test -n "$ac_ct_CXX"; then
6280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_CXX="$ac_prog"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6300 if test -n "$ac_ct_CXX"; then
6301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6303 else
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 test -n "$ac_ct_CXX" && break
6310 done
6312 if test "x$ac_ct_CXX" = x; then
6313 CXX="g++"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet. If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet. If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325 CXX=$ac_ct_CXX
6331 # Provide some information about the compiler.
6332 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6333 ac_compiler=`set X $ac_compile; echo $2`
6334 { (ac_try="$ac_compiler --version >&5"
6335 case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler --version >&5") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344 { (ac_try="$ac_compiler -v >&5"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -v >&5") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
6354 { (ac_try="$ac_compiler -V >&5"
6355 case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compiler -V >&5") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }
6365 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6366 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6378 main ()
6380 #ifndef __GNUC__
6381 choke me
6382 #endif
6385 return 0;
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_compile") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6416 esac
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_try") 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_compiler_gnu=yes
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_compiler_gnu=no
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6435 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6436 GXX=`test $ac_compiler_gnu = yes && echo yes`
6437 ac_test_CXXFLAGS=${CXXFLAGS+set}
6438 ac_save_CXXFLAGS=$CXXFLAGS
6439 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6440 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6441 if test "${ac_cv_prog_cxx_g+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6445 ac_cxx_werror_flag=yes
6446 ac_cv_prog_cxx_g=no
6447 CXXFLAGS="-g"
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6456 main ()
6460 return 0;
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (ac_try="$ac_compile"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compile") 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
6497 ac_cv_prog_cxx_g=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 CXXFLAGS=""
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6511 main ()
6515 return 0;
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; } &&
6542 { ac_try='test -s conftest.$ac_objext'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558 CXXFLAGS="-g"
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6567 main ()
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6576 case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_try") 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_prog_cxx_g=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6626 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6627 if test "$ac_test_CXXFLAGS" = set; then
6628 CXXFLAGS=$ac_save_CXXFLAGS
6629 elif test $ac_cv_prog_cxx_g = yes; then
6630 if test "$GXX" = yes; then
6631 CXXFLAGS="-g -O2"
6632 else
6633 CXXFLAGS="-g"
6635 else
6636 if test "$GXX" = yes; then
6637 CXXFLAGS="-O2"
6638 else
6639 CXXFLAGS=
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6649 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6650 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6651 if test "${lt_cv_path_NM+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 if test -n "$NM"; then
6655 # Let the user override the test.
6656 lt_cv_path_NM="$NM"
6657 else
6658 lt_nm_to_check="${ac_tool_prefix}nm"
6659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6660 lt_nm_to_check="$lt_nm_to_check nm"
6662 for lt_tmp_nm in $lt_nm_to_check; do
6663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665 IFS="$lt_save_ifs"
6666 test -z "$ac_dir" && ac_dir=.
6667 tmp_nm="$ac_dir/$lt_tmp_nm"
6668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6669 # Check to see if the nm accepts a BSD-compat flag.
6670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6671 # nm: unknown option "B" ignored
6672 # Tru64's nm complains that /dev/null is an invalid object file
6673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6674 */dev/null* | *'Invalid file or object type'*)
6675 lt_cv_path_NM="$tmp_nm -B"
6676 break
6679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680 */dev/null*)
6681 lt_cv_path_NM="$tmp_nm -p"
6682 break
6685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6686 continue # so that we can try to find one that supports BSD flags
6688 esac
6690 esac
6692 done
6693 IFS="$lt_save_ifs"
6694 done
6695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6698 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6699 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6700 NM="$lt_cv_path_NM"
6704 { echo "$as_me:$LINENO: checking for GNU make" >&5
6705 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6706 if test "${llvm_cv_gnu_make_command+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 llvm_cv_gnu_make_command=''
6710 for a in "$MAKE" make gmake gnumake ; do
6711 if test -z "$a" ; then continue ; fi ;
6712 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713 then
6714 llvm_cv_gnu_make_command=$a ;
6715 break;
6717 done
6719 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6720 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6721 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6722 ifGNUmake='' ;
6723 else
6724 ifGNUmake='#' ;
6725 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6726 echo "${ECHO_T}\"Not found\"" >&6; };
6730 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6731 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6732 LN_S=$as_ln_s
6733 if test "$LN_S" = "ln -s"; then
6734 { echo "$as_me:$LINENO: result: yes" >&5
6735 echo "${ECHO_T}yes" >&6; }
6736 else
6737 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6738 echo "${ECHO_T}no, using $LN_S" >&6; }
6741 # Extract the first word of "cmp", so it can be a program name with args.
6742 set dummy cmp; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CMP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 case $CMP in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6764 done
6765 done
6766 IFS=$as_save_IFS
6768 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6770 esac
6772 CMP=$ac_cv_path_CMP
6773 if test -n "$CMP"; then
6774 { echo "$as_me:$LINENO: result: $CMP" >&5
6775 echo "${ECHO_T}$CMP" >&6; }
6776 else
6777 { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6782 # Extract the first word of "cp", so it can be a program name with args.
6783 set dummy cp; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_CP+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 case $CP in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6809 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6811 esac
6813 CP=$ac_cv_path_CP
6814 if test -n "$CP"; then
6815 { echo "$as_me:$LINENO: result: $CP" >&5
6816 echo "${ECHO_T}$CP" >&6; }
6817 else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 # Extract the first word of "date", so it can be a program name with args.
6824 set dummy date; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_DATE+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 case $DATE in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6846 done
6847 done
6848 IFS=$as_save_IFS
6850 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6852 esac
6854 DATE=$ac_cv_path_DATE
6855 if test -n "$DATE"; then
6856 { echo "$as_me:$LINENO: result: $DATE" >&5
6857 echo "${ECHO_T}$DATE" >&6; }
6858 else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6864 # Extract the first word of "find", so it can be a program name with args.
6865 set dummy find; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_FIND+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 case $FIND in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6887 done
6888 done
6889 IFS=$as_save_IFS
6891 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6893 esac
6895 FIND=$ac_cv_path_FIND
6896 if test -n "$FIND"; then
6897 { echo "$as_me:$LINENO: result: $FIND" >&5
6898 echo "${ECHO_T}$FIND" >&6; }
6899 else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6905 # Extract the first word of "grep", so it can be a program name with args.
6906 set dummy grep; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_GREP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912 case $GREP in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6932 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6934 esac
6936 GREP=$ac_cv_path_GREP
6937 if test -n "$GREP"; then
6938 { echo "$as_me:$LINENO: result: $GREP" >&5
6939 echo "${ECHO_T}$GREP" >&6; }
6940 else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6946 # Extract the first word of "mkdir", so it can be a program name with args.
6947 set dummy mkdir; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_MKDIR+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 case $MKDIR in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6973 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6975 esac
6977 MKDIR=$ac_cv_path_MKDIR
6978 if test -n "$MKDIR"; then
6979 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6980 echo "${ECHO_T}$MKDIR" >&6; }
6981 else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 # Extract the first word of "mv", so it can be a program name with args.
6988 set dummy mv; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_MV+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 case $MV in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7010 done
7011 done
7012 IFS=$as_save_IFS
7014 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7016 esac
7018 MV=$ac_cv_path_MV
7019 if test -n "$MV"; then
7020 { echo "$as_me:$LINENO: result: $MV" >&5
7021 echo "${ECHO_T}$MV" >&6; }
7022 else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 if test -n "$RANLIB"; then
7037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 RANLIB=$ac_cv_prog_RANLIB
7057 if test -n "$RANLIB"; then
7058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059 echo "${ECHO_T}$RANLIB" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7067 if test -z "$ac_cv_prog_RANLIB"; then
7068 ac_ct_RANLIB=$RANLIB
7069 # Extract the first word of "ranlib", so it can be a program name with args.
7070 set dummy ranlib; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 if test -n "$ac_ct_RANLIB"; then
7077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_RANLIB="ranlib"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097 if test -n "$ac_ct_RANLIB"; then
7098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 else
7101 { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7105 if test "x$ac_ct_RANLIB" = x; then
7106 RANLIB=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet. If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet. If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 RANLIB=$ac_ct_RANLIB
7120 else
7121 RANLIB="$ac_cv_prog_RANLIB"
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ar; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_AR+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 if test -n "$AR"; then
7133 ac_cv_prog_AR="$AR" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_AR="${ac_tool_prefix}ar"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7148 IFS=$as_save_IFS
7152 AR=$ac_cv_prog_AR
7153 if test -n "$AR"; then
7154 { echo "$as_me:$LINENO: result: $AR" >&5
7155 echo "${ECHO_T}$AR" >&6; }
7156 else
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7163 if test -z "$ac_cv_prog_AR"; then
7164 ac_ct_AR=$AR
7165 # Extract the first word of "ar", so it can be a program name with args.
7166 set dummy ar; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 if test -n "$ac_ct_AR"; then
7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_ac_ct_AR="ar"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7186 done
7187 done
7188 IFS=$as_save_IFS
7192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7193 if test -n "$ac_ct_AR"; then
7194 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7195 echo "${ECHO_T}$ac_ct_AR" >&6; }
7196 else
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7201 if test "x$ac_ct_AR" = x; then
7202 AR="false"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet. If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet. If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 AR=$ac_ct_AR
7216 else
7217 AR="$ac_cv_prog_AR"
7220 # Extract the first word of "rm", so it can be a program name with args.
7221 set dummy rm; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_RM+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 case $RM in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7247 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7249 esac
7251 RM=$ac_cv_path_RM
7252 if test -n "$RM"; then
7253 { echo "$as_me:$LINENO: result: $RM" >&5
7254 echo "${ECHO_T}$RM" >&6; }
7255 else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 # Extract the first word of "sed", so it can be a program name with args.
7262 set dummy sed; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_SED+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 case $SED in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7284 done
7285 done
7286 IFS=$as_save_IFS
7288 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7290 esac
7292 SED=$ac_cv_path_SED
7293 if test -n "$SED"; then
7294 { echo "$as_me:$LINENO: result: $SED" >&5
7295 echo "${ECHO_T}$SED" >&6; }
7296 else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 # Extract the first word of "tar", so it can be a program name with args.
7303 set dummy tar; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_TAR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 case $TAR in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7329 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7331 esac
7333 TAR=$ac_cv_path_TAR
7334 if test -n "$TAR"; then
7335 { echo "$as_me:$LINENO: result: $TAR" >&5
7336 echo "${ECHO_T}$TAR" >&6; }
7337 else
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 # Extract the first word of "pwd", so it can be a program name with args.
7344 set dummy pwd; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_BINPWD+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 case $BINPWD in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7366 done
7367 done
7368 IFS=$as_save_IFS
7370 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7372 esac
7374 BINPWD=$ac_cv_path_BINPWD
7375 if test -n "$BINPWD"; then
7376 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7377 echo "${ECHO_T}$BINPWD" >&6; }
7378 else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7385 # Extract the first word of "Graphviz", so it can be a program name with args.
7386 set dummy Graphviz; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 case $GRAPHVIZ in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7410 IFS=$as_save_IFS
7412 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7414 esac
7416 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7417 if test -n "$GRAPHVIZ"; then
7418 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7419 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7420 else
7421 { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7426 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_GRAPHVIZ 1
7430 _ACEOF
7432 if test "$llvm_cv_os_type" = "MingW" ; then
7433 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7436 cat >>confdefs.h <<_ACEOF
7437 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7438 _ACEOF
7441 # Extract the first word of "dot", so it can be a program name with args.
7442 set dummy dot; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_DOT+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 case $DOT in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7468 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7470 esac
7472 DOT=$ac_cv_path_DOT
7473 if test -n "$DOT"; then
7474 { echo "$as_me:$LINENO: result: $DOT" >&5
7475 echo "${ECHO_T}$DOT" >&6; }
7476 else
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7482 if test "$DOT" != "echo dot" ; then
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_DOT 1
7486 _ACEOF
7488 if test "$llvm_cv_os_type" = "MingW" ; then
7489 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7492 cat >>confdefs.h <<_ACEOF
7493 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7494 _ACEOF
7497 # Extract the first word of "fdp", so it can be a program name with args.
7498 set dummy fdp; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_FDP+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 case $FDP in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7520 done
7521 done
7522 IFS=$as_save_IFS
7524 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7526 esac
7528 FDP=$ac_cv_path_FDP
7529 if test -n "$FDP"; then
7530 { echo "$as_me:$LINENO: result: $FDP" >&5
7531 echo "${ECHO_T}$FDP" >&6; }
7532 else
7533 { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7538 if test "$FDP" != "echo fdp" ; then
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_FDP 1
7542 _ACEOF
7544 if test "$llvm_cv_os_type" = "MingW" ; then
7545 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7548 cat >>confdefs.h <<_ACEOF
7549 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7550 _ACEOF
7553 # Extract the first word of "neato", so it can be a program name with args.
7554 set dummy neato; ac_word=$2
7555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557 if test "${ac_cv_path_NEATO+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 case $NEATO in
7561 [\\/]* | ?:[\\/]*)
7562 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7578 IFS=$as_save_IFS
7580 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7582 esac
7584 NEATO=$ac_cv_path_NEATO
7585 if test -n "$NEATO"; then
7586 { echo "$as_me:$LINENO: result: $NEATO" >&5
7587 echo "${ECHO_T}$NEATO" >&6; }
7588 else
7589 { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7594 if test "$NEATO" != "echo neato" ; then
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_NEATO 1
7598 _ACEOF
7600 if test "$llvm_cv_os_type" = "MingW" ; then
7601 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7604 cat >>confdefs.h <<_ACEOF
7605 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7606 _ACEOF
7609 # Extract the first word of "twopi", so it can be a program name with args.
7610 set dummy twopi; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_TWOPI+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616 case $TWOPI in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7632 done
7633 done
7634 IFS=$as_save_IFS
7636 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7638 esac
7640 TWOPI=$ac_cv_path_TWOPI
7641 if test -n "$TWOPI"; then
7642 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7643 echo "${ECHO_T}$TWOPI" >&6; }
7644 else
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7650 if test "$TWOPI" != "echo twopi" ; then
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_TWOPI 1
7654 _ACEOF
7656 if test "$llvm_cv_os_type" = "MingW" ; then
7657 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7660 cat >>confdefs.h <<_ACEOF
7661 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7662 _ACEOF
7665 # Extract the first word of "circo", so it can be a program name with args.
7666 set dummy circo; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_CIRCO+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 case $CIRCO in
7673 [\\/]* | ?:[\\/]*)
7674 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7692 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7694 esac
7696 CIRCO=$ac_cv_path_CIRCO
7697 if test -n "$CIRCO"; then
7698 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7699 echo "${ECHO_T}$CIRCO" >&6; }
7700 else
7701 { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7706 if test "$CIRCO" != "echo circo" ; then
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_CIRCO 1
7710 _ACEOF
7712 if test "$llvm_cv_os_type" = "MingW" ; then
7713 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7716 cat >>confdefs.h <<_ACEOF
7717 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7718 _ACEOF
7721 for ac_prog in gv gsview32
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_GV+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 case $GV in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7748 IFS=$as_save_IFS
7751 esac
7753 GV=$ac_cv_path_GV
7754 if test -n "$GV"; then
7755 { echo "$as_me:$LINENO: result: $GV" >&5
7756 echo "${ECHO_T}$GV" >&6; }
7757 else
7758 { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7763 test -n "$GV" && break
7764 done
7765 test -n "$GV" || GV="echo gv"
7767 if test "$GV" != "echo gv" ; then
7769 cat >>confdefs.h <<\_ACEOF
7770 #define HAVE_GV 1
7771 _ACEOF
7773 if test "$llvm_cv_os_type" = "MingW" ; then
7774 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7777 cat >>confdefs.h <<_ACEOF
7778 #define LLVM_PATH_GV "$GV${EXEEXT}"
7779 _ACEOF
7782 # Extract the first word of "dotty", so it can be a program name with args.
7783 set dummy dotty; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_DOTTY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 case $DOTTY in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7805 done
7806 done
7807 IFS=$as_save_IFS
7809 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7811 esac
7813 DOTTY=$ac_cv_path_DOTTY
7814 if test -n "$DOTTY"; then
7815 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7816 echo "${ECHO_T}$DOTTY" >&6; }
7817 else
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 if test "$DOTTY" != "echo dotty" ; then
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_DOTTY 1
7827 _ACEOF
7829 if test "$llvm_cv_os_type" = "MingW" ; then
7830 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7833 cat >>confdefs.h <<_ACEOF
7834 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7835 _ACEOF
7838 # Extract the first word of "xdot.py", so it can be a program name with args.
7839 set dummy xdot.py; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 case $XDOT_PY in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7861 done
7862 done
7863 IFS=$as_save_IFS
7865 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7867 esac
7869 XDOT_PY=$ac_cv_path_XDOT_PY
7870 if test -n "$XDOT_PY"; then
7871 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7872 echo "${ECHO_T}$XDOT_PY" >&6; }
7873 else
7874 { echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6; }
7879 if test "$XDOT_PY" != "echo xdot.py" ; then
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_XDOT_PY 1
7883 _ACEOF
7885 if test "$llvm_cv_os_type" = "MingW" ; then
7886 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7889 cat >>confdefs.h <<_ACEOF
7890 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7891 _ACEOF
7896 # Extract the first word of "perl", so it can be a program name with args.
7897 set dummy perl; ac_word=$2
7898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7900 if test "${ac_cv_path_PERL+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 case $PERL in
7904 [\\/]* | ?:[\\/]*)
7905 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7923 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7925 esac
7927 PERL=$ac_cv_path_PERL
7928 if test -n "$PERL"; then
7929 { echo "$as_me:$LINENO: result: $PERL" >&5
7930 echo "${ECHO_T}$PERL" >&6; }
7931 else
7932 { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7937 if test "$PERL" != "none"; then
7938 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7939 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7940 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7941 { echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6; }
7943 else
7944 PERL=none
7945 { echo "$as_me:$LINENO: result: not found" >&5
7946 echo "${ECHO_T}not found" >&6; }
7951 if test x"$PERL" = xnone; then
7952 HAVE_PERL=0
7954 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7955 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7956 { (exit 1); exit 1; }; }
7957 else
7958 HAVE_PERL=1
7962 # Find a good install program. We prefer a C program (faster),
7963 # so one script is as good as another. But avoid the broken or
7964 # incompatible versions:
7965 # SysV /etc/install, /usr/sbin/install
7966 # SunOS /usr/etc/install
7967 # IRIX /sbin/install
7968 # AIX /bin/install
7969 # AmigaOS /C/install, which installs bootblocks on floppy discs
7970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7973 # OS/2's system install, which has a completely different semantic
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 # Account for people who put trailing slashes in PATH elements.
7987 case $as_dir/ in
7988 ./ | .// | /cC/* | \
7989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7991 /usr/ucb/* ) ;;
7993 # OSF1 and SCO ODT 3.0 have their own names for install.
7994 # Don't use installbsd from OSF since it installs stuff as root
7995 # by default.
7996 for ac_prog in ginstall scoinst install; do
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7999 if test $ac_prog = install &&
8000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8001 # AIX install. It has an incompatible calling convention.
8003 elif test $ac_prog = install &&
8004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8005 # program-specific install script used by HP pwplus--don't use.
8007 else
8008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8009 break 3
8012 done
8013 done
8015 esac
8016 done
8017 IFS=$as_save_IFS
8021 if test "${ac_cv_path_install+set}" = set; then
8022 INSTALL=$ac_cv_path_install
8023 else
8024 # As a last resort, use the slow shell script. Don't cache a
8025 # value for INSTALL within a source directory, because that will
8026 # break other packages using the cache if that directory is
8027 # removed, or if the value is a relative name.
8028 INSTALL=$ac_install_sh
8031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8032 echo "${ECHO_T}$INSTALL" >&6; }
8034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8035 # It thinks the first close brace ends the variable substitution.
8036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8042 case "$INSTALL" in
8043 [\\/$]* | ?:[\\/]* ) ;;
8044 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8045 esac
8047 # Extract the first word of "bzip2", so it can be a program name with args.
8048 set dummy bzip2; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_BZIP2+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 case $BZIP2 in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8075 esac
8077 BZIP2=$ac_cv_path_BZIP2
8078 if test -n "$BZIP2"; then
8079 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8080 echo "${ECHO_T}$BZIP2" >&6; }
8081 else
8082 { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8087 # Extract the first word of "cat", so it can be a program name with args.
8088 set dummy cat; ac_word=$2
8089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091 if test "${ac_cv_path_CAT+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094 case $CAT in
8095 [\\/]* | ?:[\\/]*)
8096 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8110 done
8111 done
8112 IFS=$as_save_IFS
8115 esac
8117 CAT=$ac_cv_path_CAT
8118 if test -n "$CAT"; then
8119 { echo "$as_me:$LINENO: result: $CAT" >&5
8120 echo "${ECHO_T}$CAT" >&6; }
8121 else
8122 { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8127 # Extract the first word of "doxygen", so it can be a program name with args.
8128 set dummy doxygen; ac_word=$2
8129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 case $DOXYGEN in
8135 [\\/]* | ?:[\\/]*)
8136 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8155 esac
8157 DOXYGEN=$ac_cv_path_DOXYGEN
8158 if test -n "$DOXYGEN"; then
8159 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8160 echo "${ECHO_T}$DOXYGEN" >&6; }
8161 else
8162 { echo "$as_me:$LINENO: result: no" >&5
8163 echo "${ECHO_T}no" >&6; }
8167 # Extract the first word of "groff", so it can be a program name with args.
8168 set dummy groff; ac_word=$2
8169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171 if test "${ac_cv_path_GROFF+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 case $GROFF in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8195 esac
8197 GROFF=$ac_cv_path_GROFF
8198 if test -n "$GROFF"; then
8199 { echo "$as_me:$LINENO: result: $GROFF" >&5
8200 echo "${ECHO_T}$GROFF" >&6; }
8201 else
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8207 # Extract the first word of "gzip", so it can be a program name with args.
8208 set dummy gzip; ac_word=$2
8209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211 if test "${ac_cv_path_GZIP+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 case $GZIP in
8215 [\\/]* | ?:[\\/]*)
8216 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8232 IFS=$as_save_IFS
8235 esac
8237 GZIP=$ac_cv_path_GZIP
8238 if test -n "$GZIP"; then
8239 { echo "$as_me:$LINENO: result: $GZIP" >&5
8240 echo "${ECHO_T}$GZIP" >&6; }
8241 else
8242 { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8247 # Extract the first word of "pod2html", so it can be a program name with args.
8248 set dummy pod2html; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_POD2HTML+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 case $POD2HTML in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8270 done
8271 done
8272 IFS=$as_save_IFS
8275 esac
8277 POD2HTML=$ac_cv_path_POD2HTML
8278 if test -n "$POD2HTML"; then
8279 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8280 echo "${ECHO_T}$POD2HTML" >&6; }
8281 else
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 # Extract the first word of "pod2man", so it can be a program name with args.
8288 set dummy pod2man; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_path_POD2MAN+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 case $POD2MAN in
8295 [\\/]* | ?:[\\/]*)
8296 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8315 esac
8317 POD2MAN=$ac_cv_path_POD2MAN
8318 if test -n "$POD2MAN"; then
8319 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8320 echo "${ECHO_T}$POD2MAN" >&6; }
8321 else
8322 { echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6; }
8327 # Extract the first word of "pdfroff", so it can be a program name with args.
8328 set dummy pdfroff; ac_word=$2
8329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8331 if test "${ac_cv_path_PDFROFF+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 case $PDFROFF in
8335 [\\/]* | ?:[\\/]*)
8336 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8350 done
8351 done
8352 IFS=$as_save_IFS
8355 esac
8357 PDFROFF=$ac_cv_path_PDFROFF
8358 if test -n "$PDFROFF"; then
8359 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8360 echo "${ECHO_T}$PDFROFF" >&6; }
8361 else
8362 { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8367 # Extract the first word of "runtest", so it can be a program name with args.
8368 set dummy runtest; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_path_RUNTEST+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 case $RUNTEST in
8375 [\\/]* | ?:[\\/]*)
8376 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8386 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8390 done
8391 done
8392 IFS=$as_save_IFS
8395 esac
8397 RUNTEST=$ac_cv_path_RUNTEST
8398 if test -n "$RUNTEST"; then
8399 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8400 echo "${ECHO_T}$RUNTEST" >&6; }
8401 else
8402 { echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6; }
8408 no_itcl=true
8409 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8410 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8412 # Check whether --with-tclinclude was given.
8413 if test "${with_tclinclude+set}" = set; then
8414 withval=$with_tclinclude; with_tclinclude=${withval}
8415 else
8416 with_tclinclude=''
8419 if test "${ac_cv_path_tclsh+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8423 if test x"${with_tclinclude}" != x ; then
8424 if test -f ${with_tclinclude}/tclsh ; then
8425 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8426 elif test -f ${with_tclinclude}/src/tclsh ; then
8427 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8428 else
8429 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8430 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8431 { (exit 1); exit 1; }; }
8437 if test x"${ac_cv_path_tclsh}" = x ; then
8438 { echo "$as_me:$LINENO: result: none" >&5
8439 echo "${ECHO_T}none" >&6; }
8440 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
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_path_TCLSH+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 case $TCLSH in
8450 [\\/]* | ?:[\\/]*)
8451 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8461 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8465 done
8466 done
8467 IFS=$as_save_IFS
8470 esac
8472 TCLSH=$ac_cv_path_TCLSH
8473 if test -n "$TCLSH"; then
8474 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8475 echo "${ECHO_T}$TCLSH" >&6; }
8476 else
8477 { echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6; }
8482 test -n "$TCLSH" && break
8483 done
8485 if test x"${TCLSH}" = x ; then
8486 ac_cv_path_tclsh='';
8487 else
8488 ac_cv_path_tclsh="${TCLSH}";
8490 else
8491 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8492 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8493 TCLSH="${ac_cv_path_tclsh}"
8497 # Extract the first word of "zip", so it can be a program name with args.
8498 set dummy zip; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_ZIP+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 case $ZIP in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8520 done
8521 done
8522 IFS=$as_save_IFS
8525 esac
8527 ZIP=$ac_cv_path_ZIP
8528 if test -n "$ZIP"; then
8529 { echo "$as_me:$LINENO: result: $ZIP" >&5
8530 echo "${ECHO_T}$ZIP" >&6; }
8531 else
8532 { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8537 for ac_prog in ocamlc
8539 # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_OCAMLC+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 case $OCAMLC in
8547 [\\/]* | ?:[\\/]*)
8548 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8562 done
8563 done
8564 IFS=$as_save_IFS
8567 esac
8569 OCAMLC=$ac_cv_path_OCAMLC
8570 if test -n "$OCAMLC"; then
8571 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8572 echo "${ECHO_T}$OCAMLC" >&6; }
8573 else
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8579 test -n "$OCAMLC" && break
8580 done
8582 for ac_prog in ocamlopt
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585 set dummy $ac_prog; ac_word=$2
8586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8588 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 case $OCAMLOPT in
8592 [\\/]* | ?:[\\/]*)
8593 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8603 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8607 done
8608 done
8609 IFS=$as_save_IFS
8612 esac
8614 OCAMLOPT=$ac_cv_path_OCAMLOPT
8615 if test -n "$OCAMLOPT"; then
8616 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8617 echo "${ECHO_T}$OCAMLOPT" >&6; }
8618 else
8619 { echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6; }
8624 test -n "$OCAMLOPT" && break
8625 done
8627 for ac_prog in ocamldep
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8633 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 case $OCAMLDEP in
8637 [\\/]* | ?:[\\/]*)
8638 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8657 esac
8659 OCAMLDEP=$ac_cv_path_OCAMLDEP
8660 if test -n "$OCAMLDEP"; then
8661 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8662 echo "${ECHO_T}$OCAMLDEP" >&6; }
8663 else
8664 { echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6; }
8669 test -n "$OCAMLDEP" && break
8670 done
8672 for ac_prog in ocamldoc
8674 # Extract the first word of "$ac_prog", so it can be a program name with args.
8675 set dummy $ac_prog; ac_word=$2
8676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8678 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 case $OCAMLDOC in
8682 [\\/]* | ?:[\\/]*)
8683 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8702 esac
8704 OCAMLDOC=$ac_cv_path_OCAMLDOC
8705 if test -n "$OCAMLDOC"; then
8706 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8707 echo "${ECHO_T}$OCAMLDOC" >&6; }
8708 else
8709 { echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6; }
8714 test -n "$OCAMLDOC" && break
8715 done
8717 for ac_prog in gas as
8719 # Extract the first word of "$ac_prog", so it can be a program name with args.
8720 set dummy $ac_prog; ac_word=$2
8721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8723 if test "${ac_cv_path_GAS+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 case $GAS in
8727 [\\/]* | ?:[\\/]*)
8728 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8742 done
8743 done
8744 IFS=$as_save_IFS
8747 esac
8749 GAS=$ac_cv_path_GAS
8750 if test -n "$GAS"; then
8751 { echo "$as_me:$LINENO: result: $GAS" >&5
8752 echo "${ECHO_T}$GAS" >&6; }
8753 else
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8759 test -n "$GAS" && break
8760 done
8763 { echo "$as_me:$LINENO: checking for linker version" >&5
8764 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8765 if test "${llvm_cv_link_version+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8769 version_string="$(ld -v 2>&1 | head -1)"
8771 # Check for ld64.
8772 if (echo "$version_string" | grep -q "ld64"); then
8773 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8774 else
8775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8779 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8780 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8782 cat >>confdefs.h <<_ACEOF
8783 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8784 _ACEOF
8788 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8789 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8790 if test "${llvm_cv_link_use_r+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_ext=c
8794 ac_cpp='$CPP $CPPFLAGS'
8795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799 oldcflags="$CFLAGS"
8800 CFLAGS="$CFLAGS -Wl,-R."
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8809 main ()
8813 return 0;
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (ac_try="$ac_link"
8818 case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_link") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 llvm_cv_link_use_r=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 llvm_cv_link_use_r=no
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 CFLAGS="$oldcflags"
8861 ac_ext=c
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8870 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8871 if test "$llvm_cv_link_use_r" = yes ; then
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_LINK_R 1
8875 _ACEOF
8880 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8881 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8882 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885 ac_ext=c
8886 ac_cpp='$CPP $CPPFLAGS'
8887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8891 oldcflags="$CFLAGS"
8892 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8901 main ()
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8923 { (case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_try") 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936 esac
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 llvm_cv_link_use_export_dynamic=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 llvm_cv_link_use_export_dynamic=no
8950 rm -f core conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 CFLAGS="$oldcflags"
8953 ac_ext=c
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8962 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8963 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_LINK_EXPORT_DYNAMIC 1
8967 _ACEOF
8972 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8973 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8974 if test "${llvm_cv_link_use_version_script+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983 oldcflags="$CFLAGS"
8985 # The following code is from the autoconf manual,
8986 # "11.13: Limitations of Usual Tools".
8987 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8988 # Use mktemp if possible; otherwise fall back on mkdir,
8989 # with $RANDOM to make collisions less likely.
8990 : ${TMPDIR=/tmp}
8992 tmp=`
8993 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8994 ` &&
8995 test -n "$tmp" && test -d "$tmp"
8996 } || {
8997 tmp=$TMPDIR/foo$$-$RANDOM
8998 (umask 077 && mkdir "$tmp")
8999 } || exit $?
9001 echo "{" > "$tmp/export.map"
9002 echo " global: main;" >> "$tmp/export.map"
9003 echo " local: *;" >> "$tmp/export.map"
9004 echo "};" >> "$tmp/export.map"
9006 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9015 main ()
9019 return 0;
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9024 case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_try") 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 llvm_cv_link_use_version_script=yes
9057 else
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 llvm_cv_link_use_version_script=no
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 rm "$tmp/export.map"
9067 rmdir "$tmp"
9068 CFLAGS="$oldcflags"
9069 ac_ext=c
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9078 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9079 if test "$llvm_cv_link_use_version_script" = yes ; then
9080 HAVE_LINK_VERSION_SCRIPT=1
9087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9089 if test "${ac_cv_c_const+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9100 main ()
9102 /* FIXME: Include the comments suggested by Paul. */
9103 #ifndef __cplusplus
9104 /* Ultrix mips cc rejects this. */
9105 typedef int charset[2];
9106 const charset x;
9107 /* SunOS 4.1.1 cc rejects this. */
9108 char const *const *ccp;
9109 char **p;
9110 /* NEC SVR4.0.2 mips cc rejects this. */
9111 struct point {int x, y;};
9112 static struct point const zero = {0,0};
9113 /* AIX XL C 1.02.0.0 rejects this.
9114 It does not let you subtract one const X* pointer from another in
9115 an arm of an if-expression whose if-part is not a constant
9116 expression */
9117 const char *g = "string";
9118 ccp = &g + (g ? g-g : 0);
9119 /* HPUX 7.0 cc rejects these. */
9120 ++ccp;
9121 p = (char**) ccp;
9122 ccp = (char const *const *) p;
9123 { /* SCO 3.2v4 cc rejects this. */
9124 char *t;
9125 char const *s = 0 ? (char *) 0 : (char const *) 0;
9127 *t++ = 0;
9128 if (s) return 0;
9130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9131 int x[] = {25, 17};
9132 const int *foo = &x[0];
9133 ++foo;
9135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9136 typedef const int *iptr;
9137 iptr p = 0;
9138 ++p;
9140 { /* AIX XL C 1.02.0.0 rejects this saying
9141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9142 struct s { int j; const int *ap[3]; };
9143 struct s *b; b->j = 5;
9145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9146 const int foo = 10;
9147 if (!foo) return 0;
9149 return !x[0] && !zero.x;
9150 #endif
9153 return 0;
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_try") 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 ac_cv_c_const=yes
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_c_const=no
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9202 if test $ac_cv_c_const = no; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define const
9206 _ACEOF
9215 ac_header_dirent=no
9216 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9218 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9219 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 #include <sys/types.h>
9230 #include <$ac_hdr>
9233 main ()
9235 if ((DIR *) 0)
9236 return 0;
9238 return 0;
9240 _ACEOF
9241 rm -f conftest.$ac_objext
9242 if { (ac_try="$ac_compile"
9243 case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246 esac
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_try") 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
9275 eval "$as_ac_Header=yes"
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 eval "$as_ac_Header=no"
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 ac_res=`eval echo '${'$as_ac_Header'}'`
9286 { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 echo "${ECHO_T}$ac_res" >&6; }
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289 cat >>confdefs.h <<_ACEOF
9290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9291 _ACEOF
9293 ac_header_dirent=$ac_hdr; break
9296 done
9297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9298 if test $ac_header_dirent = dirent.h; then
9299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9301 if test "${ac_cv_search_opendir+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 ac_func_search_save_LIBS=$LIBS
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char opendir ();
9320 main ()
9322 return opendir ();
9324 return 0;
9326 _ACEOF
9327 for ac_lib in '' dir; do
9328 if test -z "$ac_lib"; then
9329 ac_res="none required"
9330 else
9331 ac_res=-l$ac_lib
9332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9336 case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
9368 ac_cv_search_opendir=$ac_res
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9376 rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext
9378 if test "${ac_cv_search_opendir+set}" = set; then
9379 break
9381 done
9382 if test "${ac_cv_search_opendir+set}" = set; then
9384 else
9385 ac_cv_search_opendir=no
9387 rm conftest.$ac_ext
9388 LIBS=$ac_func_search_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9392 ac_res=$ac_cv_search_opendir
9393 if test "$ac_res" != no; then
9394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9398 else
9399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9401 if test "${ac_cv_search_opendir+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 ac_func_search_save_LIBS=$LIBS
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 /* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 char opendir ();
9420 main ()
9422 return opendir ();
9424 return 0;
9426 _ACEOF
9427 for ac_lib in '' x; do
9428 if test -z "$ac_lib"; then
9429 ac_res="none required"
9430 else
9431 ac_res=-l$ac_lib
9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (ac_try="$ac_link"
9436 case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_link") 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_search_opendir=$ac_res
9469 else
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext
9478 if test "${ac_cv_search_opendir+set}" = set; then
9479 break
9481 done
9482 if test "${ac_cv_search_opendir+set}" = set; then
9484 else
9485 ac_cv_search_opendir=no
9487 rm conftest.$ac_ext
9488 LIBS=$ac_func_search_save_LIBS
9490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9492 ac_res=$ac_cv_search_opendir
9493 if test "$ac_res" != no; then
9494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501 for ac_header in dlfcn.h
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 ac_res=`eval echo '${'$as_ac_Header'}'`
9511 { echo "$as_me:$LINENO: result: $ac_res" >&5
9512 echo "${ECHO_T}$ac_res" >&6; }
9513 else
9514 # Is the header compilable?
9515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 $ac_includes_default
9524 #include <$ac_header>
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest.$ac_objext'
9551 { (case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_try") 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_header_compiler=yes
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_header_compiler=no
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570 echo "${ECHO_T}$ac_header_compiler" >&6; }
9572 # Is the header present?
9573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <$ac_header>
9582 _ACEOF
9583 if { (ac_try="$ac_cpp conftest.$ac_ext"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } >/dev/null; then
9596 if test -s conftest.err; then
9597 ac_cpp_err=$ac_c_preproc_warn_flag
9598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9599 else
9600 ac_cpp_err=
9602 else
9603 ac_cpp_err=yes
9605 if test -z "$ac_cpp_err"; then
9606 ac_header_preproc=yes
9607 else
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_preproc=no
9614 rm -f conftest.err conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6; }
9618 # So? What about this header?
9619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9620 yes:no: )
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9625 ac_header_preproc=yes
9627 no:yes:* )
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9640 ( cat <<\_ASBOX
9641 ## ----------------------------------- ##
9642 ## Report this to llvmbugs@cs.uiuc.edu ##
9643 ## ----------------------------------- ##
9644 _ASBOX
9645 ) | sed "s/^/$as_me: WARNING: /" >&2
9647 esac
9648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653 eval "$as_ac_Header=\$ac_header_preproc"
9655 ac_res=`eval echo '${'$as_ac_Header'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657 echo "${ECHO_T}$ac_res" >&6; }
9660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9661 cat >>confdefs.h <<_ACEOF
9662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9663 _ACEOF
9667 done
9669 # Check whether --enable-ltdl-install was given.
9670 if test "${enable_ltdl_install+set}" = set; then
9671 enableval=$enable_ltdl_install;
9677 if test x"${enable_ltdl_install-no}" != xno; then
9678 INSTALL_LTDL_TRUE=
9679 INSTALL_LTDL_FALSE='#'
9680 else
9681 INSTALL_LTDL_TRUE='#'
9682 INSTALL_LTDL_FALSE=
9687 if test x"${enable_ltdl_convenience-no}" != xno; then
9688 CONVENIENCE_LTDL_TRUE=
9689 CONVENIENCE_LTDL_FALSE='#'
9690 else
9691 CONVENIENCE_LTDL_TRUE='#'
9692 CONVENIENCE_LTDL_FALSE=
9696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9698 library_names_spec=
9699 libname_spec='lib$name'
9700 soname_spec=
9701 shrext_cmds=".so"
9702 postinstall_cmds=
9703 postuninstall_cmds=
9704 finish_cmds=
9705 finish_eval=
9706 shlibpath_var=
9707 shlibpath_overrides_runpath=unknown
9708 version_type=none
9709 dynamic_linker="$host_os ld.so"
9710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 if test "$GCC" = yes; then
9712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9714 # if the path contains ";" then we assume it to be the separator
9715 # otherwise default to the standard path separator (i.e. ":") - it is
9716 # assumed that no part of a normal pathname contains ";" but that should
9717 # okay in the real world where ";" in dirpaths is itself problematic.
9718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9719 else
9720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9722 else
9723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9725 need_lib_prefix=unknown
9726 hardcode_into_libs=no
9728 # when you set need_version to no, make sure it does not cause -set_version
9729 # flags to be left without arguments
9730 need_version=unknown
9732 case $host_os in
9733 aix3*)
9734 version_type=linux
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9736 shlibpath_var=LIBPATH
9738 # AIX 3 has no versioning support, so we append a major version to the name.
9739 soname_spec='${libname}${release}${shared_ext}$major'
9742 aix4* | aix5*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 hardcode_into_libs=yes
9747 if test "$host_cpu" = ia64; then
9748 # AIX 5 supports IA64
9749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 else
9752 # With GCC up to 2.95.x, collect2 would create an import file
9753 # for dependence libraries. The import file would start with
9754 # the line `#! .'. This would cause the generated library to
9755 # depend on `.', always an invalid library. This was fixed in
9756 # development snapshots of GCC prior to 3.0.
9757 case $host_os in
9758 aix4 | aix4.[01] | aix4.[01].*)
9759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9760 echo ' yes '
9761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9763 else
9764 can_build_shared=no
9767 esac
9768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9769 # soname into executable. Probably we can add versioning support to
9770 # collect2, so additional links can be useful in future.
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9773 # instead of lib<name>.a to let people know that these are not
9774 # typical AIX shared libraries.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 else
9777 # We preserve .a as extension for shared libraries through AIX4.2
9778 # and later when we are not doing run time linking.
9779 library_names_spec='${libname}${release}.a $libname.a'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LIBPATH
9786 amigaos*)
9787 library_names_spec='$libname.ixlibrary $libname.a'
9788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9789 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'
9792 beos*)
9793 library_names_spec='${libname}${shared_ext}'
9794 dynamic_linker="$host_os ld.so"
9795 shlibpath_var=LIBRARY_PATH
9798 bsdi[45]*)
9799 version_type=linux
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807 # the default ld.so.conf also contains /usr/contrib/lib and
9808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809 # libtool to hard-code these into programs
9812 cygwin* | mingw* | pw32*)
9813 version_type=windows
9814 shrext_cmds=".dll"
9815 need_version=no
9816 need_lib_prefix=no
9818 case $GCC,$host_os in
9819 yes,cygwin* | yes,mingw* | yes,pw32*)
9820 library_names_spec='$libname.dll.a'
9821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822 postinstall_cmds='base_file=`basename \${file}`~
9823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9824 dldir=$destdir/`dirname \$dlpath`~
9825 test -d \$dldir || mkdir -p \$dldir~
9826 $install_prog $dir/$dlname \$dldir/$dlname~
9827 chmod a+x \$dldir/$dlname'
9828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829 dlpath=$dir/\$dldll~
9830 $rm \$dlpath'
9831 shlibpath_overrides_runpath=yes
9833 case $host_os in
9834 cygwin*)
9835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9839 mingw*)
9840 # MinGW DLLs use traditional 'lib' prefix
9841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9844 # It is most probably a Windows format PATH printed by
9845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846 # path with ; separators, and with drive letters. We can handle the
9847 # drive letters (cygwin fileutils understands them), so leave them,
9848 # especially as we might pass files found there to a mingw objdump,
9849 # which wouldn't understand a cygwinified path. Ahh.
9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851 else
9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9855 pw32*)
9856 # pw32 DLLs use 'pw' prefix rather than 'lib'
9857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9859 esac
9863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9865 esac
9866 dynamic_linker='Win32 ld.exe'
9867 # FIXME: first we should search . and the directory the executable is in
9868 shlibpath_var=PATH
9871 darwin* | rhapsody*)
9872 dynamic_linker="$host_os dyld"
9873 version_type=darwin
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877 soname_spec='${libname}${release}${major}$shared_ext'
9878 shlibpath_overrides_runpath=yes
9879 shlibpath_var=DYLD_LIBRARY_PATH
9880 shrext_cmds='.dylib'
9881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9882 if test "$GCC" = yes; then
9883 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"`
9884 else
9885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9890 dgux*)
9891 version_type=linux
9892 need_lib_prefix=no
9893 need_version=no
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 shlibpath_var=LD_LIBRARY_PATH
9899 freebsd1*)
9900 dynamic_linker=no
9903 kfreebsd*-gnu)
9904 version_type=linux
9905 need_lib_prefix=no
9906 need_version=no
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=no
9911 hardcode_into_libs=yes
9912 dynamic_linker='GNU ld.so'
9915 freebsd* | dragonfly*)
9916 # DragonFly does not have aout. When/if they implement a new
9917 # versioning mechanism, adjust this.
9918 if test -x /usr/bin/objformat; then
9919 objformat=`/usr/bin/objformat`
9920 else
9921 case $host_os in
9922 freebsd[123]*) objformat=aout ;;
9923 *) objformat=elf ;;
9924 esac
9926 version_type=freebsd-$objformat
9927 case $version_type in
9928 freebsd-elf*)
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9930 need_version=no
9931 need_lib_prefix=no
9933 freebsd-*)
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9935 need_version=yes
9937 esac
9938 shlibpath_var=LD_LIBRARY_PATH
9939 case $host_os in
9940 freebsd2*)
9941 shlibpath_overrides_runpath=yes
9943 freebsd3.[01]* | freebsdelf3.[01]*)
9944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9952 freebsd*) # from 4.6 on
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9956 esac
9959 gnu*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 hardcode_into_libs=yes
9969 hpux9* | hpux10* | hpux11*)
9970 # Give a soname corresponding to the major version so that dld.sl refuses to
9971 # link against other versions.
9972 version_type=sunos
9973 need_lib_prefix=no
9974 need_version=no
9975 case $host_cpu in
9976 ia64*)
9977 shrext_cmds='.so'
9978 hardcode_into_libs=yes
9979 dynamic_linker="$host_os dld.so"
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 if test "X$HPUX_IA64_MODE" = X32; then
9985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9986 else
9987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9991 hppa*64*)
9992 shrext_cmds='.sl'
9993 hardcode_into_libs=yes
9994 dynamic_linker="$host_os dld.sl"
9995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10003 shrext_cmds='.sl'
10004 dynamic_linker="$host_os dld.sl"
10005 shlibpath_var=SHLIB_PATH
10006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10010 esac
10011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10012 postinstall_cmds='chmod 555 $lib'
10015 interix3*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=no
10024 hardcode_into_libs=yes
10027 irix5* | irix6* | nonstopux*)
10028 case $host_os in
10029 nonstopux*) version_type=nonstopux ;;
10031 if test "$lt_cv_prog_gnu_ld" = yes; then
10032 version_type=linux
10033 else
10034 version_type=irix
10035 fi ;;
10036 esac
10037 need_lib_prefix=no
10038 need_version=no
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10041 case $host_os in
10042 irix5* | nonstopux*)
10043 libsuff= shlibsuff=
10046 case $LD in # libtool.m4 will add one of these switches to LD
10047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10048 libsuff= shlibsuff= libmagic=32-bit;;
10049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10050 libsuff=32 shlibsuff=N32 libmagic=N32;;
10051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10053 *) libsuff= shlibsuff= libmagic=never-match;;
10054 esac
10056 esac
10057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10061 hardcode_into_libs=yes
10064 # No shared lib support for Linux oldld, aout, or coff.
10065 linux*oldld* | linux*aout* | linux*coff*)
10066 dynamic_linker=no
10069 # This must be Linux ELF.
10070 linux*)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10079 # This implies no fast_install, which is unacceptable.
10080 # Some rework will be needed to allow for fast_install
10081 # before this can be enabled.
10082 hardcode_into_libs=yes
10084 # Append ld.so.conf contents to the search path
10085 if test -f /etc/ld.so.conf; then
10086 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' ' '`
10087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10090 # We used to test for /lib/ld.so.1 and disable shared libraries on
10091 # powerpc, because MkLinux only supported shared libraries with the
10092 # GNU dynamic linker. Since this was broken with cross compilers,
10093 # most powerpc-linux boxes support dynamic linking these days and
10094 # people can always --disable-shared, the test was removed, and we
10095 # assume the GNU/Linux dynamic linker is in use.
10096 dynamic_linker='GNU/Linux ld.so'
10099 knetbsd*-gnu)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=no
10107 hardcode_into_libs=yes
10108 dynamic_linker='GNU ld.so'
10111 netbsd*)
10112 version_type=sunos
10113 need_lib_prefix=no
10114 need_version=no
10115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118 dynamic_linker='NetBSD (a.out) ld.so'
10119 else
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 dynamic_linker='NetBSD ld.elf_so'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10129 newsos6)
10130 version_type=linux
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10136 nto-qnx*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10146 openbsd*)
10147 version_type=sunos
10148 sys_lib_dlsearch_path_spec="/usr/lib"
10149 need_lib_prefix=no
10150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151 case $host_os in
10152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10153 *) need_version=no ;;
10154 esac
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159 case $host_os in
10160 openbsd2.[89] | openbsd2.[89].*)
10161 shlibpath_overrides_runpath=no
10164 shlibpath_overrides_runpath=yes
10166 esac
10167 else
10168 shlibpath_overrides_runpath=yes
10172 os2*)
10173 libname_spec='$name'
10174 shrext_cmds=".dll"
10175 need_lib_prefix=no
10176 library_names_spec='$libname${shared_ext} $libname.a'
10177 dynamic_linker='OS/2 ld.exe'
10178 shlibpath_var=LIBPATH
10181 osf3* | osf4* | osf5*)
10182 version_type=osf
10183 need_lib_prefix=no
10184 need_version=no
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10192 solaris*)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10201 # ldd complains unless libraries are executable
10202 postinstall_cmds='chmod +x $lib'
10205 sunos4*)
10206 version_type=sunos
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 if test "$with_gnu_ld" = yes; then
10212 need_lib_prefix=no
10214 need_version=yes
10217 sysv4 | sysv4.3*)
10218 version_type=linux
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 case $host_vendor in
10223 sni)
10224 shlibpath_overrides_runpath=no
10225 need_lib_prefix=no
10226 export_dynamic_flag_spec='${wl}-Blargedynsym'
10227 runpath_var=LD_RUN_PATH
10229 siemens)
10230 need_lib_prefix=no
10232 motorola)
10233 need_lib_prefix=no
10234 need_version=no
10235 shlibpath_overrides_runpath=no
10236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10238 esac
10241 sysv4*MP*)
10242 if test -d /usr/nec ;then
10243 version_type=linux
10244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10245 soname_spec='$libname${shared_ext}.$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10251 version_type=freebsd-elf
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 hardcode_into_libs=yes
10258 if test "$with_gnu_ld" = yes; then
10259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10260 shlibpath_overrides_runpath=no
10261 else
10262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10263 shlibpath_overrides_runpath=yes
10264 case $host_os in
10265 sco3.2v5*)
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10268 esac
10270 sys_lib_dlsearch_path_spec='/usr/lib'
10273 uts4*)
10274 version_type=linux
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10281 dynamic_linker=no
10283 esac
10284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10285 echo "${ECHO_T}$dynamic_linker" >&6; }
10286 test "$dynamic_linker" = no && can_build_shared=no
10288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10289 if test "$GCC" = yes; then
10290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10294 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10295 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10296 if test "${libltdl_cv_shlibext+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10300 module=yes
10301 eval libltdl_cv_shlibext=$shrext_cmds
10304 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10306 if test -n "$libltdl_cv_shlibext"; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10310 _ACEOF
10315 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320 libltdl_cv_shlibpath_var="$shlibpath_var"
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10324 if test -n "$libltdl_cv_shlibpath_var"; then
10326 cat >>confdefs.h <<_ACEOF
10327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10328 _ACEOF
10333 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_sys_search_path+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10340 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10342 if test -n "$libltdl_cv_sys_search_path"; then
10343 sys_search_path=
10344 for dir in $libltdl_cv_sys_search_path; do
10345 if test -z "$sys_search_path"; then
10346 sys_search_path="$dir"
10347 else
10348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10350 done
10352 cat >>confdefs.h <<_ACEOF
10353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10354 _ACEOF
10358 { echo "$as_me:$LINENO: checking for objdir" >&5
10359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10360 if test "${libltdl_cv_objdir+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 libltdl_cv_objdir="$objdir"
10364 if test -n "$objdir"; then
10366 else
10367 rm -f .libs 2>/dev/null
10368 mkdir .libs 2>/dev/null
10369 if test -d .libs; then
10370 libltdl_cv_objdir=.libs
10371 else
10372 # MS-DOS does not allow filenames that begin with a dot.
10373 libltdl_cv_objdir=_libs
10375 rmdir .libs 2>/dev/null
10379 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10380 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10382 cat >>confdefs.h <<_ACEOF
10383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10384 _ACEOF
10391 # Check for command to grab the raw symbol name followed by C symbol from nm.
10392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10398 # These are sane defaults that work on at least a few old systems.
10399 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10401 # Character class describing NM global symbol codes.
10402 symcode='[BCDEGRST]'
10404 # Regexp to match symbols that can be accessed directly from C.
10405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10407 # Transform an extracted symbol line into a proper C declaration
10408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10410 # Transform an extracted symbol line into symbol name and symbol address
10411 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'"
10413 # Define system-specific variables.
10414 case $host_os in
10415 aix*)
10416 symcode='[BCDT]'
10418 cygwin* | mingw* | pw32*)
10419 symcode='[ABCDGISTW]'
10421 hpux*) # Its linker distinguishes data from code symbols
10422 if test "$host_cpu" = ia64; then
10423 symcode='[ABCDEGRST]'
10425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10426 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'"
10428 linux*)
10429 if test "$host_cpu" = ia64; then
10430 symcode='[ABCDGIRSTW]'
10431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10432 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'"
10435 irix* | nonstopux*)
10436 symcode='[BCDEGRST]'
10438 osf*)
10439 symcode='[BCDEGQRST]'
10441 solaris*)
10442 symcode='[BDRT]'
10444 sco3.2v5*)
10445 symcode='[DT]'
10447 sysv4.2uw2*)
10448 symcode='[DT]'
10450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10451 symcode='[ABDT]'
10453 sysv4)
10454 symcode='[DFNSTU]'
10456 esac
10458 # Handle CRLF in mingw tool chain
10459 opt_cr=
10460 case $build_os in
10461 mingw*)
10462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10464 esac
10466 # If we're using GNU nm, then use its standard symbol codes.
10467 case `$NM -V 2>&1` in
10468 *GNU* | *'with BFD'*)
10469 symcode='[ABCDGIRSTW]' ;;
10470 esac
10472 # Try without a prefix undercore, then with it.
10473 for ac_symprfx in "" "_"; do
10475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10476 symxfrm="\\1 $ac_symprfx\\2 \\2"
10478 # Write the raw and C identifiers.
10479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10481 # Check to see that the pipe works correctly.
10482 pipe_works=no
10484 rm -f conftest*
10485 cat > conftest.$ac_ext <<EOF
10486 #ifdef __cplusplus
10487 extern "C" {
10488 #endif
10489 char nm_test_var;
10490 void nm_test_func(){}
10491 #ifdef __cplusplus
10493 #endif
10494 int main(){nm_test_var='a';nm_test_func();return(0);}
10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
10502 # Now try to grab the symbols.
10503 nlist=conftest.nm
10504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && test -s "$nlist"; then
10509 # Try sorting and uniquifying the output.
10510 if sort "$nlist" | uniq > "$nlist"T; then
10511 mv -f "$nlist"T "$nlist"
10512 else
10513 rm -f "$nlist"T
10516 # Make sure that we snagged all the symbols we need.
10517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10519 cat <<EOF > conftest.$ac_ext
10520 #ifdef __cplusplus
10521 extern "C" {
10522 #endif
10525 # Now generate the symbol file.
10526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10528 cat <<EOF >> conftest.$ac_ext
10529 #if defined (__STDC__) && __STDC__
10530 # define lt_ptr_t void *
10531 #else
10532 # define lt_ptr_t char *
10533 # define const
10534 #endif
10536 /* The mapping between symbol names and symbols. */
10537 const struct {
10538 const char *name;
10539 lt_ptr_t address;
10541 lt_preloaded_symbols[] =
10544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10545 cat <<\EOF >> conftest.$ac_ext
10546 {0, (lt_ptr_t) 0}
10549 #ifdef __cplusplus
10551 #endif
10553 # Now try linking the two files.
10554 mv conftest.$ac_objext conftstm.$ac_objext
10555 lt_save_LIBS="$LIBS"
10556 lt_save_CFLAGS="$CFLAGS"
10557 LIBS="conftstm.$ac_objext"
10558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560 (eval $ac_link) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10564 pipe_works=yes
10566 LIBS="$lt_save_LIBS"
10567 CFLAGS="$lt_save_CFLAGS"
10568 else
10569 echo "cannot find nm_test_func in $nlist" >&5
10571 else
10572 echo "cannot find nm_test_var in $nlist" >&5
10574 else
10575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10577 else
10578 echo "$progname: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10581 rm -f conftest* conftst*
10583 # Do not use the global_symbol_pipe unless it works.
10584 if test "$pipe_works" = yes; then
10585 break
10586 else
10587 lt_cv_sys_global_symbol_pipe=
10589 done
10593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10594 lt_cv_sys_global_symbol_to_cdecl=
10596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10597 { echo "$as_me:$LINENO: result: failed" >&5
10598 echo "${ECHO_T}failed" >&6; }
10599 else
10600 { echo "$as_me:$LINENO: result: ok" >&5
10601 echo "${ECHO_T}ok" >&6; }
10605 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10606 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10611 libltdl_cv_preloaded_symbols=yes
10612 else
10613 libltdl_cv_preloaded_symbols=no
10617 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10618 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_PRELOADED_SYMBOLS 1
10623 _ACEOF
10627 LIBADD_DL=
10629 ac_ext=c
10630 ac_cpp='$CPP $CPPFLAGS'
10631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10636 { echo "$as_me:$LINENO: checking for shl_load" >&5
10637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10638 if test "${ac_cv_func_shl_load+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h. */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649 #define shl_load innocuous_shl_load
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10656 #ifdef __STDC__
10657 # include <limits.h>
10658 #else
10659 # include <assert.h>
10660 #endif
10662 #undef shl_load
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char shl_load ();
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined __stub_shl_load || defined __stub___shl_load
10675 choke me
10676 #endif
10679 main ()
10681 return shl_load ();
10683 return 0;
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_func_shl_load=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_func_shl_load=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10733 if test $ac_cv_func_shl_load = yes; then
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_SHL_LOAD 1
10737 _ACEOF
10739 else
10740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldld $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char shl_load ();
10762 main ()
10764 return shl_load ();
10766 return 0;
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 ac_cv_lib_dld_shl_load=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_lib_dld_shl_load=no
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10817 if test $ac_cv_lib_dld_shl_load = yes; then
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_SHL_LOAD 1
10821 _ACEOF
10823 LIBADD_DL="$LIBADD_DL -ldld"
10824 else
10825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-ldl $LIBS"
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10847 main ()
10849 return dlopen ();
10851 return 0;
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_lib_dl_dlopen=yes
10889 else
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_lib_dl_dlopen=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10902 if test $ac_cv_lib_dl_dlopen = yes; then
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_LIBDL 1
10906 _ACEOF
10908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10909 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #if HAVE_DLFCN_H
10917 # include <dlfcn.h>
10918 #endif
10921 main ()
10923 dlopen(0, 0);
10925 return 0;
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_LIBDL 1
10965 _ACEOF
10966 libltdl_cv_func_dlopen="yes"
10967 else
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-lsvld $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10993 main ()
10995 return dlopen ();
10997 return 0;
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_svld_dlopen=yes
11035 else
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_lib_svld_dlopen=no
11042 rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11046 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11047 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11048 if test $ac_cv_lib_svld_dlopen = yes; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_LIBDL 1
11052 _ACEOF
11054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11055 else
11056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061 ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-ldld $LIBS"
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char dld_link ();
11078 main ()
11080 return dld_link ();
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_lib_dld_dld_link=yes
11120 else
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_lib_dld_dld_link=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11132 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11133 if test $ac_cv_lib_dld_dld_link = yes; then
11135 cat >>confdefs.h <<\_ACEOF
11136 #define HAVE_DLD 1
11137 _ACEOF
11139 LIBADD_DL="$LIBADD_DL -ldld"
11140 else
11141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11142 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11143 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11154 #define _dyld_func_lookup innocuous__dyld_func_lookup
11156 /* System header to define __stub macros and hopefully few prototypes,
11157 which can conflict with char _dyld_func_lookup (); below.
11158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159 <limits.h> exists even on freestanding compilers. */
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11167 #undef _dyld_func_lookup
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char _dyld_func_lookup ();
11176 /* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11180 choke me
11181 #endif
11184 main ()
11186 return _dyld_func_lookup ();
11188 return 0;
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_link") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest$ac_exeext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_func__dyld_func_lookup=yes
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_func__dyld_func_lookup=no
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11237 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11238 if test $ac_cv_func__dyld_func_lookup = yes; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_DYLD 1
11242 _ACEOF
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11267 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11268 then
11269 lt_save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBADD_DL"
11272 for ac_func in dlerror
11274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11301 #undef $ac_func
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char $ac_func ();
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11314 choke me
11315 #endif
11318 main ()
11320 return $ac_func ();
11322 return 0;
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 eval "$as_ac_var=yes"
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 eval "$as_ac_var=no"
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11370 ac_res=`eval echo '${'$as_ac_var'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11373 if test `eval echo '${'$as_ac_var'}'` = yes; then
11374 cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11376 _ACEOF
11379 done
11381 LIBS="$lt_save_LIBS"
11383 ac_ext=c
11384 ac_cpp='$CPP $CPPFLAGS'
11385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11391 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11392 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11393 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 ac_cv_sys_symbol_underscore=no
11397 cat > conftest.$ac_ext <<EOF
11398 void nm_test_func(){}
11399 int main(){nm_test_func;return 0;}
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; then
11406 # Now try to grab the symbols.
11407 ac_nlist=conftest.nm
11408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && test -s "$ac_nlist"; then
11413 # See whether the symbols have a leading underscore.
11414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11415 ac_cv_sys_symbol_underscore=yes
11416 else
11417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11419 else
11420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11423 else
11424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11426 else
11427 echo "configure: failed program was:" >&5
11428 cat conftest.c >&5
11430 rm -rf conftest*
11433 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11434 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11437 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11438 if test x"$libltdl_cv_func_dlopen" = xyes ||
11439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11441 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11442 if test "${libltdl_cv_need_uscore+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 libltdl_cv_need_uscore=unknown
11446 save_LIBS="$LIBS"
11447 LIBS="$LIBS $LIBADD_DL"
11448 if test "$cross_compiling" = yes; then :
11449 libltdl_cv_need_uscore=cross
11450 else
11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452 lt_status=$lt_dlunknown
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11454 "configure"
11455 #include "confdefs.h"
11457 #if HAVE_DLFCN_H
11458 #include <dlfcn.h>
11459 #endif
11461 #include <stdio.h>
11463 #ifdef RTLD_GLOBAL
11464 # define LT_DLGLOBAL RTLD_GLOBAL
11465 #else
11466 # ifdef DL_GLOBAL
11467 # define LT_DLGLOBAL DL_GLOBAL
11468 # else
11469 # define LT_DLGLOBAL 0
11470 # endif
11471 #endif
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474 find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11476 # ifdef RTLD_LAZY
11477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11478 # else
11479 # ifdef DL_LAZY
11480 # define LT_DLLAZY_OR_NOW DL_LAZY
11481 # else
11482 # ifdef RTLD_NOW
11483 # define LT_DLLAZY_OR_NOW RTLD_NOW
11484 # else
11485 # ifdef DL_NOW
11486 # define LT_DLLAZY_OR_NOW DL_NOW
11487 # else
11488 # define LT_DLLAZY_OR_NOW 0
11489 # endif
11490 # endif
11491 # endif
11492 # endif
11493 #endif
11495 #ifdef __cplusplus
11496 extern "C" void exit (int);
11497 #endif
11499 void fnord() { int i=42;}
11500 int main ()
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11505 if (self)
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 /* dlclose (self); */
11511 else
11512 puts (dlerror ());
11514 exit (status);
11517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518 (eval $ac_link) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11522 (./conftest; exit; ) >&5 2>/dev/null
11523 lt_status=$?
11524 case x$lt_status in
11525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11527 x$lt_dlunknown|x*) ;;
11528 esac
11529 else :
11530 # compilation failed
11534 rm -fr conftest*
11536 LIBS="$save_LIBS"
11539 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11544 if test x"$libltdl_cv_need_uscore" = xyes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define NEED_USCORE 1
11548 _ACEOF
11553 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 # PORTME does your system automatically load deplibs for dlopen?
11559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11560 # For now, we just catch OSes we know something about -- in the
11561 # future, we'll try test this programmatically.
11562 libltdl_cv_sys_dlopen_deplibs=unknown
11563 case "$host_os" in
11564 aix3*|aix4.1.*|aix4.2.*)
11565 # Unknown whether this is true for these versions of AIX, but
11566 # we want this `case' here to explicitly catch those versions.
11567 libltdl_cv_sys_dlopen_deplibs=unknown
11569 aix[45]*)
11570 libltdl_cv_sys_dlopen_deplibs=yes
11572 darwin*)
11573 # Assuming the user has installed a libdl from somewhere, this is true
11574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11575 libltdl_cv_sys_dlopen_deplibs=yes
11577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11578 # GNU and its variants, using gnu ld.so (Glibc)
11579 libltdl_cv_sys_dlopen_deplibs=yes
11581 hpux10*|hpux11*)
11582 libltdl_cv_sys_dlopen_deplibs=yes
11584 interix*)
11585 libltdl_cv_sys_dlopen_deplibs=yes
11587 irix[12345]*|irix6.[01]*)
11588 # Catch all versions of IRIX before 6.2, and indicate that we don't
11589 # know how it worked for any of those versions.
11590 libltdl_cv_sys_dlopen_deplibs=unknown
11592 irix*)
11593 # The case above catches anything before 6.2, and it's known that
11594 # at 6.2 and later dlopen does load deplibs.
11595 libltdl_cv_sys_dlopen_deplibs=yes
11597 netbsd*)
11598 libltdl_cv_sys_dlopen_deplibs=yes
11600 openbsd*)
11601 libltdl_cv_sys_dlopen_deplibs=yes
11603 osf[1234]*)
11604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11605 # it did *not* use an RPATH in a shared library to find objects the
11606 # library depends on, so we explictly say `no'.
11607 libltdl_cv_sys_dlopen_deplibs=no
11609 osf5.0|osf5.0a|osf5.1)
11610 # dlopen *does* load deplibs and with the right loader patch applied
11611 # it even uses RPATH in a shared library to search for shared objects
11612 # that the library depends on, but there's no easy way to know if that
11613 # patch is installed. Since this is the case, all we can really
11614 # say is unknown -- it depends on the patch being installed. If
11615 # it is, this changes to `yes'. Without it, it would be `no'.
11616 libltdl_cv_sys_dlopen_deplibs=unknown
11618 osf*)
11619 # the two cases above should catch all versions of osf <= 5.1. Read
11620 # the comments above for what we know about them.
11621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11622 # is used to find them so we can finally say `yes'.
11623 libltdl_cv_sys_dlopen_deplibs=yes
11625 solaris*)
11626 libltdl_cv_sys_dlopen_deplibs=yes
11628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11631 esac
11634 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11635 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11636 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define LTDL_DLOPEN_DEPLIBS 1
11640 _ACEOF
11645 for ac_header in argz.h
11647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 ac_res=`eval echo '${'$as_ac_Header'}'`
11655 { echo "$as_me:$LINENO: result: $ac_res" >&5
11656 echo "${ECHO_T}$ac_res" >&6; }
11657 else
11658 # Is the header compilable?
11659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 #include <$ac_header>
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_header_compiler=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_header_compiler=no
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714 echo "${ECHO_T}$ac_header_compiler" >&6; }
11716 # Is the header present?
11717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <$ac_header>
11726 _ACEOF
11727 if { (ac_try="$ac_cpp conftest.$ac_ext"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null; then
11740 if test -s conftest.err; then
11741 ac_cpp_err=$ac_c_preproc_warn_flag
11742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11743 else
11744 ac_cpp_err=
11746 else
11747 ac_cpp_err=yes
11749 if test -z "$ac_cpp_err"; then
11750 ac_header_preproc=yes
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 ac_header_preproc=no
11758 rm -f conftest.err conftest.$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11760 echo "${ECHO_T}$ac_header_preproc" >&6; }
11762 # So? What about this header?
11763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764 yes:no: )
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11769 ac_header_preproc=yes
11771 no:yes:* )
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11784 ( cat <<\_ASBOX
11785 ## ----------------------------------- ##
11786 ## Report this to llvmbugs@cs.uiuc.edu ##
11787 ## ----------------------------------- ##
11788 _ASBOX
11789 ) | sed "s/^/$as_me: WARNING: /" >&2
11791 esac
11792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 eval "$as_ac_Header=\$ac_header_preproc"
11799 ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11807 _ACEOF
11811 done
11814 { echo "$as_me:$LINENO: checking for error_t" >&5
11815 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11816 if test "${ac_cv_type_error_t+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #if HAVE_ARGZ_H
11826 # include <argz.h>
11827 #endif
11829 typedef error_t ac__type_new_;
11831 main ()
11833 if ((ac__type_new_ *) 0)
11834 return 0;
11835 if (sizeof (ac__type_new_))
11836 return 0;
11838 return 0;
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_type_error_t=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_type_error_t=no
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11886 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11887 if test $ac_cv_type_error_t = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890 #define HAVE_ERROR_T 1
11891 _ACEOF
11894 else
11896 cat >>confdefs.h <<\_ACEOF
11897 #define error_t int
11898 _ACEOF
11908 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924 #define $ac_func innocuous_$ac_func
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11937 #undef $ac_func
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char $ac_func ();
11946 /* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11950 choke me
11951 #endif
11954 main ()
11956 return $ac_func ();
11958 return 0;
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 eval "$as_ac_var=yes"
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 eval "$as_ac_var=no"
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12006 ac_res=`eval echo '${'$as_ac_var'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 if test `eval echo '${'$as_ac_var'}'` = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012 _ACEOF
12015 done
12044 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12045 stdio.h unistd.h
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12057 else
12058 # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h. */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 #include <$ac_header>
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_header_compiler=yes
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 ac_header_compiler=no
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114 echo "${ECHO_T}$ac_header_compiler" >&6; }
12116 # Is the header present?
12117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h. */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <$ac_header>
12126 _ACEOF
12127 if { (ac_try="$ac_cpp conftest.$ac_ext"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } >/dev/null; then
12140 if test -s conftest.err; then
12141 ac_cpp_err=$ac_c_preproc_warn_flag
12142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12143 else
12144 ac_cpp_err=
12146 else
12147 ac_cpp_err=yes
12149 if test -z "$ac_cpp_err"; then
12150 ac_header_preproc=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_header_preproc=no
12158 rm -f conftest.err conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6; }
12162 # So? What about this header?
12163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164 yes:no: )
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ac_header_preproc=yes
12171 no:yes:* )
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184 ( cat <<\_ASBOX
12185 ## ----------------------------------- ##
12186 ## Report this to llvmbugs@cs.uiuc.edu ##
12187 ## ----------------------------------- ##
12188 _ASBOX
12189 ) | sed "s/^/$as_me: WARNING: /" >&2
12191 esac
12192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197 eval "$as_ac_Header=\$ac_header_preproc"
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 _ACEOF
12211 done
12217 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 ac_res=`eval echo '${'$as_ac_Header'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12229 else
12230 # Is the header compilable?
12231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 ac_header_compiler=yes
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 ac_header_compiler=no
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12286 echo "${ECHO_T}$ac_header_compiler" >&6; }
12288 # Is the header present?
12289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 #include <$ac_header>
12298 _ACEOF
12299 if { (ac_try="$ac_cpp conftest.$ac_ext"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } >/dev/null; then
12312 if test -s conftest.err; then
12313 ac_cpp_err=$ac_c_preproc_warn_flag
12314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12315 else
12316 ac_cpp_err=
12318 else
12319 ac_cpp_err=yes
12321 if test -z "$ac_cpp_err"; then
12322 ac_header_preproc=yes
12323 else
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_header_preproc=no
12330 rm -f conftest.err conftest.$ac_ext
12331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 echo "${ECHO_T}$ac_header_preproc" >&6; }
12334 # So? What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336 yes:no: )
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341 ac_header_preproc=yes
12343 no:yes:* )
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 ( cat <<\_ASBOX
12357 ## ----------------------------------- ##
12358 ## Report this to llvmbugs@cs.uiuc.edu ##
12359 ## ----------------------------------- ##
12360 _ASBOX
12361 ) | sed "s/^/$as_me: WARNING: /" >&2
12363 esac
12364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369 eval "$as_ac_Header=\$ac_header_preproc"
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372 { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
12376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377 cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12379 _ACEOF
12383 done
12387 for ac_header in string.h strings.h
12389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12399 else
12400 # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 #include <$ac_header>
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427 { (case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_try") 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_header_compiler=no
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12456 echo "${ECHO_T}$ac_header_compiler" >&6; }
12458 # Is the header present?
12459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 #include <$ac_header>
12468 _ACEOF
12469 if { (ac_try="$ac_cpp conftest.$ac_ext"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473 esac
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } >/dev/null; then
12482 if test -s conftest.err; then
12483 ac_cpp_err=$ac_c_preproc_warn_flag
12484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12485 else
12486 ac_cpp_err=
12488 else
12489 ac_cpp_err=yes
12491 if test -z "$ac_cpp_err"; then
12492 ac_header_preproc=yes
12493 else
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ac_header_preproc=no
12500 rm -f conftest.err conftest.$ac_ext
12501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12502 echo "${ECHO_T}$ac_header_preproc" >&6; }
12504 # So? What about this header?
12505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506 yes:no: )
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12511 ac_header_preproc=yes
12513 no:yes:* )
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12521 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12526 ( cat <<\_ASBOX
12527 ## ----------------------------------- ##
12528 ## Report this to llvmbugs@cs.uiuc.edu ##
12529 ## ----------------------------------- ##
12530 _ASBOX
12531 ) | sed "s/^/$as_me: WARNING: /" >&2
12533 esac
12534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539 eval "$as_ac_Header=\$ac_header_preproc"
12541 ac_res=`eval echo '${'$as_ac_Header'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12547 cat >>confdefs.h <<_ACEOF
12548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12549 _ACEOF
12550 break
12553 done
12558 for ac_func in strchr index
12560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566 cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h. */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12574 #define $ac_func innocuous_$ac_func
12576 /* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func (); below.
12578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 <limits.h> exists even on freestanding compilers. */
12581 #ifdef __STDC__
12582 # include <limits.h>
12583 #else
12584 # include <assert.h>
12585 #endif
12587 #undef $ac_func
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 char $ac_func ();
12596 /* The GNU C library defines this for functions which it implements
12597 to always fail with ENOSYS. Some functions are actually named
12598 something starting with __ and the normal name is an alias. */
12599 #if defined __stub_$ac_func || defined __stub___$ac_func
12600 choke me
12601 #endif
12604 main ()
12606 return $ac_func ();
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 eval "$as_ac_var=yes"
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 eval "$as_ac_var=no"
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12656 ac_res=`eval echo '${'$as_ac_var'}'`
12657 { echo "$as_me:$LINENO: result: $ac_res" >&5
12658 echo "${ECHO_T}$ac_res" >&6; }
12659 if test `eval echo '${'$as_ac_var'}'` = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12662 _ACEOF
12663 break
12665 done
12669 for ac_func in strrchr rindex
12671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685 #define $ac_func innocuous_$ac_func
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char $ac_func (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12692 #ifdef __STDC__
12693 # include <limits.h>
12694 #else
12695 # include <assert.h>
12696 #endif
12698 #undef $ac_func
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char $ac_func ();
12707 /* The GNU C library defines this for functions which it implements
12708 to always fail with ENOSYS. Some functions are actually named
12709 something starting with __ and the normal name is an alias. */
12710 #if defined __stub_$ac_func || defined __stub___$ac_func
12711 choke me
12712 #endif
12715 main ()
12717 return $ac_func ();
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 eval "$as_ac_var=yes"
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 eval "$as_ac_var=no"
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12767 ac_res=`eval echo '${'$as_ac_var'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769 echo "${ECHO_T}$ac_res" >&6; }
12770 if test `eval echo '${'$as_ac_var'}'` = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 _ACEOF
12774 break
12776 done
12780 for ac_func in memcpy bcopy
12782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h. */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12796 #define $ac_func innocuous_$ac_func
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func (); below.
12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801 <limits.h> exists even on freestanding compilers. */
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12809 #undef $ac_func
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char $ac_func ();
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined __stub_$ac_func || defined __stub___$ac_func
12822 choke me
12823 #endif
12826 main ()
12828 return $ac_func ();
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 eval "$as_ac_var=yes"
12868 else
12869 echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 eval "$as_ac_var=no"
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12878 ac_res=`eval echo '${'$as_ac_var'}'`
12879 { echo "$as_me:$LINENO: result: $ac_res" >&5
12880 echo "${ECHO_T}$ac_res" >&6; }
12881 if test `eval echo '${'$as_ac_var'}'` = yes; then
12882 cat >>confdefs.h <<_ACEOF
12883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12884 _ACEOF
12885 break
12887 done
12891 for ac_func in memmove strcmp
12893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12907 #define $ac_func innocuous_$ac_func
12909 /* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char $ac_func (); below.
12911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 <limits.h> exists even on freestanding compilers. */
12914 #ifdef __STDC__
12915 # include <limits.h>
12916 #else
12917 # include <assert.h>
12918 #endif
12920 #undef $ac_func
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char $ac_func ();
12929 /* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932 #if defined __stub_$ac_func || defined __stub___$ac_func
12933 choke me
12934 #endif
12937 main ()
12939 return $ac_func ();
12941 return 0;
12943 _ACEOF
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 eval "$as_ac_var=yes"
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 eval "$as_ac_var=no"
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12989 ac_res=`eval echo '${'$as_ac_var'}'`
12990 { echo "$as_me:$LINENO: result: $ac_res" >&5
12991 echo "${ECHO_T}$ac_res" >&6; }
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993 cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 _ACEOF
12998 done
13003 for ac_func in closedir opendir readdir
13005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13019 #define $ac_func innocuous_$ac_func
13021 /* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func (); below.
13023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024 <limits.h> exists even on freestanding compilers. */
13026 #ifdef __STDC__
13027 # include <limits.h>
13028 #else
13029 # include <assert.h>
13030 #endif
13032 #undef $ac_func
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char $ac_func ();
13041 /* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044 #if defined __stub_$ac_func || defined __stub___$ac_func
13045 choke me
13046 #endif
13049 main ()
13051 return $ac_func ();
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 eval "$as_ac_var=yes"
13091 else
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 eval "$as_ac_var=no"
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13101 ac_res=`eval echo '${'$as_ac_var'}'`
13102 { echo "$as_me:$LINENO: result: $ac_res" >&5
13103 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_var'}'` = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13107 _ACEOF
13110 done
13114 if test "$WITH_LLVMGCCDIR" = "default" ; then
13115 LLVMGCC="llvm-gcc${EXEEXT}"
13116 LLVMGXX="llvm-g++${EXEEXT}"
13117 LLVMGCCCOMMAND="$LLVMGCC"
13118 LLVMGXXCOMMAND="$LLVMGXX"
13119 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13121 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13123 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13124 set dummy $LLVMGCC; ac_word=$2
13125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13127 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130 case $LLVMGCC in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13146 done
13147 done
13148 IFS=$as_save_IFS
13151 esac
13153 LLVMGCC=$ac_cv_path_LLVMGCC
13154 if test -n "$LLVMGCC"; then
13155 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13156 echo "${ECHO_T}$LLVMGCC" >&6; }
13157 else
13158 { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13163 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13164 set dummy $LLVMGXX; ac_word=$2
13165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170 case $LLVMGXX in
13171 [\\/]* | ?:[\\/]*)
13172 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
13180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13182 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 break 2
13186 done
13187 done
13188 IFS=$as_save_IFS
13191 esac
13193 LLVMGXX=$ac_cv_path_LLVMGXX
13194 if test -n "$LLVMGXX"; then
13195 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13196 echo "${ECHO_T}$LLVMGXX" >&6; }
13197 else
13198 { echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6; }
13203 else
13204 if test -z "$LLVMGCC"; then
13205 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13206 LLVMGCCCOMMAND="$LLVMGCC"
13208 if test -z "$LLVMGXX"; then
13209 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13210 LLVMGXXCOMMAND="$LLVMGXX"
13213 LLVMGCC=$LLVMGCC
13215 LLVMGXX=$LLVMGXX
13217 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13219 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13224 # Check whether --with-llvmcc was given.
13225 if test "${with_llvmcc+set}" = set; then
13226 withval=$with_llvmcc;
13227 else
13228 with_llvmcc=check
13231 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13232 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13233 if test "$with_llvmcc" != "check"; then
13234 if (test "$with_llvmcc" != "llvm-gcc" &&
13235 test "$with_llvmcc" != "clang" &&
13236 test "$with_llvmcc" != "none"); then
13237 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13238 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13239 { (exit 1); exit 1; }; }
13241 WITH_LLVMCC="$with_llvmcc"
13242 elif test -n "$LLVMGCC"; then
13243 WITH_LLVMCC=llvm-gcc
13244 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13245 WITH_LLVMCC=clang
13246 else
13247 WITH_LLVMCC=none
13249 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13250 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13251 LLVMCC_OPTION=$WITH_LLVMCC
13254 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13255 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13257 ICC=no
13258 IXX=no
13259 case $CC in
13260 icc*|icpc*)
13261 ICC=yes
13262 IXX=yes
13266 esac
13268 if test "$GCC" != "yes" && test "$ICC" != "yes"
13269 then
13270 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13271 echo "$as_me: error: gcc|icc required but not found" >&2;}
13272 { (exit 1); exit 1; }; }
13275 if test "$GXX" != "yes" && test "$IXX" != "yes"
13276 then
13277 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13278 echo "$as_me: error: g++|icc required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
13282 if test "$GCC" = "yes"
13283 then
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #if !defined(__GNUC__) || __GNUC__ < 3
13286 #error Unsupported GCC version
13287 #endif
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13325 else
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13330 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13331 { (exit 1); exit 1; }; }
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 if test -z "$llvm_cv_gnu_make_command"
13338 then
13339 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13340 echo "$as_me: error: GNU Make required but not found" >&2;}
13341 { (exit 1); exit 1; }; }
13344 { echo "$as_me:$LINENO: result: ok" >&5
13345 echo "${ECHO_T}ok" >&6; }
13347 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13348 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13349 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13351 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13353 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13354 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13358 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13359 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13360 if test "${ac_cv_lib_m_sin+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363 ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-lm $LIBS"
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char sin ();
13380 main ()
13382 return sin ();
13384 return 0;
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_link") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_lib_m_sin=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_cv_lib_m_sin=no
13429 rm -f core conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13434 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13435 if test $ac_cv_lib_m_sin = yes; then
13436 cat >>confdefs.h <<_ACEOF
13437 #define HAVE_LIBM 1
13438 _ACEOF
13440 LIBS="-lm $LIBS"
13444 if test "$llvm_cv_os_type" = "MingW" ; then
13446 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13447 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13448 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-limagehlp $LIBS"
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13462 main ()
13464 return main ();
13466 return 0;
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_lib_imagehlp_main=yes
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_lib_imagehlp_main=no
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13515 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13516 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13517 if test $ac_cv_lib_imagehlp_main = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LIBIMAGEHLP 1
13520 _ACEOF
13522 LIBS="-limagehlp $LIBS"
13527 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13528 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13529 if test "${ac_cv_lib_psapi_main+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-lpsapi $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13543 main ()
13545 return main ();
13547 return 0;
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_lib_psapi_main=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_lib_psapi_main=no
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13597 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13598 if test $ac_cv_lib_psapi_main = yes; then
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_LIBPSAPI 1
13601 _ACEOF
13603 LIBS="-lpsapi $LIBS"
13609 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13610 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13611 if test "${ac_cv_search_dlopen+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 ac_func_search_save_LIBS=$LIBS
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13622 /* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
13625 #ifdef __cplusplus
13626 extern "C"
13627 #endif
13628 char dlopen ();
13630 main ()
13632 return dlopen ();
13634 return 0;
13636 _ACEOF
13637 for ac_lib in '' dl; do
13638 if test -z "$ac_lib"; then
13639 ac_res="none required"
13640 else
13641 ac_res=-l$ac_lib
13642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_cv_search_dlopen=$ac_res
13679 else
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext
13688 if test "${ac_cv_search_dlopen+set}" = set; then
13689 break
13691 done
13692 if test "${ac_cv_search_dlopen+set}" = set; then
13694 else
13695 ac_cv_search_dlopen=no
13697 rm conftest.$ac_ext
13698 LIBS=$ac_func_search_save_LIBS
13700 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13701 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13702 ac_res=$ac_cv_search_dlopen
13703 if test "$ac_res" != no; then
13704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_DLOPEN 1
13708 _ACEOF
13710 else
13711 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13712 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13716 if test "$llvm_cv_enable_libffi" = "yes" ; then
13717 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13718 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13719 if test "${ac_cv_search_ffi_call+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722 ac_func_search_save_LIBS=$LIBS
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13730 /* Override any GCC internal prototype to avoid an error.
13731 Use char because int might match the return type of a GCC
13732 builtin and then its argument prototype would still apply. */
13733 #ifdef __cplusplus
13734 extern "C"
13735 #endif
13736 char ffi_call ();
13738 main ()
13740 return ffi_call ();
13742 return 0;
13744 _ACEOF
13745 for ac_lib in '' ffi; do
13746 if test -z "$ac_lib"; then
13747 ac_res="none required"
13748 else
13749 ac_res=-l$ac_lib
13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest$ac_exeext'
13777 { (case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_try") 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_search_ffi_call=$ac_res
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext
13796 if test "${ac_cv_search_ffi_call+set}" = set; then
13797 break
13799 done
13800 if test "${ac_cv_search_ffi_call+set}" = set; then
13802 else
13803 ac_cv_search_ffi_call=no
13805 rm conftest.$ac_ext
13806 LIBS=$ac_func_search_save_LIBS
13808 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13809 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13810 ac_res=$ac_cv_search_ffi_call
13811 if test "$ac_res" != no; then
13812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_FFI_CALL 1
13816 _ACEOF
13818 else
13819 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13820 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13821 { (exit 1); exit 1; }; }
13826 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13827 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13828 if test "${ac_cv_search_mallinfo+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 ac_func_search_save_LIBS=$LIBS
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 char mallinfo ();
13847 main ()
13849 return mallinfo ();
13851 return 0;
13853 _ACEOF
13854 for ac_lib in '' malloc; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required"
13857 else
13858 ac_res=-l$ac_lib
13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13861 rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_search_mallinfo=$ac_res
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext
13905 if test "${ac_cv_search_mallinfo+set}" = set; then
13906 break
13908 done
13909 if test "${ac_cv_search_mallinfo+set}" = set; then
13911 else
13912 ac_cv_search_mallinfo=no
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13917 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13918 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13919 ac_res=$ac_cv_search_mallinfo
13920 if test "$ac_res" != no; then
13921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_MALLINFO 1
13925 _ACEOF
13930 if test "$ENABLE_THREADS" -eq 1 ; then
13932 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13933 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13934 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lpthread $LIBS"
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char pthread_mutex_init ();
13954 main ()
13956 return pthread_mutex_init ();
13958 return 0;
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (ac_try="$ac_link"
13963 case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_link") 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_lib_pthread_pthread_mutex_init=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_cv_lib_pthread_pthread_mutex_init=no
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 LIBS=$ac_check_lib_save_LIBS
14007 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14008 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14009 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_LIBPTHREAD 1
14012 _ACEOF
14014 LIBS="-lpthread $LIBS"
14018 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14019 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14020 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023 ac_func_search_save_LIBS=$LIBS
14024 cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h. */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14031 /* Override any GCC internal prototype to avoid an error.
14032 Use char because int might match the return type of a GCC
14033 builtin and then its argument prototype would still apply. */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 char pthread_mutex_lock ();
14039 main ()
14041 return pthread_mutex_lock ();
14043 return 0;
14045 _ACEOF
14046 for ac_lib in '' pthread; do
14047 if test -z "$ac_lib"; then
14048 ac_res="none required"
14049 else
14050 ac_res=-l$ac_lib
14051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14068 { (case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_try") 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_search_pthread_mutex_lock=$ac_res
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext
14097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14098 break
14100 done
14101 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14103 else
14104 ac_cv_search_pthread_mutex_lock=no
14106 rm conftest.$ac_ext
14107 LIBS=$ac_func_search_save_LIBS
14109 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14110 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14111 ac_res=$ac_cv_search_pthread_mutex_lock
14112 if test "$ac_res" != no; then
14113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_PTHREAD_MUTEX_LOCK 1
14117 _ACEOF
14121 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14122 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14123 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126 ac_func_search_save_LIBS=$LIBS
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h. */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14137 #ifdef __cplusplus
14138 extern "C"
14139 #endif
14140 char pthread_rwlock_init ();
14142 main ()
14144 return pthread_rwlock_init ();
14146 return 0;
14148 _ACEOF
14149 for ac_lib in '' pthread; do
14150 if test -z "$ac_lib"; then
14151 ac_res="none required"
14152 else
14153 ac_res=-l$ac_lib
14154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_cv_search_pthread_rwlock_init=$ac_res
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext
14200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14201 break
14203 done
14204 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14206 else
14207 ac_cv_search_pthread_rwlock_init=no
14209 rm conftest.$ac_ext
14210 LIBS=$ac_func_search_save_LIBS
14212 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14213 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14214 ac_res=$ac_cv_search_pthread_rwlock_init
14215 if test "$ac_res" != no; then
14216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_PTHREAD_RWLOCK_INIT 1
14220 _ACEOF
14224 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14225 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14226 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229 ac_func_search_save_LIBS=$LIBS
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char pthread_getspecific ();
14245 main ()
14247 return pthread_getspecific ();
14249 return 0;
14251 _ACEOF
14252 for ac_lib in '' pthread; do
14253 if test -z "$ac_lib"; then
14254 ac_res="none required"
14255 else
14256 ac_res=-l$ac_lib
14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_search_pthread_getspecific=$ac_res
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14301 rm -f core conftest.err conftest.$ac_objext \
14302 conftest$ac_exeext
14303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14304 break
14306 done
14307 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14309 else
14310 ac_cv_search_pthread_getspecific=no
14312 rm conftest.$ac_ext
14313 LIBS=$ac_func_search_save_LIBS
14315 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14316 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14317 ac_res=$ac_cv_search_pthread_getspecific
14318 if test "$ac_res" != no; then
14319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_PTHREAD_GETSPECIFIC 1
14323 _ACEOF
14330 # Check whether --with-udis86 was given.
14331 if test "${with_udis86+set}" = set; then
14332 withval=$with_udis86;
14333 USE_UDIS86=1
14335 case "$withval" in
14336 /usr/lib|yes) ;;
14337 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14338 esac
14340 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14341 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14342 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-ludis86 $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14357 #ifdef __cplusplus
14358 extern "C"
14359 #endif
14360 char ud_init ();
14362 main ()
14364 return ud_init ();
14366 return 0;
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_lib_udis86_ud_init=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_lib_udis86_ud_init=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14416 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14417 if test $ac_cv_lib_udis86_ud_init = yes; then
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_LIBUDIS86 1
14420 _ACEOF
14422 LIBS="-ludis86 $LIBS"
14424 else
14426 echo "Error! You need to have libudis86 around."
14427 exit -1
14432 else
14433 USE_UDIS86=0
14438 cat >>confdefs.h <<_ACEOF
14439 #define USE_UDIS86 $USE_UDIS86
14440 _ACEOF
14444 # Check whether --with-oprofile was given.
14445 if test "${with_oprofile+set}" = set; then
14446 withval=$with_oprofile;
14447 USE_OPROFILE=1
14449 case "$withval" in
14450 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14451 no) llvm_cv_oppath=
14452 USE_OPROFILE=0
14454 *) llvm_cv_oppath="${withval}/lib/oprofile"
14455 CPPFLAGS="-I${withval}/include";;
14456 esac
14457 if test -n "$llvm_cv_oppath" ; then
14458 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14459 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14460 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14461 if test "${ac_cv_search_bfd_init+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 ac_func_search_save_LIBS=$LIBS
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char bfd_init ();
14480 main ()
14482 return bfd_init ();
14484 return 0;
14486 _ACEOF
14487 for ac_lib in '' bfd; do
14488 if test -z "$ac_lib"; then
14489 ac_res="none required"
14490 else
14491 ac_res=-l$ac_lib
14492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14509 { (case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_try") 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_search_bfd_init=$ac_res
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext
14538 if test "${ac_cv_search_bfd_init+set}" = set; then
14539 break
14541 done
14542 if test "${ac_cv_search_bfd_init+set}" = set; then
14544 else
14545 ac_cv_search_bfd_init=no
14547 rm conftest.$ac_ext
14548 LIBS=$ac_func_search_save_LIBS
14550 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14551 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14552 ac_res=$ac_cv_search_bfd_init
14553 if test "$ac_res" != no; then
14554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14559 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14560 if test "${ac_cv_search_op_open_agent+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 ac_func_search_save_LIBS=$LIBS
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h. */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h. */
14571 /* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 char op_open_agent ();
14579 main ()
14581 return op_open_agent ();
14583 return 0;
14585 _ACEOF
14586 for ac_lib in '' opagent; do
14587 if test -z "$ac_lib"; then
14588 ac_res="none required"
14589 else
14590 ac_res=-l$ac_lib
14591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest$ac_exeext'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_search_op_open_agent=$ac_res
14628 else
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14635 rm -f core conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext
14637 if test "${ac_cv_search_op_open_agent+set}" = set; then
14638 break
14640 done
14641 if test "${ac_cv_search_op_open_agent+set}" = set; then
14643 else
14644 ac_cv_search_op_open_agent=no
14646 rm conftest.$ac_ext
14647 LIBS=$ac_func_search_save_LIBS
14649 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14650 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14651 ac_res=$ac_cv_search_op_open_agent
14652 if test "$ac_res" != no; then
14653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14655 else
14657 echo "Error! You need to have libopagent around."
14658 exit -1
14662 if test "${ac_cv_header_opagent_h+set}" = set; then
14663 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14664 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14665 if test "${ac_cv_header_opagent_h+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14670 else
14671 # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14673 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h. */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14680 $ac_includes_default
14681 #include <opagent.h>
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_header_compiler=yes
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ac_header_compiler=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727 echo "${ECHO_T}$ac_header_compiler" >&6; }
14729 # Is the header present?
14730 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14731 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h. */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 #include <opagent.h>
14739 _ACEOF
14740 if { (ac_try="$ac_cpp conftest.$ac_ext"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756 else
14757 ac_cpp_err=
14759 else
14760 ac_cpp_err=yes
14762 if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_header_preproc=no
14771 rm -f conftest.err conftest.$ac_ext
14772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773 echo "${ECHO_T}$ac_header_preproc" >&6; }
14775 # So? What about this header?
14776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 yes:no: )
14778 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14781 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14782 ac_header_preproc=yes
14784 no:yes:* )
14785 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14786 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14788 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14790 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14792 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14794 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14796 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14797 ( cat <<\_ASBOX
14798 ## ----------------------------------- ##
14799 ## Report this to llvmbugs@cs.uiuc.edu ##
14800 ## ----------------------------------- ##
14801 _ASBOX
14802 ) | sed "s/^/$as_me: WARNING: /" >&2
14804 esac
14805 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14806 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14807 if test "${ac_cv_header_opagent_h+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810 ac_cv_header_opagent_h=$ac_header_preproc
14812 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14813 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14816 if test $ac_cv_header_opagent_h = yes; then
14818 else
14820 echo "Error! You need to have opagent.h around."
14821 exit -1
14828 else
14830 USE_OPROFILE=0
14836 cat >>confdefs.h <<_ACEOF
14837 #define USE_OPROFILE $USE_OPROFILE
14838 _ACEOF
14847 ac_header_dirent=no
14848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14850 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h. */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14862 #include <$ac_hdr>
14865 main ()
14867 if ((DIR *) 0)
14868 return 0;
14870 return 0;
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (ac_try="$ac_compile"
14875 case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_compile") 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 eval "$as_ac_Header=yes"
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 eval "$as_ac_Header=no"
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 ac_res=`eval echo '${'$as_ac_Header'}'`
14918 { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14923 _ACEOF
14925 ac_header_dirent=$ac_hdr; break
14928 done
14929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14930 if test $ac_header_dirent = dirent.h; then
14931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14933 if test "${ac_cv_search_opendir+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 ac_func_search_save_LIBS=$LIBS
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 /* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
14947 #ifdef __cplusplus
14948 extern "C"
14949 #endif
14950 char opendir ();
14952 main ()
14954 return opendir ();
14956 return 0;
14958 _ACEOF
14959 for ac_lib in '' dir; do
14960 if test -z "$ac_lib"; then
14961 ac_res="none required"
14962 else
14963 ac_res=-l$ac_lib
14964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15000 ac_cv_search_opendir=$ac_res
15001 else
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext
15010 if test "${ac_cv_search_opendir+set}" = set; then
15011 break
15013 done
15014 if test "${ac_cv_search_opendir+set}" = set; then
15016 else
15017 ac_cv_search_opendir=no
15019 rm conftest.$ac_ext
15020 LIBS=$ac_func_search_save_LIBS
15022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15024 ac_res=$ac_cv_search_opendir
15025 if test "$ac_res" != no; then
15026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15030 else
15031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15033 if test "${ac_cv_search_opendir+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036 ac_func_search_save_LIBS=$LIBS
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char opendir ();
15052 main ()
15054 return opendir ();
15056 return 0;
15058 _ACEOF
15059 for ac_lib in '' x; do
15060 if test -z "$ac_lib"; then
15061 ac_res="none required"
15062 else
15063 ac_res=-l$ac_lib
15064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_link") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest$ac_exeext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_search_opendir=$ac_res
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext
15110 if test "${ac_cv_search_opendir+set}" = set; then
15111 break
15113 done
15114 if test "${ac_cv_search_opendir+set}" = set; then
15116 else
15117 ac_cv_search_opendir=no
15119 rm conftest.$ac_ext
15120 LIBS=$ac_func_search_save_LIBS
15122 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15123 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15124 ac_res=$ac_cv_search_opendir
15125 if test "$ac_res" != no; then
15126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15132 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15133 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15134 if test "${ac_cv_header_mmap_anon+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 ac_ext=c
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <sys/mman.h>
15150 #include <unistd.h>
15151 #include <fcntl.h>
15153 main ()
15155 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15157 return 0;
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_cv_header_mmap_anon=yes
15195 else
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_header_mmap_anon=no
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15212 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15213 if test "$ac_cv_header_mmap_anon" = yes; then
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_MMAP_ANONYMOUS 1
15217 _ACEOF
15221 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15222 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15223 if test "${ac_cv_header_stat_broken+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 #include <sys/types.h>
15233 #include <sys/stat.h>
15235 #if defined S_ISBLK && defined S_IFDIR
15236 # if S_ISBLK (S_IFDIR)
15237 You lose.
15238 # endif
15239 #endif
15241 #if defined S_ISBLK && defined S_IFCHR
15242 # if S_ISBLK (S_IFCHR)
15243 You lose.
15244 # endif
15245 #endif
15247 #if defined S_ISLNK && defined S_IFREG
15248 # if S_ISLNK (S_IFREG)
15249 You lose.
15250 # endif
15251 #endif
15253 #if defined S_ISSOCK && defined S_IFREG
15254 # if S_ISSOCK (S_IFREG)
15255 You lose.
15256 # endif
15257 #endif
15259 _ACEOF
15260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261 $EGREP "You lose" >/dev/null 2>&1; then
15262 ac_cv_header_stat_broken=yes
15263 else
15264 ac_cv_header_stat_broken=no
15266 rm -f conftest*
15269 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15270 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15271 if test $ac_cv_header_stat_broken = yes; then
15273 cat >>confdefs.h <<\_ACEOF
15274 #define STAT_MACROS_BROKEN 1
15275 _ACEOF
15279 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15280 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15281 if test "${ac_cv_header_stdc+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <stdlib.h>
15291 #include <stdarg.h>
15292 #include <string.h>
15293 #include <float.h>
15296 main ()
15300 return 0;
15302 _ACEOF
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_compile") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318 { (case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_try") 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_header_stdc=yes
15338 else
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 ac_cv_header_stdc=no
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 if test $ac_cv_header_stdc = yes; then
15348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h. */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #include <string.h>
15357 _ACEOF
15358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359 $EGREP "memchr" >/dev/null 2>&1; then
15361 else
15362 ac_cv_header_stdc=no
15364 rm -f conftest*
15368 if test $ac_cv_header_stdc = yes; then
15369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15370 cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h. */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h. */
15376 #include <stdlib.h>
15378 _ACEOF
15379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15380 $EGREP "free" >/dev/null 2>&1; then
15382 else
15383 ac_cv_header_stdc=no
15385 rm -f conftest*
15389 if test $ac_cv_header_stdc = yes; then
15390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15391 if test "$cross_compiling" = yes; then
15393 else
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <ctype.h>
15401 #include <stdlib.h>
15402 #if ((' ' & 0x0FF) == 0x020)
15403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15405 #else
15406 # define ISLOWER(c) \
15407 (('a' <= (c) && (c) <= 'i') \
15408 || ('j' <= (c) && (c) <= 'r') \
15409 || ('s' <= (c) && (c) <= 'z'))
15410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15411 #endif
15413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15415 main ()
15417 int i;
15418 for (i = 0; i < 256; i++)
15419 if (XOR (islower (i), ISLOWER (i))
15420 || toupper (i) != TOUPPER (i))
15421 return 2;
15422 return 0;
15424 _ACEOF
15425 rm -f conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15446 else
15447 echo "$as_me: program exited with status $ac_status" >&5
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ( exit $ac_status )
15452 ac_cv_header_stdc=no
15454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15462 if test $ac_cv_header_stdc = yes; then
15464 cat >>confdefs.h <<\_ACEOF
15465 #define STDC_HEADERS 1
15466 _ACEOF
15470 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15471 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 #include <sys/types.h>
15482 #include <sys/wait.h>
15483 #ifndef WEXITSTATUS
15484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15485 #endif
15486 #ifndef WIFEXITED
15487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15488 #endif
15491 main ()
15493 int s;
15494 wait (&s);
15495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15497 return 0;
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_try") 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_cv_header_sys_wait_h=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_header_sys_wait_h=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15545 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15546 if test $ac_cv_header_sys_wait_h = yes; then
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_SYS_WAIT_H 1
15550 _ACEOF
15554 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15556 if test "${ac_cv_header_time+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 #include <sys/types.h>
15566 #include <sys/time.h>
15567 #include <time.h>
15570 main ()
15572 if ((struct tm *) 0)
15573 return 0;
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (ac_try="$ac_compile"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_compile") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_header_time=yes
15613 else
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_header_time=no
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15623 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15624 if test $ac_cv_header_time = yes; then
15626 cat >>confdefs.h <<\_ACEOF
15627 #define TIME_WITH_SYS_TIME 1
15628 _ACEOF
15639 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15651 else
15652 # Is the header compilable?
15653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655 cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h. */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15661 $ac_includes_default
15662 #include <$ac_header>
15663 _ACEOF
15664 rm -f conftest.$ac_objext
15665 if { (ac_try="$ac_compile"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 ac_header_compiler=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6; }
15710 # Is the header present?
15711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <$ac_header>
15720 _ACEOF
15721 if { (ac_try="$ac_cpp conftest.$ac_ext"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737 else
15738 ac_cpp_err=
15740 else
15741 ac_cpp_err=yes
15743 if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15745 else
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_preproc=no
15752 rm -f conftest.err conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754 echo "${ECHO_T}$ac_header_preproc" >&6; }
15756 # So? What about this header?
15757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 yes:no: )
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15765 no:yes:* )
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778 ( cat <<\_ASBOX
15779 ## ----------------------------------- ##
15780 ## Report this to llvmbugs@cs.uiuc.edu ##
15781 ## ----------------------------------- ##
15782 _ASBOX
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15785 esac
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791 eval "$as_ac_Header=\$ac_header_preproc"
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15801 _ACEOF
15805 done
15813 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15825 else
15826 # Is the header compilable?
15827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h. */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15836 #include <$ac_header>
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_try") 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_compiler=no
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882 echo "${ECHO_T}$ac_header_compiler" >&6; }
15884 # Is the header present?
15885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h. */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h. */
15893 #include <$ac_header>
15894 _ACEOF
15895 if { (ac_try="$ac_cpp conftest.$ac_ext"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } >/dev/null; then
15908 if test -s conftest.err; then
15909 ac_cpp_err=$ac_c_preproc_warn_flag
15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911 else
15912 ac_cpp_err=
15914 else
15915 ac_cpp_err=yes
15917 if test -z "$ac_cpp_err"; then
15918 ac_header_preproc=yes
15919 else
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6; }
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15939 no:yes:* )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952 ( cat <<\_ASBOX
15953 ## ----------------------------------- ##
15954 ## Report this to llvmbugs@cs.uiuc.edu ##
15955 ## ----------------------------------- ##
15956 _ASBOX
15957 ) | sed "s/^/$as_me: WARNING: /" >&2
15959 esac
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 eval "$as_ac_Header=\$ac_header_preproc"
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15973 cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15975 _ACEOF
15979 done
15983 for ac_header in utime.h windows.h
15985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 ac_res=`eval echo '${'$as_ac_Header'}'`
15993 { echo "$as_me:$LINENO: result: $ac_res" >&5
15994 echo "${ECHO_T}$ac_res" >&6; }
15995 else
15996 # Is the header compilable?
15997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 #include <$ac_header>
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (ac_try="$ac_compile"
16010 case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_compile") 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_header_compiler=yes
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16064 _ACEOF
16065 if { (ac_try="$ac_cpp conftest.$ac_ext"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null; then
16078 if test -s conftest.err; then
16079 ac_cpp_err=$ac_c_preproc_warn_flag
16080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16081 else
16082 ac_cpp_err=
16084 else
16085 ac_cpp_err=yes
16087 if test -z "$ac_cpp_err"; then
16088 ac_header_preproc=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16096 rm -f conftest.err conftest.$ac_ext
16097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 echo "${ECHO_T}$ac_header_preproc" >&6; }
16100 # So? What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 yes:no: )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16109 no:yes:* )
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16122 ( cat <<\_ASBOX
16123 ## ----------------------------------- ##
16124 ## Report this to llvmbugs@cs.uiuc.edu ##
16125 ## ----------------------------------- ##
16126 _ASBOX
16127 ) | sed "s/^/$as_me: WARNING: /" >&2
16129 esac
16130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 eval "$as_ac_Header=\$ac_header_preproc"
16137 ac_res=`eval echo '${'$as_ac_Header'}'`
16138 { echo "$as_me:$LINENO: result: $ac_res" >&5
16139 echo "${ECHO_T}$ac_res" >&6; }
16142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 _ACEOF
16149 done
16155 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 else
16168 # Is the header compilable?
16169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 #include <$ac_header>
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195 { (case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_try") 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_try") 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_header_compiler=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16224 echo "${ECHO_T}$ac_header_compiler" >&6; }
16226 # Is the header present?
16227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h. */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 #include <$ac_header>
16236 _ACEOF
16237 if { (ac_try="$ac_cpp conftest.$ac_ext"
16238 case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } >/dev/null; then
16250 if test -s conftest.err; then
16251 ac_cpp_err=$ac_c_preproc_warn_flag
16252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16253 else
16254 ac_cpp_err=
16256 else
16257 ac_cpp_err=yes
16259 if test -z "$ac_cpp_err"; then
16260 ac_header_preproc=yes
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_preproc=no
16268 rm -f conftest.err conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270 echo "${ECHO_T}$ac_header_preproc" >&6; }
16272 # So? What about this header?
16273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 yes:no: )
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16279 ac_header_preproc=yes
16281 no:yes:* )
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294 ( cat <<\_ASBOX
16295 ## ----------------------------------- ##
16296 ## Report this to llvmbugs@cs.uiuc.edu ##
16297 ## ----------------------------------- ##
16298 _ASBOX
16299 ) | sed "s/^/$as_me: WARNING: /" >&2
16301 esac
16302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307 eval "$as_ac_Header=\$ac_header_preproc"
16309 ac_res=`eval echo '${'$as_ac_Header'}'`
16310 { echo "$as_me:$LINENO: result: $ac_res" >&5
16311 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16317 _ACEOF
16321 done
16327 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339 else
16340 # Is the header compilable?
16341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h. */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 $ac_includes_default
16350 #include <$ac_header>
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (ac_try="$ac_compile"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_compile") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_header_compiler=yes
16387 else
16388 echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 ac_header_compiler=no
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <$ac_header>
16408 _ACEOF
16409 if { (ac_try="$ac_cpp conftest.$ac_ext"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } >/dev/null; then
16422 if test -s conftest.err; then
16423 ac_cpp_err=$ac_c_preproc_warn_flag
16424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16425 else
16426 ac_cpp_err=
16428 else
16429 ac_cpp_err=yes
16431 if test -z "$ac_cpp_err"; then
16432 ac_header_preproc=yes
16433 else
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_preproc=no
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16444 # So? What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 yes:no: )
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16453 no:yes:* )
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466 ( cat <<\_ASBOX
16467 ## ----------------------------------- ##
16468 ## Report this to llvmbugs@cs.uiuc.edu ##
16469 ## ----------------------------------- ##
16470 _ASBOX
16471 ) | sed "s/^/$as_me: WARNING: /" >&2
16473 esac
16474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479 eval "$as_ac_Header=\$ac_header_preproc"
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16487 cat >>confdefs.h <<_ACEOF
16488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489 _ACEOF
16493 done
16496 for ac_header in valgrind/valgrind.h
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16508 else
16509 # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 #include <$ac_header>
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_header_compiler=no
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <$ac_header>
16577 _ACEOF
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594 else
16595 ac_cpp_err=
16597 else
16598 ac_cpp_err=yes
16600 if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16602 else
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_preproc=no
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16613 # So? What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 yes:no: )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16622 no:yes:* )
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 ( cat <<\_ASBOX
16636 ## ----------------------------------- ##
16637 ## Report this to llvmbugs@cs.uiuc.edu ##
16638 ## ----------------------------------- ##
16639 _ASBOX
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16642 esac
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648 eval "$as_ac_Header=\$ac_header_preproc"
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16662 done
16665 for ac_header in fenv.h
16667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 ac_res=`eval echo '${'$as_ac_Header'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676 echo "${ECHO_T}$ac_res" >&6; }
16677 else
16678 # Is the header compilable?
16679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16688 #include <$ac_header>
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_header_compiler=yes
16725 else
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_header_compiler=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 echo "${ECHO_T}$ac_header_compiler" >&6; }
16736 # Is the header present?
16737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h. */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h. */
16745 #include <$ac_header>
16746 _ACEOF
16747 if { (ac_try="$ac_cpp conftest.$ac_ext"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } >/dev/null; then
16760 if test -s conftest.err; then
16761 ac_cpp_err=$ac_c_preproc_warn_flag
16762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16763 else
16764 ac_cpp_err=
16766 else
16767 ac_cpp_err=yes
16769 if test -z "$ac_cpp_err"; then
16770 ac_header_preproc=yes
16771 else
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16775 ac_header_preproc=no
16778 rm -f conftest.err conftest.$ac_ext
16779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6; }
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 yes:no: )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16791 no:yes:* )
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 ( cat <<\_ASBOX
16805 ## ----------------------------------- ##
16806 ## Report this to llvmbugs@cs.uiuc.edu ##
16807 ## ----------------------------------- ##
16808 _ASBOX
16809 ) | sed "s/^/$as_me: WARNING: /" >&2
16811 esac
16812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817 eval "$as_ac_Header=\$ac_header_preproc"
16819 ac_res=`eval echo '${'$as_ac_Header'}'`
16820 { echo "$as_me:$LINENO: result: $ac_res" >&5
16821 echo "${ECHO_T}$ac_res" >&6; }
16824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16825 cat >>confdefs.h <<_ACEOF
16826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16827 _ACEOF
16831 done
16833 if test "$ENABLE_THREADS" -eq 1 ; then
16835 for ac_header in pthread.h
16837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 ac_res=`eval echo '${'$as_ac_Header'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16847 else
16848 # Is the header compilable?
16849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 $ac_includes_default
16858 #include <$ac_header>
16859 _ACEOF
16860 rm -f conftest.$ac_objext
16861 if { (ac_try="$ac_compile"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_compile") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_header_compiler=yes
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 ac_header_compiler=no
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904 echo "${ECHO_T}$ac_header_compiler" >&6; }
16906 # Is the header present?
16907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 #include <$ac_header>
16916 _ACEOF
16917 if { (ac_try="$ac_cpp conftest.$ac_ext"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } >/dev/null; then
16930 if test -s conftest.err; then
16931 ac_cpp_err=$ac_c_preproc_warn_flag
16932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16933 else
16934 ac_cpp_err=
16936 else
16937 ac_cpp_err=yes
16939 if test -z "$ac_cpp_err"; then
16940 ac_header_preproc=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_header_preproc=no
16948 rm -f conftest.err conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950 echo "${ECHO_T}$ac_header_preproc" >&6; }
16952 # So? What about this header?
16953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16954 yes:no: )
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16959 ac_header_preproc=yes
16961 no:yes:* )
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16974 ( cat <<\_ASBOX
16975 ## ----------------------------------- ##
16976 ## Report this to llvmbugs@cs.uiuc.edu ##
16977 ## ----------------------------------- ##
16978 _ASBOX
16979 ) | sed "s/^/$as_me: WARNING: /" >&2
16981 esac
16982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 eval "$as_ac_Header=\$ac_header_preproc"
16989 ac_res=`eval echo '${'$as_ac_Header'}'`
16990 { echo "$as_me:$LINENO: result: $ac_res" >&5
16991 echo "${ECHO_T}$ac_res" >&6; }
16994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16995 cat >>confdefs.h <<_ACEOF
16996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16997 _ACEOF
16998 HAVE_PTHREAD=1
17000 else
17001 HAVE_PTHREAD=0
17005 done
17007 else
17008 HAVE_PTHREAD=0
17012 if test "$llvm_cv_enable_libffi" = "yes" ; then
17015 for ac_header in ffi.h ffi/ffi.h
17017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 ac_res=`eval echo '${'$as_ac_Header'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026 echo "${ECHO_T}$ac_res" >&6; }
17027 else
17028 # Is the header compilable?
17029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17038 #include <$ac_header>
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_compile") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_header_compiler=yes
17075 else
17076 echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17079 ac_header_compiler=no
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084 echo "${ECHO_T}$ac_header_compiler" >&6; }
17086 # Is the header present?
17087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17089 cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h. */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 #include <$ac_header>
17096 _ACEOF
17097 if { (ac_try="$ac_cpp conftest.$ac_ext"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } >/dev/null; then
17110 if test -s conftest.err; then
17111 ac_cpp_err=$ac_c_preproc_warn_flag
17112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17113 else
17114 ac_cpp_err=
17116 else
17117 ac_cpp_err=yes
17119 if test -z "$ac_cpp_err"; then
17120 ac_header_preproc=yes
17121 else
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_preproc=no
17128 rm -f conftest.err conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17130 echo "${ECHO_T}$ac_header_preproc" >&6; }
17132 # So? What about this header?
17133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17134 yes:no: )
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17139 ac_header_preproc=yes
17141 no:yes:* )
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17154 ( cat <<\_ASBOX
17155 ## ----------------------------------- ##
17156 ## Report this to llvmbugs@cs.uiuc.edu ##
17157 ## ----------------------------------- ##
17158 _ASBOX
17159 ) | sed "s/^/$as_me: WARNING: /" >&2
17161 esac
17162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 eval "$as_ac_Header=\$ac_header_preproc"
17169 ac_res=`eval echo '${'$as_ac_Header'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17175 cat >>confdefs.h <<_ACEOF
17176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17177 _ACEOF
17181 done
17186 for ac_header in CrashReporterClient.h
17188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 ac_res=`eval echo '${'$as_ac_Header'}'`
17196 { echo "$as_me:$LINENO: result: $ac_res" >&5
17197 echo "${ECHO_T}$ac_res" >&6; }
17198 else
17199 # Is the header compilable?
17200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 $ac_includes_default
17209 #include <$ac_header>
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (ac_try="$ac_compile"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_compile") 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_header_compiler=yes
17246 else
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_header_compiler=no
17253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17255 echo "${ECHO_T}$ac_header_compiler" >&6; }
17257 # Is the header present?
17258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 #include <$ac_header>
17267 _ACEOF
17268 if { (ac_try="$ac_cpp conftest.$ac_ext"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } >/dev/null; then
17281 if test -s conftest.err; then
17282 ac_cpp_err=$ac_c_preproc_warn_flag
17283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17284 else
17285 ac_cpp_err=
17287 else
17288 ac_cpp_err=yes
17290 if test -z "$ac_cpp_err"; then
17291 ac_header_preproc=yes
17292 else
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ac_header_preproc=no
17299 rm -f conftest.err conftest.$ac_ext
17300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301 echo "${ECHO_T}$ac_header_preproc" >&6; }
17303 # So? What about this header?
17304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17305 yes:no: )
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310 ac_header_preproc=yes
17312 no:yes:* )
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17325 ( cat <<\_ASBOX
17326 ## ----------------------------------- ##
17327 ## Report this to llvmbugs@cs.uiuc.edu ##
17328 ## ----------------------------------- ##
17329 _ASBOX
17330 ) | sed "s/^/$as_me: WARNING: /" >&2
17332 esac
17333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 eval "$as_ac_Header=\$ac_header_preproc"
17340 ac_res=`eval echo '${'$as_ac_Header'}'`
17341 { echo "$as_me:$LINENO: result: $ac_res" >&5
17342 echo "${ECHO_T}$ac_res" >&6; }
17345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17348 _ACEOF
17352 done
17358 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17359 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17360 if test "${ac_cv_huge_val_sanity+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17364 ac_ext=cpp
17365 ac_cpp='$CXXCPP $CPPFLAGS'
17366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17370 ac_save_CXXFLAGS=$CXXFLAGS
17371 CXXFLAGS=-pedantic
17372 if test "$cross_compiling" = yes; then
17373 ac_cv_huge_val_sanity=yes
17374 else
17375 cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h. */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <math.h>
17383 main ()
17385 double x = HUGE_VAL; return x != x;
17387 return 0;
17389 _ACEOF
17390 rm -f conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_huge_val_sanity=yes
17411 else
17412 echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ( exit $ac_status )
17417 ac_cv_huge_val_sanity=no
17419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17423 CXXFLAGS=$ac_save_CXXFLAGS
17424 ac_ext=c
17425 ac_cpp='$CPP $CPPFLAGS'
17426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17432 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17433 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17434 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17437 { echo "$as_me:$LINENO: checking for pid_t" >&5
17438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17439 if test "${ac_cv_type_pid_t+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 $ac_includes_default
17449 typedef pid_t ac__type_new_;
17451 main ()
17453 if ((ac__type_new_ *) 0)
17454 return 0;
17455 if (sizeof (ac__type_new_))
17456 return 0;
17458 return 0;
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_compile") 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_try") 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_type_pid_t=yes
17496 else
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ac_cv_type_pid_t=no
17503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17506 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17507 if test $ac_cv_type_pid_t = yes; then
17509 else
17511 cat >>confdefs.h <<_ACEOF
17512 #define pid_t int
17513 _ACEOF
17517 { echo "$as_me:$LINENO: checking for size_t" >&5
17518 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17519 if test "${ac_cv_type_size_t+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 $ac_includes_default
17529 typedef size_t ac__type_new_;
17531 main ()
17533 if ((ac__type_new_ *) 0)
17534 return 0;
17535 if (sizeof (ac__type_new_))
17536 return 0;
17538 return 0;
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_cv_type_size_t=yes
17576 else
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_cv_type_size_t=no
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17586 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17587 if test $ac_cv_type_size_t = yes; then
17589 else
17591 cat >>confdefs.h <<_ACEOF
17592 #define size_t unsigned int
17593 _ACEOF
17598 cat >>confdefs.h <<_ACEOF
17599 #define RETSIGTYPE void
17600 _ACEOF
17602 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17603 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17604 if test "${ac_cv_struct_tm+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h. */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 #include <sys/types.h>
17614 #include <time.h>
17617 main ()
17619 struct tm *tp; tp->tm_sec;
17621 return 0;
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (ac_try="$ac_compile"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_compile") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639 { (case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_try") 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_try") 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ac_cv_struct_tm=time.h
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_cv_struct_tm=sys/time.h
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17669 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17670 if test $ac_cv_struct_tm = sys/time.h; then
17672 cat >>confdefs.h <<\_ACEOF
17673 #define TM_IN_SYS_TIME 1
17674 _ACEOF
17678 { echo "$as_me:$LINENO: checking for int64_t" >&5
17679 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17680 if test "${ac_cv_type_int64_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 typedef int64_t ac__type_new_;
17692 main ()
17694 if ((ac__type_new_ *) 0)
17695 return 0;
17696 if (sizeof (ac__type_new_))
17697 return 0;
17699 return 0;
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_type_int64_t=yes
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_type_int64_t=no
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17747 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17748 if test $ac_cv_type_int64_t = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_INT64_T 1
17752 _ACEOF
17755 else
17756 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17757 echo "$as_me: error: Type int64_t required but not found" >&2;}
17758 { (exit 1); exit 1; }; }
17761 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17762 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17763 if test "${ac_cv_type_uint64_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h. */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 typedef uint64_t ac__type_new_;
17775 main ()
17777 if ((ac__type_new_ *) 0)
17778 return 0;
17779 if (sizeof (ac__type_new_))
17780 return 0;
17782 return 0;
17784 _ACEOF
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest.$ac_objext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_cv_type_uint64_t=yes
17820 else
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 ac_cv_type_uint64_t=no
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17830 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17831 if test $ac_cv_type_uint64_t = yes; then
17833 cat >>confdefs.h <<_ACEOF
17834 #define HAVE_UINT64_T 1
17835 _ACEOF
17838 else
17839 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17840 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17841 if test "${ac_cv_type_u_int64_t+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 $ac_includes_default
17851 typedef u_int64_t ac__type_new_;
17853 main ()
17855 if ((ac__type_new_ *) 0)
17856 return 0;
17857 if (sizeof (ac__type_new_))
17858 return 0;
17860 return 0;
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_type_u_int64_t=yes
17898 else
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ac_cv_type_u_int64_t=no
17905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17908 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17909 if test $ac_cv_type_u_int64_t = yes; then
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_U_INT64_T 1
17913 _ACEOF
17916 else
17917 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17918 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17919 { (exit 1); exit 1; }; }
17933 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define $ac_func innocuous_$ac_func
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char $ac_func (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17956 #ifdef __STDC__
17957 # include <limits.h>
17958 #else
17959 # include <assert.h>
17960 #endif
17962 #undef $ac_func
17964 /* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17967 #ifdef __cplusplus
17968 extern "C"
17969 #endif
17970 char $ac_func ();
17971 /* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974 #if defined __stub_$ac_func || defined __stub___$ac_func
17975 choke me
17976 #endif
17979 main ()
17981 return $ac_func ();
17983 return 0;
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 eval "$as_ac_var=yes"
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 eval "$as_ac_var=no"
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18031 ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033 echo "${ECHO_T}$ac_res" >&6; }
18034 if test `eval echo '${'$as_ac_var'}'` = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18037 _ACEOF
18040 done
18046 for ac_func in powf fmodf strtof round
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054 cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h. */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18062 #define $ac_func innocuous_$ac_func
18064 /* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func (); below.
18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067 <limits.h> exists even on freestanding compilers. */
18069 #ifdef __STDC__
18070 # include <limits.h>
18071 #else
18072 # include <assert.h>
18073 #endif
18075 #undef $ac_func
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char $ac_func ();
18084 /* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087 #if defined __stub_$ac_func || defined __stub___$ac_func
18088 choke me
18089 #endif
18092 main ()
18094 return $ac_func ();
18096 return 0;
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 eval "$as_ac_var=yes"
18134 else
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 eval "$as_ac_var=no"
18141 rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18144 ac_res=`eval echo '${'$as_ac_var'}'`
18145 { echo "$as_me:$LINENO: result: $ac_res" >&5
18146 echo "${ECHO_T}$ac_res" >&6; }
18147 if test `eval echo '${'$as_ac_var'}'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18150 _ACEOF
18153 done
18160 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 else
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h. */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18176 #define $ac_func innocuous_$ac_func
18178 /* System header to define __stub macros and hopefully few prototypes,
18179 which can conflict with char $ac_func (); below.
18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181 <limits.h> exists even on freestanding compilers. */
18183 #ifdef __STDC__
18184 # include <limits.h>
18185 #else
18186 # include <assert.h>
18187 #endif
18189 #undef $ac_func
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char $ac_func ();
18198 /* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201 #if defined __stub_$ac_func || defined __stub___$ac_func
18202 choke me
18203 #endif
18206 main ()
18208 return $ac_func ();
18210 return 0;
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_try") 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 eval "$as_ac_var=yes"
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18267 done
18272 for ac_func in isatty mkdtemp mkstemp
18274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h. */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18288 #define $ac_func innocuous_$ac_func
18290 /* System header to define __stub macros and hopefully few prototypes,
18291 which can conflict with char $ac_func (); below.
18292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18293 <limits.h> exists even on freestanding compilers. */
18295 #ifdef __STDC__
18296 # include <limits.h>
18297 #else
18298 # include <assert.h>
18299 #endif
18301 #undef $ac_func
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306 #ifdef __cplusplus
18307 extern "C"
18308 #endif
18309 char $ac_func ();
18310 /* The GNU C library defines this for functions which it implements
18311 to always fail with ENOSYS. Some functions are actually named
18312 something starting with __ and the normal name is an alias. */
18313 #if defined __stub_$ac_func || defined __stub___$ac_func
18314 choke me
18315 #endif
18318 main ()
18320 return $ac_func ();
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18360 else
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 eval "$as_ac_var=no"
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18370 ac_res=`eval echo '${'$as_ac_var'}'`
18371 { echo "$as_me:$LINENO: result: $ac_res" >&5
18372 echo "${ECHO_T}$ac_res" >&6; }
18373 if test `eval echo '${'$as_ac_var'}'` = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18376 _ACEOF
18379 done
18387 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403 #define $ac_func innocuous_$ac_func
18405 /* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18410 #ifdef __STDC__
18411 # include <limits.h>
18412 #else
18413 # include <assert.h>
18414 #endif
18416 #undef $ac_func
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 char $ac_func ();
18425 /* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428 #if defined __stub_$ac_func || defined __stub___$ac_func
18429 choke me
18430 #endif
18433 main ()
18435 return $ac_func ();
18437 return 0;
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 eval "$as_ac_var=yes"
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 eval "$as_ac_var=no"
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18485 ac_res=`eval echo '${'$as_ac_var'}'`
18486 { echo "$as_me:$LINENO: result: $ac_res" >&5
18487 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18491 _ACEOF
18494 done
18500 for ac_func in strerror strerror_r strerror_s setenv
18502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516 #define $ac_func innocuous_$ac_func
18518 /* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char $ac_func (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18523 #ifdef __STDC__
18524 # include <limits.h>
18525 #else
18526 # include <assert.h>
18527 #endif
18529 #undef $ac_func
18531 /* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18534 #ifdef __cplusplus
18535 extern "C"
18536 #endif
18537 char $ac_func ();
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined __stub_$ac_func || defined __stub___$ac_func
18542 choke me
18543 #endif
18546 main ()
18548 return $ac_func ();
18550 return 0;
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (ac_try="$ac_link"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_link") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588 else
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 eval "$as_ac_var=no"
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18598 ac_res=`eval echo '${'$as_ac_var'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602 cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18604 _ACEOF
18607 done
18613 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629 #define $ac_func innocuous_$ac_func
18631 /* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char $ac_func (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18636 #ifdef __STDC__
18637 # include <limits.h>
18638 #else
18639 # include <assert.h>
18640 #endif
18642 #undef $ac_func
18644 /* Override any GCC internal prototype to avoid an error.
18645 Use char because int might match the return type of a GCC
18646 builtin and then its argument prototype would still apply. */
18647 #ifdef __cplusplus
18648 extern "C"
18649 #endif
18650 char $ac_func ();
18651 /* The GNU C library defines this for functions which it implements
18652 to always fail with ENOSYS. Some functions are actually named
18653 something starting with __ and the normal name is an alias. */
18654 #if defined __stub_$ac_func || defined __stub___$ac_func
18655 choke me
18656 #endif
18659 main ()
18661 return $ac_func ();
18663 return 0;
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (ac_try="$ac_link"
18668 case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_link") 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 eval "$as_ac_var=yes"
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 eval "$as_ac_var=no"
18708 rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18711 ac_res=`eval echo '${'$as_ac_var'}'`
18712 { echo "$as_me:$LINENO: result: $ac_res" >&5
18713 echo "${ECHO_T}$ac_res" >&6; }
18714 if test `eval echo '${'$as_ac_var'}'` = yes; then
18715 cat >>confdefs.h <<_ACEOF
18716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18717 _ACEOF
18720 done
18726 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18742 #define $ac_func innocuous_$ac_func
18744 /* System header to define __stub macros and hopefully few prototypes,
18745 which can conflict with char $ac_func (); below.
18746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18747 <limits.h> exists even on freestanding compilers. */
18749 #ifdef __STDC__
18750 # include <limits.h>
18751 #else
18752 # include <assert.h>
18753 #endif
18755 #undef $ac_func
18757 /* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 char $ac_func ();
18764 /* The GNU C library defines this for functions which it implements
18765 to always fail with ENOSYS. Some functions are actually named
18766 something starting with __ and the normal name is an alias. */
18767 #if defined __stub_$ac_func || defined __stub___$ac_func
18768 choke me
18769 #endif
18772 main ()
18774 return $ac_func ();
18776 return 0;
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 eval "$as_ac_var=yes"
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 eval "$as_ac_var=no"
18821 rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18833 done
18835 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18836 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18837 if test "${llvm_cv_c_printf_a+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 ac_ext=c
18841 ac_cpp='$CPP $CPPFLAGS'
18842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18846 if test "$cross_compiling" = yes; then
18847 llvmac_cv_c_printf_a=no
18848 else
18849 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h. */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 #include <stdio.h>
18858 #include <stdlib.h>
18861 main ()
18864 volatile double A, B;
18865 char Buffer[100];
18866 A = 1;
18867 A /= 10.0;
18868 sprintf(Buffer, "%a", A);
18869 B = atof(Buffer);
18870 if (A != B)
18871 return (1);
18872 if (A != 0x1.999999999999ap-4)
18873 return (1);
18874 return (0);
18876 return 0;
18878 _ACEOF
18879 rm -f conftest$ac_exeext
18880 if { (ac_try="$ac_link"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_link") 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 llvm_cv_c_printf_a=yes
18900 else
18901 echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ( exit $ac_status )
18906 llvmac_cv_c_printf_a=no
18908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 ac_ext=c
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18919 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18920 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18921 if test "$llvm_cv_c_printf_a" = "yes"; then
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE_PRINTF_A 1
18925 _ACEOF
18930 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18931 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18932 if test "${ac_cv_func_rand48+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935 ac_ext=cpp
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <stdlib.h>
18949 main ()
18951 srand48(0);lrand48();drand48();
18953 return 0;
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_func_rand48=yes
18991 else
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_func_rand48=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 ac_ext=c
19000 ac_cpp='$CPP $CPPFLAGS'
19001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19006 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19007 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19009 if test "$ac_cv_func_rand48" = "yes" ; then
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_RAND48 1
19013 _ACEOF
19019 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19020 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19021 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024 ac_ext=cpp
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <math.h>
19038 main ()
19040 float f; isnan(f);
19042 return 0;
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest.$ac_objext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_func_isnan_in_math_h=yes
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func_isnan_in_math_h=no
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088 ac_ext=c
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19095 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19096 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19099 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_ISNAN_IN_MATH_H 1
19103 _ACEOF
19107 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19108 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19109 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 ac_ext=cpp
19113 ac_cpp='$CXXCPP $CPPFLAGS'
19114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 #include <cmath>
19126 main ()
19128 float f; isnan(f);
19130 return 0;
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19141 ac_status=$?
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest.$ac_objext'
19158 { (case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_try") 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
19167 ac_cv_func_isnan_in_cmath=yes
19168 else
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_func_isnan_in_cmath=no
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176 ac_ext=c
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19183 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19184 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19186 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_ISNAN_IN_CMATH 1
19190 _ACEOF
19194 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19195 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199 ac_ext=cpp
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <cmath>
19213 main ()
19215 float f; std::isnan(f);
19217 return 0;
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_func_std_isnan_in_cmath=yes
19255 else
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_func_std_isnan_in_cmath=no
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 ac_ext=c
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19270 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19271 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19273 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_STD_ISNAN_IN_CMATH 1
19277 _ACEOF
19282 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19283 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19284 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287 ac_ext=cpp
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h. */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 #include <math.h>
19301 main ()
19303 float f; isinf(f);
19305 return 0;
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (ac_try="$ac_compile"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_compile") 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_func_isinf_in_math_h=yes
19343 else
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_func_isinf_in_math_h=no
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_ext=c
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19359 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19361 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_ISINF_IN_MATH_H 1
19365 _ACEOF
19369 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19370 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 ac_ext=cpp
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h. */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19386 #include <cmath>
19388 main ()
19390 float f; isinf(f);
19392 return 0;
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 ac_cv_func_isinf_in_cmath=yes
19430 else
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_func_isinf_in_cmath=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 ac_ext=c
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19446 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19448 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_ISINF_IN_CMATH 1
19452 _ACEOF
19456 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19457 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19458 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 ac_ext=cpp
19462 ac_cpp='$CXXCPP $CPPFLAGS'
19463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467 cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h. */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <cmath>
19475 main ()
19477 float f; std::isinf(f)}
19479 return 0;
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_func_std_isinf_in_cmath=yes
19517 else
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_func_std_isinf_in_cmath=no
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19533 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19535 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_STD_ISINF_IN_CMATH 1
19539 _ACEOF
19543 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19544 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19545 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548 ac_ext=cpp
19549 ac_cpp='$CXXCPP $CPPFLAGS'
19550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <ieeefp.h>
19562 main ()
19564 float f; finite(f);
19566 return 0;
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_cv_func_finite_in_ieeefp_h=yes
19604 else
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_cv_func_finite_in_ieeefp_h=no
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612 ac_ext=c
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19619 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19620 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19622 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_FINITE_IN_IEEEFP_H 1
19626 _ACEOF
19632 if test "$llvm_cv_platform_type" = "Unix" ; then
19635 for ac_header in stdlib.h unistd.h
19637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 ac_res=`eval echo '${'$as_ac_Header'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646 echo "${ECHO_T}$ac_res" >&6; }
19647 else
19648 # Is the header compilable?
19649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h. */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 #include <$ac_header>
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_header_compiler=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_header_compiler=no
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704 echo "${ECHO_T}$ac_header_compiler" >&6; }
19706 # Is the header present?
19707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <$ac_header>
19716 _ACEOF
19717 if { (ac_try="$ac_cpp conftest.$ac_ext"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } >/dev/null; then
19730 if test -s conftest.err; then
19731 ac_cpp_err=$ac_c_preproc_warn_flag
19732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19733 else
19734 ac_cpp_err=
19736 else
19737 ac_cpp_err=yes
19739 if test -z "$ac_cpp_err"; then
19740 ac_header_preproc=yes
19741 else
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 ac_header_preproc=no
19748 rm -f conftest.err conftest.$ac_ext
19749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6; }
19752 # So? What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754 yes:no: )
19755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
19761 no:yes:* )
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19774 ( cat <<\_ASBOX
19775 ## ----------------------------------- ##
19776 ## Report this to llvmbugs@cs.uiuc.edu ##
19777 ## ----------------------------------- ##
19778 _ASBOX
19779 ) | sed "s/^/$as_me: WARNING: /" >&2
19781 esac
19782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787 eval "$as_ac_Header=\$ac_header_preproc"
19789 ac_res=`eval echo '${'$as_ac_Header'}'`
19790 { echo "$as_me:$LINENO: result: $ac_res" >&5
19791 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19795 cat >>confdefs.h <<_ACEOF
19796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19797 _ACEOF
19801 done
19804 for ac_func in getpagesize
19806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19820 #define $ac_func innocuous_$ac_func
19822 /* System header to define __stub macros and hopefully few prototypes,
19823 which can conflict with char $ac_func (); below.
19824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19825 <limits.h> exists even on freestanding compilers. */
19827 #ifdef __STDC__
19828 # include <limits.h>
19829 #else
19830 # include <assert.h>
19831 #endif
19833 #undef $ac_func
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char $ac_func ();
19842 /* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845 #if defined __stub_$ac_func || defined __stub___$ac_func
19846 choke me
19847 #endif
19850 main ()
19852 return $ac_func ();
19854 return 0;
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_link") 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_try") 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest$ac_exeext'
19882 { (case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_try") 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 eval "$as_ac_var=yes"
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 eval "$as_ac_var=no"
19899 rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19902 ac_res=`eval echo '${'$as_ac_var'}'`
19903 { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19905 if test `eval echo '${'$as_ac_var'}'` = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19908 _ACEOF
19911 done
19913 { echo "$as_me:$LINENO: checking for working mmap" >&5
19914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19915 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 if test "$cross_compiling" = yes; then
19919 ac_cv_func_mmap_fixed_mapped=no
19920 else
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h. */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19928 /* malloc might have been renamed as rpl_malloc. */
19929 #undef malloc
19931 /* Thanks to Mike Haertel and Jim Avera for this test.
19932 Here is a matrix of mmap possibilities:
19933 mmap private not fixed
19934 mmap private fixed at somewhere currently unmapped
19935 mmap private fixed at somewhere already mapped
19936 mmap shared not fixed
19937 mmap shared fixed at somewhere currently unmapped
19938 mmap shared fixed at somewhere already mapped
19939 For private mappings, we should verify that changes cannot be read()
19940 back from the file, nor mmap's back from the file at a different
19941 address. (There have been systems where private was not correctly
19942 implemented like the infamous i386 svr4.0, and systems where the
19943 VM page cache was not coherent with the file system buffer cache
19944 like early versions of FreeBSD and possibly contemporary NetBSD.)
19945 For shared mappings, we should conversely verify that changes get
19946 propagated back to all the places they're supposed to be.
19948 Grep wants private fixed already mapped.
19949 The main things grep needs to know about mmap are:
19950 * does it exist and is it safe to write into the mmap'd area
19951 * how to use it (BSD variants) */
19953 #include <fcntl.h>
19954 #include <sys/mman.h>
19956 #if !STDC_HEADERS && !HAVE_STDLIB_H
19957 char *malloc ();
19958 #endif
19960 /* This mess was copied from the GNU getpagesize.h. */
19961 #if !HAVE_GETPAGESIZE
19962 /* Assume that all systems that can run configure have sys/param.h. */
19963 # if !HAVE_SYS_PARAM_H
19964 # define HAVE_SYS_PARAM_H 1
19965 # endif
19967 # ifdef _SC_PAGESIZE
19968 # define getpagesize() sysconf(_SC_PAGESIZE)
19969 # else /* no _SC_PAGESIZE */
19970 # if HAVE_SYS_PARAM_H
19971 # include <sys/param.h>
19972 # ifdef EXEC_PAGESIZE
19973 # define getpagesize() EXEC_PAGESIZE
19974 # else /* no EXEC_PAGESIZE */
19975 # ifdef NBPG
19976 # define getpagesize() NBPG * CLSIZE
19977 # ifndef CLSIZE
19978 # define CLSIZE 1
19979 # endif /* no CLSIZE */
19980 # else /* no NBPG */
19981 # ifdef NBPC
19982 # define getpagesize() NBPC
19983 # else /* no NBPC */
19984 # ifdef PAGESIZE
19985 # define getpagesize() PAGESIZE
19986 # endif /* PAGESIZE */
19987 # endif /* no NBPC */
19988 # endif /* no NBPG */
19989 # endif /* no EXEC_PAGESIZE */
19990 # else /* no HAVE_SYS_PARAM_H */
19991 # define getpagesize() 8192 /* punt totally */
19992 # endif /* no HAVE_SYS_PARAM_H */
19993 # endif /* no _SC_PAGESIZE */
19995 #endif /* no HAVE_GETPAGESIZE */
19998 main ()
20000 char *data, *data2, *data3;
20001 int i, pagesize;
20002 int fd;
20004 pagesize = getpagesize ();
20006 /* First, make a file with some known garbage in it. */
20007 data = (char *) malloc (pagesize);
20008 if (!data)
20009 return 1;
20010 for (i = 0; i < pagesize; ++i)
20011 *(data + i) = rand ();
20012 umask (0);
20013 fd = creat ("conftest.mmap", 0600);
20014 if (fd < 0)
20015 return 1;
20016 if (write (fd, data, pagesize) != pagesize)
20017 return 1;
20018 close (fd);
20020 /* Next, try to mmap the file at a fixed address which already has
20021 something else allocated at it. If we can, also make sure that
20022 we see the same garbage. */
20023 fd = open ("conftest.mmap", O_RDWR);
20024 if (fd < 0)
20025 return 1;
20026 data2 = (char *) malloc (2 * pagesize);
20027 if (!data2)
20028 return 1;
20029 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20032 return 1;
20033 for (i = 0; i < pagesize; ++i)
20034 if (*(data + i) != *(data2 + i))
20035 return 1;
20037 /* Finally, make sure that changes to the mapped area do not
20038 percolate back to the file as seen by read(). (This is a bug on
20039 some variants of i386 svr4.0.) */
20040 for (i = 0; i < pagesize; ++i)
20041 *(data2 + i) = *(data2 + i) + 1;
20042 data3 = (char *) malloc (pagesize);
20043 if (!data3)
20044 return 1;
20045 if (read (fd, data3, pagesize) != pagesize)
20046 return 1;
20047 for (i = 0; i < pagesize; ++i)
20048 if (*(data + i) != *(data3 + i))
20049 return 1;
20050 close (fd);
20051 return 0;
20053 _ACEOF
20054 rm -f conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_cv_func_mmap_fixed_mapped=yes
20075 else
20076 echo "$as_me: program exited with status $ac_status" >&5
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ( exit $ac_status )
20081 ac_cv_func_mmap_fixed_mapped=no
20083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20088 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20089 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20090 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE_MMAP 1
20094 _ACEOF
20097 rm -f conftest.mmap
20099 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20100 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20101 if test "${ac_cv_func_mmap_file+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104 ac_ext=c
20105 ac_cpp='$CPP $CPPFLAGS'
20106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20110 if test "$cross_compiling" = yes; then
20111 ac_cv_func_mmap_file=no
20112 else
20113 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 #include <sys/types.h>
20122 #include <sys/mman.h>
20123 #include <fcntl.h>
20126 main ()
20129 int fd;
20130 fd = creat ("foo",0777);
20131 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20132 unlink ("foo");
20133 return (fd != (int) MAP_FAILED);
20135 return 0;
20137 _ACEOF
20138 rm -f conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_func_mmap_file=yes
20159 else
20160 echo "$as_me: program exited with status $ac_status" >&5
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ( exit $ac_status )
20165 ac_cv_func_mmap_file=no
20167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20171 ac_ext=c
20172 ac_cpp='$CPP $CPPFLAGS'
20173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20180 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20181 if test "$ac_cv_func_mmap_file" = yes; then
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_MMAP_FILE
20185 _ACEOF
20187 MMAP_FILE=yes
20191 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20192 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20193 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 if test "$llvm_cv_os_type" = "Interix" ; then
20197 ac_cv_need_dev_zero_for_mmap=yes
20198 else
20199 ac_cv_need_dev_zero_for_mmap=no
20203 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20204 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20205 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define NEED_DEV_ZERO_FOR_MMAP 1
20209 _ACEOF
20213 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20214 then
20215 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20216 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20218 if test "$ac_cv_func_mmap_file" = "no"
20219 then
20220 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20221 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20225 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20226 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20227 ac_ext=cpp
20228 ac_cpp='$CXXCPP $CPPFLAGS'
20229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h. */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20239 int main() {
20240 volatile unsigned long val = 1;
20241 __sync_synchronize();
20242 __sync_val_compare_and_swap(&val, 1, 0);
20243 __sync_add_and_fetch(&val, 1);
20244 __sync_sub_and_fetch(&val, 1);
20245 return 0;
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest$ac_exeext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_ext=c
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289 { echo "$as_me:$LINENO: result: yes" >&5
20290 echo "${ECHO_T}yes" >&6; }
20292 cat >>confdefs.h <<\_ACEOF
20293 #define LLVM_MULTITHREADED 1
20294 _ACEOF
20296 else
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 { echo "$as_me:$LINENO: result: no" >&5
20301 echo "${ECHO_T}no" >&6; }
20303 cat >>confdefs.h <<\_ACEOF
20304 #define LLVM_MULTITHREADED 0
20305 _ACEOF
20307 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20308 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20311 rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
20315 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20316 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20317 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20318 if test "${llvm_cv_linux_mixed+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321 ac_ext=c
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 #ifndef __x86_64__
20334 error: Not x86-64 even if uname says so!
20335 #endif
20338 main ()
20342 return 0;
20344 _ACEOF
20345 rm -f conftest.$ac_objext
20346 if { (ac_try="$ac_compile"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 llvm_cv_linux_mixed=no
20380 else
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 llvm_cv_linux_mixed=yes
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 ac_ext=c
20389 ac_cpp='$CPP $CPPFLAGS'
20390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20397 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20399 if test "$llvm_cv_linux_mixed" = "yes"; then
20400 llvm_cv_target_arch="x86"
20401 ARCH="x86"
20406 for ac_func in __dso_handle
20408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414 cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h. */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20422 #define $ac_func innocuous_$ac_func
20424 /* System header to define __stub macros and hopefully few prototypes,
20425 which can conflict with char $ac_func (); below.
20426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20427 <limits.h> exists even on freestanding compilers. */
20429 #ifdef __STDC__
20430 # include <limits.h>
20431 #else
20432 # include <assert.h>
20433 #endif
20435 #undef $ac_func
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char $ac_func ();
20444 /* The GNU C library defines this for functions which it implements
20445 to always fail with ENOSYS. Some functions are actually named
20446 something starting with __ and the normal name is an alias. */
20447 #if defined __stub_$ac_func || defined __stub___$ac_func
20448 choke me
20449 #endif
20452 main ()
20454 return $ac_func ();
20456 return 0;
20458 _ACEOF
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 eval "$as_ac_var=yes"
20494 else
20495 echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20498 eval "$as_ac_var=no"
20501 rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20504 ac_res=`eval echo '${'$as_ac_var'}'`
20505 { echo "$as_me:$LINENO: result: $ac_res" >&5
20506 echo "${ECHO_T}$ac_res" >&6; }
20507 if test `eval echo '${'$as_ac_var'}'` = yes; then
20508 cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 _ACEOF
20513 done
20516 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20517 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20518 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521 llvm_cv_llvmgcc_sanity="no"
20522 if test -x "$LLVMGCC" ; then
20523 cp /dev/null conftest.c
20524 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20525 grep 'target datalayout =' > /dev/null 2>&1
20526 if test $? -eq 0 ; then
20527 llvm_cv_llvmgcc_sanity="yes"
20529 rm conftest.c
20532 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20533 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20535 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20536 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20537 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20538 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20539 LLVMCC1=$llvmcc1path
20541 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20542 LLVMCC1PLUS=$llvmcc1pluspath
20544 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20545 LLVMGCCDIR=$llvmgccdir
20547 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20548 LLVMGCC_LANGS=$llvmgcclangs
20550 { echo "$as_me:$LINENO: result: ok" >&5
20551 echo "${ECHO_T}ok" >&6; }
20554 SHLIBEXT=$libltdl_cv_shlibext
20557 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20560 # Translate the various configuration directories and other basic
20561 # information into substitutions that will end up in Makefile.config.in
20562 # that these configured values can be used by the makefiles
20563 if test "${prefix}" = "NONE" ; then
20564 prefix="/usr/local"
20566 eval LLVM_PREFIX="${prefix}";
20567 eval LLVM_BINDIR="${prefix}/bin";
20568 eval LLVM_LIBDIR="${prefix}/lib";
20569 eval LLVM_DATADIR="${prefix}/share/llvm";
20570 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20571 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20572 eval LLVM_INCLUDEDIR="${prefix}/include";
20573 eval LLVM_INFODIR="${prefix}/info";
20574 eval LLVM_MANDIR="${prefix}/man";
20575 LLVM_CONFIGTIME=`date`
20587 # Place the various directores into the config.h file as #defines so that we
20588 # can know about the installation paths within LLVM.
20590 cat >>confdefs.h <<_ACEOF
20591 #define LLVM_PREFIX "$LLVM_PREFIX"
20592 _ACEOF
20595 cat >>confdefs.h <<_ACEOF
20596 #define LLVM_BINDIR "$LLVM_BINDIR"
20597 _ACEOF
20600 cat >>confdefs.h <<_ACEOF
20601 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20602 _ACEOF
20605 cat >>confdefs.h <<_ACEOF
20606 #define LLVM_DATADIR "$LLVM_DATADIR"
20607 _ACEOF
20610 cat >>confdefs.h <<_ACEOF
20611 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20612 _ACEOF
20615 cat >>confdefs.h <<_ACEOF
20616 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20617 _ACEOF
20620 cat >>confdefs.h <<_ACEOF
20621 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20622 _ACEOF
20625 cat >>confdefs.h <<_ACEOF
20626 #define LLVM_INFODIR "$LLVM_INFODIR"
20627 _ACEOF
20630 cat >>confdefs.h <<_ACEOF
20631 #define LLVM_MANDIR "$LLVM_MANDIR"
20632 _ACEOF
20635 cat >>confdefs.h <<_ACEOF
20636 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20637 _ACEOF
20640 cat >>confdefs.h <<_ACEOF
20641 #define LLVM_HOSTTRIPLE "$host"
20642 _ACEOF
20645 # Determine which bindings to build.
20646 if test "$BINDINGS_TO_BUILD" = auto ; then
20647 BINDINGS_TO_BUILD=""
20648 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20649 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20652 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20655 # This isn't really configurey, but it avoids having to repeat the list in
20656 # other files.
20657 ALL_BINDINGS=ocaml
20660 # Do any work necessary to ensure that bindings have what they need.
20661 binding_prereqs_failed=0
20662 for a_binding in $BINDINGS_TO_BUILD ; do
20663 case "$a_binding" in
20664 ocaml)
20665 if test "x$OCAMLC" = x ; then
20666 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20667 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20668 binding_prereqs_failed=1
20670 if test "x$OCAMLDEP" = x ; then
20671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20673 binding_prereqs_failed=1
20675 if test "x$OCAMLOPT" = x ; then
20676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20679 if test "x$with_ocaml_libdir" != xauto ; then
20680 OCAML_LIBDIR=$with_ocaml_libdir
20682 else
20683 ocaml_stdlib="`"$OCAMLC" -where`"
20684 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20685 then
20686 # ocaml stdlib is beneath our prefix; use stdlib
20687 OCAML_LIBDIR=$ocaml_stdlib
20689 else
20690 # ocaml stdlib is outside our prefix; use libdir/ocaml
20691 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20696 esac
20697 done
20698 if test "$binding_prereqs_failed" = 1 ; then
20699 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20700 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20701 { (exit 1); exit 1; }; }
20704 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20705 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20706 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709 ac_ext=cpp
20710 ac_cpp='$CXXCPP $CPPFLAGS'
20711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20715 oldcxxflags="$CXXFLAGS"
20716 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20725 main ()
20729 return 0;
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest.$ac_objext'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 llvm_cv_cxx_visibility_inlines_hidden=yes
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 llvm_cv_cxx_visibility_inlines_hidden=no
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 CXXFLAGS="$oldcxxflags"
20776 ac_ext=c
20777 ac_cpp='$CPP $CPPFLAGS'
20778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20784 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20785 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20786 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20787 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20789 else
20790 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20795 if test "$llvm_cv_link_use_r" = "yes" ; then
20796 RPATH="-Wl,-R"
20797 else
20798 RPATH="-Wl,-rpath"
20802 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20803 RDYNAMIC="-Wl,-export-dynamic"
20804 else
20805 RDYNAMIC=""
20810 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20817 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20819 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20821 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20823 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20825 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20828 ac_config_files="$ac_config_files Makefile.config"
20831 ac_config_files="$ac_config_files llvm.spec"
20834 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20837 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20840 ac_config_commands="$ac_config_commands setup"
20842 ac_config_commands="$ac_config_commands Makefile"
20845 ac_config_commands="$ac_config_commands Makefile.common"
20848 ac_config_commands="$ac_config_commands examples/Makefile"
20851 ac_config_commands="$ac_config_commands lib/Makefile"
20854 ac_config_commands="$ac_config_commands runtime/Makefile"
20857 ac_config_commands="$ac_config_commands test/Makefile"
20860 ac_config_commands="$ac_config_commands test/Makefile.tests"
20863 ac_config_commands="$ac_config_commands unittests/Makefile"
20866 ac_config_commands="$ac_config_commands tools/Makefile"
20869 ac_config_commands="$ac_config_commands utils/Makefile"
20872 ac_config_commands="$ac_config_commands projects/Makefile"
20875 ac_config_commands="$ac_config_commands bindings/Makefile"
20878 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20882 cat >confcache <<\_ACEOF
20883 # This file is a shell script that caches the results of configure
20884 # tests run on this system so they can be shared between configure
20885 # scripts and configure runs, see configure's option --config-cache.
20886 # It is not useful on other systems. If it contains results you don't
20887 # want to keep, you may remove or edit it.
20889 # config.status only pays attention to the cache file if you give it
20890 # the --recheck option to rerun configure.
20892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20894 # following values.
20896 _ACEOF
20898 # The following way of writing the cache mishandles newlines in values,
20899 # but we know of no workaround that is simple, portable, and efficient.
20900 # So, we kill variables containing newlines.
20901 # Ultrix sh set writes to stderr and can't be redirected directly,
20902 # and sets the high bit in the cache file unless we assign to the vars.
20904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20905 eval ac_val=\$$ac_var
20906 case $ac_val in #(
20907 *${as_nl}*)
20908 case $ac_var in #(
20909 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20910 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20911 esac
20912 case $ac_var in #(
20913 _ | IFS | as_nl) ;; #(
20914 *) $as_unset $ac_var ;;
20915 esac ;;
20916 esac
20917 done
20919 (set) 2>&1 |
20920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20921 *${as_nl}ac_space=\ *)
20922 # `set' does not quote correctly, so add quotes (double-quote
20923 # substitution turns \\\\ into \\, and sed turns \\ into \).
20924 sed -n \
20925 "s/'/'\\\\''/g;
20926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20927 ;; #(
20929 # `set' quotes correctly as required by POSIX, so do not add quotes.
20930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20932 esac |
20933 sort
20935 sed '
20936 /^ac_cv_env_/b end
20937 t clear
20938 :clear
20939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20940 t end
20941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20942 :end' >>confcache
20943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20944 if test -w "$cache_file"; then
20945 test "x$cache_file" != "x/dev/null" &&
20946 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20947 echo "$as_me: updating cache $cache_file" >&6;}
20948 cat confcache >$cache_file
20949 else
20950 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20951 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20954 rm -f confcache
20956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20957 # Let make expand exec_prefix.
20958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20960 DEFS=-DHAVE_CONFIG_H
20962 ac_libobjs=
20963 ac_ltlibobjs=
20964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20965 # 1. Remove the extension, and $U if already installed.
20966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20967 ac_i=`echo "$ac_i" | sed "$ac_script"`
20968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20969 # will be set to the directory where LIBOBJS objects are built.
20970 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20971 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20972 done
20973 LIBOBJS=$ac_libobjs
20975 LTLIBOBJS=$ac_ltlibobjs
20978 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20979 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20980 Usually this means the macro was only invoked conditionally." >&5
20981 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20982 Usually this means the macro was only invoked conditionally." >&2;}
20983 { (exit 1); exit 1; }; }
20985 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20986 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20987 Usually this means the macro was only invoked conditionally." >&5
20988 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&2;}
20990 { (exit 1); exit 1; }; }
20993 : ${CONFIG_STATUS=./config.status}
20994 ac_clean_files_save=$ac_clean_files
20995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20996 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20997 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20998 cat >$CONFIG_STATUS <<_ACEOF
20999 #! $SHELL
21000 # Generated by $as_me.
21001 # Run this file to recreate the current configuration.
21002 # Compiler output produced by configure, useful for debugging
21003 # configure, is in config.log if it exists.
21005 debug=false
21006 ac_cs_recheck=false
21007 ac_cs_silent=false
21008 SHELL=\${CONFIG_SHELL-$SHELL}
21009 _ACEOF
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 ## --------------------- ##
21013 ## M4sh Initialization. ##
21014 ## --------------------- ##
21016 # Be Bourne compatible
21017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21018 emulate sh
21019 NULLCMD=:
21020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21021 # is contrary to our usage. Disable this feature.
21022 alias -g '${1+"$@"}'='"$@"'
21023 setopt NO_GLOB_SUBST
21024 else
21025 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21027 BIN_SH=xpg4; export BIN_SH # for Tru64
21028 DUALCASE=1; export DUALCASE # for MKS sh
21031 # PATH needs CR
21032 # Avoid depending upon Character Ranges.
21033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21036 as_cr_digits='0123456789'
21037 as_cr_alnum=$as_cr_Letters$as_cr_digits
21039 # The user is always right.
21040 if test "${PATH_SEPARATOR+set}" != set; then
21041 echo "#! /bin/sh" >conf$$.sh
21042 echo "exit 0" >>conf$$.sh
21043 chmod +x conf$$.sh
21044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21045 PATH_SEPARATOR=';'
21046 else
21047 PATH_SEPARATOR=:
21049 rm -f conf$$.sh
21052 # Support unset when possible.
21053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21054 as_unset=unset
21055 else
21056 as_unset=false
21060 # IFS
21061 # We need space, tab and new line, in precisely that order. Quoting is
21062 # there to prevent editors from complaining about space-tab.
21063 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21064 # splitting by setting IFS to empty value.)
21065 as_nl='
21067 IFS=" "" $as_nl"
21069 # Find who we are. Look in the path if we contain no directory separator.
21070 case $0 in
21071 *[\\/]* ) as_myself=$0 ;;
21072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21073 for as_dir in $PATH
21075 IFS=$as_save_IFS
21076 test -z "$as_dir" && as_dir=.
21077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21078 done
21079 IFS=$as_save_IFS
21082 esac
21083 # We did not find ourselves, most probably we were run as `sh COMMAND'
21084 # in which case we are not to be found in the path.
21085 if test "x$as_myself" = x; then
21086 as_myself=$0
21088 if test ! -f "$as_myself"; then
21089 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21090 { (exit 1); exit 1; }
21093 # Work around bugs in pre-3.0 UWIN ksh.
21094 for as_var in ENV MAIL MAILPATH
21095 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21096 done
21097 PS1='$ '
21098 PS2='> '
21099 PS4='+ '
21101 # NLS nuisances.
21102 for as_var in \
21103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21105 LC_TELEPHONE LC_TIME
21107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21108 eval $as_var=C; export $as_var
21109 else
21110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21112 done
21114 # Required to use basename.
21115 if expr a : '\(a\)' >/dev/null 2>&1 &&
21116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21117 as_expr=expr
21118 else
21119 as_expr=false
21122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21123 as_basename=basename
21124 else
21125 as_basename=false
21129 # Name of the executable.
21130 as_me=`$as_basename -- "$0" ||
21131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21132 X"$0" : 'X\(//\)$' \| \
21133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21134 echo X/"$0" |
21135 sed '/^.*\/\([^/][^/]*\)\/*$/{
21136 s//\1/
21139 /^X\/\(\/\/\)$/{
21140 s//\1/
21143 /^X\/\(\/\).*/{
21144 s//\1/
21147 s/.*/./; q'`
21149 # CDPATH.
21150 $as_unset CDPATH
21154 as_lineno_1=$LINENO
21155 as_lineno_2=$LINENO
21156 test "x$as_lineno_1" != "x$as_lineno_2" &&
21157 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21160 # uniformly replaced by the line number. The first 'sed' inserts a
21161 # line-number line after each line using $LINENO; the second 'sed'
21162 # does the real work. The second script uses 'N' to pair each
21163 # line-number line with the line containing $LINENO, and appends
21164 # trailing '-' during substitution so that $LINENO is not a special
21165 # case at line end.
21166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21167 # scripts with optimization help from Paolo Bonzini. Blame Lee
21168 # E. McMahon (1931-1989) for sed's syntax. :-)
21169 sed -n '
21171 /[$]LINENO/=
21172 ' <$as_myself |
21173 sed '
21174 s/[$]LINENO.*/&-/
21175 t lineno
21177 :lineno
21179 :loop
21180 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21181 t loop
21182 s/-\n.*//
21183 ' >$as_me.lineno &&
21184 chmod +x "$as_me.lineno" ||
21185 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21186 { (exit 1); exit 1; }; }
21188 # Don't try to exec as it changes $[0], causing all sort of problems
21189 # (the dirname of $[0] is not the place where we might find the
21190 # original and so on. Autoconf is especially sensitive to this).
21191 . "./$as_me.lineno"
21192 # Exit status is that of the last command.
21193 exit
21197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21198 as_dirname=dirname
21199 else
21200 as_dirname=false
21203 ECHO_C= ECHO_N= ECHO_T=
21204 case `echo -n x` in
21205 -n*)
21206 case `echo 'x\c'` in
21207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21208 *) ECHO_C='\c';;
21209 esac;;
21211 ECHO_N='-n';;
21212 esac
21214 if expr a : '\(a\)' >/dev/null 2>&1 &&
21215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21216 as_expr=expr
21217 else
21218 as_expr=false
21221 rm -f conf$$ conf$$.exe conf$$.file
21222 if test -d conf$$.dir; then
21223 rm -f conf$$.dir/conf$$.file
21224 else
21225 rm -f conf$$.dir
21226 mkdir conf$$.dir
21228 echo >conf$$.file
21229 if ln -s conf$$.file conf$$ 2>/dev/null; then
21230 as_ln_s='ln -s'
21231 # ... but there are two gotchas:
21232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21234 # In both cases, we have to default to `cp -p'.
21235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21236 as_ln_s='cp -p'
21237 elif ln conf$$.file conf$$ 2>/dev/null; then
21238 as_ln_s=ln
21239 else
21240 as_ln_s='cp -p'
21242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21243 rmdir conf$$.dir 2>/dev/null
21245 if mkdir -p . 2>/dev/null; then
21246 as_mkdir_p=:
21247 else
21248 test -d ./-p && rmdir ./-p
21249 as_mkdir_p=false
21252 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21253 # systems may use methods other than mode bits to determine executability.
21254 cat >conf$$.file <<_ASEOF
21255 #! /bin/sh
21256 exit 0
21257 _ASEOF
21258 chmod +x conf$$.file
21259 if test -x conf$$.file >/dev/null 2>&1; then
21260 as_executable_p="test -x"
21261 else
21262 as_executable_p=:
21264 rm -f conf$$.file
21266 # Sed expression to map a string onto a valid CPP name.
21267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21269 # Sed expression to map a string onto a valid variable name.
21270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21273 exec 6>&1
21275 # Save the log message, to keep $[0] and so on meaningful, and to
21276 # report actual input values of CONFIG_FILES etc. instead of their
21277 # values after options handling.
21278 ac_log="
21279 This file was extended by llvm $as_me 2.9svn, which was
21280 generated by GNU Autoconf 2.60. Invocation command line was
21282 CONFIG_FILES = $CONFIG_FILES
21283 CONFIG_HEADERS = $CONFIG_HEADERS
21284 CONFIG_LINKS = $CONFIG_LINKS
21285 CONFIG_COMMANDS = $CONFIG_COMMANDS
21286 $ $0 $@
21288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21291 _ACEOF
21293 cat >>$CONFIG_STATUS <<_ACEOF
21294 # Files that config.status was made for.
21295 config_files="$ac_config_files"
21296 config_headers="$ac_config_headers"
21297 config_commands="$ac_config_commands"
21299 _ACEOF
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 ac_cs_usage="\
21303 \`$as_me' instantiates files from templates according to the
21304 current configuration.
21306 Usage: $0 [OPTIONS] [FILE]...
21308 -h, --help print this help, then exit
21309 -V, --version print version number, then exit
21310 -q, --quiet do not print progress messages
21311 -d, --debug don't remove temporary files
21312 --recheck update $as_me by reconfiguring in the same conditions
21313 --file=FILE[:TEMPLATE]
21314 instantiate the configuration file FILE
21315 --header=FILE[:TEMPLATE]
21316 instantiate the configuration header FILE
21318 Configuration files:
21319 $config_files
21321 Configuration headers:
21322 $config_headers
21324 Configuration commands:
21325 $config_commands
21327 Report bugs to <bug-autoconf@gnu.org>."
21329 _ACEOF
21330 cat >>$CONFIG_STATUS <<_ACEOF
21331 ac_cs_version="\\
21332 llvm config.status 2.9svn
21333 configured by $0, generated by GNU Autoconf 2.60,
21334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21336 Copyright (C) 2006 Free Software Foundation, Inc.
21337 This config.status script is free software; the Free Software Foundation
21338 gives unlimited permission to copy, distribute and modify it."
21340 ac_pwd='$ac_pwd'
21341 srcdir='$srcdir'
21342 INSTALL='$INSTALL'
21343 _ACEOF
21345 cat >>$CONFIG_STATUS <<\_ACEOF
21346 # If no file are specified by the user, then we need to provide default
21347 # value. By we need to know if files were specified by the user.
21348 ac_need_defaults=:
21349 while test $# != 0
21351 case $1 in
21352 --*=*)
21353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21355 ac_shift=:
21358 ac_option=$1
21359 ac_optarg=$2
21360 ac_shift=shift
21362 esac
21364 case $ac_option in
21365 # Handling of the options.
21366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21367 ac_cs_recheck=: ;;
21368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21369 echo "$ac_cs_version"; exit ;;
21370 --debug | --debu | --deb | --de | --d | -d )
21371 debug=: ;;
21372 --file | --fil | --fi | --f )
21373 $ac_shift
21374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21375 ac_need_defaults=false;;
21376 --header | --heade | --head | --hea )
21377 $ac_shift
21378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21379 ac_need_defaults=false;;
21380 --he | --h)
21381 # Conflict between --help and --header
21382 { echo "$as_me: error: ambiguous option: $1
21383 Try \`$0 --help' for more information." >&2
21384 { (exit 1); exit 1; }; };;
21385 --help | --hel | -h )
21386 echo "$ac_cs_usage"; exit ;;
21387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21389 ac_cs_silent=: ;;
21391 # This is an error.
21392 -*) { echo "$as_me: error: unrecognized option: $1
21393 Try \`$0 --help' for more information." >&2
21394 { (exit 1); exit 1; }; } ;;
21396 *) ac_config_targets="$ac_config_targets $1"
21397 ac_need_defaults=false ;;
21399 esac
21400 shift
21401 done
21403 ac_configure_extra_args=
21405 if $ac_cs_silent; then
21406 exec 6>/dev/null
21407 ac_configure_extra_args="$ac_configure_extra_args --silent"
21410 _ACEOF
21411 cat >>$CONFIG_STATUS <<_ACEOF
21412 if \$ac_cs_recheck; then
21413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21414 CONFIG_SHELL=$SHELL
21415 export CONFIG_SHELL
21416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21419 _ACEOF
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 exec 5>>config.log
21423 echo
21424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21425 ## Running $as_me. ##
21426 _ASBOX
21427 echo "$ac_log"
21428 } >&5
21430 _ACEOF
21431 cat >>$CONFIG_STATUS <<_ACEOF
21433 # INIT-COMMANDS
21435 llvm_src="${srcdir}"
21437 _ACEOF
21439 cat >>$CONFIG_STATUS <<\_ACEOF
21441 # Handling of arguments.
21442 for ac_config_target in $ac_config_targets
21444 case $ac_config_target in
21445 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21446 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21447 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21448 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21449 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21450 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21451 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21452 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21453 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21454 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21455 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21456 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21457 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21458 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21459 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21460 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21461 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21462 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21463 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21464 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21465 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21466 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21467 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21468 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21469 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21473 { (exit 1); exit 1; }; };;
21474 esac
21475 done
21478 # If the user did not use the arguments to specify the items to instantiate,
21479 # then the envvar interface is used. Set only those that are not.
21480 # We use the long form for the default assignment because of an extremely
21481 # bizarre bug on SunOS 4.1.3.
21482 if $ac_need_defaults; then
21483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21488 # Have a temporary directory for convenience. Make it in the build tree
21489 # simply because there is no reason against having it here, and in addition,
21490 # creating and moving files from /tmp can sometimes cause problems.
21491 # Hook for its removal unless debugging.
21492 # Note that there is a small window in which the directory will not be cleaned:
21493 # after its creation but before its name has been assigned to `$tmp'.
21494 $debug ||
21496 tmp=
21497 trap 'exit_status=$?
21498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21500 trap '{ (exit 1); exit 1; }' 1 2 13 15
21502 # Create a (secure) tmp directory for tmp files.
21505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21506 test -n "$tmp" && test -d "$tmp"
21507 } ||
21509 tmp=./conf$$-$RANDOM
21510 (umask 077 && mkdir "$tmp")
21511 } ||
21513 echo "$me: cannot create a temporary directory in ." >&2
21514 { (exit 1); exit 1; }
21518 # Set up the sed scripts for CONFIG_FILES section.
21521 # No need to generate the scripts if there are no CONFIG_FILES.
21522 # This happens for instance when ./config.status config.h
21523 if test -n "$CONFIG_FILES"; then
21525 _ACEOF
21529 ac_delim='%!_!# '
21530 for ac_last_try in false false false false false :; do
21531 cat >conf$$subs.sed <<_ACEOF
21532 SHELL!$SHELL$ac_delim
21533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21539 exec_prefix!$exec_prefix$ac_delim
21540 prefix!$prefix$ac_delim
21541 program_transform_name!$program_transform_name$ac_delim
21542 bindir!$bindir$ac_delim
21543 sbindir!$sbindir$ac_delim
21544 libexecdir!$libexecdir$ac_delim
21545 datarootdir!$datarootdir$ac_delim
21546 datadir!$datadir$ac_delim
21547 sysconfdir!$sysconfdir$ac_delim
21548 sharedstatedir!$sharedstatedir$ac_delim
21549 localstatedir!$localstatedir$ac_delim
21550 includedir!$includedir$ac_delim
21551 oldincludedir!$oldincludedir$ac_delim
21552 docdir!$docdir$ac_delim
21553 infodir!$infodir$ac_delim
21554 htmldir!$htmldir$ac_delim
21555 dvidir!$dvidir$ac_delim
21556 pdfdir!$pdfdir$ac_delim
21557 psdir!$psdir$ac_delim
21558 libdir!$libdir$ac_delim
21559 localedir!$localedir$ac_delim
21560 mandir!$mandir$ac_delim
21561 DEFS!$DEFS$ac_delim
21562 ECHO_C!$ECHO_C$ac_delim
21563 ECHO_N!$ECHO_N$ac_delim
21564 ECHO_T!$ECHO_T$ac_delim
21565 LIBS!$LIBS$ac_delim
21566 build_alias!$build_alias$ac_delim
21567 host_alias!$host_alias$ac_delim
21568 target_alias!$target_alias$ac_delim
21569 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21570 subdirs!$subdirs$ac_delim
21571 build!$build$ac_delim
21572 build_cpu!$build_cpu$ac_delim
21573 build_vendor!$build_vendor$ac_delim
21574 build_os!$build_os$ac_delim
21575 host!$host$ac_delim
21576 host_cpu!$host_cpu$ac_delim
21577 host_vendor!$host_vendor$ac_delim
21578 host_os!$host_os$ac_delim
21579 target!$target$ac_delim
21580 target_cpu!$target_cpu$ac_delim
21581 target_vendor!$target_vendor$ac_delim
21582 target_os!$target_os$ac_delim
21583 OS!$OS$ac_delim
21584 HOST_OS!$HOST_OS$ac_delim
21585 TARGET_OS!$TARGET_OS$ac_delim
21586 LINKALL!$LINKALL$ac_delim
21587 NOLINKALL!$NOLINKALL$ac_delim
21588 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21589 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21590 ARCH!$ARCH$ac_delim
21591 ENDIAN!$ENDIAN$ac_delim
21592 CC!$CC$ac_delim
21593 CFLAGS!$CFLAGS$ac_delim
21594 LDFLAGS!$LDFLAGS$ac_delim
21595 CPPFLAGS!$CPPFLAGS$ac_delim
21596 ac_ct_CC!$ac_ct_CC$ac_delim
21597 EXEEXT!$EXEEXT$ac_delim
21598 OBJEXT!$OBJEXT$ac_delim
21599 CPP!$CPP$ac_delim
21600 GREP!$GREP$ac_delim
21601 EGREP!$EGREP$ac_delim
21602 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21603 BUILD_CC!$BUILD_CC$ac_delim
21604 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21605 BUILD_CXX!$BUILD_CXX$ac_delim
21606 CVSBUILD!$CVSBUILD$ac_delim
21607 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21608 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21609 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21610 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21611 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21612 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21613 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21614 JIT!$JIT$ac_delim
21615 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21616 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21617 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21618 ENABLE_PIC!$ENABLE_PIC$ac_delim
21619 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21620 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21621 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21622 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21623 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21624 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21625 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21626 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21627 CLANGPATH!$CLANGPATH$ac_delim
21628 CLANGXXPATH!$CLANGXXPATH$ac_delim
21629 _ACEOF
21631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21632 break
21633 elif $ac_last_try; then
21634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21636 { (exit 1); exit 1; }; }
21637 else
21638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21640 done
21642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21643 if test -n "$ac_eof"; then
21644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21645 ac_eof=`expr $ac_eof + 1`
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21651 _ACEOF
21652 sed '
21653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21654 s/^/s,@/; s/!/@,|#_!!_#|/
21657 s/'"$ac_delim"'$/,g/; t
21658 s/$/\\/; p
21659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21660 ' >>$CONFIG_STATUS <conf$$subs.sed
21661 rm -f conf$$subs.sed
21662 cat >>$CONFIG_STATUS <<_ACEOF
21663 CEOF$ac_eof
21664 _ACEOF
21667 ac_delim='%!_!# '
21668 for ac_last_try in false false false false false :; do
21669 cat >conf$$subs.sed <<_ACEOF
21670 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21671 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21672 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21673 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21674 CXX!$CXX$ac_delim
21675 CXXFLAGS!$CXXFLAGS$ac_delim
21676 ac_ct_CXX!$ac_ct_CXX$ac_delim
21677 NM!$NM$ac_delim
21678 ifGNUmake!$ifGNUmake$ac_delim
21679 LN_S!$LN_S$ac_delim
21680 CMP!$CMP$ac_delim
21681 CP!$CP$ac_delim
21682 DATE!$DATE$ac_delim
21683 FIND!$FIND$ac_delim
21684 MKDIR!$MKDIR$ac_delim
21685 MV!$MV$ac_delim
21686 RANLIB!$RANLIB$ac_delim
21687 AR!$AR$ac_delim
21688 RM!$RM$ac_delim
21689 SED!$SED$ac_delim
21690 TAR!$TAR$ac_delim
21691 BINPWD!$BINPWD$ac_delim
21692 GRAPHVIZ!$GRAPHVIZ$ac_delim
21693 DOT!$DOT$ac_delim
21694 FDP!$FDP$ac_delim
21695 NEATO!$NEATO$ac_delim
21696 TWOPI!$TWOPI$ac_delim
21697 CIRCO!$CIRCO$ac_delim
21698 GV!$GV$ac_delim
21699 DOTTY!$DOTTY$ac_delim
21700 XDOT_PY!$XDOT_PY$ac_delim
21701 PERL!$PERL$ac_delim
21702 HAVE_PERL!$HAVE_PERL$ac_delim
21703 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705 INSTALL_DATA!$INSTALL_DATA$ac_delim
21706 BZIP2!$BZIP2$ac_delim
21707 CAT!$CAT$ac_delim
21708 DOXYGEN!$DOXYGEN$ac_delim
21709 GROFF!$GROFF$ac_delim
21710 GZIP!$GZIP$ac_delim
21711 POD2HTML!$POD2HTML$ac_delim
21712 POD2MAN!$POD2MAN$ac_delim
21713 PDFROFF!$PDFROFF$ac_delim
21714 RUNTEST!$RUNTEST$ac_delim
21715 TCLSH!$TCLSH$ac_delim
21716 ZIP!$ZIP$ac_delim
21717 OCAMLC!$OCAMLC$ac_delim
21718 OCAMLOPT!$OCAMLOPT$ac_delim
21719 OCAMLDEP!$OCAMLDEP$ac_delim
21720 OCAMLDOC!$OCAMLDOC$ac_delim
21721 GAS!$GAS$ac_delim
21722 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727 LIBADD_DL!$LIBADD_DL$ac_delim
21728 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730 LLVMGCC!$LLVMGCC$ac_delim
21731 LLVMGXX!$LLVMGXX$ac_delim
21732 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21733 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735 USE_UDIS86!$USE_UDIS86$ac_delim
21736 USE_OPROFILE!$USE_OPROFILE$ac_delim
21737 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739 MMAP_FILE!$MMAP_FILE$ac_delim
21740 LLVMCC1!$LLVMCC1$ac_delim
21741 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21743 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744 SHLIBEXT!$SHLIBEXT$ac_delim
21745 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21746 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760 RPATH!$RPATH$ac_delim
21761 RDYNAMIC!$RDYNAMIC$ac_delim
21762 LIBOBJS!$LIBOBJS$ac_delim
21763 LTLIBOBJS!$LTLIBOBJS$ac_delim
21764 _ACEOF
21766 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21767 break
21768 elif $ac_last_try; then
21769 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771 { (exit 1); exit 1; }; }
21772 else
21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21775 done
21777 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778 if test -n "$ac_eof"; then
21779 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780 ac_eof=`expr $ac_eof + 1`
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21786 _ACEOF
21787 sed '
21788 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789 s/^/s,@/; s/!/@,|#_!!_#|/
21792 s/'"$ac_delim"'$/,g/; t
21793 s/$/\\/; p
21794 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795 ' >>$CONFIG_STATUS <conf$$subs.sed
21796 rm -f conf$$subs.sed
21797 cat >>$CONFIG_STATUS <<_ACEOF
21798 :end
21799 s/|#_!!_#|//g
21800 CEOF$ac_eof
21801 _ACEOF
21804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806 # trailing colons and then remove the whole line if VPATH becomes empty
21807 # (actually we leave an empty line to preserve line numbers).
21808 if test "x$srcdir" = x.; then
21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21810 s/:*\$(srcdir):*/:/
21811 s/:*\${srcdir}:*/:/
21812 s/:*@srcdir@:*/:/
21813 s/^\([^=]*=[ ]*\):*/\1/
21814 s/:*$//
21815 s/^[^=]*=[ ]*$//
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 fi # test -n "$CONFIG_FILES"
21823 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21825 case $ac_tag in
21826 :[FHLC]) ac_mode=$ac_tag; continue;;
21827 esac
21828 case $ac_mode$ac_tag in
21829 :[FHL]*:*);;
21830 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832 { (exit 1); exit 1; }; };;
21833 :[FH]-) ac_tag=-:-;;
21834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835 esac
21836 ac_save_IFS=$IFS
21837 IFS=:
21838 set x $ac_tag
21839 IFS=$ac_save_IFS
21840 shift
21841 ac_file=$1
21842 shift
21844 case $ac_mode in
21845 :L) ac_source=$1;;
21846 :[FH])
21847 ac_file_inputs=
21848 for ac_f
21850 case $ac_f in
21851 -) ac_f="$tmp/stdin";;
21852 *) # Look for the file first in the build tree, then in the source tree
21853 # (if the path is not absolute). The absolute path cannot be DOS-style,
21854 # because $ac_f cannot contain `:'.
21855 test -f "$ac_f" ||
21856 case $ac_f in
21857 [\\/$]*) false;;
21858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859 esac ||
21860 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862 { (exit 1); exit 1; }; };;
21863 esac
21864 ac_file_inputs="$ac_file_inputs $ac_f"
21865 done
21867 # Let's still pretend it is `configure' which instantiates (i.e., don't
21868 # use $as_me), people would be surprised to read:
21869 # /* config.h. Generated by config.status. */
21870 configure_input="Generated from "`IFS=:
21871 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21872 if test x"$ac_file" != x-; then
21873 configure_input="$ac_file. $configure_input"
21874 { echo "$as_me:$LINENO: creating $ac_file" >&5
21875 echo "$as_me: creating $ac_file" >&6;}
21878 case $ac_tag in
21879 *:-:* | *:-) cat >"$tmp/stdin";;
21880 esac
21882 esac
21884 ac_dir=`$as_dirname -- "$ac_file" ||
21885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886 X"$ac_file" : 'X\(//\)[^/]' \| \
21887 X"$ac_file" : 'X\(//\)$' \| \
21888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21889 echo X"$ac_file" |
21890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891 s//\1/
21894 /^X\(\/\/\)[^/].*/{
21895 s//\1/
21898 /^X\(\/\/\)$/{
21899 s//\1/
21902 /^X\(\/\).*/{
21903 s//\1/
21906 s/.*/./; q'`
21907 { as_dir="$ac_dir"
21908 case $as_dir in #(
21909 -*) as_dir=./$as_dir;;
21910 esac
21911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21912 as_dirs=
21913 while :; do
21914 case $as_dir in #(
21915 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916 *) as_qdir=$as_dir;;
21917 esac
21918 as_dirs="'$as_qdir' $as_dirs"
21919 as_dir=`$as_dirname -- "$as_dir" ||
21920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921 X"$as_dir" : 'X\(//\)[^/]' \| \
21922 X"$as_dir" : 'X\(//\)$' \| \
21923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924 echo X"$as_dir" |
21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926 s//\1/
21929 /^X\(\/\/\)[^/].*/{
21930 s//\1/
21933 /^X\(\/\/\)$/{
21934 s//\1/
21937 /^X\(\/\).*/{
21938 s//\1/
21941 s/.*/./; q'`
21942 test -d "$as_dir" && break
21943 done
21944 test -z "$as_dirs" || eval "mkdir $as_dirs"
21945 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947 { (exit 1); exit 1; }; }; }
21948 ac_builddir=.
21950 case "$ac_dir" in
21951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21954 # A ".." for each directory in $ac_dir_suffix.
21955 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21956 case $ac_top_builddir_sub in
21957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21959 esac ;;
21960 esac
21961 ac_abs_top_builddir=$ac_pwd
21962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963 # for backward compatibility:
21964 ac_top_builddir=$ac_top_build_prefix
21966 case $srcdir in
21967 .) # We are building in place.
21968 ac_srcdir=.
21969 ac_top_srcdir=$ac_top_builddir_sub
21970 ac_abs_top_srcdir=$ac_pwd ;;
21971 [\\/]* | ?:[\\/]* ) # Absolute name.
21972 ac_srcdir=$srcdir$ac_dir_suffix;
21973 ac_top_srcdir=$srcdir
21974 ac_abs_top_srcdir=$srcdir ;;
21975 *) # Relative name.
21976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977 ac_top_srcdir=$ac_top_build_prefix$srcdir
21978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21979 esac
21980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21983 case $ac_mode in
21986 # CONFIG_FILE
21989 case $INSTALL in
21990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21992 esac
21993 _ACEOF
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996 # If the template does not know about datarootdir, expand it.
21997 # FIXME: This hack should be removed a few years after 2.60.
21998 ac_datarootdir_hack=; ac_datarootdir_seen=
22000 case `sed -n '/datarootdir/ {
22004 /@datadir@/p
22005 /@docdir@/p
22006 /@infodir@/p
22007 /@localedir@/p
22008 /@mandir@/p
22009 ' $ac_file_inputs` in
22010 *datarootdir*) ac_datarootdir_seen=yes;;
22011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22012 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22014 _ACEOF
22015 cat >>$CONFIG_STATUS <<_ACEOF
22016 ac_datarootdir_hack='
22017 s&@datadir@&$datadir&g
22018 s&@docdir@&$docdir&g
22019 s&@infodir@&$infodir&g
22020 s&@localedir@&$localedir&g
22021 s&@mandir@&$mandir&g
22022 s&\\\${datarootdir}&$datarootdir&g' ;;
22023 esac
22024 _ACEOF
22026 # Neutralize VPATH when `$srcdir' = `.'.
22027 # Shell code in configure.ac might set extrasub.
22028 # FIXME: do we really want to maintain this feature?
22029 cat >>$CONFIG_STATUS <<_ACEOF
22030 sed "$ac_vpsub
22031 $extrasub
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22036 s&@configure_input@&$configure_input&;t t
22037 s&@top_builddir@&$ac_top_builddir_sub&;t t
22038 s&@srcdir@&$ac_srcdir&;t t
22039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040 s&@top_srcdir@&$ac_top_srcdir&;t t
22041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042 s&@builddir@&$ac_builddir&;t t
22043 s&@abs_builddir@&$ac_abs_builddir&;t t
22044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045 s&@INSTALL@&$ac_INSTALL&;t t
22046 $ac_datarootdir_hack
22047 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22049 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22053 which seems to be undefined. Please make sure it is defined." >&5
22054 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22055 which seems to be undefined. Please make sure it is defined." >&2;}
22057 rm -f "$tmp/stdin"
22058 case $ac_file in
22059 -) cat "$tmp/out"; rm -f "$tmp/out";;
22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22061 esac
22065 # CONFIG_HEADER
22067 _ACEOF
22069 # Transform confdefs.h into a sed script `conftest.defines', that
22070 # substitutes the proper values into config.h.in to produce config.h.
22071 rm -f conftest.defines conftest.tail
22072 # First, append a space to every undef/define line, to ease matching.
22073 echo 's/$/ /' >conftest.defines
22074 # Then, protect against being on the right side of a sed subst, or in
22075 # an unquoted here document, in config.status. If some macros were
22076 # called several times there might be several #defines for the same
22077 # symbol, which is useless. But do not sort them, since the last
22078 # AC_DEFINE must be honored.
22079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22082 # PARAMS is the parameter list in the macro definition--in most cases, it's
22083 # just an empty string.
22084 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22085 ac_dB='\\)[ (].*,\\1define\\2'
22086 ac_dC=' '
22087 ac_dD=' ,'
22089 uniq confdefs.h |
22090 sed -n '
22091 t rset
22092 :rset
22093 s/^[ ]*#[ ]*define[ ][ ]*//
22094 t ok
22097 s/[\\&,]/\\&/g
22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100 ' >>conftest.defines
22102 # Remove the space that was appended to ease matching.
22103 # Then replace #undef with comments. This is necessary, for
22104 # example, in the case of _POSIX_SOURCE, which is predefined and required
22105 # on some systems where configure will not decide to define it.
22106 # (The regexp can be short, since the line contains either #define or #undef.)
22107 echo 's/ $//
22108 s,^[ #]*u.*,/* & */,' >>conftest.defines
22110 # Break up conftest.defines:
22111 ac_max_sed_lines=50
22113 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116 # et cetera.
22117 ac_in='$ac_file_inputs'
22118 ac_out='"$tmp/out1"'
22119 ac_nxt='"$tmp/out2"'
22121 while :
22123 # Write a here document:
22124 cat >>$CONFIG_STATUS <<_ACEOF
22125 # First, check the format of the line:
22126 cat >"\$tmp/defines.sed" <<\\CEOF
22127 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22128 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22130 :def
22131 _ACEOF
22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133 echo 'CEOF
22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137 grep . conftest.tail >/dev/null || break
22138 rm -f conftest.defines
22139 mv conftest.tail conftest.defines
22140 done
22141 rm -f conftest.defines conftest.tail
22143 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145 if test x"$ac_file" != x-; then
22146 echo "/* $configure_input */" >"$tmp/config.h"
22147 cat "$ac_result" >>"$tmp/config.h"
22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150 echo "$as_me: $ac_file is unchanged" >&6;}
22151 else
22152 rm -f $ac_file
22153 mv "$tmp/config.h" $ac_file
22155 else
22156 echo "/* $configure_input */"
22157 cat "$ac_result"
22159 rm -f "$tmp/out12"
22162 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163 echo "$as_me: executing $ac_file commands" >&6;}
22165 esac
22168 case $ac_file$ac_mode in
22169 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22171 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22173 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22175 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22177 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22179 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22180 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22181 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22182 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22183 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22184 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22185 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22187 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22189 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22191 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22193 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22196 esac
22197 done # for ac_tag
22200 { (exit 0); exit 0; }
22201 _ACEOF
22202 chmod +x $CONFIG_STATUS
22203 ac_clean_files=$ac_clean_files_save
22206 # configure is writing to config.log, and then calls config.status.
22207 # config.status does its own redirection, appending to config.log.
22208 # Unfortunately, on DOS this fails, as config.log is still kept open
22209 # by configure, so config.status won't be able to write to it; its
22210 # output is simply discarded. So we exec the FD to /dev/null,
22211 # effectively closing config.log, so it can be properly (re)opened and
22212 # appended to by config.status. When coming back to configure, we
22213 # need to make the FD available again.
22214 if test "$no_create" != yes; then
22215 ac_cs_success=:
22216 ac_config_status_args=
22217 test "$silent" = yes &&
22218 ac_config_status_args="$ac_config_status_args --quiet"
22219 exec 5>/dev/null
22220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22221 exec 5>>config.log
22222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223 # would make configure fail if this is the last instruction.
22224 $ac_cs_success || { (exit 1); exit 1; }
22228 # CONFIG_SUBDIRS section.
22230 if test "$no_recursion" != yes; then
22232 # Remove --cache-file and --srcdir arguments so they do not pile up.
22233 ac_sub_configure_args=
22234 ac_prev=
22235 eval "set x $ac_configure_args"
22236 shift
22237 for ac_arg
22239 if test -n "$ac_prev"; then
22240 ac_prev=
22241 continue
22243 case $ac_arg in
22244 -cache-file | --cache-file | --cache-fil | --cache-fi \
22245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246 ac_prev=cache_file ;;
22247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22249 | --c=*)
22251 --config-cache | -C)
22253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254 ac_prev=srcdir ;;
22255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258 ac_prev=prefix ;;
22259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22262 case $ac_arg in
22263 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22264 esac
22265 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22266 esac
22267 done
22269 # Always prepend --prefix to ensure using the same prefix
22270 # in subdir configurations.
22271 ac_arg="--prefix=$prefix"
22272 case $ac_arg in
22273 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22274 esac
22275 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22277 ac_popdir=`pwd`
22278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22280 # Do not complain, so a configure script can configure whichever
22281 # parts of a large source tree are present.
22282 test -d "$srcdir/$ac_dir" || continue
22284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22285 echo "$as_me:$LINENO: $ac_msg" >&5
22286 echo "$ac_msg" >&6
22287 { as_dir="$ac_dir"
22288 case $as_dir in #(
22289 -*) as_dir=./$as_dir;;
22290 esac
22291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292 as_dirs=
22293 while :; do
22294 case $as_dir in #(
22295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296 *) as_qdir=$as_dir;;
22297 esac
22298 as_dirs="'$as_qdir' $as_dirs"
22299 as_dir=`$as_dirname -- "$as_dir" ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$as_dir" : 'X\(//\)[^/]' \| \
22302 X"$as_dir" : 'X\(//\)$' \| \
22303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304 echo X"$as_dir" |
22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306 s//\1/
22309 /^X\(\/\/\)[^/].*/{
22310 s//\1/
22313 /^X\(\/\/\)$/{
22314 s//\1/
22317 /^X\(\/\).*/{
22318 s//\1/
22321 s/.*/./; q'`
22322 test -d "$as_dir" && break
22323 done
22324 test -z "$as_dirs" || eval "mkdir $as_dirs"
22325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327 { (exit 1); exit 1; }; }; }
22328 ac_builddir=.
22330 case "$ac_dir" in
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22334 # A ".." for each directory in $ac_dir_suffix.
22335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22336 case $ac_top_builddir_sub in
22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339 esac ;;
22340 esac
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22346 case $srcdir in
22347 .) # We are building in place.
22348 ac_srcdir=.
22349 ac_top_srcdir=$ac_top_builddir_sub
22350 ac_abs_top_srcdir=$ac_pwd ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute name.
22352 ac_srcdir=$srcdir$ac_dir_suffix;
22353 ac_top_srcdir=$srcdir
22354 ac_abs_top_srcdir=$srcdir ;;
22355 *) # Relative name.
22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357 ac_top_srcdir=$ac_top_build_prefix$srcdir
22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22359 esac
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22363 cd "$ac_dir"
22365 # Check for guested configure; otherwise get Cygnus style configure.
22366 if test -f "$ac_srcdir/configure.gnu"; then
22367 ac_sub_configure=$ac_srcdir/configure.gnu
22368 elif test -f "$ac_srcdir/configure"; then
22369 ac_sub_configure=$ac_srcdir/configure
22370 elif test -f "$ac_srcdir/configure.in"; then
22371 # This should be Cygnus configure.
22372 ac_sub_configure=$ac_aux_dir/configure
22373 else
22374 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22376 ac_sub_configure=
22379 # The recursion is here.
22380 if test -n "$ac_sub_configure"; then
22381 # Make the cache file name correct relative to the subdirectory.
22382 case $cache_file in
22383 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22384 *) # Relative name.
22385 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22386 esac
22388 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22390 # The eval makes quoting arguments work.
22391 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22393 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395 { (exit 1); exit 1; }; }
22398 cd "$ac_popdir"
22399 done