Stop the JIT from refusing to work just because the program it was compiled into
[llvm.git] / configure
blob831acb67eb26da91407640cbfb9777e72ea0c7c2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 ENABLE_LLVMC_DYNAMIC
707 ENABLE_LLVMC_DYNAMIC_PLUGINS
709 CXXFLAGS
710 ac_ct_CXX
712 ifGNUmake
713 LN_S
716 DATE
717 FIND
718 MKDIR
720 RANLIB
725 BINPWD
726 GRAPHVIZ
729 NEATO
730 TWOPI
731 CIRCO
733 DOTTY
734 PERL
735 HAVE_PERL
736 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
741 DOXYGEN
742 GROFF
743 GZIP
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 LLVMGCCCOMMAND
762 LLVMGXXCOMMAND
763 LLVMGCC
764 LLVMGXX
765 LLVMCC_OPTION
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 LLVMCC1
774 LLVMCC1PLUS
775 LLVMGCCDIR
776 LLVMGCC_LANGS
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
807 CXXFLAGS
808 CCC'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1378 cat <<\_ACEOF
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1390 esac
1391 cat <<\_ACEOF
1393 Optional Features:
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-optimized Compile with optimizations enabled (default is NO)
1397 --enable-profiling Compile with profiling enabled (default is NO)
1398 --enable-assertions Compile with assertion checks enabled (default is
1399 YES)
1400 --enable-expensive-checks
1401 Compile with expensive debug checks enabled (default
1402 is NO)
1403 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1406 optimization is on and YES if it's off)
1407 --enable-jit Enable Just In Time Compiling (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1411 is YES)
1412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1415 (default is YES)
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420 and cpp (default=all)
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 %a (default is YES)
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1427 Win32)
1428 --enable-llvmc-dynamic-plugins
1429 Enable dynamic LLVMC plugins (default is YES)
1430 --enable-ltdl-install install libltdl
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1436 searches PATH)
1437 --with-llvmgcc Specify location of llvm-gcc driver (default
1438 searches PATH)
1439 --with-llvmgxx Specify location of llvm-g++ driver (default
1440 searches PATH)
1441 --with-clang Specify location of clang compiler (default is
1442 --with-built-clang)
1443 --with-built-clang Use the compiled Clang as the LLVM compiler
1444 (default=check)
1445 --with-optimize-option Select the compiler options to use for optimized
1446 builds
1447 --with-extra-options Specify additional options to compile LLVM with
1448 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 is stdlib)
1450 --with-c-include-dirs Colon separated list of directories clang will
1451 search for headers
1452 --with-cxx-include-root Directory with the libstdc++ headers.
1453 --with-cxx-include-arch Architecture of the libstdc++ headers.
1454 --with-cxx-include-32bit-dir
1455 32 bit multilib dir.
1456 --with-cxx-include-64bit-dir
1457 64 bit multilib directory.
1458 --with-binutils-include Specify path to binutils/include/ containing
1459 plugin-api.h file for gold plugin.
1460 --with-tclinclude directory where tcl headers are
1461 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1462 clang, or none; default=check)
1463 --with-udis86=<path> Use udis86 external x86 disassembler library
1464 --with-oprofile=<prefix>
1465 Tell OProfile >= 0.9.4 how to symbolize JIT output
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <llvmbugs@cs.uiuc.edu>.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" || continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 llvm configure 2.8svn
1543 generated by GNU Autoconf 2.60
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1550 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552 exit
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1558 It was created by llvm $as_me 2.8svn, which was
1559 generated by GNU Autoconf 2.60. Invocation command line was
1561 $ $0 $@
1563 _ACEOF
1564 exec 5>>config.log
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1580 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1581 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1584 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1585 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1586 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 _ASUNAME
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1593 IFS=$as_save_IFS
1594 test -z "$as_dir" && as_dir=.
1595 echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1599 } >&5
1601 cat >&5 <<_ACEOF
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1608 _ACEOF
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1622 for ac_arg
1624 case $ac_arg in
1625 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 continue ;;
1629 *\'*)
1630 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 esac
1632 case $ac_pass in
1633 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1635 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636 if test $ac_must_keep_next = true; then
1637 ac_must_keep_next=false # Got value, back to normal.
1638 else
1639 case $ac_arg in
1640 *=* | --config-cache | -C | -disable-* | --disable-* \
1641 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643 | -with-* | --with-* | -without-* | --without-* | --x)
1644 case "$ac_configure_args0 " in
1645 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 esac
1648 -* ) ac_must_keep_next=true ;;
1649 esac
1651 ac_configure_args="$ac_configure_args '$ac_arg'"
1653 esac
1654 done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log. We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665 # Save into config.log some information that might help in debugging.
1667 echo
1669 cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674 echo
1675 # The following way of writing the cache mishandles newlines in values,
1677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678 eval ac_val=\$$ac_var
1679 case $ac_val in #(
1680 *${as_nl}*)
1681 case $ac_var in #(
1682 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 esac
1685 case $ac_var in #(
1686 _ | IFS | as_nl) ;; #(
1687 *) $as_unset $ac_var ;;
1688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 esac |
1702 sort
1704 echo
1706 cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
1716 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 esac
1718 echo "$ac_var='\''$ac_val'\''"
1719 done | sort
1720 echo
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1750 test "$ac_signal" != 0 &&
1751 echo "$as_me: caught signal $ac_signal"
1752 echo "$as_me: exit $exit_status"
1753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796 set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800 set x "$ac_default_prefix/share/config.site" \
1801 "$ac_default_prefix/etc/config.site"
1803 shift
1804 for ac_site_file
1806 if test -r "$ac_site_file"; then
1807 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1812 done
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1825 else
1826 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1854 echo "$as_me: former value: $ac_old_val" >&2;}
1855 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1856 echo "$as_me: current value: $ac_new_val" >&2;}
1857 ac_cache_corrupted=:
1858 fi;;
1859 esac
1860 # Pass precious variables to config.status.
1861 if test "$ac_new_set" = set; then
1862 case $ac_new_val in
1863 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 *) ac_arg=$ac_var=$ac_new_val ;;
1865 esac
1866 case " $ac_configure_args " in
1867 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1868 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869 esac
1871 done
1872 if $ac_cache_corrupted; then
1873 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877 { (exit 1); exit 1; }; }
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1920 ac_aux_dir=
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922 if test -f "$ac_dir/install-sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
1926 elif test -f "$ac_dir/install.sh"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
1930 elif test -f "$ac_dir/shtool"; then
1931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1935 done
1936 if test -z "$ac_aux_dir"; then
1937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1952 if test ${srcdir} != "." ; then
1953 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956 { (exit 1); exit 1; }; }
1962 if test -d ${srcdir}/projects/llvm-gcc ; then
1963 subdirs="$subdirs projects/llvm-gcc"
1967 if test -d ${srcdir}/projects/test-suite ; then
1968 subdirs="$subdirs projects/test-suite"
1972 if test -d ${srcdir}/projects/llvm-test ; then
1973 subdirs="$subdirs projects/llvm-test"
1977 if test -d ${srcdir}/projects/poolalloc ; then
1978 subdirs="$subdirs projects/poolalloc"
1982 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983 subdirs="$subdirs projects/llvm-poolalloc"
1987 for i in `ls ${srcdir}/projects`
1989 if test -d ${srcdir}/projects/${i} ; then
1990 case ${i} in
1991 sample) subdirs="$subdirs projects/sample"
1993 privbracket) subdirs="$subdirs projects/privbracket"
1995 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1997 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1999 llvm-java) subdirs="$subdirs projects/llvm-java"
2001 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2003 safecode) subdirs="$subdirs projects/safecode"
2005 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2007 llvm-gcc) ;;
2008 test-suite) ;;
2009 llvm-test) ;;
2010 poolalloc) ;;
2011 llvm-poolalloc) ;;
2013 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2014 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2016 esac
2018 done
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025 { (exit 1); exit 1; }; }
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038 { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042 { (exit 1); exit 1; }; }
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051 { (exit 1); exit 1; }; };;
2052 esac
2053 build=$ac_cv_build
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_build
2056 shift
2057 build_cpu=$1
2058 build_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 build_os=$*
2063 IFS=$ac_save_IFS
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test "x$host_alias" = x; then
2073 ac_cv_host=$ac_cv_build
2074 else
2075 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 case $ac_cv_host in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088 { (exit 1); exit 1; }; };;
2089 esac
2090 host=$ac_cv_host
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_host
2093 shift
2094 host_cpu=$1
2095 host_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 host_os=$*
2100 IFS=$ac_save_IFS
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2104 { echo "$as_me:$LINENO: checking target system type" >&5
2105 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2106 if test "${ac_cv_target+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 if test "x$target_alias" = x; then
2110 ac_cv_target=$ac_cv_host
2111 else
2112 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2120 echo "${ECHO_T}$ac_cv_target" >&6; }
2121 case $ac_cv_target in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2124 echo "$as_me: error: invalid value of canonical target" >&2;}
2125 { (exit 1); exit 1; }; };;
2126 esac
2127 target=$ac_cv_target
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_target
2130 shift
2131 target_cpu=$1
2132 target_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 target_os=$*
2137 IFS=$ac_save_IFS
2138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2141 # The aliases save the names the user supplied, while $host etc.
2142 # will get canonicalized.
2143 test -n "$target_alias" &&
2144 test "$program_prefix$program_suffix$program_transform_name" = \
2145 NONENONEs,x,x, &&
2146 program_prefix=${target_alias}-
2148 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2149 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2150 if test "${llvm_cv_os_type+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 case $host in
2154 *-*-aix*)
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="AIX"
2158 llvm_cv_platform_type="Unix" ;;
2159 *-*-irix*)
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="IRIX"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-cygwin*)
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="Cygwin"
2168 llvm_cv_platform_type="Unix" ;;
2169 *-*-darwin*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Darwin"
2173 llvm_cv_platform_type="Unix" ;;
2174 *-*-minix*)
2175 llvm_cv_link_all_option="-Wl,-all_load"
2176 llvm_cv_no_link_all_option="-Wl,-noall_load"
2177 llvm_cv_os_type="Minix"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-freebsd*)
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="FreeBSD"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-openbsd*)
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="OpenBSD"
2188 llvm_cv_platform_type="Unix" ;;
2189 *-*-netbsd*)
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="NetBSD"
2193 llvm_cv_platform_type="Unix" ;;
2194 *-*-dragonfly*)
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="DragonFly"
2198 llvm_cv_platform_type="Unix" ;;
2199 *-*-hpux*)
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="HP-UX"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-interix*)
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="Interix"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-linux*)
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Linux"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-*-solaris*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="SunOS"
2218 llvm_cv_platform_type="Unix" ;;
2219 *-*-auroraux*)
2220 llvm_cv_link_all_option="-Wl,-z,allextract"
2221 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2222 llvm_cv_os_type="AuroraUX"
2223 llvm_cv_platform_type="Unix" ;;
2224 *-*-win32*)
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="Win32"
2228 llvm_cv_platform_type="Win32" ;;
2229 *-*-mingw*)
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="MingW"
2233 llvm_cv_platform_type="Win32" ;;
2234 *-*-haiku*)
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="Haiku"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-eabi*)
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" ;;
2244 *-unknown-elf*)
2245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247 llvm_cv_os_type="Freestanding"
2248 llvm_cv_platform_type="Unix" ;;
2250 llvm_cv_link_all_option=""
2251 llvm_cv_no_link_all_option=""
2252 llvm_cv_os_type="Unknown"
2253 llvm_cv_platform_type="Unknown" ;;
2254 esac
2256 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2257 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2259 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2260 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2261 if test "${llvm_cv_target_os_type+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 case $target in
2265 *-*-aix*)
2266 llvm_cv_target_os_type="AIX" ;;
2267 *-*-irix*)
2268 llvm_cv_target_os_type="IRIX" ;;
2269 *-*-cygwin*)
2270 llvm_cv_target_os_type="Cygwin" ;;
2271 *-*-darwin*)
2272 llvm_cv_target_os_type="Darwin" ;;
2273 *-*-minix*)
2274 llvm_cv_target_os_type="Minix" ;;
2275 *-*-freebsd*)
2276 llvm_cv_target_os_type="FreeBSD" ;;
2277 *-*-openbsd*)
2278 llvm_cv_target_os_type="OpenBSD" ;;
2279 *-*-netbsd*)
2280 llvm_cv_target_os_type="NetBSD" ;;
2281 *-*-dragonfly*)
2282 llvm_cv_target_os_type="DragonFly" ;;
2283 *-*-hpux*)
2284 llvm_cv_target_os_type="HP-UX" ;;
2285 *-*-interix*)
2286 llvm_cv_target_os_type="Interix" ;;
2287 *-*-linux*)
2288 llvm_cv_target_os_type="Linux" ;;
2289 *-*-solaris*)
2290 llvm_cv_target_os_type="SunOS" ;;
2291 *-*-auroraux*)
2292 llvm_cv_target_os_type="AuroraUX" ;;
2293 *-*-win32*)
2294 llvm_cv_target_os_type="Win32" ;;
2295 *-*-mingw*)
2296 llvm_cv_target_os_type="MingW" ;;
2297 *-*-haiku*)
2298 llvm_cv_target_os_type="Haiku" ;;
2299 *-unknown-eabi*)
2300 llvm_cv_target_os_type="Freestanding" ;;
2302 llvm_cv_target_os_type="Unknown" ;;
2303 esac
2305 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2306 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2308 if test "$llvm_cv_os_type" = "Unknown" ; then
2309 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311 { (exit 1); exit 1; }; }
2314 OS=$llvm_cv_os_type
2316 HOST_OS=$llvm_cv_os_type
2318 TARGET_OS=$llvm_cv_target_os_type
2321 LINKALL=$llvm_cv_link_all_option
2323 NOLINKALL=$llvm_cv_no_link_all_option
2326 case $llvm_cv_platform_type in
2327 Unix)
2329 cat >>confdefs.h <<\_ACEOF
2330 #define LLVM_ON_UNIX 1
2331 _ACEOF
2333 LLVM_ON_UNIX=1
2335 LLVM_ON_WIN32=0
2338 Win32)
2340 cat >>confdefs.h <<\_ACEOF
2341 #define LLVM_ON_WIN32 1
2342 _ACEOF
2344 LLVM_ON_UNIX=0
2346 LLVM_ON_WIN32=1
2349 esac
2351 { echo "$as_me:$LINENO: checking target architecture" >&5
2352 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2353 if test "${llvm_cv_target_arch+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 case $target in
2357 i?86-*) llvm_cv_target_arch="x86" ;;
2358 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2359 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2360 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2361 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2362 arm*-*) llvm_cv_target_arch="ARM" ;;
2363 mips-*) llvm_cv_target_arch="Mips" ;;
2364 pic16-*) llvm_cv_target_arch="PIC16" ;;
2365 xcore-*) llvm_cv_target_arch="XCore" ;;
2366 msp430-*) llvm_cv_target_arch="MSP430" ;;
2367 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2368 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2369 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2370 *) llvm_cv_target_arch="Unknown" ;;
2371 esac
2373 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2376 if test "$llvm_cv_target_arch" = "Unknown" ; then
2377 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2381 # Determine the LLVM native architecture for the target
2382 case "$llvm_cv_target_arch" in
2383 x86) LLVM_NATIVE_ARCH="X86" ;;
2384 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2385 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2386 esac
2388 ARCH=$llvm_cv_target_arch
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2418 done
2419 done
2420 IFS=$as_save_IFS
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426 { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2428 else
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2435 if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2468 else
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477 yes:)
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet. If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2485 esac
2486 CC=$ac_ct_CC
2488 else
2489 CC="$ac_cv_prog_CC"
2492 if test -z "$CC"; then
2493 if test -n "$ac_tool_prefix"; then
2494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2515 done
2516 done
2517 IFS=$as_save_IFS
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523 { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544 ac_prog_rejected=no
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2556 ac_cv_prog_CC="cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2564 if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 for ac_prog in cl.exe
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622 { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2630 test -n "$CC" && break
2631 done
2633 if test -z "$CC"; then
2634 ac_ct_CC=$CC
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2668 else
2669 { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2674 test -n "$ac_ct_CC" && break
2675 done
2677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 CC=$ac_ct_CC
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2717 case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2745 main ()
2749 return 0;
2751 _ACEOF
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2756 # of exeext.
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort. b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions. Remove them first so a
2768 # subsequent execution test works.
2769 ac_rmfiles=
2770 for ac_file in $ac_files
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776 done
2777 rm -f $ac_rmfiles
2779 if { (ac_try="$ac_link_default"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2793 # Autoconf.
2794 for ac_file in $ac_files
2796 test -f "$ac_file" || continue
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2800 [ab].out )
2801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
2804 *.* )
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
2814 break;;
2816 break;;
2817 esac
2818 done
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
2844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
2858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864 { (exit 1); exit 1; }; }
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run. If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2898 case $ac_file in
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 break;;
2902 * ) break;;
2903 esac
2904 done
2905 else
2906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h. */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2933 main ()
2937 return 0;
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
2951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
2953 case $ac_file in
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958 done
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2989 main ()
2991 #ifndef __GNUC__
2992 choke me
2993 #endif
2996 return 0;
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_compiler_gnu=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 ac_compiler_gnu=no
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 ac_cv_prog_cc_g=yes
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 main ()
3126 return 0;
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3164 else
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3169 CFLAGS="-g"
3170 cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3178 main ()
3182 return 0;
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 ac_cv_prog_cc_g=yes
3220 else
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
3243 else
3244 CFLAGS="-g"
3246 else
3247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
3249 else
3250 CFLAGS=
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258 ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274 char **p;
3275 int i;
3277 return p[i];
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3310 main ()
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 return 0;
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
3355 ac_cv_prog_cc_c89=$ac_arg
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
3365 done
3366 rm -f conftest.$ac_ext
3367 CC=$ac_save_CC
3370 # AC_CACHE_VAL
3371 case "x$ac_cv_prog_cc_c89" in
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3375 xno)
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 esac
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3403 if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410 ac_preproc_ok=false
3411 for ac_c_preproc_warn_flag in '' yes
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #ifdef __STDC__
3426 # include <limits.h>
3427 #else
3428 # include <assert.h>
3429 #endif
3430 Syntax error
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3451 else
3452 ac_cpp_err=yes
3454 if test -z "$ac_cpp_err"; then
3456 else
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 # Broken: fails on valid input.
3461 continue
3464 rm -f conftest.err conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h. */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3474 #include <ac_nonexistent.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3495 else
3496 ac_cpp_err=yes
3498 if test -z "$ac_cpp_err"; then
3499 # Broken: success on invalid input.
3500 continue
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3510 rm -f conftest.err conftest.$ac_ext
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3516 break
3519 done
3520 ac_cv_prog_CPP=$CPP
3523 CPP=$ac_cv_prog_CPP
3524 else
3525 ac_cv_prog_CPP=$CPP
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3549 Syntax error
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3570 else
3571 ac_cpp_err=yes
3573 if test -z "$ac_cpp_err"; then
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3580 continue
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3614 else
3615 ac_cpp_err=yes
3617 if test -z "$ac_cpp_err"; then
3618 # Broken: success on invalid input.
3619 continue
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3629 rm -f conftest.err conftest.$ac_ext
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3636 else
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in grep ggrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3702 $ac_path_GREP_found && break 3
3703 done
3704 done
3706 done
3707 IFS=$as_save_IFS
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3719 else
3720 ac_cv_path_GREP=$GREP
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
3738 # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761 ac_count=0
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 while :
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3784 $ac_path_EGREP_found && break 3
3785 done
3786 done
3788 done
3789 IFS=$as_save_IFS
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3801 else
3802 ac_cv_path_EGREP=$EGREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <stdlib.h>
3825 #include <stdarg.h>
3826 #include <string.h>
3827 #include <float.h>
3830 main ()
3834 return 0;
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_header_stdc=yes
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 ac_cv_header_stdc=no
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #include <string.h>
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then
3895 else
3896 ac_cv_header_stdc=no
3898 rm -f conftest*
3902 if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <stdlib.h>
3912 _ACEOF
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev/null 2>&1; then
3916 else
3917 ac_cv_header_stdc=no
3919 rm -f conftest*
3923 if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3927 else
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <ctype.h>
3935 #include <stdlib.h>
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 #else
3940 # define ISLOWER(c) \
3941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #endif
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949 main ()
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
3954 || toupper (i) != TOUPPER (i))
3955 return 2;
3956 return 0;
3958 _ACEOF
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3980 else
3981 echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4000 _ACEOF
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 eval "$as_ac_Header=yes"
4068 else
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 eval "$as_ac_Header=no"
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4087 done
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h. */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4106 main ()
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109 bogus endian macros
4110 #endif
4113 return 0;
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4161 main ()
4163 #if BYTE_ORDER != BIG_ENDIAN
4164 not big endian
4165 #endif
4168 return 0;
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_c_bigendian=yes
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_c_bigendian=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 main ()
4237 _ascii (); _ebcdic ();
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4304 main ()
4307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
4317 return 0;
4319 _ACEOF
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4341 else
4342 echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 ( exit $ac_status )
4347 ac_cv_c_bigendian=yes
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4364 ENDIAN=little
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372 esac
4375 if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386 else
4387 ac_build_prefix=${build_alias}-
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4412 IFS=$as_save_IFS
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4458 else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 else
4475 ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4491 done
4492 done
4493 IFS=$as_save_IFS
4495 if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4513 else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4534 case $file in
4535 *.c | *.o | *.obj | *.dSYM) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4549 BUILD_EXEEXT=""
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4555 ac_build_prefix=${build_alias}-
4556 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4557 set dummy ${ac_build_prefix}g++; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$BUILD_CXX"; then
4564 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4584 if test -n "$BUILD_CXX"; then
4585 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4586 echo "${ECHO_T}$BUILD_CXX" >&6; }
4587 else
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 if test -z "$BUILD_CXX"; then
4594 # Extract the first word of "g++", so it can be a program name with args.
4595 set dummy g++; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$BUILD_CXX"; then
4602 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_BUILD_CXX="g++"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4621 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622 if test -n "$BUILD_CXX"; then
4623 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624 echo "${ECHO_T}$BUILD_CXX" >&6; }
4625 else
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4631 if test -z "$BUILD_CXX"; then
4632 # Extract the first word of "c++", so it can be a program name with args.
4633 set dummy c++; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 if test -n "$BUILD_CXX"; then
4640 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641 else
4642 ac_prog_rejected=no
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4651 ac_prog_rejected=yes
4652 continue
4654 ac_cv_prog_BUILD_CXX="c++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4658 done
4659 done
4660 IFS=$as_save_IFS
4662 if test $ac_prog_rejected = yes; then
4663 # We found a bogon in the path, so make sure we never use it.
4664 set dummy $ac_cv_prog_BUILD_CXX
4665 shift
4666 if test $# != 0; then
4667 # We chose a different compiler from the bogus one.
4668 # However, it has the same basename, so the bogon will be chosen
4669 # first if we set BUILD_CXX to just the basename; use the full file name.
4670 shift
4671 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4676 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4677 if test -n "$BUILD_CXX"; then
4678 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4679 echo "${ECHO_T}$BUILD_CXX" >&6; }
4680 else
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4688 else
4689 LLVM_CROSS_COMPILING=0
4693 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4694 cvsbuild="yes"
4695 optimize="no"
4696 CVSBUILD=CVSBUILD=1
4698 else
4699 cvsbuild="no"
4700 optimize="yes"
4704 # Check whether --enable-optimized was given.
4705 if test "${enable_optimized+set}" = set; then
4706 enableval=$enable_optimized;
4707 else
4708 enableval=$optimize
4711 if test ${enableval} = "no" ; then
4712 ENABLE_OPTIMIZED=
4714 else
4715 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4719 # Check whether --enable-profiling was given.
4720 if test "${enable_profiling+set}" = set; then
4721 enableval=$enable_profiling;
4722 else
4723 enableval="no"
4726 if test ${enableval} = "no" ; then
4727 ENABLE_PROFILING=
4729 else
4730 ENABLE_PROFILING=ENABLE_PROFILING=1
4734 # Check whether --enable-assertions was given.
4735 if test "${enable_assertions+set}" = set; then
4736 enableval=$enable_assertions;
4737 else
4738 enableval="yes"
4741 if test ${enableval} = "yes" ; then
4742 DISABLE_ASSERTIONS=
4744 else
4745 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4749 # Check whether --enable-expensive-checks was given.
4750 if test "${enable_expensive_checks+set}" = set; then
4751 enableval=$enable_expensive_checks;
4752 else
4753 enableval="no"
4756 if test ${enableval} = "yes" ; then
4757 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4759 EXPENSIVE_CHECKS=yes
4761 else
4762 ENABLE_EXPENSIVE_CHECKS=
4764 EXPENSIVE_CHECKS=no
4768 # Check whether --enable-debug-runtime was given.
4769 if test "${enable_debug_runtime+set}" = set; then
4770 enableval=$enable_debug_runtime;
4771 else
4772 enableval=no
4775 if test ${enableval} = "no" ; then
4776 DEBUG_RUNTIME=
4778 else
4779 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4783 # Check whether --enable-debug-symbols was given.
4784 if test "${enable_debug_symbols+set}" = set; then
4785 enableval=$enable_debug_symbols;
4786 else
4787 enableval=no
4790 if test ${enableval} = "no" ; then
4791 DEBUG_SYMBOLS=
4793 else
4794 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4798 # Check whether --enable-jit was given.
4799 if test "${enable_jit+set}" = set; then
4800 enableval=$enable_jit;
4801 else
4802 enableval=default
4805 if test ${enableval} = "no"
4806 then
4807 JIT=
4809 else
4810 case "$llvm_cv_target_arch" in
4811 x86) TARGET_HAS_JIT=1
4813 Sparc) TARGET_HAS_JIT=0
4815 PowerPC) TARGET_HAS_JIT=1
4817 x86_64) TARGET_HAS_JIT=1
4819 Alpha) TARGET_HAS_JIT=1
4821 ARM) TARGET_HAS_JIT=1
4823 Mips) TARGET_HAS_JIT=0
4825 PIC16) TARGET_HAS_JIT=0
4827 XCore) TARGET_HAS_JIT=0
4829 MSP430) TARGET_HAS_JIT=0
4831 SystemZ) TARGET_HAS_JIT=0
4833 Blackfin) TARGET_HAS_JIT=0
4835 MBlaze) TARGET_HAS_JIT=0
4837 *) TARGET_HAS_JIT=0
4839 esac
4842 # Check whether --enable-doxygen was given.
4843 if test "${enable_doxygen+set}" = set; then
4844 enableval=$enable_doxygen;
4845 else
4846 enableval=default
4849 case "$enableval" in
4850 yes) ENABLE_DOXYGEN=1
4852 no) ENABLE_DOXYGEN=0
4854 default) ENABLE_DOXYGEN=0
4856 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4857 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4858 { (exit 1); exit 1; }; } ;;
4859 esac
4861 # Check whether --enable-threads was given.
4862 if test "${enable_threads+set}" = set; then
4863 enableval=$enable_threads;
4864 else
4865 enableval=default
4868 case "$enableval" in
4869 yes) ENABLE_THREADS=1
4871 no) ENABLE_THREADS=0
4873 default) ENABLE_THREADS=1
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878 esac
4880 cat >>confdefs.h <<_ACEOF
4881 #define ENABLE_THREADS $ENABLE_THREADS
4882 _ACEOF
4885 # Check whether --enable-pic was given.
4886 if test "${enable_pic+set}" = set; then
4887 enableval=$enable_pic;
4888 else
4889 enableval=default
4892 case "$enableval" in
4893 yes) ENABLE_PIC=1
4895 no) ENABLE_PIC=0
4897 default) ENABLE_PIC=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4902 esac
4904 cat >>confdefs.h <<_ACEOF
4905 #define ENABLE_PIC $ENABLE_PIC
4906 _ACEOF
4909 # Check whether --enable-shared was given.
4910 if test "${enable_shared+set}" = set; then
4911 enableval=$enable_shared;
4912 else
4913 enableval=default
4916 case "$enableval" in
4917 yes) ENABLE_SHARED=1
4919 no) ENABLE_SHARED=0
4921 default) ENABLE_SHARED=0
4923 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4924 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926 esac
4928 # Check whether --enable-timestamps was given.
4929 if test "${enable_timestamps+set}" = set; then
4930 enableval=$enable_timestamps;
4931 else
4932 enableval=default
4935 case "$enableval" in
4936 yes) ENABLE_TIMESTAMPS=1
4938 no) ENABLE_TIMESTAMPS=0
4940 default) ENABLE_TIMESTAMPS=1
4942 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4943 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4944 { (exit 1); exit 1; }; } ;;
4945 esac
4947 cat >>confdefs.h <<_ACEOF
4948 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4949 _ACEOF
4952 TARGETS_TO_BUILD=""
4953 # Check whether --enable-targets was given.
4954 if test "${enable_targets+set}" = set; then
4955 enableval=$enable_targets;
4956 else
4957 enableval=all
4960 if test "$enableval" = host-only ; then
4961 enableval=host
4963 case "$enableval" in
4964 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4965 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4966 case "$a_target" in
4967 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4970 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4971 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4972 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4973 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4975 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4976 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4979 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4980 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4981 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4982 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4983 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4984 host) case "$llvm_cv_target_arch" in
4985 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4988 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4989 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4990 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4991 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4992 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4993 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4994 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4995 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4996 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4997 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4998 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4999 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5000 echo "$as_me: error: Can not set target to build" >&2;}
5001 { (exit 1); exit 1; }; } ;;
5002 esac ;;
5003 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5004 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5005 { (exit 1); exit 1; }; } ;;
5006 esac
5007 done
5009 esac
5010 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5013 # Determine whether we are building LLVM support for the native architecture.
5014 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5015 for a_target in $TARGETS_TO_BUILD; do
5016 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5017 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5019 cat >>confdefs.h <<_ACEOF
5020 #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5021 _ACEOF
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5026 _ACEOF
5029 done
5031 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5032 # target feature def files.
5033 LLVM_ENUM_TARGETS=""
5034 LLVM_ENUM_ASM_PRINTERS=""
5035 LLVM_ENUM_ASM_PARSERS=""
5036 LLVM_ENUM_DISASSEMBLERS=""
5037 for target_to_build in $TARGETS_TO_BUILD; do
5038 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5039 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5040 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5042 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5043 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5045 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5046 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5048 done
5054 # Check whether --enable-cbe-printf-a was given.
5055 if test "${enable_cbe_printf_a+set}" = set; then
5056 enableval=$enable_cbe_printf_a;
5057 else
5058 enableval=default
5061 case "$enableval" in
5062 yes) ENABLE_CBE_PRINTF_A=1
5064 no) ENABLE_CBE_PRINTF_A=0
5066 default) ENABLE_CBE_PRINTF_A=1
5068 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5069 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071 esac
5073 cat >>confdefs.h <<_ACEOF
5074 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5075 _ACEOF
5079 # Check whether --with-llvmgccdir was given.
5080 if test "${with_llvmgccdir+set}" = set; then
5081 withval=$with_llvmgccdir;
5082 else
5083 withval=default
5086 case "$withval" in
5087 default) WITH_LLVMGCCDIR=default ;;
5088 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5089 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5090 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092 esac
5095 # Check whether --with-llvmgcc was given.
5096 if test "${with_llvmgcc+set}" = set; then
5097 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5098 WITH_LLVMGCCDIR=""
5103 # Check whether --with-llvmgxx was given.
5104 if test "${with_llvmgxx+set}" = set; then
5105 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5106 WITH_LLVMGCCDIR=""
5110 if test -n "$LLVMGCC"; then
5111 LLVMGCCCOMMAND="$LLVMGCC"
5114 if test -n "$LLVMGXX"; then
5115 LLVMGXXCOMMAND="$LLVMGXX"
5118 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5119 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5120 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5121 { (exit 1); exit 1; }; };
5124 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5125 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5126 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5127 { (exit 1); exit 1; }; };
5131 # Check whether --with-clang was given.
5132 if test "${with_clang+set}" = set; then
5133 withval=$with_clang;
5134 else
5135 with_clang=default
5140 # Check whether --with-built-clang was given.
5141 if test "${with_built_clang+set}" = set; then
5142 withval=$with_built_clang;
5143 else
5144 with_built_clang=check
5148 { echo "$as_me:$LINENO: checking clang compiler" >&5
5149 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5150 WITH_CLANGPATH=""
5151 WITH_BUILT_CLANG=0
5152 if test "$with_clang" != "default"; then
5153 WITH_CLANGPATH="$with_clang"
5154 if ! test -x "$WITH_CLANGPATH"; then
5155 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5156 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5157 { (exit 1); exit 1; }; }
5159 elif test "$with_built_clang" = "yes"; then
5160 WITH_BUILT_CLANG=1
5161 elif test "$with_built_clang" = "no"; then
5162 WITH_BUILT_CLANG=0
5163 else
5164 if test "$with_built_clang" != "check"; then
5165 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5166 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5167 { (exit 1); exit 1; }; }
5170 if test -f ${srcdir}/tools/clang/README.txt; then
5171 WITH_BUILT_CLANG=1
5175 if ! test -z "$WITH_CLANGPATH"; then
5176 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5177 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5178 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5179 elif test "$WITH_BUILT_CLANG" = "1"; then
5180 { echo "$as_me:$LINENO: result: built" >&5
5181 echo "${ECHO_T}built" >&6; }
5182 else
5183 { echo "$as_me:$LINENO: result: none" >&5
5184 echo "${ECHO_T}none" >&6; }
5186 CLANGPATH=$WITH_CLANGPATH
5188 CLANGXXPATH=$WITH_CLANGXXPATH
5190 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5194 # Check whether --with-optimize-option was given.
5195 if test "${with_optimize_option+set}" = set; then
5196 withval=$with_optimize_option;
5197 else
5198 withval=default
5201 { echo "$as_me:$LINENO: checking optimization flags" >&5
5202 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5203 case "$withval" in
5204 default)
5205 case "$llvm_cv_os_type" in
5206 FreeBSD) optimize_option=-O2 ;;
5207 MingW) optimize_option=-O2 ;;
5208 *) optimize_option=-O3 ;;
5209 esac ;;
5210 *) optimize_option="$withval" ;;
5211 esac
5212 OPTIMIZE_OPTION=$optimize_option
5214 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5215 echo "${ECHO_T}$optimize_option" >&6; }
5218 # Check whether --with-extra-options was given.
5219 if test "${with_extra_options+set}" = set; then
5220 withval=$with_extra_options;
5221 else
5222 withval=default
5225 case "$withval" in
5226 default) EXTRA_OPTIONS= ;;
5227 *) EXTRA_OPTIONS=$withval ;;
5228 esac
5229 EXTRA_OPTIONS=$EXTRA_OPTIONS
5232 # Check whether --enable-bindings was given.
5233 if test "${enable_bindings+set}" = set; then
5234 enableval=$enable_bindings;
5235 else
5236 enableval=default
5239 BINDINGS_TO_BUILD=""
5240 case "$enableval" in
5241 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5242 all ) BINDINGS_TO_BUILD="ocaml" ;;
5243 none | no) BINDINGS_TO_BUILD="" ;;
5244 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5245 case "$a_binding" in
5246 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5247 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5248 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5250 esac
5251 done
5253 esac
5256 # Check whether --with-ocaml-libdir was given.
5257 if test "${with_ocaml_libdir+set}" = set; then
5258 withval=$with_ocaml_libdir;
5259 else
5260 withval=auto
5263 case "$withval" in
5264 auto) with_ocaml_libdir="$withval" ;;
5265 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5266 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5267 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5269 esac
5272 # Check whether --with-c-include-dirs was given.
5273 if test "${with_c_include_dirs+set}" = set; then
5274 withval=$with_c_include_dirs;
5275 else
5276 withval=""
5280 cat >>confdefs.h <<_ACEOF
5281 #define C_INCLUDE_DIRS "$withval"
5282 _ACEOF
5286 # Check whether --with-cxx-include-root was given.
5287 if test "${with_cxx_include_root+set}" = set; then
5288 withval=$with_cxx_include_root;
5289 else
5290 withval=""
5294 cat >>confdefs.h <<_ACEOF
5295 #define CXX_INCLUDE_ROOT "$withval"
5296 _ACEOF
5300 # Check whether --with-cxx-include-arch was given.
5301 if test "${with_cxx_include_arch+set}" = set; then
5302 withval=$with_cxx_include_arch;
5303 else
5304 withval=""
5308 cat >>confdefs.h <<_ACEOF
5309 #define CXX_INCLUDE_ARCH "$withval"
5310 _ACEOF
5314 # Check whether --with-cxx-include-32bit-dir was given.
5315 if test "${with_cxx_include_32bit_dir+set}" = set; then
5316 withval=$with_cxx_include_32bit_dir;
5317 else
5318 withval=""
5322 cat >>confdefs.h <<_ACEOF
5323 #define CXX_INCLUDE_32BIT_DIR "$withval"
5324 _ACEOF
5328 # Check whether --with-cxx-include-64bit-dir was given.
5329 if test "${with_cxx_include_64bit_dir+set}" = set; then
5330 withval=$with_cxx_include_64bit_dir;
5331 else
5332 withval=""
5336 cat >>confdefs.h <<_ACEOF
5337 #define CXX_INCLUDE_64BIT_DIR "$withval"
5338 _ACEOF
5342 # Check whether --with-binutils-include was given.
5343 if test "${with_binutils_include+set}" = set; then
5344 withval=$with_binutils_include;
5345 else
5346 withval=default
5349 case "$withval" in
5350 default) WITH_BINUTILS_INCDIR=default ;;
5351 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5352 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5353 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5354 { (exit 1); exit 1; }; } ;;
5355 esac
5356 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5357 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5359 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5360 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5361 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5362 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5363 { (exit 1); exit 1; }; };
5367 # Check whether --enable-libffi was given.
5368 if test "${enable_libffi+set}" = set; then
5369 enableval=$enable_libffi; case "$enableval" in
5370 yes) llvm_cv_enable_libffi="yes" ;;
5371 no) llvm_cv_enable_libffi="no" ;;
5372 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5373 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5374 { (exit 1); exit 1; }; } ;;
5375 esac
5376 else
5377 llvm_cv_enable_libffi=no
5381 if test "$llvm_cv_os_type" = "Win32" ; then
5382 llvmc_dynamic="yes"
5383 else
5384 llvmc_dynamic="no"
5387 # Check whether --enable-llvmc-dynamic was given.
5388 if test "${enable_llvmc_dynamic+set}" = set; then
5389 enableval=$enable_llvmc_dynamic;
5390 else
5391 enableval=$llvmc_dynamic
5394 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5395 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5397 else
5398 ENABLE_LLVMC_DYNAMIC=
5402 # Check whether --enable-llvmc-dynamic-plugins was given.
5403 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5404 enableval=$enable_llvmc_dynamic_plugins;
5405 else
5406 enableval=yes
5409 if test ${enableval} = "yes" ; then
5410 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5412 else
5413 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5425 # On Suns, sometimes $CPP names a directory.
5426 if test -n "$CPP" && test -d "$CPP"; then
5427 CPP=
5429 if test -z "$CPP"; then
5430 if test "${ac_cv_prog_CPP+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 # Double quotes because CPP needs to be expanded
5434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5436 ac_preproc_ok=false
5437 for ac_c_preproc_warn_flag in '' yes
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
5445 cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h. */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #ifdef __STDC__
5452 # include <limits.h>
5453 #else
5454 # include <assert.h>
5455 #endif
5456 Syntax error
5457 _ACEOF
5458 if { (ac_try="$ac_cpp conftest.$ac_ext"
5459 case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_c_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474 else
5475 ac_cpp_err=
5477 else
5478 ac_cpp_err=yes
5480 if test -z "$ac_cpp_err"; then
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 # Broken: fails on valid input.
5487 continue
5490 rm -f conftest.err conftest.$ac_ext
5492 # OK, works on sane cases. Now check whether nonexistent headers
5493 # can be detected and how.
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <ac_nonexistent.h>
5501 _ACEOF
5502 if { (ac_try="$ac_cpp conftest.$ac_ext"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } >/dev/null; then
5515 if test -s conftest.err; then
5516 ac_cpp_err=$ac_c_preproc_warn_flag
5517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5518 else
5519 ac_cpp_err=
5521 else
5522 ac_cpp_err=yes
5524 if test -z "$ac_cpp_err"; then
5525 # Broken: success on invalid input.
5526 continue
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 # Passes both tests.
5532 ac_preproc_ok=:
5533 break
5536 rm -f conftest.err conftest.$ac_ext
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then
5542 break
5545 done
5546 ac_cv_prog_CPP=$CPP
5549 CPP=$ac_cv_prog_CPP
5550 else
5551 ac_cv_prog_CPP=$CPP
5553 { echo "$as_me:$LINENO: result: $CPP" >&5
5554 echo "${ECHO_T}$CPP" >&6; }
5555 ac_preproc_ok=false
5556 for ac_c_preproc_warn_flag in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575 Syntax error
5576 _ACEOF
5577 if { (ac_try="$ac_cpp conftest.$ac_ext"
5578 case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } >/dev/null; then
5590 if test -s conftest.err; then
5591 ac_cpp_err=$ac_c_preproc_warn_flag
5592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5593 else
5594 ac_cpp_err=
5596 else
5597 ac_cpp_err=yes
5599 if test -z "$ac_cpp_err"; then
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 # Broken: fails on valid input.
5606 continue
5609 rm -f conftest.err conftest.$ac_ext
5611 # OK, works on sane cases. Now check whether nonexistent headers
5612 # can be detected and how.
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <ac_nonexistent.h>
5620 _ACEOF
5621 if { (ac_try="$ac_cpp conftest.$ac_ext"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev/null; then
5634 if test -s conftest.err; then
5635 ac_cpp_err=$ac_c_preproc_warn_flag
5636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637 else
5638 ac_cpp_err=
5640 else
5641 ac_cpp_err=yes
5643 if test -z "$ac_cpp_err"; then
5644 # Broken: success on invalid input.
5645 continue
5646 else
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 # Passes both tests.
5651 ac_preproc_ok=:
5652 break
5655 rm -f conftest.err conftest.$ac_ext
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then
5662 else
5663 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5664 See \`config.log' for more details." >&5
5665 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." >&2;}
5667 { (exit 1); exit 1; }; }
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 if test -n "$ac_tool_prefix"; then
5682 for ac_prog in gcc
5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5688 if test "${ac_cv_prog_CC+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 if test -n "$CC"; then
5692 ac_cv_prog_CC="$CC" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 CC=$ac_cv_prog_CC
5712 if test -n "$CC"; then
5713 { echo "$as_me:$LINENO: result: $CC" >&5
5714 echo "${ECHO_T}$CC" >&6; }
5715 else
5716 { echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6; }
5721 test -n "$CC" && break
5722 done
5724 if test -z "$CC"; then
5725 ac_ct_CC=$CC
5726 for ac_prog in gcc
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 if test -n "$ac_ct_CC"; then
5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_ac_ct_CC="$ac_prog"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5751 IFS=$as_save_IFS
5755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756 if test -n "$ac_ct_CC"; then
5757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5758 echo "${ECHO_T}$ac_ct_CC" >&6; }
5759 else
5760 { echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6; }
5765 test -n "$ac_ct_CC" && break
5766 done
5768 if test "x$ac_ct_CC" = x; then
5769 CC=""
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5774 whose name does not start with the host triplet. If you think this
5775 configuration is useful to you, please write to autoconf@gnu.org." >&5
5776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5777 whose name does not start with the host triplet. If you think this
5778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781 CC=$ac_ct_CC
5786 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5787 See \`config.log' for more details." >&5
5788 echo "$as_me: error: no acceptable C compiler found in \$PATH
5789 See \`config.log' for more details." >&2;}
5790 { (exit 1); exit 1; }; }
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler --version >&5") 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5806 case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compiler -v >&5") 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compiler -V >&5") 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h. */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h. */
5839 main ()
5841 #ifndef __GNUC__
5842 choke me
5843 #endif
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_compiler_gnu=yes
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_compiler_gnu=no
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5895 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5896 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5897 GCC=`test $ac_compiler_gnu = yes && echo yes`
5898 ac_test_CFLAGS=${CFLAGS+set}
5899 ac_save_CFLAGS=$CFLAGS
5900 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cc_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905 ac_save_c_werror_flag=$ac_c_werror_flag
5906 ac_c_werror_flag=yes
5907 ac_cv_prog_cc_g=no
5908 CFLAGS="-g"
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5917 main ()
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_prog_cc_g=yes
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 CFLAGS=""
5964 cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5972 main ()
5976 return 0;
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 ac_c_werror_flag=$ac_save_c_werror_flag
6019 CFLAGS="-g"
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6028 main ()
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_prog_cc_g=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_c_werror_flag=$ac_save_c_werror_flag
6086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6087 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6088 if test "$ac_test_CFLAGS" = set; then
6089 CFLAGS=$ac_save_CFLAGS
6090 elif test $ac_cv_prog_cc_g = yes; then
6091 if test "$GCC" = yes; then
6092 CFLAGS="-g -O2"
6093 else
6094 CFLAGS="-g"
6096 else
6097 if test "$GCC" = yes; then
6098 CFLAGS="-O2"
6099 else
6100 CFLAGS=
6103 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6104 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_cc_c89+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 ac_cv_prog_cc_c89=no
6109 ac_save_CC=$CC
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <stdarg.h>
6117 #include <stdio.h>
6118 #include <sys/types.h>
6119 #include <sys/stat.h>
6120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6121 struct buf { int x; };
6122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6123 static char *e (p, i)
6124 char **p;
6125 int i;
6127 return p[i];
6129 static char *f (char * (*g) (char **, int), char **p, ...)
6131 char *s;
6132 va_list v;
6133 va_start (v,p);
6134 s = g (p, va_arg (v,int));
6135 va_end (v);
6136 return s;
6139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6140 function prototypes and stuff, but not '\xHH' hex character constants.
6141 These don't provoke an error unfortunately, instead are silently treated
6142 as 'x'. The following induces an error, until -std is added to get
6143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6144 array size at least. It's necessary to write '\x00'==0 to get something
6145 that's true only with -std. */
6146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6149 inside strings and character constants. */
6150 #define FOO(x) 'x'
6151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6153 int test (int i, double x);
6154 struct s1 {int (*f) (int a);};
6155 struct s2 {int (*f) (double a);};
6156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6157 int argc;
6158 char **argv;
6160 main ()
6162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6164 return 0;
6166 _ACEOF
6167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6170 CC="$ac_save_CC $ac_arg"
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_prog_cc_c89=$ac_arg
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f core conftest.err conftest.$ac_objext
6214 test "x$ac_cv_prog_cc_c89" != "xno" && break
6215 done
6216 rm -f conftest.$ac_ext
6217 CC=$ac_save_CC
6220 # AC_CACHE_VAL
6221 case "x$ac_cv_prog_cc_c89" in
6223 { echo "$as_me:$LINENO: result: none needed" >&5
6224 echo "${ECHO_T}none needed" >&6; } ;;
6225 xno)
6226 { echo "$as_me:$LINENO: result: unsupported" >&5
6227 echo "${ECHO_T}unsupported" >&6; } ;;
6229 CC="$CC $ac_cv_prog_cc_c89"
6230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6231 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6232 esac
6235 ac_ext=c
6236 ac_cpp='$CPP $CPPFLAGS'
6237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241 ac_ext=cpp
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246 if test -z "$CXX"; then
6247 if test -n "$CCC"; then
6248 CXX=$CCC
6249 else
6250 if test -n "$ac_tool_prefix"; then
6251 for ac_prog in g++
6253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_CXX+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 if test -n "$CXX"; then
6261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 CXX=$ac_cv_prog_CXX
6281 if test -n "$CXX"; then
6282 { echo "$as_me:$LINENO: result: $CXX" >&5
6283 echo "${ECHO_T}$CXX" >&6; }
6284 else
6285 { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6290 test -n "$CXX" && break
6291 done
6293 if test -z "$CXX"; then
6294 ac_ct_CXX=$CXX
6295 for ac_prog in g++
6297 # Extract the first word of "$ac_prog", so it can be a program name with args.
6298 set dummy $ac_prog; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 if test -n "$ac_ct_CXX"; then
6305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_CXX="$ac_prog"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6318 done
6319 done
6320 IFS=$as_save_IFS
6324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6325 if test -n "$ac_ct_CXX"; then
6326 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6327 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6328 else
6329 { echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6; }
6334 test -n "$ac_ct_CXX" && break
6335 done
6337 if test "x$ac_ct_CXX" = x; then
6338 CXX="g++"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6343 whose name does not start with the host triplet. If you think this
6344 configuration is useful to you, please write to autoconf@gnu.org." >&5
6345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6346 whose name does not start with the host triplet. If you think this
6347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6348 ac_tool_warned=yes ;;
6349 esac
6350 CXX=$ac_ct_CXX
6356 # Provide some information about the compiler.
6357 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6358 ac_compiler=`set X $ac_compile; echo $2`
6359 { (ac_try="$ac_compiler --version >&5"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler --version >&5") 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6369 { (ac_try="$ac_compiler -v >&5"
6370 case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375 (eval "$ac_compiler -v >&5") 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }
6379 { (ac_try="$ac_compiler -V >&5"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compiler -V >&5") 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }
6390 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6403 main ()
6405 #ifndef __GNUC__
6406 choke me
6407 #endif
6410 return 0;
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_compile") 2>conftest.er1
6421 ac_status=$?
6422 grep -v '^ *+' conftest.er1 >conftest.err
6423 rm -f conftest.er1
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428 { (case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_try") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_compiler_gnu=yes
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_compiler_gnu=no
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6459 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6460 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6461 GXX=`test $ac_compiler_gnu = yes && echo yes`
6462 ac_test_CXXFLAGS=${CXXFLAGS+set}
6463 ac_save_CXXFLAGS=$CXXFLAGS
6464 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6465 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_cxx_g+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6470 ac_cxx_werror_flag=yes
6471 ac_cv_prog_cxx_g=no
6472 CXXFLAGS="-g"
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6481 main ()
6485 return 0;
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } &&
6502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try='test -s conftest.$ac_objext'
6513 { (case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_cv_prog_cxx_g=yes
6523 else
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 CXXFLAGS=""
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6536 main ()
6540 return 0;
6542 _ACEOF
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_compile") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558 { (case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_try") 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_try") 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583 CXXFLAGS="-g"
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6592 main ()
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest.$ac_objext'
6624 { (case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629 (eval "$ac_try") 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_cv_prog_cxx_g=yes
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6650 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6651 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6652 if test "$ac_test_CXXFLAGS" = set; then
6653 CXXFLAGS=$ac_save_CXXFLAGS
6654 elif test $ac_cv_prog_cxx_g = yes; then
6655 if test "$GXX" = yes; then
6656 CXXFLAGS="-g -O2"
6657 else
6658 CXXFLAGS="-g"
6660 else
6661 if test "$GXX" = yes; then
6662 CXXFLAGS="-O2"
6663 else
6664 CXXFLAGS=
6667 ac_ext=c
6668 ac_cpp='$CPP $CPPFLAGS'
6669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6674 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6676 if test "${lt_cv_path_NM+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 if test -n "$NM"; then
6680 # Let the user override the test.
6681 lt_cv_path_NM="$NM"
6682 else
6683 lt_nm_to_check="${ac_tool_prefix}nm"
6684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6685 lt_nm_to_check="$lt_nm_to_check nm"
6687 for lt_tmp_nm in $lt_nm_to_check; do
6688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6690 IFS="$lt_save_ifs"
6691 test -z "$ac_dir" && ac_dir=.
6692 tmp_nm="$ac_dir/$lt_tmp_nm"
6693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6694 # Check to see if the nm accepts a BSD-compat flag.
6695 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6696 # nm: unknown option "B" ignored
6697 # Tru64's nm complains that /dev/null is an invalid object file
6698 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6699 */dev/null* | *'Invalid file or object type'*)
6700 lt_cv_path_NM="$tmp_nm -B"
6701 break
6704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6705 */dev/null*)
6706 lt_cv_path_NM="$tmp_nm -p"
6707 break
6710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6711 continue # so that we can try to find one that supports BSD flags
6713 esac
6715 esac
6717 done
6718 IFS="$lt_save_ifs"
6719 done
6720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6723 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6724 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6725 NM="$lt_cv_path_NM"
6729 { echo "$as_me:$LINENO: checking for GNU make" >&5
6730 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6731 if test "${llvm_cv_gnu_make_command+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 llvm_cv_gnu_make_command=''
6735 for a in "$MAKE" make gmake gnumake ; do
6736 if test -z "$a" ; then continue ; fi ;
6737 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6738 then
6739 llvm_cv_gnu_make_command=$a ;
6740 break;
6742 done
6744 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6745 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6746 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6747 ifGNUmake='' ;
6748 else
6749 ifGNUmake='#' ;
6750 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6751 echo "${ECHO_T}\"Not found\"" >&6; };
6755 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6756 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6757 LN_S=$as_ln_s
6758 if test "$LN_S" = "ln -s"; then
6759 { echo "$as_me:$LINENO: result: yes" >&5
6760 echo "${ECHO_T}yes" >&6; }
6761 else
6762 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6763 echo "${ECHO_T}no, using $LN_S" >&6; }
6766 # Extract the first word of "cmp", so it can be a program name with args.
6767 set dummy cmp; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_path_CMP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 case $CMP in
6774 [\\/]* | ?:[\\/]*)
6775 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6793 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6795 esac
6797 CMP=$ac_cv_path_CMP
6798 if test -n "$CMP"; then
6799 { echo "$as_me:$LINENO: result: $CMP" >&5
6800 echo "${ECHO_T}$CMP" >&6; }
6801 else
6802 { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6807 # Extract the first word of "cp", so it can be a program name with args.
6808 set dummy cp; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CP+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 case $CP in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6834 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6836 esac
6838 CP=$ac_cv_path_CP
6839 if test -n "$CP"; then
6840 { echo "$as_me:$LINENO: result: $CP" >&5
6841 echo "${ECHO_T}$CP" >&6; }
6842 else
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 # Extract the first word of "date", so it can be a program name with args.
6849 set dummy date; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_DATE+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855 case $DATE in
6856 [\\/]* | ?:[\\/]*)
6857 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6871 done
6872 done
6873 IFS=$as_save_IFS
6875 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6877 esac
6879 DATE=$ac_cv_path_DATE
6880 if test -n "$DATE"; then
6881 { echo "$as_me:$LINENO: result: $DATE" >&5
6882 echo "${ECHO_T}$DATE" >&6; }
6883 else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 # Extract the first word of "find", so it can be a program name with args.
6890 set dummy find; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_FIND+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 case $FIND in
6897 [\\/]* | ?:[\\/]*)
6898 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6912 done
6913 done
6914 IFS=$as_save_IFS
6916 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6918 esac
6920 FIND=$ac_cv_path_FIND
6921 if test -n "$FIND"; then
6922 { echo "$as_me:$LINENO: result: $FIND" >&5
6923 echo "${ECHO_T}$FIND" >&6; }
6924 else
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6930 # Extract the first word of "grep", so it can be a program name with args.
6931 set dummy grep; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_GREP+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937 case $GREP in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6957 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6959 esac
6961 GREP=$ac_cv_path_GREP
6962 if test -n "$GREP"; then
6963 { echo "$as_me:$LINENO: result: $GREP" >&5
6964 echo "${ECHO_T}$GREP" >&6; }
6965 else
6966 { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6971 # Extract the first word of "mkdir", so it can be a program name with args.
6972 set dummy mkdir; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_MKDIR+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 case $MKDIR in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6996 IFS=$as_save_IFS
6998 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7000 esac
7002 MKDIR=$ac_cv_path_MKDIR
7003 if test -n "$MKDIR"; then
7004 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7005 echo "${ECHO_T}$MKDIR" >&6; }
7006 else
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 # Extract the first word of "mv", so it can be a program name with args.
7013 set dummy mv; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_MV+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 case $MV in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7039 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7041 esac
7043 MV=$ac_cv_path_MV
7044 if test -n "$MV"; then
7045 { echo "$as_me:$LINENO: result: $MV" >&5
7046 echo "${ECHO_T}$MV" >&6; }
7047 else
7048 { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_prog_RANLIB+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 if test -n "$RANLIB"; then
7062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7081 RANLIB=$ac_cv_prog_RANLIB
7082 if test -n "$RANLIB"; then
7083 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7084 echo "${ECHO_T}$RANLIB" >&6; }
7085 else
7086 { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7092 if test -z "$ac_cv_prog_RANLIB"; then
7093 ac_ct_RANLIB=$RANLIB
7094 # Extract the first word of "ranlib", so it can be a program name with args.
7095 set dummy ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 if test -n "$ac_ct_RANLIB"; then
7102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_RANLIB="ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7122 if test -n "$ac_ct_RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7124 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7125 else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7130 if test "x$ac_ct_RANLIB" = x; then
7131 RANLIB=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136 whose name does not start with the host triplet. If you think this
7137 configuration is useful to you, please write to autoconf@gnu.org." >&5
7138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139 whose name does not start with the host triplet. If you think this
7140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 RANLIB=$ac_ct_RANLIB
7145 else
7146 RANLIB="$ac_cv_prog_RANLIB"
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}ar; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157 if test -n "$AR"; then
7158 ac_cv_prog_AR="$AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_AR="${ac_tool_prefix}ar"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7177 AR=$ac_cv_prog_AR
7178 if test -n "$AR"; then
7179 { echo "$as_me:$LINENO: result: $AR" >&5
7180 echo "${ECHO_T}$AR" >&6; }
7181 else
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7188 if test -z "$ac_cv_prog_AR"; then
7189 ac_ct_AR=$AR
7190 # Extract the first word of "ar", so it can be a program name with args.
7191 set dummy ar; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$ac_ct_AR"; then
7198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_ac_ct_AR="ar"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7218 if test -n "$ac_ct_AR"; then
7219 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7220 echo "${ECHO_T}$ac_ct_AR" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7226 if test "x$ac_ct_AR" = x; then
7227 AR="false"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7232 whose name does not start with the host triplet. If you think this
7233 configuration is useful to you, please write to autoconf@gnu.org." >&5
7234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7235 whose name does not start with the host triplet. If you think this
7236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7237 ac_tool_warned=yes ;;
7238 esac
7239 AR=$ac_ct_AR
7241 else
7242 AR="$ac_cv_prog_AR"
7245 # Extract the first word of "rm", so it can be a program name with args.
7246 set dummy rm; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_RM+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 case $RM in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7268 done
7269 done
7270 IFS=$as_save_IFS
7272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7274 esac
7276 RM=$ac_cv_path_RM
7277 if test -n "$RM"; then
7278 { echo "$as_me:$LINENO: result: $RM" >&5
7279 echo "${ECHO_T}$RM" >&6; }
7280 else
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 # Extract the first word of "sed", so it can be a program name with args.
7287 set dummy sed; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_SED+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 case $SED in
7294 [\\/]* | ?:[\\/]*)
7295 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7309 done
7310 done
7311 IFS=$as_save_IFS
7313 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7315 esac
7317 SED=$ac_cv_path_SED
7318 if test -n "$SED"; then
7319 { echo "$as_me:$LINENO: result: $SED" >&5
7320 echo "${ECHO_T}$SED" >&6; }
7321 else
7322 { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7327 # Extract the first word of "tar", so it can be a program name with args.
7328 set dummy tar; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_path_TAR+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 case $TAR in
7335 [\\/]* | ?:[\\/]*)
7336 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7346 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7350 done
7351 done
7352 IFS=$as_save_IFS
7354 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7356 esac
7358 TAR=$ac_cv_path_TAR
7359 if test -n "$TAR"; then
7360 { echo "$as_me:$LINENO: result: $TAR" >&5
7361 echo "${ECHO_T}$TAR" >&6; }
7362 else
7363 { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7368 # Extract the first word of "pwd", so it can be a program name with args.
7369 set dummy pwd; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_BINPWD+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 case $BINPWD in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7395 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7397 esac
7399 BINPWD=$ac_cv_path_BINPWD
7400 if test -n "$BINPWD"; then
7401 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7402 echo "${ECHO_T}$BINPWD" >&6; }
7403 else
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7410 # Extract the first word of "Graphviz", so it can be a program name with args.
7411 set dummy Graphviz; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 case $GRAPHVIZ in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7435 IFS=$as_save_IFS
7437 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7439 esac
7441 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7442 if test -n "$GRAPHVIZ"; then
7443 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7444 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7445 else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7451 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_GRAPHVIZ 1
7455 _ACEOF
7457 if test "$llvm_cv_os_type" = "MingW" ; then
7458 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461 cat >>confdefs.h <<_ACEOF
7462 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7463 _ACEOF
7466 # Extract the first word of "dot", so it can be a program name with args.
7467 set dummy dot; ac_word=$2
7468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470 if test "${ac_cv_path_DOT+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 case $DOT in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7491 IFS=$as_save_IFS
7493 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7495 esac
7497 DOT=$ac_cv_path_DOT
7498 if test -n "$DOT"; then
7499 { echo "$as_me:$LINENO: result: $DOT" >&5
7500 echo "${ECHO_T}$DOT" >&6; }
7501 else
7502 { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7507 if test "$DOT" != "echo dot" ; then
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_DOT 1
7511 _ACEOF
7513 if test "$llvm_cv_os_type" = "MingW" ; then
7514 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517 cat >>confdefs.h <<_ACEOF
7518 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7519 _ACEOF
7522 # Extract the first word of "fdp", so it can be a program name with args.
7523 set dummy fdp; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_FDP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 case $FDP in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7549 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7551 esac
7553 FDP=$ac_cv_path_FDP
7554 if test -n "$FDP"; then
7555 { echo "$as_me:$LINENO: result: $FDP" >&5
7556 echo "${ECHO_T}$FDP" >&6; }
7557 else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 if test "$FDP" != "echo fdp" ; then
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_FDP 1
7567 _ACEOF
7569 if test "$llvm_cv_os_type" = "MingW" ; then
7570 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 cat >>confdefs.h <<_ACEOF
7574 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7575 _ACEOF
7578 # Extract the first word of "neato", so it can be a program name with args.
7579 set dummy neato; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_NEATO+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 case $NEATO in
7586 [\\/]* | ?:[\\/]*)
7587 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7601 done
7602 done
7603 IFS=$as_save_IFS
7605 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7607 esac
7609 NEATO=$ac_cv_path_NEATO
7610 if test -n "$NEATO"; then
7611 { echo "$as_me:$LINENO: result: $NEATO" >&5
7612 echo "${ECHO_T}$NEATO" >&6; }
7613 else
7614 { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7619 if test "$NEATO" != "echo neato" ; then
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_NEATO 1
7623 _ACEOF
7625 if test "$llvm_cv_os_type" = "MingW" ; then
7626 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7629 cat >>confdefs.h <<_ACEOF
7630 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7631 _ACEOF
7634 # Extract the first word of "twopi", so it can be a program name with args.
7635 set dummy twopi; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_TWOPI+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641 case $TWOPI in
7642 [\\/]* | ?:[\\/]*)
7643 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7661 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7663 esac
7665 TWOPI=$ac_cv_path_TWOPI
7666 if test -n "$TWOPI"; then
7667 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7668 echo "${ECHO_T}$TWOPI" >&6; }
7669 else
7670 { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7675 if test "$TWOPI" != "echo twopi" ; then
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_TWOPI 1
7679 _ACEOF
7681 if test "$llvm_cv_os_type" = "MingW" ; then
7682 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7685 cat >>confdefs.h <<_ACEOF
7686 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7687 _ACEOF
7690 # Extract the first word of "circo", so it can be a program name with args.
7691 set dummy circo; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_CIRCO+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 case $CIRCO in
7698 [\\/]* | ?:[\\/]*)
7699 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7717 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7719 esac
7721 CIRCO=$ac_cv_path_CIRCO
7722 if test -n "$CIRCO"; then
7723 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7724 echo "${ECHO_T}$CIRCO" >&6; }
7725 else
7726 { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7731 if test "$CIRCO" != "echo circo" ; then
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_CIRCO 1
7735 _ACEOF
7737 if test "$llvm_cv_os_type" = "MingW" ; then
7738 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7741 cat >>confdefs.h <<_ACEOF
7742 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7743 _ACEOF
7746 for ac_prog in gv gsview32
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749 set dummy $ac_prog; ac_word=$2
7750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752 if test "${ac_cv_path_GV+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 case $GV in
7756 [\\/]* | ?:[\\/]*)
7757 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7771 done
7772 done
7773 IFS=$as_save_IFS
7776 esac
7778 GV=$ac_cv_path_GV
7779 if test -n "$GV"; then
7780 { echo "$as_me:$LINENO: result: $GV" >&5
7781 echo "${ECHO_T}$GV" >&6; }
7782 else
7783 { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7788 test -n "$GV" && break
7789 done
7790 test -n "$GV" || GV="echo gv"
7792 if test "$GV" != "echo gv" ; then
7794 cat >>confdefs.h <<\_ACEOF
7795 #define HAVE_GV 1
7796 _ACEOF
7798 if test "$llvm_cv_os_type" = "MingW" ; then
7799 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7802 cat >>confdefs.h <<_ACEOF
7803 #define LLVM_PATH_GV "$GV${EXEEXT}"
7804 _ACEOF
7807 # Extract the first word of "dotty", so it can be a program name with args.
7808 set dummy dotty; ac_word=$2
7809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811 if test "${ac_cv_path_DOTTY+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 case $DOTTY in
7815 [\\/]* | ?:[\\/]*)
7816 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7832 IFS=$as_save_IFS
7834 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7836 esac
7838 DOTTY=$ac_cv_path_DOTTY
7839 if test -n "$DOTTY"; then
7840 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7841 echo "${ECHO_T}$DOTTY" >&6; }
7842 else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7848 if test "$DOTTY" != "echo dotty" ; then
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_DOTTY 1
7852 _ACEOF
7854 if test "$llvm_cv_os_type" = "MingW" ; then
7855 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7858 cat >>confdefs.h <<_ACEOF
7859 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7860 _ACEOF
7865 # Extract the first word of "perl", so it can be a program name with args.
7866 set dummy perl; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_PERL+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 case $PERL in
7873 [\\/]* | ?:[\\/]*)
7874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7894 esac
7896 PERL=$ac_cv_path_PERL
7897 if test -n "$PERL"; then
7898 { echo "$as_me:$LINENO: result: $PERL" >&5
7899 echo "${ECHO_T}$PERL" >&6; }
7900 else
7901 { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7906 if test "$PERL" != "none"; then
7907 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7908 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7909 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7910 { echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6; }
7912 else
7913 PERL=none
7914 { echo "$as_me:$LINENO: result: not found" >&5
7915 echo "${ECHO_T}not found" >&6; }
7920 if test x"$PERL" = xnone; then
7921 HAVE_PERL=0
7923 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7924 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7925 { (exit 1); exit 1; }; }
7926 else
7927 HAVE_PERL=1
7931 # Find a good install program. We prefer a C program (faster),
7932 # so one script is as good as another. But avoid the broken or
7933 # incompatible versions:
7934 # SysV /etc/install, /usr/sbin/install
7935 # SunOS /usr/etc/install
7936 # IRIX /sbin/install
7937 # AIX /bin/install
7938 # AmigaOS /C/install, which installs bootblocks on floppy discs
7939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7942 # OS/2's system install, which has a completely different semantic
7943 # ./install, which can be erroneously created by make from ./install.sh.
7944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7946 if test -z "$INSTALL"; then
7947 if test "${ac_cv_path_install+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 # Account for people who put trailing slashes in PATH elements.
7956 case $as_dir/ in
7957 ./ | .// | /cC/* | \
7958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7960 /usr/ucb/* ) ;;
7962 # OSF1 and SCO ODT 3.0 have their own names for install.
7963 # Don't use installbsd from OSF since it installs stuff as root
7964 # by default.
7965 for ac_prog in ginstall scoinst install; do
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7968 if test $ac_prog = install &&
7969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970 # AIX install. It has an incompatible calling convention.
7972 elif test $ac_prog = install &&
7973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7974 # program-specific install script used by HP pwplus--don't use.
7976 else
7977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7978 break 3
7981 done
7982 done
7984 esac
7985 done
7986 IFS=$as_save_IFS
7990 if test "${ac_cv_path_install+set}" = set; then
7991 INSTALL=$ac_cv_path_install
7992 else
7993 # As a last resort, use the slow shell script. Don't cache a
7994 # value for INSTALL within a source directory, because that will
7995 # break other packages using the cache if that directory is
7996 # removed, or if the value is a relative name.
7997 INSTALL=$ac_install_sh
8000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8001 echo "${ECHO_T}$INSTALL" >&6; }
8003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004 # It thinks the first close brace ends the variable substitution.
8005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8011 case "$INSTALL" in
8012 [\\/$]* | ?:[\\/]* ) ;;
8013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8014 esac
8016 # Extract the first word of "bzip2", so it can be a program name with args.
8017 set dummy bzip2; ac_word=$2
8018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020 if test "${ac_cv_path_BZIP2+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 case $BZIP2 in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8044 esac
8046 BZIP2=$ac_cv_path_BZIP2
8047 if test -n "$BZIP2"; then
8048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8049 echo "${ECHO_T}$BZIP2" >&6; }
8050 else
8051 { echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6; }
8056 # Extract the first word of "cat", so it can be a program name with args.
8057 set dummy cat; ac_word=$2
8058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060 if test "${ac_cv_path_CAT+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 case $CAT in
8064 [\\/]* | ?:[\\/]*)
8065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8079 done
8080 done
8081 IFS=$as_save_IFS
8084 esac
8086 CAT=$ac_cv_path_CAT
8087 if test -n "$CAT"; then
8088 { echo "$as_me:$LINENO: result: $CAT" >&5
8089 echo "${ECHO_T}$CAT" >&6; }
8090 else
8091 { echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6; }
8096 # Extract the first word of "doxygen", so it can be a program name with args.
8097 set dummy doxygen; ac_word=$2
8098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8100 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 case $DOXYGEN in
8104 [\\/]* | ?:[\\/]*)
8105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8119 done
8120 done
8121 IFS=$as_save_IFS
8124 esac
8126 DOXYGEN=$ac_cv_path_DOXYGEN
8127 if test -n "$DOXYGEN"; then
8128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8129 echo "${ECHO_T}$DOXYGEN" >&6; }
8130 else
8131 { echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6; }
8136 # Extract the first word of "groff", so it can be a program name with args.
8137 set dummy groff; ac_word=$2
8138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8140 if test "${ac_cv_path_GROFF+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 case $GROFF in
8144 [\\/]* | ?:[\\/]*)
8145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8159 done
8160 done
8161 IFS=$as_save_IFS
8164 esac
8166 GROFF=$ac_cv_path_GROFF
8167 if test -n "$GROFF"; then
8168 { echo "$as_me:$LINENO: result: $GROFF" >&5
8169 echo "${ECHO_T}$GROFF" >&6; }
8170 else
8171 { echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6; }
8176 # Extract the first word of "gzip", so it can be a program name with args.
8177 set dummy gzip; ac_word=$2
8178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8180 if test "${ac_cv_path_GZIP+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183 case $GZIP in
8184 [\\/]* | ?:[\\/]*)
8185 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8204 esac
8206 GZIP=$ac_cv_path_GZIP
8207 if test -n "$GZIP"; then
8208 { echo "$as_me:$LINENO: result: $GZIP" >&5
8209 echo "${ECHO_T}$GZIP" >&6; }
8210 else
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8216 # Extract the first word of "pod2html", so it can be a program name with args.
8217 set dummy pod2html; ac_word=$2
8218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220 if test "${ac_cv_path_POD2HTML+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223 case $POD2HTML in
8224 [\\/]* | ?:[\\/]*)
8225 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8239 done
8240 done
8241 IFS=$as_save_IFS
8244 esac
8246 POD2HTML=$ac_cv_path_POD2HTML
8247 if test -n "$POD2HTML"; then
8248 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8249 echo "${ECHO_T}$POD2HTML" >&6; }
8250 else
8251 { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8256 # Extract the first word of "pod2man", so it can be a program name with args.
8257 set dummy pod2man; ac_word=$2
8258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260 if test "${ac_cv_path_POD2MAN+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 case $POD2MAN in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8279 done
8280 done
8281 IFS=$as_save_IFS
8284 esac
8286 POD2MAN=$ac_cv_path_POD2MAN
8287 if test -n "$POD2MAN"; then
8288 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8289 echo "${ECHO_T}$POD2MAN" >&6; }
8290 else
8291 { echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6; }
8296 # Extract the first word of "pdfroff", so it can be a program name with args.
8297 set dummy pdfroff; ac_word=$2
8298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300 if test "${ac_cv_path_PDFROFF+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303 case $PDFROFF in
8304 [\\/]* | ?:[\\/]*)
8305 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8324 esac
8326 PDFROFF=$ac_cv_path_PDFROFF
8327 if test -n "$PDFROFF"; then
8328 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8329 echo "${ECHO_T}$PDFROFF" >&6; }
8330 else
8331 { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8336 # Extract the first word of "runtest", so it can be a program name with args.
8337 set dummy runtest; ac_word=$2
8338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340 if test "${ac_cv_path_RUNTEST+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 case $RUNTEST in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 RUNTEST=$ac_cv_path_RUNTEST
8367 if test -n "$RUNTEST"; then
8368 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8369 echo "${ECHO_T}$RUNTEST" >&6; }
8370 else
8371 { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8377 no_itcl=true
8378 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8379 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8381 # Check whether --with-tclinclude was given.
8382 if test "${with_tclinclude+set}" = set; then
8383 withval=$with_tclinclude; with_tclinclude=${withval}
8384 else
8385 with_tclinclude=''
8388 if test "${ac_cv_path_tclsh+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8392 if test x"${with_tclinclude}" != x ; then
8393 if test -f ${with_tclinclude}/tclsh ; then
8394 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8395 elif test -f ${with_tclinclude}/src/tclsh ; then
8396 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8397 else
8398 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8399 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8400 { (exit 1); exit 1; }; }
8406 if test x"${ac_cv_path_tclsh}" = x ; then
8407 { echo "$as_me:$LINENO: result: none" >&5
8408 echo "${ECHO_T}none" >&6; }
8409 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
8411 # Extract the first word of "$ac_prog", so it can be a program name with args.
8412 set dummy $ac_prog; ac_word=$2
8413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8415 if test "${ac_cv_path_TCLSH+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 case $TCLSH in
8419 [\\/]* | ?:[\\/]*)
8420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8434 done
8435 done
8436 IFS=$as_save_IFS
8439 esac
8441 TCLSH=$ac_cv_path_TCLSH
8442 if test -n "$TCLSH"; then
8443 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8444 echo "${ECHO_T}$TCLSH" >&6; }
8445 else
8446 { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8451 test -n "$TCLSH" && break
8452 done
8454 if test x"${TCLSH}" = x ; then
8455 ac_cv_path_tclsh='';
8456 else
8457 ac_cv_path_tclsh="${TCLSH}";
8459 else
8460 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8461 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8462 TCLSH="${ac_cv_path_tclsh}"
8466 # Extract the first word of "zip", so it can be a program name with args.
8467 set dummy zip; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_ZIP+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 case $ZIP in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8494 esac
8496 ZIP=$ac_cv_path_ZIP
8497 if test -n "$ZIP"; then
8498 { echo "$as_me:$LINENO: result: $ZIP" >&5
8499 echo "${ECHO_T}$ZIP" >&6; }
8500 else
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8506 for ac_prog in ocamlc
8508 # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8512 if test "${ac_cv_path_OCAMLC+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 case $OCAMLC in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8527 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8531 done
8532 done
8533 IFS=$as_save_IFS
8536 esac
8538 OCAMLC=$ac_cv_path_OCAMLC
8539 if test -n "$OCAMLC"; then
8540 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8541 echo "${ECHO_T}$OCAMLC" >&6; }
8542 else
8543 { echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6; }
8548 test -n "$OCAMLC" && break
8549 done
8551 for ac_prog in ocamlopt
8553 # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy $ac_prog; ac_word=$2
8555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8557 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 case $OCAMLOPT in
8561 [\\/]* | ?:[\\/]*)
8562 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8576 done
8577 done
8578 IFS=$as_save_IFS
8581 esac
8583 OCAMLOPT=$ac_cv_path_OCAMLOPT
8584 if test -n "$OCAMLOPT"; then
8585 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8586 echo "${ECHO_T}$OCAMLOPT" >&6; }
8587 else
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8593 test -n "$OCAMLOPT" && break
8594 done
8596 for ac_prog in ocamldep
8598 # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8602 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 case $OCAMLDEP in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8617 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8621 done
8622 done
8623 IFS=$as_save_IFS
8626 esac
8628 OCAMLDEP=$ac_cv_path_OCAMLDEP
8629 if test -n "$OCAMLDEP"; then
8630 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8631 echo "${ECHO_T}$OCAMLDEP" >&6; }
8632 else
8633 { echo "$as_me:$LINENO: result: no" >&5
8634 echo "${ECHO_T}no" >&6; }
8638 test -n "$OCAMLDEP" && break
8639 done
8641 for ac_prog in ocamldoc
8643 # Extract the first word of "$ac_prog", so it can be a program name with args.
8644 set dummy $ac_prog; ac_word=$2
8645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8647 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 case $OCAMLDOC in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8671 esac
8673 OCAMLDOC=$ac_cv_path_OCAMLDOC
8674 if test -n "$OCAMLDOC"; then
8675 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8676 echo "${ECHO_T}$OCAMLDOC" >&6; }
8677 else
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8683 test -n "$OCAMLDOC" && break
8684 done
8686 for ac_prog in gas as
8688 # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8692 if test "${ac_cv_path_GAS+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 case $GAS in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 GAS=$ac_cv_path_GAS
8719 if test -n "$GAS"; then
8720 { echo "$as_me:$LINENO: result: $GAS" >&5
8721 echo "${ECHO_T}$GAS" >&6; }
8722 else
8723 { echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6; }
8728 test -n "$GAS" && break
8729 done
8732 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8733 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8734 if test "${llvm_cv_link_use_r+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 ac_ext=c
8738 ac_cpp='$CPP $CPPFLAGS'
8739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743 oldcflags="$CFLAGS"
8744 CFLAGS="$CFLAGS -Wl,-R."
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8753 main ()
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (ac_try="$ac_link"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_link") 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8775 { (case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_try") 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_try") 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 llvm_cv_link_use_r=yes
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 llvm_cv_link_use_r=no
8802 rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804 CFLAGS="$oldcflags"
8805 ac_ext=c
8806 ac_cpp='$CPP $CPPFLAGS'
8807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8813 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8814 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8815 if test "$llvm_cv_link_use_r" = yes ; then
8817 cat >>confdefs.h <<\_ACEOF
8818 #define HAVE_LINK_R 1
8819 _ACEOF
8824 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8825 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8826 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829 ac_ext=c
8830 ac_cpp='$CPP $CPPFLAGS'
8831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835 oldcflags="$CFLAGS"
8836 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8837 cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8845 main ()
8849 return 0;
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (ac_try="$ac_link"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_link") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_try") 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 llvm_cv_link_use_export_dynamic=yes
8887 else
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.$ac_ext >&5
8891 llvm_cv_link_use_export_dynamic=no
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 CFLAGS="$oldcflags"
8897 ac_ext=c
8898 ac_cpp='$CPP $CPPFLAGS'
8899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8905 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8906 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8907 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8909 cat >>confdefs.h <<\_ACEOF
8910 #define HAVE_LINK_EXPORT_DYNAMIC 1
8911 _ACEOF
8916 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8917 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8918 if test "${llvm_cv_link_use_version_script+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927 oldcflags="$CFLAGS"
8929 # The following code is from the autoconf manual,
8930 # "11.13: Limitations of Usual Tools".
8931 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8932 # Use mktemp if possible; otherwise fall back on mkdir,
8933 # with $RANDOM to make collisions less likely.
8934 : ${TMPDIR=/tmp}
8936 tmp=`
8937 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8938 ` &&
8939 test -n "$tmp" && test -d "$tmp"
8940 } || {
8941 tmp=$TMPDIR/foo$$-$RANDOM
8942 (umask 077 && mkdir "$tmp")
8943 } || exit $?
8945 echo "{" > "$tmp/export.map"
8946 echo " global: main;" >> "$tmp/export.map"
8947 echo " local: *;" >> "$tmp/export.map"
8948 echo "};" >> "$tmp/export.map"
8950 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8959 main ()
8963 return 0;
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (ac_try="$ac_link"
8968 case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971 esac
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_link") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8981 { (case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_try") 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest$ac_exeext'
8991 { (case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_try") 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 llvm_cv_link_use_version_script=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 llvm_cv_link_use_version_script=no
9008 rm -f core conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010 rm "$tmp/export.map"
9011 rmdir "$tmp"
9012 CFLAGS="$oldcflags"
9013 ac_ext=c
9014 ac_cpp='$CPP $CPPFLAGS'
9015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9021 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9022 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9023 if test "$llvm_cv_link_use_version_script" = yes ; then
9024 HAVE_LINK_VERSION_SCRIPT=1
9031 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9033 if test "${ac_cv_c_const+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 cat >conftest.$ac_ext <<_ACEOF
9037 /* confdefs.h. */
9038 _ACEOF
9039 cat confdefs.h >>conftest.$ac_ext
9040 cat >>conftest.$ac_ext <<_ACEOF
9041 /* end confdefs.h. */
9044 main ()
9046 /* FIXME: Include the comments suggested by Paul. */
9047 #ifndef __cplusplus
9048 /* Ultrix mips cc rejects this. */
9049 typedef int charset[2];
9050 const charset x;
9051 /* SunOS 4.1.1 cc rejects this. */
9052 char const *const *ccp;
9053 char **p;
9054 /* NEC SVR4.0.2 mips cc rejects this. */
9055 struct point {int x, y;};
9056 static struct point const zero = {0,0};
9057 /* AIX XL C 1.02.0.0 rejects this.
9058 It does not let you subtract one const X* pointer from another in
9059 an arm of an if-expression whose if-part is not a constant
9060 expression */
9061 const char *g = "string";
9062 ccp = &g + (g ? g-g : 0);
9063 /* HPUX 7.0 cc rejects these. */
9064 ++ccp;
9065 p = (char**) ccp;
9066 ccp = (char const *const *) p;
9067 { /* SCO 3.2v4 cc rejects this. */
9068 char *t;
9069 char const *s = 0 ? (char *) 0 : (char const *) 0;
9071 *t++ = 0;
9072 if (s) return 0;
9074 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9075 int x[] = {25, 17};
9076 const int *foo = &x[0];
9077 ++foo;
9079 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9080 typedef const int *iptr;
9081 iptr p = 0;
9082 ++p;
9084 { /* AIX XL C 1.02.0.0 rejects this saying
9085 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9086 struct s { int j; const int *ap[3]; };
9087 struct s *b; b->j = 5;
9089 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9090 const int foo = 10;
9091 if (!foo) return 0;
9093 return !x[0] && !zero.x;
9094 #endif
9097 return 0;
9099 _ACEOF
9100 rm -f conftest.$ac_objext
9101 if { (ac_try="$ac_compile"
9102 case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9105 esac
9106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_compile") 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9115 { (case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_try") 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128 esac
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 ac_cv_c_const=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_cv_c_const=no
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9145 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9146 if test $ac_cv_c_const = no; then
9148 cat >>confdefs.h <<\_ACEOF
9149 #define const
9150 _ACEOF
9159 ac_header_dirent=no
9160 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9161 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9162 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9163 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 #include <sys/types.h>
9174 #include <$ac_hdr>
9177 main ()
9179 if ((DIR *) 0)
9180 return 0;
9182 return 0;
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (ac_try="$ac_compile"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203 esac
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 eval "$as_ac_Header=yes"
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 eval "$as_ac_Header=no"
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 ac_res=`eval echo '${'$as_ac_Header'}'`
9230 { echo "$as_me:$LINENO: result: $ac_res" >&5
9231 echo "${ECHO_T}$ac_res" >&6; }
9232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9233 cat >>confdefs.h <<_ACEOF
9234 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9235 _ACEOF
9237 ac_header_dirent=$ac_hdr; break
9240 done
9241 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9242 if test $ac_header_dirent = dirent.h; then
9243 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9244 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9245 if test "${ac_cv_search_opendir+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 ac_func_search_save_LIBS=$LIBS
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9256 /* Override any GCC internal prototype to avoid an error.
9257 Use char because int might match the return type of a GCC
9258 builtin and then its argument prototype would still apply. */
9259 #ifdef __cplusplus
9260 extern "C"
9261 #endif
9262 char opendir ();
9264 main ()
9266 return opendir ();
9268 return 0;
9270 _ACEOF
9271 for ac_lib in '' dir; do
9272 if test -z "$ac_lib"; then
9273 ac_res="none required"
9274 else
9275 ac_res=-l$ac_lib
9276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (ac_try="$ac_link"
9280 case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_link") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9293 { (case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_try") 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; } &&
9302 { ac_try='test -s conftest$ac_exeext'
9303 { (case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_try") 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_search_opendir=$ac_res
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext
9322 if test "${ac_cv_search_opendir+set}" = set; then
9323 break
9325 done
9326 if test "${ac_cv_search_opendir+set}" = set; then
9328 else
9329 ac_cv_search_opendir=no
9331 rm conftest.$ac_ext
9332 LIBS=$ac_func_search_save_LIBS
9334 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9335 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9336 ac_res=$ac_cv_search_opendir
9337 if test "$ac_res" != no; then
9338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9342 else
9343 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9345 if test "${ac_cv_search_opendir+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348 ac_func_search_save_LIBS=$LIBS
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9356 /* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 char opendir ();
9364 main ()
9366 return opendir ();
9368 return 0;
9370 _ACEOF
9371 for ac_lib in '' x; do
9372 if test -z "$ac_lib"; then
9373 ac_res="none required"
9374 else
9375 ac_res=-l$ac_lib
9376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; } &&
9402 { ac_try='test -s conftest$ac_exeext'
9403 { (case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_try") 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_cv_search_opendir=$ac_res
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9420 rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext
9422 if test "${ac_cv_search_opendir+set}" = set; then
9423 break
9425 done
9426 if test "${ac_cv_search_opendir+set}" = set; then
9428 else
9429 ac_cv_search_opendir=no
9431 rm conftest.$ac_ext
9432 LIBS=$ac_func_search_save_LIBS
9434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9436 ac_res=$ac_cv_search_opendir
9437 if test "$ac_res" != no; then
9438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9445 for ac_header in dlfcn.h
9447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 ac_res=`eval echo '${'$as_ac_Header'}'`
9455 { echo "$as_me:$LINENO: result: $ac_res" >&5
9456 echo "${ECHO_T}$ac_res" >&6; }
9457 else
9458 # Is the header compilable?
9459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9461 cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h. */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9468 #include <$ac_header>
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9472 case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_try") 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (case "(($ac_try" in
9496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_try") 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_header_compiler=yes
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_header_compiler=no
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514 echo "${ECHO_T}$ac_header_compiler" >&6; }
9516 # Is the header present?
9517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 #include <$ac_header>
9526 _ACEOF
9527 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
9540 if test -s conftest.err; then
9541 ac_cpp_err=$ac_c_preproc_warn_flag
9542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9543 else
9544 ac_cpp_err=
9546 else
9547 ac_cpp_err=yes
9549 if test -z "$ac_cpp_err"; then
9550 ac_header_preproc=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_header_preproc=no
9558 rm -f conftest.err conftest.$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9560 echo "${ECHO_T}$ac_header_preproc" >&6; }
9562 # So? What about this header?
9563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9564 yes:no: )
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9569 ac_header_preproc=yes
9571 no:yes:* )
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9584 ( cat <<\_ASBOX
9585 ## ----------------------------------- ##
9586 ## Report this to llvmbugs@cs.uiuc.edu ##
9587 ## ----------------------------------- ##
9588 _ASBOX
9589 ) | sed "s/^/$as_me: WARNING: /" >&2
9591 esac
9592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 eval "$as_ac_Header=\$ac_header_preproc"
9599 ac_res=`eval echo '${'$as_ac_Header'}'`
9600 { echo "$as_me:$LINENO: result: $ac_res" >&5
9601 echo "${ECHO_T}$ac_res" >&6; }
9604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9605 cat >>confdefs.h <<_ACEOF
9606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9607 _ACEOF
9611 done
9613 # Check whether --enable-ltdl-install was given.
9614 if test "${enable_ltdl_install+set}" = set; then
9615 enableval=$enable_ltdl_install;
9621 if test x"${enable_ltdl_install-no}" != xno; then
9622 INSTALL_LTDL_TRUE=
9623 INSTALL_LTDL_FALSE='#'
9624 else
9625 INSTALL_LTDL_TRUE='#'
9626 INSTALL_LTDL_FALSE=
9631 if test x"${enable_ltdl_convenience-no}" != xno; then
9632 CONVENIENCE_LTDL_TRUE=
9633 CONVENIENCE_LTDL_FALSE='#'
9634 else
9635 CONVENIENCE_LTDL_TRUE='#'
9636 CONVENIENCE_LTDL_FALSE=
9640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9642 library_names_spec=
9643 libname_spec='lib$name'
9644 soname_spec=
9645 shrext_cmds=".so"
9646 postinstall_cmds=
9647 postuninstall_cmds=
9648 finish_cmds=
9649 finish_eval=
9650 shlibpath_var=
9651 shlibpath_overrides_runpath=unknown
9652 version_type=none
9653 dynamic_linker="$host_os ld.so"
9654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9655 if test "$GCC" = yes; then
9656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9658 # if the path contains ";" then we assume it to be the separator
9659 # otherwise default to the standard path separator (i.e. ":") - it is
9660 # assumed that no part of a normal pathname contains ";" but that should
9661 # okay in the real world where ";" in dirpaths is itself problematic.
9662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9663 else
9664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9666 else
9667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9669 need_lib_prefix=unknown
9670 hardcode_into_libs=no
9672 # when you set need_version to no, make sure it does not cause -set_version
9673 # flags to be left without arguments
9674 need_version=unknown
9676 case $host_os in
9677 aix3*)
9678 version_type=linux
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9680 shlibpath_var=LIBPATH
9682 # AIX 3 has no versioning support, so we append a major version to the name.
9683 soname_spec='${libname}${release}${shared_ext}$major'
9686 aix4* | aix5*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 hardcode_into_libs=yes
9691 if test "$host_cpu" = ia64; then
9692 # AIX 5 supports IA64
9693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 else
9696 # With GCC up to 2.95.x, collect2 would create an import file
9697 # for dependence libraries. The import file would start with
9698 # the line `#! .'. This would cause the generated library to
9699 # depend on `.', always an invalid library. This was fixed in
9700 # development snapshots of GCC prior to 3.0.
9701 case $host_os in
9702 aix4 | aix4.[01] | aix4.[01].*)
9703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704 echo ' yes '
9705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9707 else
9708 can_build_shared=no
9711 esac
9712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9713 # soname into executable. Probably we can add versioning support to
9714 # collect2, so additional links can be useful in future.
9715 if test "$aix_use_runtimelinking" = yes; then
9716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9717 # instead of lib<name>.a to let people know that these are not
9718 # typical AIX shared libraries.
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 else
9721 # We preserve .a as extension for shared libraries through AIX4.2
9722 # and later when we are not doing run time linking.
9723 library_names_spec='${libname}${release}.a $libname.a'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9726 shlibpath_var=LIBPATH
9730 amigaos*)
9731 library_names_spec='$libname.ixlibrary $libname.a'
9732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9733 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'
9736 beos*)
9737 library_names_spec='${libname}${shared_ext}'
9738 dynamic_linker="$host_os ld.so"
9739 shlibpath_var=LIBRARY_PATH
9742 bsdi[45]*)
9743 version_type=linux
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9751 # the default ld.so.conf also contains /usr/contrib/lib and
9752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9753 # libtool to hard-code these into programs
9756 cygwin* | mingw* | pw32*)
9757 version_type=windows
9758 shrext_cmds=".dll"
9759 need_version=no
9760 need_lib_prefix=no
9762 case $GCC,$host_os in
9763 yes,cygwin* | yes,mingw* | yes,pw32*)
9764 library_names_spec='$libname.dll.a'
9765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9766 postinstall_cmds='base_file=`basename \${file}`~
9767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9768 dldir=$destdir/`dirname \$dlpath`~
9769 test -d \$dldir || mkdir -p \$dldir~
9770 $install_prog $dir/$dlname \$dldir/$dlname~
9771 chmod a+x \$dldir/$dlname'
9772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9773 dlpath=$dir/\$dldll~
9774 $rm \$dlpath'
9775 shlibpath_overrides_runpath=yes
9777 case $host_os in
9778 cygwin*)
9779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9783 mingw*)
9784 # MinGW DLLs use traditional 'lib' prefix
9785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9788 # It is most probably a Windows format PATH printed by
9789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9790 # path with ; separators, and with drive letters. We can handle the
9791 # drive letters (cygwin fileutils understands them), so leave them,
9792 # especially as we might pass files found there to a mingw objdump,
9793 # which wouldn't understand a cygwinified path. Ahh.
9794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795 else
9796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9799 pw32*)
9800 # pw32 DLLs use 'pw' prefix rather than 'lib'
9801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9803 esac
9807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9809 esac
9810 dynamic_linker='Win32 ld.exe'
9811 # FIXME: first we should search . and the directory the executable is in
9812 shlibpath_var=PATH
9815 darwin* | rhapsody*)
9816 dynamic_linker="$host_os dyld"
9817 version_type=darwin
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9821 soname_spec='${libname}${release}${major}$shared_ext'
9822 shlibpath_overrides_runpath=yes
9823 shlibpath_var=DYLD_LIBRARY_PATH
9824 shrext_cmds='.dylib'
9825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9826 if test "$GCC" = yes; then
9827 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"`
9828 else
9829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9834 dgux*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9843 freebsd1*)
9844 dynamic_linker=no
9847 kfreebsd*-gnu)
9848 version_type=linux
9849 need_lib_prefix=no
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 shlibpath_overrides_runpath=no
9855 hardcode_into_libs=yes
9856 dynamic_linker='GNU ld.so'
9859 freebsd* | dragonfly*)
9860 # DragonFly does not have aout. When/if they implement a new
9861 # versioning mechanism, adjust this.
9862 if test -x /usr/bin/objformat; then
9863 objformat=`/usr/bin/objformat`
9864 else
9865 case $host_os in
9866 freebsd[123]*) objformat=aout ;;
9867 *) objformat=elf ;;
9868 esac
9870 version_type=freebsd-$objformat
9871 case $version_type in
9872 freebsd-elf*)
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9874 need_version=no
9875 need_lib_prefix=no
9877 freebsd-*)
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9879 need_version=yes
9881 esac
9882 shlibpath_var=LD_LIBRARY_PATH
9883 case $host_os in
9884 freebsd2*)
9885 shlibpath_overrides_runpath=yes
9887 freebsd3.[01]* | freebsdelf3.[01]*)
9888 shlibpath_overrides_runpath=yes
9889 hardcode_into_libs=yes
9891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9893 shlibpath_overrides_runpath=no
9894 hardcode_into_libs=yes
9896 freebsd*) # from 4.6 on
9897 shlibpath_overrides_runpath=yes
9898 hardcode_into_libs=yes
9900 esac
9903 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 hardcode_into_libs=yes
9913 hpux9* | hpux10* | hpux11*)
9914 # Give a soname corresponding to the major version so that dld.sl refuses to
9915 # link against other versions.
9916 version_type=sunos
9917 need_lib_prefix=no
9918 need_version=no
9919 case $host_cpu in
9920 ia64*)
9921 shrext_cmds='.so'
9922 hardcode_into_libs=yes
9923 dynamic_linker="$host_os dld.so"
9924 shlibpath_var=LD_LIBRARY_PATH
9925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 if test "X$HPUX_IA64_MODE" = X32; then
9929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930 else
9931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9935 hppa*64*)
9936 shrext_cmds='.sl'
9937 hardcode_into_libs=yes
9938 dynamic_linker="$host_os dld.sl"
9939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9947 shrext_cmds='.sl'
9948 dynamic_linker="$host_os dld.sl"
9949 shlibpath_var=SHLIB_PATH
9950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9954 esac
9955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9956 postinstall_cmds='chmod 555 $lib'
9959 interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=no
9968 hardcode_into_libs=yes
9971 irix5* | irix6* | nonstopux*)
9972 case $host_os in
9973 nonstopux*) version_type=nonstopux ;;
9975 if test "$lt_cv_prog_gnu_ld" = yes; then
9976 version_type=linux
9977 else
9978 version_type=irix
9979 fi ;;
9980 esac
9981 need_lib_prefix=no
9982 need_version=no
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 case $host_os in
9986 irix5* | nonstopux*)
9987 libsuff= shlibsuff=
9990 case $LD in # libtool.m4 will add one of these switches to LD
9991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9992 libsuff= shlibsuff= libmagic=32-bit;;
9993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9994 libsuff=32 shlibsuff=N32 libmagic=N32;;
9995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9997 *) libsuff= shlibsuff= libmagic=never-match;;
9998 esac
10000 esac
10001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10002 shlibpath_overrides_runpath=no
10003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10005 hardcode_into_libs=yes
10008 # No shared lib support for Linux oldld, aout, or coff.
10009 linux*oldld* | linux*aout* | linux*coff*)
10010 dynamic_linker=no
10013 # This must be Linux ELF.
10014 linux*)
10015 version_type=linux
10016 need_lib_prefix=no
10017 need_version=no
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10021 shlibpath_var=LD_LIBRARY_PATH
10022 shlibpath_overrides_runpath=no
10023 # This implies no fast_install, which is unacceptable.
10024 # Some rework will be needed to allow for fast_install
10025 # before this can be enabled.
10026 hardcode_into_libs=yes
10028 # Append ld.so.conf contents to the search path
10029 if test -f /etc/ld.so.conf; then
10030 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' ' '`
10031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10034 # We used to test for /lib/ld.so.1 and disable shared libraries on
10035 # powerpc, because MkLinux only supported shared libraries with the
10036 # GNU dynamic linker. Since this was broken with cross compilers,
10037 # most powerpc-linux boxes support dynamic linking these days and
10038 # people can always --disable-shared, the test was removed, and we
10039 # assume the GNU/Linux dynamic linker is in use.
10040 dynamic_linker='GNU/Linux ld.so'
10043 knetbsd*-gnu)
10044 version_type=linux
10045 need_lib_prefix=no
10046 need_version=no
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 shlibpath_var=LD_LIBRARY_PATH
10050 shlibpath_overrides_runpath=no
10051 hardcode_into_libs=yes
10052 dynamic_linker='GNU ld.so'
10055 netbsd*)
10056 version_type=sunos
10057 need_lib_prefix=no
10058 need_version=no
10059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10062 dynamic_linker='NetBSD (a.out) ld.so'
10063 else
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 dynamic_linker='NetBSD ld.elf_so'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10073 newsos6)
10074 version_type=linux
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=yes
10080 nto-qnx*)
10081 version_type=linux
10082 need_lib_prefix=no
10083 need_version=no
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=yes
10090 openbsd*)
10091 version_type=sunos
10092 sys_lib_dlsearch_path_spec="/usr/lib"
10093 need_lib_prefix=no
10094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10095 case $host_os in
10096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10097 *) need_version=no ;;
10098 esac
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10101 shlibpath_var=LD_LIBRARY_PATH
10102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103 case $host_os in
10104 openbsd2.[89] | openbsd2.[89].*)
10105 shlibpath_overrides_runpath=no
10108 shlibpath_overrides_runpath=yes
10110 esac
10111 else
10112 shlibpath_overrides_runpath=yes
10116 os2*)
10117 libname_spec='$name'
10118 shrext_cmds=".dll"
10119 need_lib_prefix=no
10120 library_names_spec='$libname${shared_ext} $libname.a'
10121 dynamic_linker='OS/2 ld.exe'
10122 shlibpath_var=LIBPATH
10125 osf3* | osf4* | osf5*)
10126 version_type=osf
10127 need_lib_prefix=no
10128 need_version=no
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10136 solaris*)
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
10144 hardcode_into_libs=yes
10145 # ldd complains unless libraries are executable
10146 postinstall_cmds='chmod +x $lib'
10149 sunos4*)
10150 version_type=sunos
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 shlibpath_overrides_runpath=yes
10155 if test "$with_gnu_ld" = yes; then
10156 need_lib_prefix=no
10158 need_version=yes
10161 sysv4 | sysv4.3*)
10162 version_type=linux
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 case $host_vendor in
10167 sni)
10168 shlibpath_overrides_runpath=no
10169 need_lib_prefix=no
10170 export_dynamic_flag_spec='${wl}-Blargedynsym'
10171 runpath_var=LD_RUN_PATH
10173 siemens)
10174 need_lib_prefix=no
10176 motorola)
10177 need_lib_prefix=no
10178 need_version=no
10179 shlibpath_overrides_runpath=no
10180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10182 esac
10185 sysv4*MP*)
10186 if test -d /usr/nec ;then
10187 version_type=linux
10188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10189 soname_spec='$libname${shared_ext}.$major'
10190 shlibpath_var=LD_LIBRARY_PATH
10194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10195 version_type=freebsd-elf
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 hardcode_into_libs=yes
10202 if test "$with_gnu_ld" = yes; then
10203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10204 shlibpath_overrides_runpath=no
10205 else
10206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10207 shlibpath_overrides_runpath=yes
10208 case $host_os in
10209 sco3.2v5*)
10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10212 esac
10214 sys_lib_dlsearch_path_spec='/usr/lib'
10217 uts4*)
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
10225 dynamic_linker=no
10227 esac
10228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10229 echo "${ECHO_T}$dynamic_linker" >&6; }
10230 test "$dynamic_linker" = no && can_build_shared=no
10232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10233 if test "$GCC" = yes; then
10234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10238 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10239 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10240 if test "${libltdl_cv_shlibext+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10244 module=yes
10245 eval libltdl_cv_shlibext=$shrext_cmds
10248 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10249 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10250 if test -n "$libltdl_cv_shlibext"; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10254 _ACEOF
10259 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10260 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10261 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 libltdl_cv_shlibpath_var="$shlibpath_var"
10266 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10267 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10268 if test -n "$libltdl_cv_shlibpath_var"; then
10270 cat >>confdefs.h <<_ACEOF
10271 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10272 _ACEOF
10277 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10278 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10279 if test "${libltdl_cv_sys_search_path+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10284 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10285 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10286 if test -n "$libltdl_cv_sys_search_path"; then
10287 sys_search_path=
10288 for dir in $libltdl_cv_sys_search_path; do
10289 if test -z "$sys_search_path"; then
10290 sys_search_path="$dir"
10291 else
10292 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10294 done
10296 cat >>confdefs.h <<_ACEOF
10297 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10298 _ACEOF
10302 { echo "$as_me:$LINENO: checking for objdir" >&5
10303 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_objdir+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 libltdl_cv_objdir="$objdir"
10308 if test -n "$objdir"; then
10310 else
10311 rm -f .libs 2>/dev/null
10312 mkdir .libs 2>/dev/null
10313 if test -d .libs; then
10314 libltdl_cv_objdir=.libs
10315 else
10316 # MS-DOS does not allow filenames that begin with a dot.
10317 libltdl_cv_objdir=_libs
10319 rmdir .libs 2>/dev/null
10323 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10324 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10326 cat >>confdefs.h <<_ACEOF
10327 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10328 _ACEOF
10335 # Check for command to grab the raw symbol name followed by C symbol from nm.
10336 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10337 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10338 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10342 # These are sane defaults that work on at least a few old systems.
10343 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10345 # Character class describing NM global symbol codes.
10346 symcode='[BCDEGRST]'
10348 # Regexp to match symbols that can be accessed directly from C.
10349 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10351 # Transform an extracted symbol line into a proper C declaration
10352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10354 # Transform an extracted symbol line into symbol name and symbol address
10355 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'"
10357 # Define system-specific variables.
10358 case $host_os in
10359 aix*)
10360 symcode='[BCDT]'
10362 cygwin* | mingw* | pw32*)
10363 symcode='[ABCDGISTW]'
10365 hpux*) # Its linker distinguishes data from code symbols
10366 if test "$host_cpu" = ia64; then
10367 symcode='[ABCDEGRST]'
10369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10370 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'"
10372 linux*)
10373 if test "$host_cpu" = ia64; then
10374 symcode='[ABCDGIRSTW]'
10375 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10376 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'"
10379 irix* | nonstopux*)
10380 symcode='[BCDEGRST]'
10382 osf*)
10383 symcode='[BCDEGQRST]'
10385 solaris*)
10386 symcode='[BDRT]'
10388 sco3.2v5*)
10389 symcode='[DT]'
10391 sysv4.2uw2*)
10392 symcode='[DT]'
10394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10395 symcode='[ABDT]'
10397 sysv4)
10398 symcode='[DFNSTU]'
10400 esac
10402 # Handle CRLF in mingw tool chain
10403 opt_cr=
10404 case $build_os in
10405 mingw*)
10406 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10408 esac
10410 # If we're using GNU nm, then use its standard symbol codes.
10411 case `$NM -V 2>&1` in
10412 *GNU* | *'with BFD'*)
10413 symcode='[ABCDGIRSTW]' ;;
10414 esac
10416 # Try without a prefix undercore, then with it.
10417 for ac_symprfx in "" "_"; do
10419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10420 symxfrm="\\1 $ac_symprfx\\2 \\2"
10422 # Write the raw and C identifiers.
10423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10425 # Check to see that the pipe works correctly.
10426 pipe_works=no
10428 rm -f conftest*
10429 cat > conftest.$ac_ext <<EOF
10430 #ifdef __cplusplus
10431 extern "C" {
10432 #endif
10433 char nm_test_var;
10434 void nm_test_func(){}
10435 #ifdef __cplusplus
10437 #endif
10438 int main(){nm_test_var='a';nm_test_func();return(0);}
10441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442 (eval $ac_compile) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; then
10446 # Now try to grab the symbols.
10447 nlist=conftest.nm
10448 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10449 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && test -s "$nlist"; then
10453 # Try sorting and uniquifying the output.
10454 if sort "$nlist" | uniq > "$nlist"T; then
10455 mv -f "$nlist"T "$nlist"
10456 else
10457 rm -f "$nlist"T
10460 # Make sure that we snagged all the symbols we need.
10461 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10462 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10463 cat <<EOF > conftest.$ac_ext
10464 #ifdef __cplusplus
10465 extern "C" {
10466 #endif
10469 # Now generate the symbol file.
10470 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10472 cat <<EOF >> conftest.$ac_ext
10473 #if defined (__STDC__) && __STDC__
10474 # define lt_ptr_t void *
10475 #else
10476 # define lt_ptr_t char *
10477 # define const
10478 #endif
10480 /* The mapping between symbol names and symbols. */
10481 const struct {
10482 const char *name;
10483 lt_ptr_t address;
10485 lt_preloaded_symbols[] =
10488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10489 cat <<\EOF >> conftest.$ac_ext
10490 {0, (lt_ptr_t) 0}
10493 #ifdef __cplusplus
10495 #endif
10497 # Now try linking the two files.
10498 mv conftest.$ac_objext conftstm.$ac_objext
10499 lt_save_LIBS="$LIBS"
10500 lt_save_CFLAGS="$CFLAGS"
10501 LIBS="conftstm.$ac_objext"
10502 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10508 pipe_works=yes
10510 LIBS="$lt_save_LIBS"
10511 CFLAGS="$lt_save_CFLAGS"
10512 else
10513 echo "cannot find nm_test_func in $nlist" >&5
10515 else
10516 echo "cannot find nm_test_var in $nlist" >&5
10518 else
10519 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10521 else
10522 echo "$progname: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10525 rm -f conftest* conftst*
10527 # Do not use the global_symbol_pipe unless it works.
10528 if test "$pipe_works" = yes; then
10529 break
10530 else
10531 lt_cv_sys_global_symbol_pipe=
10533 done
10537 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10538 lt_cv_sys_global_symbol_to_cdecl=
10540 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10541 { echo "$as_me:$LINENO: result: failed" >&5
10542 echo "${ECHO_T}failed" >&6; }
10543 else
10544 { echo "$as_me:$LINENO: result: ok" >&5
10545 echo "${ECHO_T}ok" >&6; }
10549 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10550 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10551 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10555 libltdl_cv_preloaded_symbols=yes
10556 else
10557 libltdl_cv_preloaded_symbols=no
10561 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10562 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10563 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10565 cat >>confdefs.h <<\_ACEOF
10566 #define HAVE_PRELOADED_SYMBOLS 1
10567 _ACEOF
10571 LIBADD_DL=
10573 ac_ext=c
10574 ac_cpp='$CPP $CPPFLAGS'
10575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10580 { echo "$as_me:$LINENO: checking for shl_load" >&5
10581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10582 if test "${ac_cv_func_shl_load+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10593 #define shl_load innocuous_shl_load
10595 /* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char shl_load (); below.
10597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10598 <limits.h> exists even on freestanding compilers. */
10600 #ifdef __STDC__
10601 # include <limits.h>
10602 #else
10603 # include <assert.h>
10604 #endif
10606 #undef shl_load
10608 /* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 char shl_load ();
10615 /* The GNU C library defines this for functions which it implements
10616 to always fail with ENOSYS. Some functions are actually named
10617 something starting with __ and the normal name is an alias. */
10618 #if defined __stub_shl_load || defined __stub___shl_load
10619 choke me
10620 #endif
10623 main ()
10625 return shl_load ();
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_try") 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_func_shl_load=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_func_shl_load=no
10672 rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10675 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10677 if test $ac_cv_func_shl_load = yes; then
10679 cat >>confdefs.h <<\_ACEOF
10680 #define HAVE_SHL_LOAD 1
10681 _ACEOF
10683 else
10684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldld $LIBS"
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char shl_load ();
10706 main ()
10708 return shl_load ();
10710 return 0;
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest$ac_exeext'
10738 { (case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_try") 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_cv_lib_dld_shl_load=yes
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 ac_cv_lib_dld_shl_load=no
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10760 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10761 if test $ac_cv_lib_dld_shl_load = yes; then
10763 cat >>confdefs.h <<\_ACEOF
10764 #define HAVE_SHL_LOAD 1
10765 _ACEOF
10767 LIBADD_DL="$LIBADD_DL -ldld"
10768 else
10769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-ldl $LIBS"
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10783 /* Override any GCC internal prototype to avoid an error.
10784 Use char because int might match the return type of a GCC
10785 builtin and then its argument prototype would still apply. */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 char dlopen ();
10791 main ()
10793 return dlopen ();
10795 return 0;
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10813 { (case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816 esac
10817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_try") 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; } &&
10822 { ac_try='test -s conftest$ac_exeext'
10823 { (case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826 esac
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_try") 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_cv_lib_dl_dlopen=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_cv_lib_dl_dlopen=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10846 if test $ac_cv_lib_dl_dlopen = yes; then
10848 cat >>confdefs.h <<\_ACEOF
10849 #define HAVE_LIBDL 1
10850 _ACEOF
10852 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10853 else
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h. */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #if HAVE_DLFCN_H
10861 # include <dlfcn.h>
10862 #endif
10865 main ()
10867 dlopen(0, 0);
10869 return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_LIBDL 1
10909 _ACEOF
10910 libltdl_cv_func_dlopen="yes"
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10916 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10917 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 ac_check_lib_save_LIBS=$LIBS
10921 LIBS="-lsvld $LIBS"
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char dlopen ();
10937 main ()
10939 return dlopen ();
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972 esac
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_try") 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 ac_cv_lib_svld_dlopen=yes
10979 else
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 ac_cv_lib_svld_dlopen=no
10986 rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10990 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10992 if test $ac_cv_lib_svld_dlopen = yes; then
10994 cat >>confdefs.h <<\_ACEOF
10995 #define HAVE_LIBDL 1
10996 _ACEOF
10998 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10999 else
11000 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11001 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldld $LIBS"
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char dld_link ();
11022 main ()
11024 return dld_link ();
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_link") 2>conftest.er1
11037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_lib_dld_dld_link=yes
11064 else
11065 echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11068 ac_cv_lib_dld_dld_link=no
11071 rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073 LIBS=$ac_check_lib_save_LIBS
11075 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11076 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11077 if test $ac_cv_lib_dld_dld_link = yes; then
11079 cat >>confdefs.h <<\_ACEOF
11080 #define HAVE_DLD 1
11081 _ACEOF
11083 LIBADD_DL="$LIBADD_DL -ldld"
11084 else
11085 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11086 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11087 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11098 #define _dyld_func_lookup innocuous__dyld_func_lookup
11100 /* System header to define __stub macros and hopefully few prototypes,
11101 which can conflict with char _dyld_func_lookup (); below.
11102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11103 <limits.h> exists even on freestanding compilers. */
11105 #ifdef __STDC__
11106 # include <limits.h>
11107 #else
11108 # include <assert.h>
11109 #endif
11111 #undef _dyld_func_lookup
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char _dyld_func_lookup ();
11120 /* The GNU C library defines this for functions which it implements
11121 to always fail with ENOSYS. Some functions are actually named
11122 something starting with __ and the normal name is an alias. */
11123 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11124 choke me
11125 #endif
11128 main ()
11130 return _dyld_func_lookup ();
11132 return 0;
11134 _ACEOF
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_func__dyld_func_lookup=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_func__dyld_func_lookup=no
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11180 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11181 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11182 if test $ac_cv_func__dyld_func_lookup = yes; then
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_DYLD 1
11186 _ACEOF
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11211 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11212 then
11213 lt_save_LIBS="$LIBS"
11214 LIBS="$LIBS $LIBADD_DL"
11216 for ac_func in dlerror
11218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h. */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11232 #define $ac_func innocuous_$ac_func
11234 /* System header to define __stub macros and hopefully few prototypes,
11235 which can conflict with char $ac_func (); below.
11236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11237 <limits.h> exists even on freestanding compilers. */
11239 #ifdef __STDC__
11240 # include <limits.h>
11241 #else
11242 # include <assert.h>
11243 #endif
11245 #undef $ac_func
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char $ac_func ();
11254 /* The GNU C library defines this for functions which it implements
11255 to always fail with ENOSYS. Some functions are actually named
11256 something starting with __ and the normal name is an alias. */
11257 #if defined __stub_$ac_func || defined __stub___$ac_func
11258 choke me
11259 #endif
11262 main ()
11264 return $ac_func ();
11266 return 0;
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_link") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11297 esac
11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11299 (eval "$ac_try") 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 eval "$as_ac_var=yes"
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 eval "$as_ac_var=no"
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11314 ac_res=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 if test `eval echo '${'$as_ac_var'}'` = yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11320 _ACEOF
11323 done
11325 LIBS="$lt_save_LIBS"
11327 ac_ext=c
11328 ac_cpp='$CPP $CPPFLAGS'
11329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11335 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11336 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11337 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 ac_cv_sys_symbol_underscore=no
11341 cat > conftest.$ac_ext <<EOF
11342 void nm_test_func(){}
11343 int main(){nm_test_func;return 0;}
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; then
11350 # Now try to grab the symbols.
11351 ac_nlist=conftest.nm
11352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && test -s "$ac_nlist"; then
11357 # See whether the symbols have a leading underscore.
11358 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11359 ac_cv_sys_symbol_underscore=yes
11360 else
11361 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11363 else
11364 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11367 else
11368 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11370 else
11371 echo "configure: failed program was:" >&5
11372 cat conftest.c >&5
11374 rm -rf conftest*
11377 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11378 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11381 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11382 if test x"$libltdl_cv_func_dlopen" = xyes ||
11383 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11384 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11385 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11386 if test "${libltdl_cv_need_uscore+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 libltdl_cv_need_uscore=unknown
11390 save_LIBS="$LIBS"
11391 LIBS="$LIBS $LIBADD_DL"
11392 if test "$cross_compiling" = yes; then :
11393 libltdl_cv_need_uscore=cross
11394 else
11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11396 lt_status=$lt_dlunknown
11397 cat > conftest.$ac_ext <<EOF
11398 #line 11398 "configure"
11399 #include "confdefs.h"
11401 #if HAVE_DLFCN_H
11402 #include <dlfcn.h>
11403 #endif
11405 #include <stdio.h>
11407 #ifdef RTLD_GLOBAL
11408 # define LT_DLGLOBAL RTLD_GLOBAL
11409 #else
11410 # ifdef DL_GLOBAL
11411 # define LT_DLGLOBAL DL_GLOBAL
11412 # else
11413 # define LT_DLGLOBAL 0
11414 # endif
11415 #endif
11417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11418 find out it does not work in some platform. */
11419 #ifndef LT_DLLAZY_OR_NOW
11420 # ifdef RTLD_LAZY
11421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11422 # else
11423 # ifdef DL_LAZY
11424 # define LT_DLLAZY_OR_NOW DL_LAZY
11425 # else
11426 # ifdef RTLD_NOW
11427 # define LT_DLLAZY_OR_NOW RTLD_NOW
11428 # else
11429 # ifdef DL_NOW
11430 # define LT_DLLAZY_OR_NOW DL_NOW
11431 # else
11432 # define LT_DLLAZY_OR_NOW 0
11433 # endif
11434 # endif
11435 # endif
11436 # endif
11437 #endif
11439 #ifdef __cplusplus
11440 extern "C" void exit (int);
11441 #endif
11443 void fnord() { int i=42;}
11444 int main ()
11446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11447 int status = $lt_dlunknown;
11449 if (self)
11451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11453 /* dlclose (self); */
11455 else
11456 puts (dlerror ());
11458 exit (status);
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11466 (./conftest; exit; ) >&5 2>/dev/null
11467 lt_status=$?
11468 case x$lt_status in
11469 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11470 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11471 x$lt_dlunknown|x*) ;;
11472 esac
11473 else :
11474 # compilation failed
11478 rm -fr conftest*
11480 LIBS="$save_LIBS"
11483 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11484 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11488 if test x"$libltdl_cv_need_uscore" = xyes; then
11490 cat >>confdefs.h <<\_ACEOF
11491 #define NEED_USCORE 1
11492 _ACEOF
11497 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11498 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11499 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502 # PORTME does your system automatically load deplibs for dlopen?
11503 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11504 # For now, we just catch OSes we know something about -- in the
11505 # future, we'll try test this programmatically.
11506 libltdl_cv_sys_dlopen_deplibs=unknown
11507 case "$host_os" in
11508 aix3*|aix4.1.*|aix4.2.*)
11509 # Unknown whether this is true for these versions of AIX, but
11510 # we want this `case' here to explicitly catch those versions.
11511 libltdl_cv_sys_dlopen_deplibs=unknown
11513 aix[45]*)
11514 libltdl_cv_sys_dlopen_deplibs=yes
11516 darwin*)
11517 # Assuming the user has installed a libdl from somewhere, this is true
11518 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11519 libltdl_cv_sys_dlopen_deplibs=yes
11521 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11522 # GNU and its variants, using gnu ld.so (Glibc)
11523 libltdl_cv_sys_dlopen_deplibs=yes
11525 hpux10*|hpux11*)
11526 libltdl_cv_sys_dlopen_deplibs=yes
11528 interix*)
11529 libltdl_cv_sys_dlopen_deplibs=yes
11531 irix[12345]*|irix6.[01]*)
11532 # Catch all versions of IRIX before 6.2, and indicate that we don't
11533 # know how it worked for any of those versions.
11534 libltdl_cv_sys_dlopen_deplibs=unknown
11536 irix*)
11537 # The case above catches anything before 6.2, and it's known that
11538 # at 6.2 and later dlopen does load deplibs.
11539 libltdl_cv_sys_dlopen_deplibs=yes
11541 netbsd*)
11542 libltdl_cv_sys_dlopen_deplibs=yes
11544 openbsd*)
11545 libltdl_cv_sys_dlopen_deplibs=yes
11547 osf[1234]*)
11548 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11549 # it did *not* use an RPATH in a shared library to find objects the
11550 # library depends on, so we explictly say `no'.
11551 libltdl_cv_sys_dlopen_deplibs=no
11553 osf5.0|osf5.0a|osf5.1)
11554 # dlopen *does* load deplibs and with the right loader patch applied
11555 # it even uses RPATH in a shared library to search for shared objects
11556 # that the library depends on, but there's no easy way to know if that
11557 # patch is installed. Since this is the case, all we can really
11558 # say is unknown -- it depends on the patch being installed. If
11559 # it is, this changes to `yes'. Without it, it would be `no'.
11560 libltdl_cv_sys_dlopen_deplibs=unknown
11562 osf*)
11563 # the two cases above should catch all versions of osf <= 5.1. Read
11564 # the comments above for what we know about them.
11565 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11566 # is used to find them so we can finally say `yes'.
11567 libltdl_cv_sys_dlopen_deplibs=yes
11569 solaris*)
11570 libltdl_cv_sys_dlopen_deplibs=yes
11572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11573 libltdl_cv_sys_dlopen_deplibs=yes
11575 esac
11578 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11579 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11580 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11582 cat >>confdefs.h <<\_ACEOF
11583 #define LTDL_DLOPEN_DEPLIBS 1
11584 _ACEOF
11589 for ac_header in argz.h
11591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 ac_res=`eval echo '${'$as_ac_Header'}'`
11599 { echo "$as_me:$LINENO: result: $ac_res" >&5
11600 echo "${ECHO_T}$ac_res" >&6; }
11601 else
11602 # Is the header compilable?
11603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h. */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 $ac_includes_default
11612 #include <$ac_header>
11613 _ACEOF
11614 rm -f conftest.$ac_objext
11615 if { (ac_try="$ac_compile"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_compile") 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11629 { (case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_try") 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_header_compiler=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_header_compiler=no
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6; }
11660 # Is the header present?
11661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 #include <$ac_header>
11670 _ACEOF
11671 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11684 if test -s conftest.err; then
11685 ac_cpp_err=$ac_c_preproc_warn_flag
11686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11687 else
11688 ac_cpp_err=
11690 else
11691 ac_cpp_err=yes
11693 if test -z "$ac_cpp_err"; then
11694 ac_header_preproc=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11699 ac_header_preproc=no
11702 rm -f conftest.err conftest.$ac_ext
11703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11704 echo "${ECHO_T}$ac_header_preproc" >&6; }
11706 # So? What about this header?
11707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11708 yes:no: )
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11713 ac_header_preproc=yes
11715 no:yes:* )
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11728 ( cat <<\_ASBOX
11729 ## ----------------------------------- ##
11730 ## Report this to llvmbugs@cs.uiuc.edu ##
11731 ## ----------------------------------- ##
11732 _ASBOX
11733 ) | sed "s/^/$as_me: WARNING: /" >&2
11735 esac
11736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 eval "$as_ac_Header=\$ac_header_preproc"
11743 ac_res=`eval echo '${'$as_ac_Header'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11749 cat >>confdefs.h <<_ACEOF
11750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11751 _ACEOF
11755 done
11758 { echo "$as_me:$LINENO: checking for error_t" >&5
11759 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11760 if test "${ac_cv_type_error_t+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h. */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 #if HAVE_ARGZ_H
11770 # include <argz.h>
11771 #endif
11773 typedef error_t ac__type_new_;
11775 main ()
11777 if ((ac__type_new_ *) 0)
11778 return 0;
11779 if (sizeof (ac__type_new_))
11780 return 0;
11782 return 0;
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_type_error_t=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 ac_cv_type_error_t=no
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11830 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11831 if test $ac_cv_type_error_t = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define HAVE_ERROR_T 1
11835 _ACEOF
11838 else
11840 cat >>confdefs.h <<\_ACEOF
11841 #define error_t int
11842 _ACEOF
11852 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11868 #define $ac_func innocuous_$ac_func
11870 /* System header to define __stub macros and hopefully few prototypes,
11871 which can conflict with char $ac_func (); below.
11872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11873 <limits.h> exists even on freestanding compilers. */
11875 #ifdef __STDC__
11876 # include <limits.h>
11877 #else
11878 # include <assert.h>
11879 #endif
11881 #undef $ac_func
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char $ac_func ();
11890 /* The GNU C library defines this for functions which it implements
11891 to always fail with ENOSYS. Some functions are actually named
11892 something starting with __ and the normal name is an alias. */
11893 #if defined __stub_$ac_func || defined __stub___$ac_func
11894 choke me
11895 #endif
11898 main ()
11900 return $ac_func ();
11902 return 0;
11904 _ACEOF
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (ac_try="$ac_link"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_link") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_try") 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 eval "$as_ac_var=yes"
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 eval "$as_ac_var=no"
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11950 ac_res=`eval echo '${'$as_ac_var'}'`
11951 { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_var'}'` = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11956 _ACEOF
11959 done
11988 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11989 stdio.h unistd.h
11991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 ac_res=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 else
12002 # Is the header compilable?
12003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 #include <$ac_header>
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (ac_try="$ac_compile"
12016 case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_header_compiler=yes
12049 else
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_header_compiler=no
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12058 echo "${ECHO_T}$ac_header_compiler" >&6; }
12060 # Is the header present?
12061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12063 cat >conftest.$ac_ext <<_ACEOF
12064 /* confdefs.h. */
12065 _ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 #include <$ac_header>
12070 _ACEOF
12071 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12084 if test -s conftest.err; then
12085 ac_cpp_err=$ac_c_preproc_warn_flag
12086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12087 else
12088 ac_cpp_err=
12090 else
12091 ac_cpp_err=yes
12093 if test -z "$ac_cpp_err"; then
12094 ac_header_preproc=yes
12095 else
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_header_preproc=no
12102 rm -f conftest.err conftest.$ac_ext
12103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12104 echo "${ECHO_T}$ac_header_preproc" >&6; }
12106 # So? What about this header?
12107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 yes:no: )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12113 ac_header_preproc=yes
12115 no:yes:* )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 ( cat <<\_ASBOX
12129 ## ----------------------------------- ##
12130 ## Report this to llvmbugs@cs.uiuc.edu ##
12131 ## ----------------------------------- ##
12132 _ASBOX
12133 ) | sed "s/^/$as_me: WARNING: /" >&2
12135 esac
12136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141 eval "$as_ac_Header=\$ac_header_preproc"
12143 ac_res=`eval echo '${'$as_ac_Header'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12149 cat >>confdefs.h <<_ACEOF
12150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12151 _ACEOF
12155 done
12161 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_res=`eval echo '${'$as_ac_Header'}'`
12171 { echo "$as_me:$LINENO: result: $ac_res" >&5
12172 echo "${ECHO_T}$ac_res" >&6; }
12173 else
12174 # Is the header compilable?
12175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 #include <$ac_header>
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (ac_try="$ac_compile"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191 esac
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_compile") 2>conftest.er1
12194 ac_status=$?
12195 grep -v '^ *+' conftest.er1 >conftest.err
12196 rm -f conftest.er1
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_header_compiler=no
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12230 echo "${ECHO_T}$ac_header_compiler" >&6; }
12232 # Is the header present?
12233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #include <$ac_header>
12242 _ACEOF
12243 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12256 if test -s conftest.err; then
12257 ac_cpp_err=$ac_c_preproc_warn_flag
12258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12259 else
12260 ac_cpp_err=
12262 else
12263 ac_cpp_err=yes
12265 if test -z "$ac_cpp_err"; then
12266 ac_header_preproc=yes
12267 else
12268 echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_header_preproc=no
12274 rm -f conftest.err conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 echo "${ECHO_T}$ac_header_preproc" >&6; }
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 yes:no: )
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12287 no:yes:* )
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12300 ( cat <<\_ASBOX
12301 ## ----------------------------------- ##
12302 ## Report this to llvmbugs@cs.uiuc.edu ##
12303 ## ----------------------------------- ##
12304 _ASBOX
12305 ) | sed "s/^/$as_me: WARNING: /" >&2
12307 esac
12308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 eval "$as_ac_Header=\$ac_header_preproc"
12315 ac_res=`eval echo '${'$as_ac_Header'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12323 _ACEOF
12327 done
12331 for ac_header in string.h strings.h
12333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343 else
12344 # Is the header compilable?
12345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 #include <$ac_header>
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371 { (case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_try") 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } &&
12380 { ac_try='test -s conftest.$ac_objext'
12381 { (case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_try") 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_header_compiler=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_header_compiler=no
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12400 echo "${ECHO_T}$ac_header_compiler" >&6; }
12402 # Is the header present?
12403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 #include <$ac_header>
12412 _ACEOF
12413 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12426 if test -s conftest.err; then
12427 ac_cpp_err=$ac_c_preproc_warn_flag
12428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12429 else
12430 ac_cpp_err=
12432 else
12433 ac_cpp_err=yes
12435 if test -z "$ac_cpp_err"; then
12436 ac_header_preproc=yes
12437 else
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_header_preproc=no
12444 rm -f conftest.err conftest.$ac_ext
12445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446 echo "${ECHO_T}$ac_header_preproc" >&6; }
12448 # So? What about this header?
12449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12450 yes:no: )
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12455 ac_header_preproc=yes
12457 no:yes:* )
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12470 ( cat <<\_ASBOX
12471 ## ----------------------------------- ##
12472 ## Report this to llvmbugs@cs.uiuc.edu ##
12473 ## ----------------------------------- ##
12474 _ASBOX
12475 ) | sed "s/^/$as_me: WARNING: /" >&2
12477 esac
12478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483 eval "$as_ac_Header=\$ac_header_preproc"
12485 ac_res=`eval echo '${'$as_ac_Header'}'`
12486 { echo "$as_me:$LINENO: result: $ac_res" >&5
12487 echo "${ECHO_T}$ac_res" >&6; }
12490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12491 cat >>confdefs.h <<_ACEOF
12492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12493 _ACEOF
12494 break
12497 done
12502 for ac_func in strchr index
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12518 #define $ac_func innocuous_$ac_func
12520 /* System header to define __stub macros and hopefully few prototypes,
12521 which can conflict with char $ac_func (); below.
12522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12523 <limits.h> exists even on freestanding compilers. */
12525 #ifdef __STDC__
12526 # include <limits.h>
12527 #else
12528 # include <assert.h>
12529 #endif
12531 #undef $ac_func
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12536 #ifdef __cplusplus
12537 extern "C"
12538 #endif
12539 char $ac_func ();
12540 /* The GNU C library defines this for functions which it implements
12541 to always fail with ENOSYS. Some functions are actually named
12542 something starting with __ and the normal name is an alias. */
12543 #if defined __stub_$ac_func || defined __stub___$ac_func
12544 choke me
12545 #endif
12548 main ()
12550 return $ac_func ();
12552 return 0;
12554 _ACEOF
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (ac_try="$ac_link"
12557 case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_link") 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 eval "$as_ac_var=yes"
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 eval "$as_ac_var=no"
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12600 ac_res=`eval echo '${'$as_ac_var'}'`
12601 { echo "$as_me:$LINENO: result: $ac_res" >&5
12602 echo "${ECHO_T}$ac_res" >&6; }
12603 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12606 _ACEOF
12607 break
12609 done
12613 for ac_func in strrchr rindex
12615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12629 #define $ac_func innocuous_$ac_func
12631 /* System header to define __stub macros and hopefully few prototypes,
12632 which can conflict with char $ac_func (); below.
12633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12634 <limits.h> exists even on freestanding compilers. */
12636 #ifdef __STDC__
12637 # include <limits.h>
12638 #else
12639 # include <assert.h>
12640 #endif
12642 #undef $ac_func
12644 /* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12647 #ifdef __cplusplus
12648 extern "C"
12649 #endif
12650 char $ac_func ();
12651 /* The GNU C library defines this for functions which it implements
12652 to always fail with ENOSYS. Some functions are actually named
12653 something starting with __ and the normal name is an alias. */
12654 #if defined __stub_$ac_func || defined __stub___$ac_func
12655 choke me
12656 #endif
12659 main ()
12661 return $ac_func ();
12663 return 0;
12665 _ACEOF
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (ac_try="$ac_link"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_link") 2>conftest.er1
12674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_try") 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 eval "$as_ac_var=yes"
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 eval "$as_ac_var=no"
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12711 ac_res=`eval echo '${'$as_ac_var'}'`
12712 { echo "$as_me:$LINENO: result: $ac_res" >&5
12713 echo "${ECHO_T}$ac_res" >&6; }
12714 if test `eval echo '${'$as_ac_var'}'` = yes; then
12715 cat >>confdefs.h <<_ACEOF
12716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12717 _ACEOF
12718 break
12720 done
12724 for ac_func in memcpy bcopy
12726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12740 #define $ac_func innocuous_$ac_func
12742 /* System header to define __stub macros and hopefully few prototypes,
12743 which can conflict with char $ac_func (); below.
12744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12745 <limits.h> exists even on freestanding compilers. */
12747 #ifdef __STDC__
12748 # include <limits.h>
12749 #else
12750 # include <assert.h>
12751 #endif
12753 #undef $ac_func
12755 /* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char $ac_func ();
12762 /* The GNU C library defines this for functions which it implements
12763 to always fail with ENOSYS. Some functions are actually named
12764 something starting with __ and the normal name is an alias. */
12765 #if defined __stub_$ac_func || defined __stub___$ac_func
12766 choke me
12767 #endif
12770 main ()
12772 return $ac_func ();
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_link") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_try") 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_try") 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 eval "$as_ac_var=yes"
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12816 eval "$as_ac_var=no"
12819 rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12822 ac_res=`eval echo '${'$as_ac_var'}'`
12823 { echo "$as_me:$LINENO: result: $ac_res" >&5
12824 echo "${ECHO_T}$ac_res" >&6; }
12825 if test `eval echo '${'$as_ac_var'}'` = yes; then
12826 cat >>confdefs.h <<_ACEOF
12827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12828 _ACEOF
12829 break
12831 done
12835 for ac_func in memmove strcmp
12837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12851 #define $ac_func innocuous_$ac_func
12853 /* System header to define __stub macros and hopefully few prototypes,
12854 which can conflict with char $ac_func (); below.
12855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12856 <limits.h> exists even on freestanding compilers. */
12858 #ifdef __STDC__
12859 # include <limits.h>
12860 #else
12861 # include <assert.h>
12862 #endif
12864 #undef $ac_func
12866 /* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 char $ac_func ();
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined __stub_$ac_func || defined __stub___$ac_func
12877 choke me
12878 #endif
12881 main ()
12883 return $ac_func ();
12885 return 0;
12887 _ACEOF
12888 rm -f conftest.$ac_objext conftest$ac_exeext
12889 if { (ac_try="$ac_link"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_link") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 eval "$as_ac_var=yes"
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 eval "$as_ac_var=no"
12930 rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12933 ac_res=`eval echo '${'$as_ac_var'}'`
12934 { echo "$as_me:$LINENO: result: $ac_res" >&5
12935 echo "${ECHO_T}$ac_res" >&6; }
12936 if test `eval echo '${'$as_ac_var'}'` = yes; then
12937 cat >>confdefs.h <<_ACEOF
12938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12939 _ACEOF
12942 done
12947 for ac_func in closedir opendir readdir
12949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12963 #define $ac_func innocuous_$ac_func
12965 /* System header to define __stub macros and hopefully few prototypes,
12966 which can conflict with char $ac_func (); below.
12967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12968 <limits.h> exists even on freestanding compilers. */
12970 #ifdef __STDC__
12971 # include <limits.h>
12972 #else
12973 # include <assert.h>
12974 #endif
12976 #undef $ac_func
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char $ac_func ();
12985 /* The GNU C library defines this for functions which it implements
12986 to always fail with ENOSYS. Some functions are actually named
12987 something starting with __ and the normal name is an alias. */
12988 #if defined __stub_$ac_func || defined __stub___$ac_func
12989 choke me
12990 #endif
12993 main ()
12995 return $ac_func ();
12997 return 0;
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_try") 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }; }; then
13034 eval "$as_ac_var=yes"
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 eval "$as_ac_var=no"
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13045 ac_res=`eval echo '${'$as_ac_var'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_var'}'` = yes; then
13049 cat >>confdefs.h <<_ACEOF
13050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13051 _ACEOF
13054 done
13058 if test "$WITH_LLVMGCCDIR" = "default" ; then
13059 LLVMGCC="llvm-gcc${EXEEXT}"
13060 LLVMGXX="llvm-g++${EXEEXT}"
13061 LLVMGCCCOMMAND="$LLVMGCC"
13062 LLVMGXXCOMMAND="$LLVMGXX"
13063 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13065 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13067 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13068 set dummy $LLVMGCC; ac_word=$2
13069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13071 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074 case $LLVMGCC in
13075 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13090 done
13091 done
13092 IFS=$as_save_IFS
13095 esac
13097 LLVMGCC=$ac_cv_path_LLVMGCC
13098 if test -n "$LLVMGCC"; then
13099 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13100 echo "${ECHO_T}$LLVMGCC" >&6; }
13101 else
13102 { echo "$as_me:$LINENO: result: no" >&5
13103 echo "${ECHO_T}no" >&6; }
13107 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13108 set dummy $LLVMGXX; ac_word=$2
13109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13111 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 case $LLVMGXX in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13126 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13130 done
13131 done
13132 IFS=$as_save_IFS
13135 esac
13137 LLVMGXX=$ac_cv_path_LLVMGXX
13138 if test -n "$LLVMGXX"; then
13139 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13140 echo "${ECHO_T}$LLVMGXX" >&6; }
13141 else
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13147 else
13148 if test -z "$LLVMGCC"; then
13149 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13150 LLVMGCCCOMMAND="$LLVMGCC"
13152 if test -z "$LLVMGXX"; then
13153 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13154 LLVMGXXCOMMAND="$LLVMGXX"
13157 LLVMGCC=$LLVMGCC
13159 LLVMGXX=$LLVMGXX
13161 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13163 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13168 # Check whether --with-llvmcc was given.
13169 if test "${with_llvmcc+set}" = set; then
13170 withval=$with_llvmcc;
13171 else
13172 with_llvmcc=check
13175 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13176 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13177 if test "$with_llvmcc" != "check"; then
13178 if (test "$with_llvmcc" != "llvm-gcc" &&
13179 test "$with_llvmcc" != "clang" &&
13180 test "$with_llvmcc" != "none"); then
13181 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13182 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13183 { (exit 1); exit 1; }; }
13185 WITH_LLVMCC="$with_llvmcc"
13186 elif test -n "$LLVMGCC"; then
13187 WITH_LLVMCC=llvm-gcc
13188 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13189 WITH_LLVMCC=clang
13190 else
13191 WITH_LLVMCC=none
13193 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13194 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13195 LLVMCC_OPTION=$WITH_LLVMCC
13198 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13199 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13201 ICC=no
13202 IXX=no
13203 case $CC in
13204 icc*|icpc*)
13205 ICC=yes
13206 IXX=yes
13210 esac
13212 if test "$GCC" != "yes" && test "$ICC" != "yes"
13213 then
13214 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13215 echo "$as_me: error: gcc|icc required but not found" >&2;}
13216 { (exit 1); exit 1; }; }
13219 if test "$GXX" != "yes" && test "$IXX" != "yes"
13220 then
13221 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13222 echo "$as_me: error: g++|icc required but not found" >&2;}
13223 { (exit 1); exit 1; }; }
13226 if test "$GCC" = "yes"
13227 then
13228 cat >conftest.$ac_ext <<_ACEOF
13229 #if !defined(__GNUC__) || __GNUC__ < 3
13230 #error Unsupported GCC version
13231 #endif
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_try") 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_try") 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13269 else
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13274 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13275 { (exit 1); exit 1; }; }
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 if test -z "$llvm_cv_gnu_make_command"
13282 then
13283 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13284 echo "$as_me: error: GNU Make required but not found" >&2;}
13285 { (exit 1); exit 1; }; }
13288 { echo "$as_me:$LINENO: result: ok" >&5
13289 echo "${ECHO_T}ok" >&6; }
13291 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13292 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13293 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13295 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13297 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13298 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13302 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13303 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13304 if test "${ac_cv_lib_m_sin+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 ac_check_lib_save_LIBS=$LIBS
13308 LIBS="-lm $LIBS"
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char sin ();
13324 main ()
13326 return sin ();
13328 return 0;
13330 _ACEOF
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13346 { (case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_try") 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_try") 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_lib_m_sin=yes
13366 else
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13370 ac_cv_lib_m_sin=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13378 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13379 if test $ac_cv_lib_m_sin = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381 #define HAVE_LIBM 1
13382 _ACEOF
13384 LIBS="-lm $LIBS"
13388 if test "$llvm_cv_os_type" = "MingW" ; then
13390 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13391 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13392 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395 ac_check_lib_save_LIBS=$LIBS
13396 LIBS="-limagehlp $LIBS"
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h. */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13406 main ()
13408 return main ();
13410 return 0;
13412 _ACEOF
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_lib_imagehlp_main=yes
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_cv_lib_imagehlp_main=no
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13460 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13461 if test $ac_cv_lib_imagehlp_main = yes; then
13462 cat >>confdefs.h <<_ACEOF
13463 #define HAVE_LIBIMAGEHLP 1
13464 _ACEOF
13466 LIBS="-limagehlp $LIBS"
13471 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13472 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13473 if test "${ac_cv_lib_psapi_main+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lpsapi $LIBS"
13478 cat >conftest.$ac_ext <<_ACEOF
13479 /* confdefs.h. */
13480 _ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13487 main ()
13489 return main ();
13491 return 0;
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_link") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } &&
13508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509 { (case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_try") 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest$ac_exeext'
13519 { (case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_try") 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_lib_psapi_main=yes
13529 else
13530 echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13533 ac_cv_lib_psapi_main=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13540 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13541 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13542 if test $ac_cv_lib_psapi_main = yes; then
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_LIBPSAPI 1
13545 _ACEOF
13547 LIBS="-lpsapi $LIBS"
13553 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13554 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13555 if test "${ac_cv_search_dlopen+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 ac_func_search_save_LIBS=$LIBS
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13566 /* Override any GCC internal prototype to avoid an error.
13567 Use char because int might match the return type of a GCC
13568 builtin and then its argument prototype would still apply. */
13569 #ifdef __cplusplus
13570 extern "C"
13571 #endif
13572 char dlopen ();
13574 main ()
13576 return dlopen ();
13578 return 0;
13580 _ACEOF
13581 for ac_lib in '' dl; do
13582 if test -z "$ac_lib"; then
13583 ac_res="none required"
13584 else
13585 ac_res=-l$ac_lib
13586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13588 rm -f conftest.$ac_objext conftest$ac_exeext
13589 if { (ac_try="$ac_link"
13590 case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13593 esac
13594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13595 (eval "$ac_link") 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13603 { (case "(($ac_try" in
13604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605 *) ac_try_echo=$ac_try;;
13606 esac
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608 (eval "$ac_try") 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_try") 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 ac_cv_search_dlopen=$ac_res
13623 else
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext
13632 if test "${ac_cv_search_dlopen+set}" = set; then
13633 break
13635 done
13636 if test "${ac_cv_search_dlopen+set}" = set; then
13638 else
13639 ac_cv_search_dlopen=no
13641 rm conftest.$ac_ext
13642 LIBS=$ac_func_search_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13645 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13646 ac_res=$ac_cv_search_dlopen
13647 if test "$ac_res" != no; then
13648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_DLOPEN 1
13652 _ACEOF
13654 else
13655 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13656 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13660 if test "$llvm_cv_enable_libffi" = "yes" ; then
13661 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13662 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13663 if test "${ac_cv_search_ffi_call+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666 ac_func_search_save_LIBS=$LIBS
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char ffi_call ();
13682 main ()
13684 return ffi_call ();
13686 return 0;
13688 _ACEOF
13689 for ac_lib in '' ffi; do
13690 if test -z "$ac_lib"; then
13691 ac_res="none required"
13692 else
13693 ac_res=-l$ac_lib
13694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (ac_try="$ac_link"
13698 case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701 esac
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_link") 2>conftest.er1
13704 ac_status=$?
13705 grep -v '^ *+' conftest.er1 >conftest.err
13706 rm -f conftest.er1
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13711 { (case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_try") 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; } &&
13720 { ac_try='test -s conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_try") 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_cv_search_ffi_call=$ac_res
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext
13740 if test "${ac_cv_search_ffi_call+set}" = set; then
13741 break
13743 done
13744 if test "${ac_cv_search_ffi_call+set}" = set; then
13746 else
13747 ac_cv_search_ffi_call=no
13749 rm conftest.$ac_ext
13750 LIBS=$ac_func_search_save_LIBS
13752 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13753 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13754 ac_res=$ac_cv_search_ffi_call
13755 if test "$ac_res" != no; then
13756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_FFI_CALL 1
13760 _ACEOF
13762 else
13763 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13764 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13765 { (exit 1); exit 1; }; }
13770 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13771 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13772 if test "${ac_cv_search_mallinfo+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775 ac_func_search_save_LIBS=$LIBS
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 /* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
13786 #ifdef __cplusplus
13787 extern "C"
13788 #endif
13789 char mallinfo ();
13791 main ()
13793 return mallinfo ();
13795 return 0;
13797 _ACEOF
13798 for ac_lib in '' malloc; do
13799 if test -z "$ac_lib"; then
13800 ac_res="none required"
13801 else
13802 ac_res=-l$ac_lib
13803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (ac_try="$ac_link"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_cv_search_mallinfo=$ac_res
13840 else
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13847 rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext
13849 if test "${ac_cv_search_mallinfo+set}" = set; then
13850 break
13852 done
13853 if test "${ac_cv_search_mallinfo+set}" = set; then
13855 else
13856 ac_cv_search_mallinfo=no
13858 rm conftest.$ac_ext
13859 LIBS=$ac_func_search_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13862 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13863 ac_res=$ac_cv_search_mallinfo
13864 if test "$ac_res" != no; then
13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_MALLINFO 1
13869 _ACEOF
13874 if test "$ENABLE_THREADS" -eq 1 ; then
13876 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13877 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 else
13881 ac_check_lib_save_LIBS=$LIBS
13882 LIBS="-lpthread $LIBS"
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char pthread_mutex_init ();
13898 main ()
13900 return pthread_mutex_init ();
13902 return 0;
13904 _ACEOF
13905 rm -f conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13920 { (case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923 esac
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_try") 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_try") 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_pthread_pthread_mutex_init=yes
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_cv_lib_pthread_pthread_mutex_init=no
13947 rm -f core conftest.err conftest.$ac_objext \
13948 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13952 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13953 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_LIBPTHREAD 1
13956 _ACEOF
13958 LIBS="-lpthread $LIBS"
13962 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13963 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13964 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967 ac_func_search_save_LIBS=$LIBS
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13975 /* Override any GCC internal prototype to avoid an error.
13976 Use char because int might match the return type of a GCC
13977 builtin and then its argument prototype would still apply. */
13978 #ifdef __cplusplus
13979 extern "C"
13980 #endif
13981 char pthread_mutex_lock ();
13983 main ()
13985 return pthread_mutex_lock ();
13987 return 0;
13989 _ACEOF
13990 for ac_lib in '' pthread; do
13991 if test -z "$ac_lib"; then
13992 ac_res="none required"
13993 else
13994 ac_res=-l$ac_lib
13995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (ac_try="$ac_link"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_link") 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } &&
14011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14012 { (case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_try") 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_try") 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_cv_search_pthread_mutex_lock=$ac_res
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14039 rm -f core conftest.err conftest.$ac_objext \
14040 conftest$ac_exeext
14041 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14042 break
14044 done
14045 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14047 else
14048 ac_cv_search_pthread_mutex_lock=no
14050 rm conftest.$ac_ext
14051 LIBS=$ac_func_search_save_LIBS
14053 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14054 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14055 ac_res=$ac_cv_search_pthread_mutex_lock
14056 if test "$ac_res" != no; then
14057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14059 cat >>confdefs.h <<\_ACEOF
14060 #define HAVE_PTHREAD_MUTEX_LOCK 1
14061 _ACEOF
14065 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14066 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14067 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 ac_func_search_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h. */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char pthread_rwlock_init ();
14086 main ()
14088 return pthread_rwlock_init ();
14090 return 0;
14092 _ACEOF
14093 for ac_lib in '' pthread; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14096 else
14097 ac_res=-l$ac_lib
14098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_search_pthread_rwlock_init=$ac_res
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14142 rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext
14144 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14145 break
14147 done
14148 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14150 else
14151 ac_cv_search_pthread_rwlock_init=no
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14156 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14157 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14158 ac_res=$ac_cv_search_pthread_rwlock_init
14159 if test "$ac_res" != no; then
14160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_PTHREAD_RWLOCK_INIT 1
14164 _ACEOF
14168 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14169 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14170 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173 ac_func_search_save_LIBS=$LIBS
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14181 /* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 char pthread_getspecific ();
14189 main ()
14191 return pthread_getspecific ();
14193 return 0;
14195 _ACEOF
14196 for ac_lib in '' pthread; do
14197 if test -z "$ac_lib"; then
14198 ac_res="none required"
14199 else
14200 ac_res=-l$ac_lib
14201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_search_pthread_getspecific=$ac_res
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext
14247 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14248 break
14250 done
14251 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14253 else
14254 ac_cv_search_pthread_getspecific=no
14256 rm conftest.$ac_ext
14257 LIBS=$ac_func_search_save_LIBS
14259 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14260 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14261 ac_res=$ac_cv_search_pthread_getspecific
14262 if test "$ac_res" != no; then
14263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_PTHREAD_GETSPECIFIC 1
14267 _ACEOF
14274 # Check whether --with-udis86 was given.
14275 if test "${with_udis86+set}" = set; then
14276 withval=$with_udis86;
14277 USE_UDIS86=1
14279 case "$withval" in
14280 /usr/lib|yes) ;;
14281 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14282 esac
14284 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14285 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14286 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 ac_check_lib_save_LIBS=$LIBS
14290 LIBS="-ludis86 $LIBS"
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h. */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14298 /* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
14301 #ifdef __cplusplus
14302 extern "C"
14303 #endif
14304 char ud_init ();
14306 main ()
14308 return ud_init ();
14310 return 0;
14312 _ACEOF
14313 rm -f conftest.$ac_objext conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318 esac
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_link") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14328 { (case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331 esac
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_try") 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest$ac_exeext'
14338 { (case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_try") 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_cv_lib_udis86_ud_init=yes
14348 else
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14352 ac_cv_lib_udis86_ud_init=no
14355 rm -f core conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS
14359 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14360 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14361 if test $ac_cv_lib_udis86_ud_init = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define HAVE_LIBUDIS86 1
14364 _ACEOF
14366 LIBS="-ludis86 $LIBS"
14368 else
14370 echo "Error! You need to have libudis86 around."
14371 exit -1
14376 else
14377 USE_UDIS86=0
14382 cat >>confdefs.h <<_ACEOF
14383 #define USE_UDIS86 $USE_UDIS86
14384 _ACEOF
14388 # Check whether --with-oprofile was given.
14389 if test "${with_oprofile+set}" = set; then
14390 withval=$with_oprofile;
14391 USE_OPROFILE=1
14393 case "$withval" in
14394 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14395 no) llvm_cv_oppath=
14396 USE_OPROFILE=0
14398 *) llvm_cv_oppath="${withval}/lib/oprofile"
14399 CPPFLAGS="-I${withval}/include";;
14400 esac
14401 if test -n "$llvm_cv_oppath" ; then
14402 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14403 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14404 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14405 if test "${ac_cv_search_bfd_init+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 ac_func_search_save_LIBS=$LIBS
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419 #ifdef __cplusplus
14420 extern "C"
14421 #endif
14422 char bfd_init ();
14424 main ()
14426 return bfd_init ();
14428 return 0;
14430 _ACEOF
14431 for ac_lib in '' bfd; do
14432 if test -z "$ac_lib"; then
14433 ac_res="none required"
14434 else
14435 ac_res=-l$ac_lib
14436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (ac_try="$ac_link"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_link") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } &&
14452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14453 { (case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_try") 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest$ac_exeext'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466 esac
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_cv_search_bfd_init=$ac_res
14473 else
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14480 rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext
14482 if test "${ac_cv_search_bfd_init+set}" = set; then
14483 break
14485 done
14486 if test "${ac_cv_search_bfd_init+set}" = set; then
14488 else
14489 ac_cv_search_bfd_init=no
14491 rm conftest.$ac_ext
14492 LIBS=$ac_func_search_save_LIBS
14494 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14495 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14496 ac_res=$ac_cv_search_bfd_init
14497 if test "$ac_res" != no; then
14498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14502 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14503 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14504 if test "${ac_cv_search_op_open_agent+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 else
14507 ac_func_search_save_LIBS=$LIBS
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char op_open_agent ();
14523 main ()
14525 return op_open_agent ();
14527 return 0;
14529 _ACEOF
14530 for ac_lib in '' opagent; do
14531 if test -z "$ac_lib"; then
14532 ac_res="none required"
14533 else
14534 ac_res=-l$ac_lib
14535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (ac_try="$ac_link"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest$ac_exeext'
14562 { (case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_try") 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_cv_search_op_open_agent=$ac_res
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext
14581 if test "${ac_cv_search_op_open_agent+set}" = set; then
14582 break
14584 done
14585 if test "${ac_cv_search_op_open_agent+set}" = set; then
14587 else
14588 ac_cv_search_op_open_agent=no
14590 rm conftest.$ac_ext
14591 LIBS=$ac_func_search_save_LIBS
14593 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14594 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14595 ac_res=$ac_cv_search_op_open_agent
14596 if test "$ac_res" != no; then
14597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14599 else
14601 echo "Error! You need to have libopagent around."
14602 exit -1
14606 if test "${ac_cv_header_opagent_h+set}" = set; then
14607 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14608 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14609 if test "${ac_cv_header_opagent_h+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14613 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14614 else
14615 # Is the header compilable?
14616 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14617 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <opagent.h>
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_compile") 2>conftest.er1
14635 ac_status=$?
14636 grep -v '^ *+' conftest.er1 >conftest.err
14637 rm -f conftest.er1
14638 cat conftest.err >&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } &&
14641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14642 { (case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_try") 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_try") 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_header_compiler=yes
14662 else
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_header_compiler=no
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14671 echo "${ECHO_T}$ac_header_compiler" >&6; }
14673 # Is the header present?
14674 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14675 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <opagent.h>
14683 _ACEOF
14684 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
14697 if test -s conftest.err; then
14698 ac_cpp_err=$ac_c_preproc_warn_flag
14699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14700 else
14701 ac_cpp_err=
14703 else
14704 ac_cpp_err=yes
14706 if test -z "$ac_cpp_err"; then
14707 ac_header_preproc=yes
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_header_preproc=no
14715 rm -f conftest.err conftest.$ac_ext
14716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14717 echo "${ECHO_T}$ac_header_preproc" >&6; }
14719 # So? What about this header?
14720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14721 yes:no: )
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14723 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14725 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14726 ac_header_preproc=yes
14728 no:yes:* )
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14730 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14732 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14734 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14736 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14738 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14740 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14741 ( cat <<\_ASBOX
14742 ## ----------------------------------- ##
14743 ## Report this to llvmbugs@cs.uiuc.edu ##
14744 ## ----------------------------------- ##
14745 _ASBOX
14746 ) | sed "s/^/$as_me: WARNING: /" >&2
14748 esac
14749 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14750 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14751 if test "${ac_cv_header_opagent_h+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 else
14754 ac_cv_header_opagent_h=$ac_header_preproc
14756 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14757 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14760 if test $ac_cv_header_opagent_h = yes; then
14762 else
14764 echo "Error! You need to have opagent.h around."
14765 exit -1
14772 else
14774 USE_OPROFILE=0
14780 cat >>confdefs.h <<_ACEOF
14781 #define USE_OPROFILE $USE_OPROFILE
14782 _ACEOF
14791 ac_header_dirent=no
14792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14793 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 #include <sys/types.h>
14806 #include <$ac_hdr>
14809 main ()
14811 if ((DIR *) 0)
14812 return 0;
14814 return 0;
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832 { (case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_try") 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_try") 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14851 eval "$as_ac_Header=yes"
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 eval "$as_ac_Header=no"
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 ac_res=`eval echo '${'$as_ac_Header'}'`
14862 { echo "$as_me:$LINENO: result: $ac_res" >&5
14863 echo "${ECHO_T}$ac_res" >&6; }
14864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14865 cat >>confdefs.h <<_ACEOF
14866 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14867 _ACEOF
14869 ac_header_dirent=$ac_hdr; break
14872 done
14873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14874 if test $ac_header_dirent = dirent.h; then
14875 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14876 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14877 if test "${ac_cv_search_opendir+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 ac_func_search_save_LIBS=$LIBS
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 char opendir ();
14896 main ()
14898 return opendir ();
14900 return 0;
14902 _ACEOF
14903 for ac_lib in '' dir; do
14904 if test -z "$ac_lib"; then
14905 ac_res="none required"
14906 else
14907 ac_res=-l$ac_lib
14908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14910 rm -f conftest.$ac_objext conftest$ac_exeext
14911 if { (ac_try="$ac_link"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_link") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14925 { (case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928 esac
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_try") 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_try") 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_cv_search_opendir=$ac_res
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext
14954 if test "${ac_cv_search_opendir+set}" = set; then
14955 break
14957 done
14958 if test "${ac_cv_search_opendir+set}" = set; then
14960 else
14961 ac_cv_search_opendir=no
14963 rm conftest.$ac_ext
14964 LIBS=$ac_func_search_save_LIBS
14966 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14967 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14968 ac_res=$ac_cv_search_opendir
14969 if test "$ac_res" != no; then
14970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14974 else
14975 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14977 if test "${ac_cv_search_opendir+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980 ac_func_search_save_LIBS=$LIBS
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14988 /* Override any GCC internal prototype to avoid an error.
14989 Use char because int might match the return type of a GCC
14990 builtin and then its argument prototype would still apply. */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 char opendir ();
14996 main ()
14998 return opendir ();
15000 return 0;
15002 _ACEOF
15003 for ac_lib in '' x; do
15004 if test -z "$ac_lib"; then
15005 ac_res="none required"
15006 else
15007 ac_res=-l$ac_lib
15008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025 { (case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030 (eval "$ac_try") 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_search_opendir=$ac_res
15045 else
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext
15054 if test "${ac_cv_search_opendir+set}" = set; then
15055 break
15057 done
15058 if test "${ac_cv_search_opendir+set}" = set; then
15060 else
15061 ac_cv_search_opendir=no
15063 rm conftest.$ac_ext
15064 LIBS=$ac_func_search_save_LIBS
15066 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15067 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15068 ac_res=$ac_cv_search_opendir
15069 if test "$ac_res" != no; then
15070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15076 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15077 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15078 if test "${ac_cv_header_mmap_anon+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 ac_ext=c
15082 ac_cpp='$CPP $CPPFLAGS'
15083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h. */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 #include <sys/mman.h>
15094 #include <unistd.h>
15095 #include <fcntl.h>
15097 main ()
15099 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15119 { (case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_try") 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_try") 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_header_mmap_anon=yes
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_cv_header_mmap_anon=no
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 ac_ext=c
15148 ac_cpp='$CPP $CPPFLAGS'
15149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15155 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15156 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15157 if test "$ac_cv_header_mmap_anon" = yes; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_MMAP_ANONYMOUS 1
15161 _ACEOF
15165 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15166 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15167 if test "${ac_cv_header_stat_broken+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 #include <sys/types.h>
15177 #include <sys/stat.h>
15179 #if defined S_ISBLK && defined S_IFDIR
15180 # if S_ISBLK (S_IFDIR)
15181 You lose.
15182 # endif
15183 #endif
15185 #if defined S_ISBLK && defined S_IFCHR
15186 # if S_ISBLK (S_IFCHR)
15187 You lose.
15188 # endif
15189 #endif
15191 #if defined S_ISLNK && defined S_IFREG
15192 # if S_ISLNK (S_IFREG)
15193 You lose.
15194 # endif
15195 #endif
15197 #if defined S_ISSOCK && defined S_IFREG
15198 # if S_ISSOCK (S_IFREG)
15199 You lose.
15200 # endif
15201 #endif
15203 _ACEOF
15204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "You lose" >/dev/null 2>&1; then
15206 ac_cv_header_stat_broken=yes
15207 else
15208 ac_cv_header_stat_broken=no
15210 rm -f conftest*
15213 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15214 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15215 if test $ac_cv_header_stat_broken = yes; then
15217 cat >>confdefs.h <<\_ACEOF
15218 #define STAT_MACROS_BROKEN 1
15219 _ACEOF
15223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15225 if test "${ac_cv_header_stdc+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <stdlib.h>
15235 #include <stdarg.h>
15236 #include <string.h>
15237 #include <float.h>
15240 main ()
15244 return 0;
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_compile") 2>conftest.er1
15255 ac_status=$?
15256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_cv_header_stdc=yes
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_header_stdc=no
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 if test $ac_cv_header_stdc = yes; then
15292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <string.h>
15301 _ACEOF
15302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15303 $EGREP "memchr" >/dev/null 2>&1; then
15305 else
15306 ac_cv_header_stdc=no
15308 rm -f conftest*
15312 if test $ac_cv_header_stdc = yes; then
15313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15314 cat >conftest.$ac_ext <<_ACEOF
15315 /* confdefs.h. */
15316 _ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 #include <stdlib.h>
15322 _ACEOF
15323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15324 $EGREP "free" >/dev/null 2>&1; then
15326 else
15327 ac_cv_header_stdc=no
15329 rm -f conftest*
15333 if test $ac_cv_header_stdc = yes; then
15334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15335 if test "$cross_compiling" = yes; then
15337 else
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h. */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 #include <ctype.h>
15345 #include <stdlib.h>
15346 #if ((' ' & 0x0FF) == 0x020)
15347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15349 #else
15350 # define ISLOWER(c) \
15351 (('a' <= (c) && (c) <= 'i') \
15352 || ('j' <= (c) && (c) <= 'r') \
15353 || ('s' <= (c) && (c) <= 'z'))
15354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15355 #endif
15357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15359 main ()
15361 int i;
15362 for (i = 0; i < 256; i++)
15363 if (XOR (islower (i), ISLOWER (i))
15364 || toupper (i) != TOUPPER (i))
15365 return 2;
15366 return 0;
15368 _ACEOF
15369 rm -f conftest$ac_exeext
15370 if { (ac_try="$ac_link"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_link") 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15380 { (case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_try") 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15390 else
15391 echo "$as_me: program exited with status $ac_status" >&5
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ( exit $ac_status )
15396 ac_cv_header_stdc=no
15398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15404 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15405 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15406 if test $ac_cv_header_stdc = yes; then
15408 cat >>confdefs.h <<\_ACEOF
15409 #define STDC_HEADERS 1
15410 _ACEOF
15414 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15415 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15416 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #include <sys/types.h>
15426 #include <sys/wait.h>
15427 #ifndef WEXITSTATUS
15428 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15429 #endif
15430 #ifndef WIFEXITED
15431 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15432 #endif
15435 main ()
15437 int s;
15438 wait (&s);
15439 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15441 return 0;
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_header_sys_wait_h=yes
15479 else
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_cv_header_sys_wait_h=no
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15489 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15490 if test $ac_cv_header_sys_wait_h = yes; then
15492 cat >>confdefs.h <<\_ACEOF
15493 #define HAVE_SYS_WAIT_H 1
15494 _ACEOF
15498 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15499 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15500 if test "${ac_cv_header_time+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <sys/types.h>
15510 #include <sys/time.h>
15511 #include <time.h>
15514 main ()
15516 if ((struct tm *) 0)
15517 return 0;
15519 return 0;
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15537 { (case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540 esac
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_try") 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_try") 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_header_time=yes
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_cv_header_time=no
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15567 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15568 if test $ac_cv_header_time = yes; then
15570 cat >>confdefs.h <<\_ACEOF
15571 #define TIME_WITH_SYS_TIME 1
15572 _ACEOF
15583 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15595 else
15596 # Is the header compilable?
15597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 $ac_includes_default
15606 #include <$ac_header>
15607 _ACEOF
15608 rm -f conftest.$ac_objext
15609 if { (ac_try="$ac_compile"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15623 { (case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_try") 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
15633 { (case "(($ac_try" in
15634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635 *) ac_try_echo=$ac_try;;
15636 esac
15637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15638 (eval "$ac_try") 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_header_compiler=yes
15643 else
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 ac_header_compiler=no
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15652 echo "${ECHO_T}$ac_header_compiler" >&6; }
15654 # Is the header present?
15655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 #include <$ac_header>
15664 _ACEOF
15665 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15678 if test -s conftest.err; then
15679 ac_cpp_err=$ac_c_preproc_warn_flag
15680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15681 else
15682 ac_cpp_err=
15684 else
15685 ac_cpp_err=yes
15687 if test -z "$ac_cpp_err"; then
15688 ac_header_preproc=yes
15689 else
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_header_preproc=no
15696 rm -f conftest.err conftest.$ac_ext
15697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15698 echo "${ECHO_T}$ac_header_preproc" >&6; }
15700 # So? What about this header?
15701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 yes:no: )
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15707 ac_header_preproc=yes
15709 no:yes:* )
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ( cat <<\_ASBOX
15723 ## ----------------------------------- ##
15724 ## Report this to llvmbugs@cs.uiuc.edu ##
15725 ## ----------------------------------- ##
15726 _ASBOX
15727 ) | sed "s/^/$as_me: WARNING: /" >&2
15729 esac
15730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735 eval "$as_ac_Header=\$ac_header_preproc"
15737 ac_res=`eval echo '${'$as_ac_Header'}'`
15738 { echo "$as_me:$LINENO: result: $ac_res" >&5
15739 echo "${ECHO_T}$ac_res" >&6; }
15742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15743 cat >>confdefs.h <<_ACEOF
15744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15745 _ACEOF
15749 done
15757 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 ac_res=`eval echo '${'$as_ac_Header'}'`
15767 { echo "$as_me:$LINENO: result: $ac_res" >&5
15768 echo "${ECHO_T}$ac_res" >&6; }
15769 else
15770 # Is the header compilable?
15771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15780 #include <$ac_header>
15781 _ACEOF
15782 rm -f conftest.$ac_objext
15783 if { (ac_try="$ac_compile"
15784 case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_compile") 2>conftest.er1
15790 ac_status=$?
15791 grep -v '^ *+' conftest.er1 >conftest.err
15792 rm -f conftest.er1
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15797 { (case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_try") 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (case "(($ac_try" in
15808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_try") 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_header_compiler=yes
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_header_compiler=no
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15826 echo "${ECHO_T}$ac_header_compiler" >&6; }
15828 # Is the header present?
15829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 #include <$ac_header>
15838 _ACEOF
15839 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15852 if test -s conftest.err; then
15853 ac_cpp_err=$ac_c_preproc_warn_flag
15854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15855 else
15856 ac_cpp_err=
15858 else
15859 ac_cpp_err=yes
15861 if test -z "$ac_cpp_err"; then
15862 ac_header_preproc=yes
15863 else
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ac_header_preproc=no
15870 rm -f conftest.err conftest.$ac_ext
15871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15872 echo "${ECHO_T}$ac_header_preproc" >&6; }
15874 # So? What about this header?
15875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15876 yes:no: )
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15881 ac_header_preproc=yes
15883 no:yes:* )
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15896 ( cat <<\_ASBOX
15897 ## ----------------------------------- ##
15898 ## Report this to llvmbugs@cs.uiuc.edu ##
15899 ## ----------------------------------- ##
15900 _ASBOX
15901 ) | sed "s/^/$as_me: WARNING: /" >&2
15903 esac
15904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909 eval "$as_ac_Header=\$ac_header_preproc"
15911 ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result: $ac_res" >&5
15913 echo "${ECHO_T}$ac_res" >&6; }
15916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15919 _ACEOF
15923 done
15927 for ac_header in utime.h windows.h
15929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938 echo "${ECHO_T}$ac_res" >&6; }
15939 else
15940 # Is the header compilable?
15941 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15944 /* confdefs.h. */
15945 _ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 $ac_includes_default
15950 #include <$ac_header>
15951 _ACEOF
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_compile") 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15967 { (case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_try") 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_try") 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15986 ac_header_compiler=yes
15987 else
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 ac_header_compiler=no
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15996 echo "${ECHO_T}$ac_header_compiler" >&6; }
15998 # Is the header present?
15999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16001 cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h. */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 #include <$ac_header>
16008 _ACEOF
16009 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16022 if test -s conftest.err; then
16023 ac_cpp_err=$ac_c_preproc_warn_flag
16024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16025 else
16026 ac_cpp_err=
16028 else
16029 ac_cpp_err=yes
16031 if test -z "$ac_cpp_err"; then
16032 ac_header_preproc=yes
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_header_preproc=no
16040 rm -f conftest.err conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042 echo "${ECHO_T}$ac_header_preproc" >&6; }
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 yes:no: )
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16051 ac_header_preproc=yes
16053 no:yes:* )
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16066 ( cat <<\_ASBOX
16067 ## ----------------------------------- ##
16068 ## Report this to llvmbugs@cs.uiuc.edu ##
16069 ## ----------------------------------- ##
16070 _ASBOX
16071 ) | sed "s/^/$as_me: WARNING: /" >&2
16073 esac
16074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 eval "$as_ac_Header=\$ac_header_preproc"
16081 ac_res=`eval echo '${'$as_ac_Header'}'`
16082 { echo "$as_me:$LINENO: result: $ac_res" >&5
16083 echo "${ECHO_T}$ac_res" >&6; }
16086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16089 _ACEOF
16093 done
16099 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 ac_res=`eval echo '${'$as_ac_Header'}'`
16109 { echo "$as_me:$LINENO: result: $ac_res" >&5
16110 echo "${ECHO_T}$ac_res" >&6; }
16111 else
16112 # Is the header compilable?
16113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 #include <$ac_header>
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129 esac
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_compile") 2>conftest.er1
16132 ac_status=$?
16133 grep -v '^ *+' conftest.er1 >conftest.err
16134 rm -f conftest.er1
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16139 { (case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16142 esac
16143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_try") 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_header_compiler=yes
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_header_compiler=no
16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16168 echo "${ECHO_T}$ac_header_compiler" >&6; }
16170 # Is the header present?
16171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <$ac_header>
16180 _ACEOF
16181 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16194 if test -s conftest.err; then
16195 ac_cpp_err=$ac_c_preproc_warn_flag
16196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16197 else
16198 ac_cpp_err=
16200 else
16201 ac_cpp_err=yes
16203 if test -z "$ac_cpp_err"; then
16204 ac_header_preproc=yes
16205 else
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_header_preproc=no
16212 rm -f conftest.err conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16214 echo "${ECHO_T}$ac_header_preproc" >&6; }
16216 # So? What about this header?
16217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16218 yes:no: )
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16223 ac_header_preproc=yes
16225 no:yes:* )
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16238 ( cat <<\_ASBOX
16239 ## ----------------------------------- ##
16240 ## Report this to llvmbugs@cs.uiuc.edu ##
16241 ## ----------------------------------- ##
16242 _ASBOX
16243 ) | sed "s/^/$as_me: WARNING: /" >&2
16245 esac
16246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251 eval "$as_ac_Header=\$ac_header_preproc"
16253 ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result: $ac_res" >&5
16255 echo "${ECHO_T}$ac_res" >&6; }
16258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16259 cat >>confdefs.h <<_ACEOF
16260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16261 _ACEOF
16265 done
16271 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 ac_res=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result: $ac_res" >&5
16282 echo "${ECHO_T}$ac_res" >&6; }
16283 else
16284 # Is the header compilable?
16285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16294 #include <$ac_header>
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (ac_try="$ac_compile"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311 { (case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_try") 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_try") 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_header_compiler=yes
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_header_compiler=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16340 echo "${ECHO_T}$ac_header_compiler" >&6; }
16342 # Is the header present?
16343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <$ac_header>
16352 _ACEOF
16353 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16366 if test -s conftest.err; then
16367 ac_cpp_err=$ac_c_preproc_warn_flag
16368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16369 else
16370 ac_cpp_err=
16372 else
16373 ac_cpp_err=yes
16375 if test -z "$ac_cpp_err"; then
16376 ac_header_preproc=yes
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_header_preproc=no
16384 rm -f conftest.err conftest.$ac_ext
16385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16386 echo "${ECHO_T}$ac_header_preproc" >&6; }
16388 # So? What about this header?
16389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 yes:no: )
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16395 ac_header_preproc=yes
16397 no:yes:* )
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 ( cat <<\_ASBOX
16411 ## ----------------------------------- ##
16412 ## Report this to llvmbugs@cs.uiuc.edu ##
16413 ## ----------------------------------- ##
16414 _ASBOX
16415 ) | sed "s/^/$as_me: WARNING: /" >&2
16417 esac
16418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 eval "$as_ac_Header=\$ac_header_preproc"
16425 ac_res=`eval echo '${'$as_ac_Header'}'`
16426 { echo "$as_me:$LINENO: result: $ac_res" >&5
16427 echo "${ECHO_T}$ac_res" >&6; }
16430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16433 _ACEOF
16437 done
16440 for ac_header in valgrind/valgrind.h
16442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 ac_res=`eval echo '${'$as_ac_Header'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451 echo "${ECHO_T}$ac_res" >&6; }
16452 else
16453 # Is the header compilable?
16454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 $ac_includes_default
16463 #include <$ac_header>
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (ac_try="$ac_compile"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16470 esac
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_compile") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16480 { (case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_try") 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; } &&
16489 { ac_try='test -s conftest.$ac_objext'
16490 { (case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_try") 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_header_compiler=yes
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_header_compiler=no
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16509 echo "${ECHO_T}$ac_header_compiler" >&6; }
16511 # Is the header present?
16512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <$ac_header>
16521 _ACEOF
16522 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16535 if test -s conftest.err; then
16536 ac_cpp_err=$ac_c_preproc_warn_flag
16537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16538 else
16539 ac_cpp_err=
16541 else
16542 ac_cpp_err=yes
16544 if test -z "$ac_cpp_err"; then
16545 ac_header_preproc=yes
16546 else
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 ac_header_preproc=no
16553 rm -f conftest.err conftest.$ac_ext
16554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16555 echo "${ECHO_T}$ac_header_preproc" >&6; }
16557 # So? What about this header?
16558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16559 yes:no: )
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16564 ac_header_preproc=yes
16566 no:yes:* )
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16579 ( cat <<\_ASBOX
16580 ## ----------------------------------- ##
16581 ## Report this to llvmbugs@cs.uiuc.edu ##
16582 ## ----------------------------------- ##
16583 _ASBOX
16584 ) | sed "s/^/$as_me: WARNING: /" >&2
16586 esac
16587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592 eval "$as_ac_Header=\$ac_header_preproc"
16594 ac_res=`eval echo '${'$as_ac_Header'}'`
16595 { echo "$as_me:$LINENO: result: $ac_res" >&5
16596 echo "${ECHO_T}$ac_res" >&6; }
16599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16602 _ACEOF
16606 done
16608 if test "$ENABLE_THREADS" -eq 1 ; then
16610 for ac_header in pthread.h
16612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16622 else
16623 # Is the header compilable?
16624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16626 cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h. */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 $ac_includes_default
16633 #include <$ac_header>
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_compile") 2>conftest.er1
16643 ac_status=$?
16644 grep -v '^ *+' conftest.er1 >conftest.err
16645 rm -f conftest.er1
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16650 { (case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_try") 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try='test -s conftest.$ac_objext'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_header_compiler=yes
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_header_compiler=no
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16679 echo "${ECHO_T}$ac_header_compiler" >&6; }
16681 # Is the header present?
16682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #include <$ac_header>
16691 _ACEOF
16692 if { (ac_try="$ac_cpp conftest.$ac_ext"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } >/dev/null; then
16705 if test -s conftest.err; then
16706 ac_cpp_err=$ac_c_preproc_warn_flag
16707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16708 else
16709 ac_cpp_err=
16711 else
16712 ac_cpp_err=yes
16714 if test -z "$ac_cpp_err"; then
16715 ac_header_preproc=yes
16716 else
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 ac_header_preproc=no
16723 rm -f conftest.err conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16725 echo "${ECHO_T}$ac_header_preproc" >&6; }
16727 # So? What about this header?
16728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16729 yes:no: )
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16734 ac_header_preproc=yes
16736 no:yes:* )
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16749 ( cat <<\_ASBOX
16750 ## ----------------------------------- ##
16751 ## Report this to llvmbugs@cs.uiuc.edu ##
16752 ## ----------------------------------- ##
16753 _ASBOX
16754 ) | sed "s/^/$as_me: WARNING: /" >&2
16756 esac
16757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 eval "$as_ac_Header=\$ac_header_preproc"
16764 ac_res=`eval echo '${'$as_ac_Header'}'`
16765 { echo "$as_me:$LINENO: result: $ac_res" >&5
16766 echo "${ECHO_T}$ac_res" >&6; }
16769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772 _ACEOF
16773 HAVE_PTHREAD=1
16775 else
16776 HAVE_PTHREAD=0
16780 done
16782 else
16783 HAVE_PTHREAD=0
16787 if test "$llvm_cv_enable_libffi" = "yes" ; then
16790 for ac_header in ffi.h ffi/ffi.h
16792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 ac_res=`eval echo '${'$as_ac_Header'}'`
16800 { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802 else
16803 # Is the header compilable?
16804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16806 cat >conftest.$ac_ext <<_ACEOF
16807 /* confdefs.h. */
16808 _ACEOF
16809 cat confdefs.h >>conftest.$ac_ext
16810 cat >>conftest.$ac_ext <<_ACEOF
16811 /* end confdefs.h. */
16812 $ac_includes_default
16813 #include <$ac_header>
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (ac_try="$ac_compile"
16817 case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_compile") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_header_compiler=yes
16850 else
16851 echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16854 ac_header_compiler=no
16857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16859 echo "${ECHO_T}$ac_header_compiler" >&6; }
16861 # Is the header present?
16862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870 #include <$ac_header>
16871 _ACEOF
16872 if { (ac_try="$ac_cpp conftest.$ac_ext"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } >/dev/null; then
16885 if test -s conftest.err; then
16886 ac_cpp_err=$ac_c_preproc_warn_flag
16887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16888 else
16889 ac_cpp_err=
16891 else
16892 ac_cpp_err=yes
16894 if test -z "$ac_cpp_err"; then
16895 ac_header_preproc=yes
16896 else
16897 echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_header_preproc=no
16903 rm -f conftest.err conftest.$ac_ext
16904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16905 echo "${ECHO_T}$ac_header_preproc" >&6; }
16907 # So? What about this header?
16908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16909 yes:no: )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16914 ac_header_preproc=yes
16916 no:yes:* )
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16929 ( cat <<\_ASBOX
16930 ## ----------------------------------- ##
16931 ## Report this to llvmbugs@cs.uiuc.edu ##
16932 ## ----------------------------------- ##
16933 _ASBOX
16934 ) | sed "s/^/$as_me: WARNING: /" >&2
16936 esac
16937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942 eval "$as_ac_Header=\$ac_header_preproc"
16944 ac_res=`eval echo '${'$as_ac_Header'}'`
16945 { echo "$as_me:$LINENO: result: $ac_res" >&5
16946 echo "${ECHO_T}$ac_res" >&6; }
16949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16950 cat >>confdefs.h <<_ACEOF
16951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16952 _ACEOF
16956 done
16961 for ac_header in CrashReporterClient.h
16963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16968 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 ac_res=`eval echo '${'$as_ac_Header'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972 echo "${ECHO_T}$ac_res" >&6; }
16973 else
16974 # Is the header compilable?
16975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 $ac_includes_default
16984 #include <$ac_header>
16985 _ACEOF
16986 rm -f conftest.$ac_objext
16987 if { (ac_try="$ac_compile"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_compile") 2>conftest.er1
16994 ac_status=$?
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
17000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
17011 { (case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_try") 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_header_compiler=yes
17021 else
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_header_compiler=no
17028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17030 echo "${ECHO_T}$ac_header_compiler" >&6; }
17032 # Is the header present?
17033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h. */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 #include <$ac_header>
17042 _ACEOF
17043 if { (ac_try="$ac_cpp conftest.$ac_ext"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } >/dev/null; then
17056 if test -s conftest.err; then
17057 ac_cpp_err=$ac_c_preproc_warn_flag
17058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17059 else
17060 ac_cpp_err=
17062 else
17063 ac_cpp_err=yes
17065 if test -z "$ac_cpp_err"; then
17066 ac_header_preproc=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_header_preproc=no
17074 rm -f conftest.err conftest.$ac_ext
17075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17076 echo "${ECHO_T}$ac_header_preproc" >&6; }
17078 # So? What about this header?
17079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17080 yes:no: )
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17085 ac_header_preproc=yes
17087 no:yes:* )
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17100 ( cat <<\_ASBOX
17101 ## ----------------------------------- ##
17102 ## Report this to llvmbugs@cs.uiuc.edu ##
17103 ## ----------------------------------- ##
17104 _ASBOX
17105 ) | sed "s/^/$as_me: WARNING: /" >&2
17107 esac
17108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 eval "$as_ac_Header=\$ac_header_preproc"
17115 ac_res=`eval echo '${'$as_ac_Header'}'`
17116 { echo "$as_me:$LINENO: result: $ac_res" >&5
17117 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17123 _ACEOF
17127 done
17131 for ac_header in mach-o/getsect.h
17133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 ac_res=`eval echo '${'$as_ac_Header'}'`
17141 { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 else
17144 # Is the header compilable?
17145 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 $ac_includes_default
17154 #include <$ac_header>
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (ac_try="$ac_compile"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_compile") 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest.$ac_objext'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 ac_header_compiler=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_header_compiler=no
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17200 echo "${ECHO_T}$ac_header_compiler" >&6; }
17202 # Is the header present?
17203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 #include <$ac_header>
17212 _ACEOF
17213 if { (ac_try="$ac_cpp conftest.$ac_ext"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } >/dev/null; then
17226 if test -s conftest.err; then
17227 ac_cpp_err=$ac_c_preproc_warn_flag
17228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17229 else
17230 ac_cpp_err=
17232 else
17233 ac_cpp_err=yes
17235 if test -z "$ac_cpp_err"; then
17236 ac_header_preproc=yes
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_preproc=no
17244 rm -f conftest.err conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17246 echo "${ECHO_T}$ac_header_preproc" >&6; }
17248 # So? What about this header?
17249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17250 yes:no: )
17251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17255 ac_header_preproc=yes
17257 no:yes:* )
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17270 ( cat <<\_ASBOX
17271 ## ----------------------------------- ##
17272 ## Report this to llvmbugs@cs.uiuc.edu ##
17273 ## ----------------------------------- ##
17274 _ASBOX
17275 ) | sed "s/^/$as_me: WARNING: /" >&2
17277 esac
17278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283 eval "$as_ac_Header=\$ac_header_preproc"
17285 ac_res=`eval echo '${'$as_ac_Header'}'`
17286 { echo "$as_me:$LINENO: result: $ac_res" >&5
17287 echo "${ECHO_T}$ac_res" >&6; }
17290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17291 cat >>confdefs.h <<_ACEOF
17292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17293 _ACEOF
17297 done
17303 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17304 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17305 if test "${ac_cv_huge_val_sanity+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17309 ac_ext=cpp
17310 ac_cpp='$CXXCPP $CPPFLAGS'
17311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17315 ac_save_CXXFLAGS=$CXXFLAGS
17316 CXXFLAGS=-pedantic
17317 if test "$cross_compiling" = yes; then
17318 ac_cv_huge_val_sanity=yes
17319 else
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 #include <math.h>
17328 main ()
17330 double x = HUGE_VAL; return x != x;
17332 return 0;
17334 _ACEOF
17335 rm -f conftest$ac_exeext
17336 if { (ac_try="$ac_link"
17337 case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340 esac
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_link") 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_huge_val_sanity=yes
17356 else
17357 echo "$as_me: program exited with status $ac_status" >&5
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 ( exit $ac_status )
17362 ac_cv_huge_val_sanity=no
17364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17368 CXXFLAGS=$ac_save_CXXFLAGS
17369 ac_ext=c
17370 ac_cpp='$CPP $CPPFLAGS'
17371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17377 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17378 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17379 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17382 { echo "$as_me:$LINENO: checking for pid_t" >&5
17383 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17384 if test "${ac_cv_type_pid_t+set}" = set; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h. */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17393 $ac_includes_default
17394 typedef pid_t ac__type_new_;
17396 main ()
17398 if ((ac__type_new_ *) 0)
17399 return 0;
17400 if (sizeof (ac__type_new_))
17401 return 0;
17403 return 0;
17405 _ACEOF
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17414 ac_status=$?
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17421 { (case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_try") 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try='test -s conftest.$ac_objext'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_type_pid_t=yes
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ac_cv_type_pid_t=no
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17451 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17452 if test $ac_cv_type_pid_t = yes; then
17454 else
17456 cat >>confdefs.h <<_ACEOF
17457 #define pid_t int
17458 _ACEOF
17462 { echo "$as_me:$LINENO: checking for size_t" >&5
17463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17464 if test "${ac_cv_type_size_t+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 typedef size_t ac__type_new_;
17476 main ()
17478 if ((ac__type_new_ *) 0)
17479 return 0;
17480 if (sizeof (ac__type_new_))
17481 return 0;
17483 return 0;
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (ac_try="$ac_compile"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_compile") 2>conftest.er1
17494 ac_status=$?
17495 grep -v '^ *+' conftest.er1 >conftest.err
17496 rm -f conftest.er1
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } &&
17500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_cv_type_size_t=yes
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_cv_type_size_t=no
17528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17531 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17532 if test $ac_cv_type_size_t = yes; then
17534 else
17536 cat >>confdefs.h <<_ACEOF
17537 #define size_t unsigned int
17538 _ACEOF
17543 cat >>confdefs.h <<_ACEOF
17544 #define RETSIGTYPE void
17545 _ACEOF
17547 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17548 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17549 if test "${ac_cv_struct_tm+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h. */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 #include <sys/types.h>
17559 #include <time.h>
17562 main ()
17564 struct tm *tp; tp->tm_sec;
17566 return 0;
17568 _ACEOF
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_struct_tm=time.h
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 ac_cv_struct_tm=sys/time.h
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17614 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17615 if test $ac_cv_struct_tm = sys/time.h; then
17617 cat >>confdefs.h <<\_ACEOF
17618 #define TM_IN_SYS_TIME 1
17619 _ACEOF
17623 { echo "$as_me:$LINENO: checking for int64_t" >&5
17624 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17625 if test "${ac_cv_type_int64_t+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628 cat >conftest.$ac_ext <<_ACEOF
17629 /* confdefs.h. */
17630 _ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 $ac_includes_default
17635 typedef int64_t ac__type_new_;
17637 main ()
17639 if ((ac__type_new_ *) 0)
17640 return 0;
17641 if (sizeof (ac__type_new_))
17642 return 0;
17644 return 0;
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17678 ac_status=$?
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; }; then
17681 ac_cv_type_int64_t=yes
17682 else
17683 echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_type_int64_t=no
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17692 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17693 if test $ac_cv_type_int64_t = yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_INT64_T 1
17697 _ACEOF
17700 else
17701 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17702 echo "$as_me: error: Type int64_t required but not found" >&2;}
17703 { (exit 1); exit 1; }; }
17706 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17707 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17708 if test "${ac_cv_type_uint64_t+set}" = set; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 $ac_includes_default
17718 typedef uint64_t ac__type_new_;
17720 main ()
17722 if ((ac__type_new_ *) 0)
17723 return 0;
17724 if (sizeof (ac__type_new_))
17725 return 0;
17727 return 0;
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_compile") 2>conftest.er1
17738 ac_status=$?
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
17755 { (case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758 esac
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_try") 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_uint64_t=yes
17765 else
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_type_uint64_t=no
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17775 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17776 if test $ac_cv_type_uint64_t = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define HAVE_UINT64_T 1
17780 _ACEOF
17783 else
17784 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17785 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17786 if test "${ac_cv_type_u_int64_t+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789 cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h. */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 $ac_includes_default
17796 typedef u_int64_t ac__type_new_;
17798 main ()
17800 if ((ac__type_new_ *) 0)
17801 return 0;
17802 if (sizeof (ac__type_new_))
17803 return 0;
17805 return 0;
17807 _ACEOF
17808 rm -f conftest.$ac_objext
17809 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17823 { (case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_try") 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_try") 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
17842 ac_cv_type_u_int64_t=yes
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17847 ac_cv_type_u_int64_t=no
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17853 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17854 if test $ac_cv_type_u_int64_t = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_U_INT64_T 1
17858 _ACEOF
17861 else
17862 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17863 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17864 { (exit 1); exit 1; }; }
17878 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h. */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17894 #define $ac_func innocuous_$ac_func
17896 /* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char $ac_func (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17901 #ifdef __STDC__
17902 # include <limits.h>
17903 #else
17904 # include <assert.h>
17905 #endif
17907 #undef $ac_func
17909 /* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17912 #ifdef __cplusplus
17913 extern "C"
17914 #endif
17915 char $ac_func ();
17916 /* The GNU C library defines this for functions which it implements
17917 to always fail with ENOSYS. Some functions are actually named
17918 something starting with __ and the normal name is an alias. */
17919 #if defined __stub_$ac_func || defined __stub___$ac_func
17920 choke me
17921 #endif
17924 main ()
17926 return $ac_func ();
17928 return 0;
17930 _ACEOF
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959 esac
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 eval "$as_ac_var=yes"
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 eval "$as_ac_var=no"
17973 rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17976 ac_res=`eval echo '${'$as_ac_var'}'`
17977 { echo "$as_me:$LINENO: result: $ac_res" >&5
17978 echo "${ECHO_T}$ac_res" >&6; }
17979 if test `eval echo '${'$as_ac_var'}'` = yes; then
17980 cat >>confdefs.h <<_ACEOF
17981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17982 _ACEOF
17985 done
17991 for ac_func in powf fmodf strtof round
17993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999 cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18007 #define $ac_func innocuous_$ac_func
18009 /* System header to define __stub macros and hopefully few prototypes,
18010 which can conflict with char $ac_func (); below.
18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18012 <limits.h> exists even on freestanding compilers. */
18014 #ifdef __STDC__
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18020 #undef $ac_func
18022 /* Override any GCC internal prototype to avoid an error.
18023 Use char because int might match the return type of a GCC
18024 builtin and then its argument prototype would still apply. */
18025 #ifdef __cplusplus
18026 extern "C"
18027 #endif
18028 char $ac_func ();
18029 /* The GNU C library defines this for functions which it implements
18030 to always fail with ENOSYS. Some functions are actually named
18031 something starting with __ and the normal name is an alias. */
18032 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 choke me
18034 #endif
18037 main ()
18039 return $ac_func ();
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18059 { (case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_try") 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest$ac_exeext'
18069 { (case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_try") 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 eval "$as_ac_var=yes"
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 eval "$as_ac_var=no"
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18089 ac_res=`eval echo '${'$as_ac_var'}'`
18090 { echo "$as_me:$LINENO: result: $ac_res" >&5
18091 echo "${ECHO_T}$ac_res" >&6; }
18092 if test `eval echo '${'$as_ac_var'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18095 _ACEOF
18098 done
18105 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 else
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h. */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18121 #define $ac_func innocuous_$ac_func
18123 /* System header to define __stub macros and hopefully few prototypes,
18124 which can conflict with char $ac_func (); below.
18125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126 <limits.h> exists even on freestanding compilers. */
18128 #ifdef __STDC__
18129 # include <limits.h>
18130 #else
18131 # include <assert.h>
18132 #endif
18134 #undef $ac_func
18136 /* Override any GCC internal prototype to avoid an error.
18137 Use char because int might match the return type of a GCC
18138 builtin and then its argument prototype would still apply. */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char $ac_func ();
18143 /* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146 #if defined __stub_$ac_func || defined __stub___$ac_func
18147 choke me
18148 #endif
18151 main ()
18153 return $ac_func ();
18155 return 0;
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 eval "$as_ac_var=yes"
18193 else
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 eval "$as_ac_var=no"
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18203 ac_res=`eval echo '${'$as_ac_var'}'`
18204 { echo "$as_me:$LINENO: result: $ac_res" >&5
18205 echo "${ECHO_T}$ac_res" >&6; }
18206 if test `eval echo '${'$as_ac_var'}'` = yes; then
18207 cat >>confdefs.h <<_ACEOF
18208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18209 _ACEOF
18212 done
18217 for ac_func in isatty mkdtemp mkstemp
18219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18233 #define $ac_func innocuous_$ac_func
18235 /* System header to define __stub macros and hopefully few prototypes,
18236 which can conflict with char $ac_func (); below.
18237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238 <limits.h> exists even on freestanding compilers. */
18240 #ifdef __STDC__
18241 # include <limits.h>
18242 #else
18243 # include <assert.h>
18244 #endif
18246 #undef $ac_func
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char $ac_func ();
18255 /* The GNU C library defines this for functions which it implements
18256 to always fail with ENOSYS. Some functions are actually named
18257 something starting with __ and the normal name is an alias. */
18258 #if defined __stub_$ac_func || defined __stub___$ac_func
18259 choke me
18260 #endif
18263 main ()
18265 return $ac_func ();
18267 return 0;
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_try") 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; }; then
18304 eval "$as_ac_var=yes"
18305 else
18306 echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18309 eval "$as_ac_var=no"
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18315 ac_res=`eval echo '${'$as_ac_var'}'`
18316 { echo "$as_me:$LINENO: result: $ac_res" >&5
18317 echo "${ECHO_T}$ac_res" >&6; }
18318 if test `eval echo '${'$as_ac_var'}'` = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18321 _ACEOF
18324 done
18332 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18348 #define $ac_func innocuous_$ac_func
18350 /* System header to define __stub macros and hopefully few prototypes,
18351 which can conflict with char $ac_func (); below.
18352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18353 <limits.h> exists even on freestanding compilers. */
18355 #ifdef __STDC__
18356 # include <limits.h>
18357 #else
18358 # include <assert.h>
18359 #endif
18361 #undef $ac_func
18363 /* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18366 #ifdef __cplusplus
18367 extern "C"
18368 #endif
18369 char $ac_func ();
18370 /* The GNU C library defines this for functions which it implements
18371 to always fail with ENOSYS. Some functions are actually named
18372 something starting with __ and the normal name is an alias. */
18373 #if defined __stub_$ac_func || defined __stub___$ac_func
18374 choke me
18375 #endif
18378 main ()
18380 return $ac_func ();
18382 return 0;
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18393 ac_status=$?
18394 grep -v '^ *+' conftest.er1 >conftest.err
18395 rm -f conftest.er1
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18416 ac_status=$?
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 eval "$as_ac_var=yes"
18420 else
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 eval "$as_ac_var=no"
18427 rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18430 ac_res=`eval echo '${'$as_ac_var'}'`
18431 { echo "$as_me:$LINENO: result: $ac_res" >&5
18432 echo "${ECHO_T}$ac_res" >&6; }
18433 if test `eval echo '${'$as_ac_var'}'` = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18436 _ACEOF
18439 done
18445 for ac_func in strerror strerror_r strerror_s setenv
18447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h. */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18461 #define $ac_func innocuous_$ac_func
18463 /* System header to define __stub macros and hopefully few prototypes,
18464 which can conflict with char $ac_func (); below.
18465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 <limits.h> exists even on freestanding compilers. */
18468 #ifdef __STDC__
18469 # include <limits.h>
18470 #else
18471 # include <assert.h>
18472 #endif
18474 #undef $ac_func
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 char $ac_func ();
18483 /* The GNU C library defines this for functions which it implements
18484 to always fail with ENOSYS. Some functions are actually named
18485 something starting with __ and the normal name is an alias. */
18486 #if defined __stub_$ac_func || defined __stub___$ac_func
18487 choke me
18488 #endif
18491 main ()
18493 return $ac_func ();
18495 return 0;
18497 _ACEOF
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526 esac
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 eval "$as_ac_var=yes"
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 eval "$as_ac_var=no"
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18543 ac_res=`eval echo '${'$as_ac_var'}'`
18544 { echo "$as_me:$LINENO: result: $ac_res" >&5
18545 echo "${ECHO_T}$ac_res" >&6; }
18546 if test `eval echo '${'$as_ac_var'}'` = yes; then
18547 cat >>confdefs.h <<_ACEOF
18548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18549 _ACEOF
18552 done
18558 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h. */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18574 #define $ac_func innocuous_$ac_func
18576 /* System header to define __stub macros and hopefully few prototypes,
18577 which can conflict with char $ac_func (); below.
18578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18579 <limits.h> exists even on freestanding compilers. */
18581 #ifdef __STDC__
18582 # include <limits.h>
18583 #else
18584 # include <assert.h>
18585 #endif
18587 #undef $ac_func
18589 /* Override any GCC internal prototype to avoid an error.
18590 Use char because int might match the return type of a GCC
18591 builtin and then its argument prototype would still apply. */
18592 #ifdef __cplusplus
18593 extern "C"
18594 #endif
18595 char $ac_func ();
18596 /* The GNU C library defines this for functions which it implements
18597 to always fail with ENOSYS. Some functions are actually named
18598 something starting with __ and the normal name is an alias. */
18599 #if defined __stub_$ac_func || defined __stub___$ac_func
18600 choke me
18601 #endif
18604 main ()
18606 return $ac_func ();
18608 return 0;
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_link") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest$ac_exeext'
18636 { (case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18639 esac
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_try") 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 eval "$as_ac_var=yes"
18646 else
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 eval "$as_ac_var=no"
18653 rm -f core conftest.err conftest.$ac_objext \
18654 conftest$ac_exeext conftest.$ac_ext
18656 ac_res=`eval echo '${'$as_ac_var'}'`
18657 { echo "$as_me:$LINENO: result: $ac_res" >&5
18658 echo "${ECHO_T}$ac_res" >&6; }
18659 if test `eval echo '${'$as_ac_var'}'` = yes; then
18660 cat >>confdefs.h <<_ACEOF
18661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18662 _ACEOF
18665 done
18671 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687 #define $ac_func innocuous_$ac_func
18689 /* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18694 #ifdef __STDC__
18695 # include <limits.h>
18696 #else
18697 # include <assert.h>
18698 #endif
18700 #undef $ac_func
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 char $ac_func ();
18709 /* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712 #if defined __stub_$ac_func || defined __stub___$ac_func
18713 choke me
18714 #endif
18717 main ()
18719 return $ac_func ();
18721 return 0;
18723 _ACEOF
18724 rm -f conftest.$ac_objext conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742 esac
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 eval "$as_ac_var=yes"
18759 else
18760 echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18763 eval "$as_ac_var=no"
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18769 ac_res=`eval echo '${'$as_ac_var'}'`
18770 { echo "$as_me:$LINENO: result: $ac_res" >&5
18771 echo "${ECHO_T}$ac_res" >&6; }
18772 if test `eval echo '${'$as_ac_var'}'` = yes; then
18773 cat >>confdefs.h <<_ACEOF
18774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18775 _ACEOF
18778 done
18780 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18781 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18782 if test "${llvm_cv_c_printf_a+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 ac_ext=c
18786 ac_cpp='$CPP $CPPFLAGS'
18787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18791 if test "$cross_compiling" = yes; then
18792 llvmac_cv_c_printf_a=no
18793 else
18794 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h. */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18802 #include <stdio.h>
18803 #include <stdlib.h>
18806 main ()
18809 volatile double A, B;
18810 char Buffer[100];
18811 A = 1;
18812 A /= 10.0;
18813 sprintf(Buffer, "%a", A);
18814 B = atof(Buffer);
18815 if (A != B)
18816 return (1);
18817 if (A != 0x1.999999999999ap-4)
18818 return (1);
18819 return (0);
18821 return 0;
18823 _ACEOF
18824 rm -f conftest$ac_exeext
18825 if { (ac_try="$ac_link"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_link") 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 llvm_cv_c_printf_a=yes
18845 else
18846 echo "$as_me: program exited with status $ac_status" >&5
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18850 ( exit $ac_status )
18851 llvmac_cv_c_printf_a=no
18853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18857 ac_ext=c
18858 ac_cpp='$CPP $CPPFLAGS'
18859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18864 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18865 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18866 if test "$llvm_cv_c_printf_a" = "yes"; then
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAVE_PRINTF_A 1
18870 _ACEOF
18875 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18876 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18877 if test "${ac_cv_func_rand48+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880 ac_ext=cpp
18881 ac_cpp='$CXXCPP $CPPFLAGS'
18882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 #include <stdlib.h>
18894 main ()
18896 srand48(0);lrand48();drand48();
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (ac_try="$ac_compile"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest.$ac_objext'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_cv_func_rand48=yes
18936 else
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 ac_cv_func_rand48=no
18943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18944 ac_ext=c
18945 ac_cpp='$CPP $CPPFLAGS'
18946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18952 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18954 if test "$ac_cv_func_rand48" = "yes" ; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_RAND48 1
18958 _ACEOF
18964 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18965 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18966 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 ac_ext=cpp
18970 ac_cpp='$CXXCPP $CPPFLAGS'
18971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 #include <math.h>
18983 main ()
18985 float f; isnan(f);
18987 return 0;
18989 _ACEOF
18990 rm -f conftest.$ac_objext
18991 if { (ac_try="$ac_compile"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_compile") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
19004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; } &&
19014 { ac_try='test -s conftest.$ac_objext'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_cv_func_isnan_in_math_h=yes
19025 else
19026 echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19029 ac_cv_func_isnan_in_math_h=no
19032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 ac_ext=c
19034 ac_cpp='$CPP $CPPFLAGS'
19035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19040 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19041 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19044 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE_ISNAN_IN_MATH_H 1
19048 _ACEOF
19052 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19053 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19054 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057 ac_ext=cpp
19058 ac_cpp='$CXXCPP $CPPFLAGS'
19059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19063 cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h. */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 #include <cmath>
19071 main ()
19073 float f; isnan(f);
19075 return 0;
19077 _ACEOF
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083 esac
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_compile") 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } &&
19092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19096 esac
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest.$ac_objext'
19103 { (case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_try") 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_func_isnan_in_cmath=yes
19113 else
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_func_isnan_in_cmath=no
19120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121 ac_ext=c
19122 ac_cpp='$CPP $CPPFLAGS'
19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19128 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19129 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19131 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_ISNAN_IN_CMATH 1
19135 _ACEOF
19139 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19140 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19141 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144 ac_ext=cpp
19145 ac_cpp='$CXXCPP $CPPFLAGS'
19146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <cmath>
19158 main ()
19160 float f; std::isnan(f);
19162 return 0;
19164 _ACEOF
19165 rm -f conftest.$ac_objext
19166 if { (ac_try="$ac_compile"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_compile") 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19180 { (case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183 esac
19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_try") 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_func_std_isnan_in_cmath=yes
19200 else
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_cv_func_std_isnan_in_cmath=no
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 ac_ext=c
19209 ac_cpp='$CPP $CPPFLAGS'
19210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19216 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19218 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_STD_ISNAN_IN_CMATH 1
19222 _ACEOF
19227 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19228 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19229 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232 ac_ext=cpp
19233 ac_cpp='$CXXCPP $CPPFLAGS'
19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <math.h>
19246 main ()
19248 float f; isinf(f);
19250 return 0;
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_compile") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest.$ac_objext'
19278 { (case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_try") 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_cv_func_isinf_in_math_h=yes
19288 else
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 ac_cv_func_isinf_in_math_h=no
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 ac_ext=c
19297 ac_cpp='$CPP $CPPFLAGS'
19298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19303 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19304 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19306 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19308 cat >>confdefs.h <<\_ACEOF
19309 #define HAVE_ISINF_IN_MATH_H 1
19310 _ACEOF
19314 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19315 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19316 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319 ac_ext=cpp
19320 ac_cpp='$CXXCPP $CPPFLAGS'
19321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 #include <cmath>
19333 main ()
19335 float f; isinf(f);
19337 return 0;
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19355 { (case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_try") 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_func_isinf_in_cmath=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_func_isinf_in_cmath=no
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383 ac_ext=c
19384 ac_cpp='$CPP $CPPFLAGS'
19385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19391 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19393 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_ISINF_IN_CMATH 1
19397 _ACEOF
19401 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19402 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19403 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 ac_ext=cpp
19407 ac_cpp='$CXXCPP $CPPFLAGS'
19408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412 cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h. */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 #include <cmath>
19420 main ()
19422 float f; std::isinf(f)}
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (ac_try="$ac_compile"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_compile") 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest.$ac_objext'
19452 { (case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_try") 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_cv_func_std_isinf_in_cmath=yes
19462 else
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_cv_func_std_isinf_in_cmath=no
19469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19470 ac_ext=c
19471 ac_cpp='$CPP $CPPFLAGS'
19472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19477 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19478 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19480 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_STD_ISINF_IN_CMATH 1
19484 _ACEOF
19488 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19489 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19490 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 ac_ext=cpp
19494 ac_cpp='$CXXCPP $CPPFLAGS'
19495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <ieeefp.h>
19507 main ()
19509 float f; finite(f);
19511 return 0;
19513 _ACEOF
19514 rm -f conftest.$ac_objext
19515 if { (ac_try="$ac_compile"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_compile") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_cv_func_finite_in_ieeefp_h=yes
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_cv_func_finite_in_ieeefp_h=no
19556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19557 ac_ext=c
19558 ac_cpp='$CPP $CPPFLAGS'
19559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19564 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19565 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19567 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19569 cat >>confdefs.h <<\_ACEOF
19570 #define HAVE_FINITE_IN_IEEEFP_H 1
19571 _ACEOF
19577 if test "$llvm_cv_platform_type" = "Unix" ; then
19580 for ac_header in stdlib.h unistd.h
19582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 ac_res=`eval echo '${'$as_ac_Header'}'`
19590 { echo "$as_me:$LINENO: result: $ac_res" >&5
19591 echo "${ECHO_T}$ac_res" >&6; }
19592 else
19593 # Is the header compilable?
19594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 $ac_includes_default
19603 #include <$ac_header>
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (ac_try="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19620 { (case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_try") 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639 ac_header_compiler=yes
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_header_compiler=no
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19649 echo "${ECHO_T}$ac_header_compiler" >&6; }
19651 # Is the header present?
19652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <$ac_header>
19661 _ACEOF
19662 if { (ac_try="$ac_cpp conftest.$ac_ext"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } >/dev/null; then
19675 if test -s conftest.err; then
19676 ac_cpp_err=$ac_c_preproc_warn_flag
19677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19678 else
19679 ac_cpp_err=
19681 else
19682 ac_cpp_err=yes
19684 if test -z "$ac_cpp_err"; then
19685 ac_header_preproc=yes
19686 else
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19690 ac_header_preproc=no
19693 rm -f conftest.err conftest.$ac_ext
19694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19695 echo "${ECHO_T}$ac_header_preproc" >&6; }
19697 # So? What about this header?
19698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19699 yes:no: )
19700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19704 ac_header_preproc=yes
19706 no:yes:* )
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19719 ( cat <<\_ASBOX
19720 ## ----------------------------------- ##
19721 ## Report this to llvmbugs@cs.uiuc.edu ##
19722 ## ----------------------------------- ##
19723 _ASBOX
19724 ) | sed "s/^/$as_me: WARNING: /" >&2
19726 esac
19727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732 eval "$as_ac_Header=\$ac_header_preproc"
19734 ac_res=`eval echo '${'$as_ac_Header'}'`
19735 { echo "$as_me:$LINENO: result: $ac_res" >&5
19736 echo "${ECHO_T}$ac_res" >&6; }
19739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19740 cat >>confdefs.h <<_ACEOF
19741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19742 _ACEOF
19746 done
19749 for ac_func in getpagesize
19751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19765 #define $ac_func innocuous_$ac_func
19767 /* System header to define __stub macros and hopefully few prototypes,
19768 which can conflict with char $ac_func (); below.
19769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19770 <limits.h> exists even on freestanding compilers. */
19772 #ifdef __STDC__
19773 # include <limits.h>
19774 #else
19775 # include <assert.h>
19776 #endif
19778 #undef $ac_func
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char $ac_func ();
19787 /* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790 #if defined __stub_$ac_func || defined __stub___$ac_func
19791 choke me
19792 #endif
19795 main ()
19797 return $ac_func ();
19799 return 0;
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
19816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest$ac_exeext'
19827 { (case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_try") 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 eval "$as_ac_var=yes"
19837 else
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 eval "$as_ac_var=no"
19844 rm -f core conftest.err conftest.$ac_objext \
19845 conftest$ac_exeext conftest.$ac_ext
19847 ac_res=`eval echo '${'$as_ac_var'}'`
19848 { echo "$as_me:$LINENO: result: $ac_res" >&5
19849 echo "${ECHO_T}$ac_res" >&6; }
19850 if test `eval echo '${'$as_ac_var'}'` = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19853 _ACEOF
19856 done
19858 { echo "$as_me:$LINENO: checking for working mmap" >&5
19859 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19860 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863 if test "$cross_compiling" = yes; then
19864 ac_cv_func_mmap_fixed_mapped=no
19865 else
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 $ac_includes_default
19873 /* malloc might have been renamed as rpl_malloc. */
19874 #undef malloc
19876 /* Thanks to Mike Haertel and Jim Avera for this test.
19877 Here is a matrix of mmap possibilities:
19878 mmap private not fixed
19879 mmap private fixed at somewhere currently unmapped
19880 mmap private fixed at somewhere already mapped
19881 mmap shared not fixed
19882 mmap shared fixed at somewhere currently unmapped
19883 mmap shared fixed at somewhere already mapped
19884 For private mappings, we should verify that changes cannot be read()
19885 back from the file, nor mmap's back from the file at a different
19886 address. (There have been systems where private was not correctly
19887 implemented like the infamous i386 svr4.0, and systems where the
19888 VM page cache was not coherent with the file system buffer cache
19889 like early versions of FreeBSD and possibly contemporary NetBSD.)
19890 For shared mappings, we should conversely verify that changes get
19891 propagated back to all the places they're supposed to be.
19893 Grep wants private fixed already mapped.
19894 The main things grep needs to know about mmap are:
19895 * does it exist and is it safe to write into the mmap'd area
19896 * how to use it (BSD variants) */
19898 #include <fcntl.h>
19899 #include <sys/mman.h>
19901 #if !STDC_HEADERS && !HAVE_STDLIB_H
19902 char *malloc ();
19903 #endif
19905 /* This mess was copied from the GNU getpagesize.h. */
19906 #if !HAVE_GETPAGESIZE
19907 /* Assume that all systems that can run configure have sys/param.h. */
19908 # if !HAVE_SYS_PARAM_H
19909 # define HAVE_SYS_PARAM_H 1
19910 # endif
19912 # ifdef _SC_PAGESIZE
19913 # define getpagesize() sysconf(_SC_PAGESIZE)
19914 # else /* no _SC_PAGESIZE */
19915 # if HAVE_SYS_PARAM_H
19916 # include <sys/param.h>
19917 # ifdef EXEC_PAGESIZE
19918 # define getpagesize() EXEC_PAGESIZE
19919 # else /* no EXEC_PAGESIZE */
19920 # ifdef NBPG
19921 # define getpagesize() NBPG * CLSIZE
19922 # ifndef CLSIZE
19923 # define CLSIZE 1
19924 # endif /* no CLSIZE */
19925 # else /* no NBPG */
19926 # ifdef NBPC
19927 # define getpagesize() NBPC
19928 # else /* no NBPC */
19929 # ifdef PAGESIZE
19930 # define getpagesize() PAGESIZE
19931 # endif /* PAGESIZE */
19932 # endif /* no NBPC */
19933 # endif /* no NBPG */
19934 # endif /* no EXEC_PAGESIZE */
19935 # else /* no HAVE_SYS_PARAM_H */
19936 # define getpagesize() 8192 /* punt totally */
19937 # endif /* no HAVE_SYS_PARAM_H */
19938 # endif /* no _SC_PAGESIZE */
19940 #endif /* no HAVE_GETPAGESIZE */
19943 main ()
19945 char *data, *data2, *data3;
19946 int i, pagesize;
19947 int fd;
19949 pagesize = getpagesize ();
19951 /* First, make a file with some known garbage in it. */
19952 data = (char *) malloc (pagesize);
19953 if (!data)
19954 return 1;
19955 for (i = 0; i < pagesize; ++i)
19956 *(data + i) = rand ();
19957 umask (0);
19958 fd = creat ("conftest.mmap", 0600);
19959 if (fd < 0)
19960 return 1;
19961 if (write (fd, data, pagesize) != pagesize)
19962 return 1;
19963 close (fd);
19965 /* Next, try to mmap the file at a fixed address which already has
19966 something else allocated at it. If we can, also make sure that
19967 we see the same garbage. */
19968 fd = open ("conftest.mmap", O_RDWR);
19969 if (fd < 0)
19970 return 1;
19971 data2 = (char *) malloc (2 * pagesize);
19972 if (!data2)
19973 return 1;
19974 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19977 return 1;
19978 for (i = 0; i < pagesize; ++i)
19979 if (*(data + i) != *(data2 + i))
19980 return 1;
19982 /* Finally, make sure that changes to the mapped area do not
19983 percolate back to the file as seen by read(). (This is a bug on
19984 some variants of i386 svr4.0.) */
19985 for (i = 0; i < pagesize; ++i)
19986 *(data2 + i) = *(data2 + i) + 1;
19987 data3 = (char *) malloc (pagesize);
19988 if (!data3)
19989 return 1;
19990 if (read (fd, data3, pagesize) != pagesize)
19991 return 1;
19992 for (i = 0; i < pagesize; ++i)
19993 if (*(data + i) != *(data3 + i))
19994 return 1;
19995 close (fd);
19996 return 0;
19998 _ACEOF
19999 rm -f conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_func_mmap_fixed_mapped=yes
20020 else
20021 echo "$as_me: program exited with status $ac_status" >&5
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ( exit $ac_status )
20026 ac_cv_func_mmap_fixed_mapped=no
20028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20033 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20034 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_MMAP 1
20039 _ACEOF
20042 rm -f conftest.mmap
20044 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20045 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20046 if test "${ac_cv_func_mmap_file+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 ac_ext=c
20050 ac_cpp='$CPP $CPPFLAGS'
20051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20055 if test "$cross_compiling" = yes; then
20056 ac_cv_func_mmap_file=no
20057 else
20058 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 #include <sys/types.h>
20067 #include <sys/mman.h>
20068 #include <fcntl.h>
20071 main ()
20074 int fd;
20075 fd = creat ("foo",0777);
20076 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20077 unlink ("foo");
20078 return (fd != (int) MAP_FAILED);
20080 return 0;
20082 _ACEOF
20083 rm -f conftest$ac_exeext
20084 if { (ac_try="$ac_link"
20085 case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20088 esac
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_link") 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20094 { (case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_try") 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 ac_cv_func_mmap_file=yes
20104 else
20105 echo "$as_me: program exited with status $ac_status" >&5
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ( exit $ac_status )
20110 ac_cv_func_mmap_file=no
20112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116 ac_ext=c
20117 ac_cpp='$CPP $CPPFLAGS'
20118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20124 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20125 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20126 if test "$ac_cv_func_mmap_file" = yes; then
20128 cat >>confdefs.h <<\_ACEOF
20129 #define HAVE_MMAP_FILE
20130 _ACEOF
20132 MMAP_FILE=yes
20136 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20137 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20138 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141 if test "$llvm_cv_os_type" = "Interix" ; then
20142 ac_cv_need_dev_zero_for_mmap=yes
20143 else
20144 ac_cv_need_dev_zero_for_mmap=no
20148 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20149 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20150 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20152 cat >>confdefs.h <<\_ACEOF
20153 #define NEED_DEV_ZERO_FOR_MMAP 1
20154 _ACEOF
20158 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20159 then
20160 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20161 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20163 if test "$ac_cv_func_mmap_file" = "no"
20164 then
20165 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20166 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20170 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20171 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20172 ac_ext=cpp
20173 ac_cpp='$CXXCPP $CPPFLAGS'
20174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h. */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 int main() {
20185 volatile unsigned long val = 1;
20186 __sync_synchronize();
20187 __sync_val_compare_and_swap(&val, 1, 0);
20188 __sync_add_and_fetch(&val, 1);
20189 __sync_sub_and_fetch(&val, 1);
20190 return 0;
20193 _ACEOF
20194 rm -f conftest.$ac_objext conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_link") 2>conftest.er1
20202 ac_status=$?
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20209 { (case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_try") 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; } &&
20218 { ac_try='test -s conftest$ac_exeext'
20219 { (case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_try") 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_ext=c
20229 ac_cpp='$CPP $CPPFLAGS'
20230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234 { echo "$as_me:$LINENO: result: yes" >&5
20235 echo "${ECHO_T}yes" >&6; }
20237 cat >>confdefs.h <<\_ACEOF
20238 #define LLVM_MULTITHREADED 1
20239 _ACEOF
20241 else
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 { echo "$as_me:$LINENO: result: no" >&5
20246 echo "${ECHO_T}no" >&6; }
20248 cat >>confdefs.h <<\_ACEOF
20249 #define LLVM_MULTITHREADED 0
20250 _ACEOF
20252 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20253 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20256 rm -f core conftest.err conftest.$ac_objext \
20257 conftest$ac_exeext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: checking for getsect()" >&5
20260 echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20261 cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h. */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20267 #include <mach-o/getsect.h>
20268 int main() {
20269 unsigned long p;
20270 return (int)getsect("__DATA","__pass_info", &p);
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_try") 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 { echo "$as_me:$LINENO: result: yes" >&5
20309 echo "${ECHO_T}yes" >&6; }
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_GETSECT 1
20313 _ACEOF
20315 else
20316 echo "$as_me: failed program was:" >&5
20317 sed 's/^/| /' conftest.$ac_ext >&5
20319 { echo "$as_me:$LINENO: result: no" >&5
20320 echo "${ECHO_T}no" >&6; }
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_GETSECT 1
20324 _ACEOF
20329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20334 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20335 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20336 if test "${llvm_cv_linux_mixed+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 ac_ext=c
20340 ac_cpp='$CPP $CPPFLAGS'
20341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #ifndef __x86_64__
20352 error: Not x86-64 even if uname says so!
20353 #endif
20356 main ()
20360 return 0;
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (ac_try="$ac_compile"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20394 ac_status=$?
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; }; then
20397 llvm_cv_linux_mixed=no
20398 else
20399 echo "$as_me: failed program was:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 llvm_cv_linux_mixed=yes
20405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 ac_ext=c
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20414 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20415 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20417 if test "$llvm_cv_linux_mixed" = "yes"; then
20418 llvm_cv_target_arch="x86"
20419 ARCH="x86"
20424 for ac_func in __dso_handle
20426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432 cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h. */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20440 #define $ac_func innocuous_$ac_func
20442 /* System header to define __stub macros and hopefully few prototypes,
20443 which can conflict with char $ac_func (); below.
20444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20445 <limits.h> exists even on freestanding compilers. */
20447 #ifdef __STDC__
20448 # include <limits.h>
20449 #else
20450 # include <assert.h>
20451 #endif
20453 #undef $ac_func
20455 /* Override any GCC internal prototype to avoid an error.
20456 Use char because int might match the return type of a GCC
20457 builtin and then its argument prototype would still apply. */
20458 #ifdef __cplusplus
20459 extern "C"
20460 #endif
20461 char $ac_func ();
20462 /* The GNU C library defines this for functions which it implements
20463 to always fail with ENOSYS. Some functions are actually named
20464 something starting with __ and the normal name is an alias. */
20465 #if defined __stub_$ac_func || defined __stub___$ac_func
20466 choke me
20467 #endif
20470 main ()
20472 return $ac_func ();
20474 return 0;
20476 _ACEOF
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20485 ac_status=$?
20486 grep -v '^ *+' conftest.er1 >conftest.err
20487 rm -f conftest.er1
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } &&
20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20492 { (case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_try") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 eval "$as_ac_var=yes"
20512 else
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 eval "$as_ac_var=no"
20519 rm -f core conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
20522 ac_res=`eval echo '${'$as_ac_var'}'`
20523 { echo "$as_me:$LINENO: result: $ac_res" >&5
20524 echo "${ECHO_T}$ac_res" >&6; }
20525 if test `eval echo '${'$as_ac_var'}'` = yes; then
20526 cat >>confdefs.h <<_ACEOF
20527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20528 _ACEOF
20531 done
20534 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20535 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20536 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539 llvm_cv_llvmgcc_sanity="no"
20540 if test -x "$LLVMGCC" ; then
20541 cp /dev/null conftest.c
20542 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20543 grep 'target datalayout =' > /dev/null 2>&1
20544 if test $? -eq 0 ; then
20545 llvm_cv_llvmgcc_sanity="yes"
20547 rm conftest.c
20550 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20551 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20553 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20554 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20555 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20556 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20557 LLVMCC1=$llvmcc1path
20559 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20560 LLVMCC1PLUS=$llvmcc1pluspath
20562 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20563 LLVMGCCDIR=$llvmgccdir
20565 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20566 LLVMGCC_LANGS=$llvmgcclangs
20568 { echo "$as_me:$LINENO: result: ok" >&5
20569 echo "${ECHO_T}ok" >&6; }
20572 SHLIBEXT=$libltdl_cv_shlibext
20575 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20578 # Translate the various configuration directories and other basic
20579 # information into substitutions that will end up in Makefile.config.in
20580 # that these configured values can be used by the makefiles
20581 if test "${prefix}" = "NONE" ; then
20582 prefix="/usr/local"
20584 eval LLVM_PREFIX="${prefix}";
20585 eval LLVM_BINDIR="${prefix}/bin";
20586 eval LLVM_LIBDIR="${prefix}/lib";
20587 eval LLVM_DATADIR="${prefix}/share/llvm";
20588 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20589 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20590 eval LLVM_INCLUDEDIR="${prefix}/include";
20591 eval LLVM_INFODIR="${prefix}/info";
20592 eval LLVM_MANDIR="${prefix}/man";
20593 LLVM_CONFIGTIME=`date`
20605 # Place the various directores into the config.h file as #defines so that we
20606 # can know about the installation paths within LLVM.
20608 cat >>confdefs.h <<_ACEOF
20609 #define LLVM_PREFIX "$LLVM_PREFIX"
20610 _ACEOF
20613 cat >>confdefs.h <<_ACEOF
20614 #define LLVM_BINDIR "$LLVM_BINDIR"
20615 _ACEOF
20618 cat >>confdefs.h <<_ACEOF
20619 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20620 _ACEOF
20623 cat >>confdefs.h <<_ACEOF
20624 #define LLVM_DATADIR "$LLVM_DATADIR"
20625 _ACEOF
20628 cat >>confdefs.h <<_ACEOF
20629 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20630 _ACEOF
20633 cat >>confdefs.h <<_ACEOF
20634 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20635 _ACEOF
20638 cat >>confdefs.h <<_ACEOF
20639 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20640 _ACEOF
20643 cat >>confdefs.h <<_ACEOF
20644 #define LLVM_INFODIR "$LLVM_INFODIR"
20645 _ACEOF
20648 cat >>confdefs.h <<_ACEOF
20649 #define LLVM_MANDIR "$LLVM_MANDIR"
20650 _ACEOF
20653 cat >>confdefs.h <<_ACEOF
20654 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20655 _ACEOF
20658 cat >>confdefs.h <<_ACEOF
20659 #define LLVM_HOSTTRIPLE "$host"
20660 _ACEOF
20663 # Determine which bindings to build.
20664 if test "$BINDINGS_TO_BUILD" = auto ; then
20665 BINDINGS_TO_BUILD=""
20666 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20667 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20670 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20673 # This isn't really configurey, but it avoids having to repeat the list in
20674 # other files.
20675 ALL_BINDINGS=ocaml
20678 # Do any work necessary to ensure that bindings have what they need.
20679 binding_prereqs_failed=0
20680 for a_binding in $BINDINGS_TO_BUILD ; do
20681 case "$a_binding" in
20682 ocaml)
20683 if test "x$OCAMLC" = x ; then
20684 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20685 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20686 binding_prereqs_failed=1
20688 if test "x$OCAMLDEP" = x ; then
20689 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20690 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20691 binding_prereqs_failed=1
20693 if test "x$OCAMLOPT" = x ; then
20694 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20695 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20697 if test "x$with_ocaml_libdir" != xauto ; then
20698 OCAML_LIBDIR=$with_ocaml_libdir
20700 else
20701 ocaml_stdlib="`"$OCAMLC" -where`"
20702 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20703 then
20704 # ocaml stdlib is beneath our prefix; use stdlib
20705 OCAML_LIBDIR=$ocaml_stdlib
20707 else
20708 # ocaml stdlib is outside our prefix; use libdir/ocaml
20709 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20714 esac
20715 done
20716 if test "$binding_prereqs_failed" = 1 ; then
20717 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20718 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20719 { (exit 1); exit 1; }; }
20722 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20723 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20724 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 ac_ext=cpp
20728 ac_cpp='$CXXCPP $CPPFLAGS'
20729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733 oldcxxflags="$CXXFLAGS"
20734 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20743 main ()
20747 return 0;
20749 _ACEOF
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_compile") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20765 { (case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_try") 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; } &&
20774 { ac_try='test -s conftest.$ac_objext'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 llvm_cv_cxx_visibility_inlines_hidden=yes
20785 else
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 llvm_cv_cxx_visibility_inlines_hidden=no
20792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793 CXXFLAGS="$oldcxxflags"
20794 ac_ext=c
20795 ac_cpp='$CPP $CPPFLAGS'
20796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20802 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20803 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20804 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20805 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20807 else
20808 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20813 if test "$llvm_cv_link_use_r" = "yes" ; then
20814 RPATH="-Wl,-R"
20815 else
20816 RPATH="-Wl,-rpath"
20820 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20821 RDYNAMIC="-Wl,-export-dynamic"
20822 else
20823 RDYNAMIC=""
20828 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20835 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20837 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20839 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20841 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20843 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20846 ac_config_files="$ac_config_files Makefile.config"
20849 ac_config_files="$ac_config_files llvm.spec"
20852 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20855 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20858 ac_config_commands="$ac_config_commands setup"
20860 ac_config_commands="$ac_config_commands Makefile"
20863 ac_config_commands="$ac_config_commands Makefile.common"
20866 ac_config_commands="$ac_config_commands examples/Makefile"
20869 ac_config_commands="$ac_config_commands lib/Makefile"
20872 ac_config_commands="$ac_config_commands runtime/Makefile"
20875 ac_config_commands="$ac_config_commands test/Makefile"
20878 ac_config_commands="$ac_config_commands test/Makefile.tests"
20881 ac_config_commands="$ac_config_commands unittests/Makefile"
20884 ac_config_commands="$ac_config_commands tools/Makefile"
20887 ac_config_commands="$ac_config_commands utils/Makefile"
20890 ac_config_commands="$ac_config_commands projects/Makefile"
20893 ac_config_commands="$ac_config_commands bindings/Makefile"
20896 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20900 cat >confcache <<\_ACEOF
20901 # This file is a shell script that caches the results of configure
20902 # tests run on this system so they can be shared between configure
20903 # scripts and configure runs, see configure's option --config-cache.
20904 # It is not useful on other systems. If it contains results you don't
20905 # want to keep, you may remove or edit it.
20907 # config.status only pays attention to the cache file if you give it
20908 # the --recheck option to rerun configure.
20910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20912 # following values.
20914 _ACEOF
20916 # The following way of writing the cache mishandles newlines in values,
20917 # but we know of no workaround that is simple, portable, and efficient.
20918 # So, we kill variables containing newlines.
20919 # Ultrix sh set writes to stderr and can't be redirected directly,
20920 # and sets the high bit in the cache file unless we assign to the vars.
20922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20923 eval ac_val=\$$ac_var
20924 case $ac_val in #(
20925 *${as_nl}*)
20926 case $ac_var in #(
20927 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20928 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20929 esac
20930 case $ac_var in #(
20931 _ | IFS | as_nl) ;; #(
20932 *) $as_unset $ac_var ;;
20933 esac ;;
20934 esac
20935 done
20937 (set) 2>&1 |
20938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20939 *${as_nl}ac_space=\ *)
20940 # `set' does not quote correctly, so add quotes (double-quote
20941 # substitution turns \\\\ into \\, and sed turns \\ into \).
20942 sed -n \
20943 "s/'/'\\\\''/g;
20944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20945 ;; #(
20947 # `set' quotes correctly as required by POSIX, so do not add quotes.
20948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20950 esac |
20951 sort
20953 sed '
20954 /^ac_cv_env_/b end
20955 t clear
20956 :clear
20957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20958 t end
20959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20960 :end' >>confcache
20961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20962 if test -w "$cache_file"; then
20963 test "x$cache_file" != "x/dev/null" &&
20964 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20965 echo "$as_me: updating cache $cache_file" >&6;}
20966 cat confcache >$cache_file
20967 else
20968 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20969 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20972 rm -f confcache
20974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20975 # Let make expand exec_prefix.
20976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20978 DEFS=-DHAVE_CONFIG_H
20980 ac_libobjs=
20981 ac_ltlibobjs=
20982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20983 # 1. Remove the extension, and $U if already installed.
20984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20985 ac_i=`echo "$ac_i" | sed "$ac_script"`
20986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20987 # will be set to the directory where LIBOBJS objects are built.
20988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20990 done
20991 LIBOBJS=$ac_libobjs
20993 LTLIBOBJS=$ac_ltlibobjs
20996 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20997 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&5
20999 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21000 Usually this means the macro was only invoked conditionally." >&2;}
21001 { (exit 1); exit 1; }; }
21003 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21004 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&5
21006 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21007 Usually this means the macro was only invoked conditionally." >&2;}
21008 { (exit 1); exit 1; }; }
21011 : ${CONFIG_STATUS=./config.status}
21012 ac_clean_files_save=$ac_clean_files
21013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21016 cat >$CONFIG_STATUS <<_ACEOF
21017 #! $SHELL
21018 # Generated by $as_me.
21019 # Run this file to recreate the current configuration.
21020 # Compiler output produced by configure, useful for debugging
21021 # configure, is in config.log if it exists.
21023 debug=false
21024 ac_cs_recheck=false
21025 ac_cs_silent=false
21026 SHELL=\${CONFIG_SHELL-$SHELL}
21027 _ACEOF
21029 cat >>$CONFIG_STATUS <<\_ACEOF
21030 ## --------------------- ##
21031 ## M4sh Initialization. ##
21032 ## --------------------- ##
21034 # Be Bourne compatible
21035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21036 emulate sh
21037 NULLCMD=:
21038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21039 # is contrary to our usage. Disable this feature.
21040 alias -g '${1+"$@"}'='"$@"'
21041 setopt NO_GLOB_SUBST
21042 else
21043 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21045 BIN_SH=xpg4; export BIN_SH # for Tru64
21046 DUALCASE=1; export DUALCASE # for MKS sh
21049 # PATH needs CR
21050 # Avoid depending upon Character Ranges.
21051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21054 as_cr_digits='0123456789'
21055 as_cr_alnum=$as_cr_Letters$as_cr_digits
21057 # The user is always right.
21058 if test "${PATH_SEPARATOR+set}" != set; then
21059 echo "#! /bin/sh" >conf$$.sh
21060 echo "exit 0" >>conf$$.sh
21061 chmod +x conf$$.sh
21062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21063 PATH_SEPARATOR=';'
21064 else
21065 PATH_SEPARATOR=:
21067 rm -f conf$$.sh
21070 # Support unset when possible.
21071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21072 as_unset=unset
21073 else
21074 as_unset=false
21078 # IFS
21079 # We need space, tab and new line, in precisely that order. Quoting is
21080 # there to prevent editors from complaining about space-tab.
21081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21082 # splitting by setting IFS to empty value.)
21083 as_nl='
21085 IFS=" "" $as_nl"
21087 # Find who we are. Look in the path if we contain no directory separator.
21088 case $0 in
21089 *[\\/]* ) as_myself=$0 ;;
21090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21091 for as_dir in $PATH
21093 IFS=$as_save_IFS
21094 test -z "$as_dir" && as_dir=.
21095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21096 done
21097 IFS=$as_save_IFS
21100 esac
21101 # We did not find ourselves, most probably we were run as `sh COMMAND'
21102 # in which case we are not to be found in the path.
21103 if test "x$as_myself" = x; then
21104 as_myself=$0
21106 if test ! -f "$as_myself"; then
21107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21108 { (exit 1); exit 1; }
21111 # Work around bugs in pre-3.0 UWIN ksh.
21112 for as_var in ENV MAIL MAILPATH
21113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21114 done
21115 PS1='$ '
21116 PS2='> '
21117 PS4='+ '
21119 # NLS nuisances.
21120 for as_var in \
21121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21123 LC_TELEPHONE LC_TIME
21125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21126 eval $as_var=C; export $as_var
21127 else
21128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21130 done
21132 # Required to use basename.
21133 if expr a : '\(a\)' >/dev/null 2>&1 &&
21134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21135 as_expr=expr
21136 else
21137 as_expr=false
21140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21141 as_basename=basename
21142 else
21143 as_basename=false
21147 # Name of the executable.
21148 as_me=`$as_basename -- "$0" ||
21149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21150 X"$0" : 'X\(//\)$' \| \
21151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21152 echo X/"$0" |
21153 sed '/^.*\/\([^/][^/]*\)\/*$/{
21154 s//\1/
21157 /^X\/\(\/\/\)$/{
21158 s//\1/
21161 /^X\/\(\/\).*/{
21162 s//\1/
21165 s/.*/./; q'`
21167 # CDPATH.
21168 $as_unset CDPATH
21172 as_lineno_1=$LINENO
21173 as_lineno_2=$LINENO
21174 test "x$as_lineno_1" != "x$as_lineno_2" &&
21175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21178 # uniformly replaced by the line number. The first 'sed' inserts a
21179 # line-number line after each line using $LINENO; the second 'sed'
21180 # does the real work. The second script uses 'N' to pair each
21181 # line-number line with the line containing $LINENO, and appends
21182 # trailing '-' during substitution so that $LINENO is not a special
21183 # case at line end.
21184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21185 # scripts with optimization help from Paolo Bonzini. Blame Lee
21186 # E. McMahon (1931-1989) for sed's syntax. :-)
21187 sed -n '
21189 /[$]LINENO/=
21190 ' <$as_myself |
21191 sed '
21192 s/[$]LINENO.*/&-/
21193 t lineno
21195 :lineno
21197 :loop
21198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21199 t loop
21200 s/-\n.*//
21201 ' >$as_me.lineno &&
21202 chmod +x "$as_me.lineno" ||
21203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21204 { (exit 1); exit 1; }; }
21206 # Don't try to exec as it changes $[0], causing all sort of problems
21207 # (the dirname of $[0] is not the place where we might find the
21208 # original and so on. Autoconf is especially sensitive to this).
21209 . "./$as_me.lineno"
21210 # Exit status is that of the last command.
21211 exit
21215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21216 as_dirname=dirname
21217 else
21218 as_dirname=false
21221 ECHO_C= ECHO_N= ECHO_T=
21222 case `echo -n x` in
21223 -n*)
21224 case `echo 'x\c'` in
21225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21226 *) ECHO_C='\c';;
21227 esac;;
21229 ECHO_N='-n';;
21230 esac
21232 if expr a : '\(a\)' >/dev/null 2>&1 &&
21233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21234 as_expr=expr
21235 else
21236 as_expr=false
21239 rm -f conf$$ conf$$.exe conf$$.file
21240 if test -d conf$$.dir; then
21241 rm -f conf$$.dir/conf$$.file
21242 else
21243 rm -f conf$$.dir
21244 mkdir conf$$.dir
21246 echo >conf$$.file
21247 if ln -s conf$$.file conf$$ 2>/dev/null; then
21248 as_ln_s='ln -s'
21249 # ... but there are two gotchas:
21250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21252 # In both cases, we have to default to `cp -p'.
21253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21254 as_ln_s='cp -p'
21255 elif ln conf$$.file conf$$ 2>/dev/null; then
21256 as_ln_s=ln
21257 else
21258 as_ln_s='cp -p'
21260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21261 rmdir conf$$.dir 2>/dev/null
21263 if mkdir -p . 2>/dev/null; then
21264 as_mkdir_p=:
21265 else
21266 test -d ./-p && rmdir ./-p
21267 as_mkdir_p=false
21270 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21271 # systems may use methods other than mode bits to determine executability.
21272 cat >conf$$.file <<_ASEOF
21273 #! /bin/sh
21274 exit 0
21275 _ASEOF
21276 chmod +x conf$$.file
21277 if test -x conf$$.file >/dev/null 2>&1; then
21278 as_executable_p="test -x"
21279 else
21280 as_executable_p=:
21282 rm -f conf$$.file
21284 # Sed expression to map a string onto a valid CPP name.
21285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21287 # Sed expression to map a string onto a valid variable name.
21288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21291 exec 6>&1
21293 # Save the log message, to keep $[0] and so on meaningful, and to
21294 # report actual input values of CONFIG_FILES etc. instead of their
21295 # values after options handling.
21296 ac_log="
21297 This file was extended by llvm $as_me 2.8svn, which was
21298 generated by GNU Autoconf 2.60. Invocation command line was
21300 CONFIG_FILES = $CONFIG_FILES
21301 CONFIG_HEADERS = $CONFIG_HEADERS
21302 CONFIG_LINKS = $CONFIG_LINKS
21303 CONFIG_COMMANDS = $CONFIG_COMMANDS
21304 $ $0 $@
21306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21309 _ACEOF
21311 cat >>$CONFIG_STATUS <<_ACEOF
21312 # Files that config.status was made for.
21313 config_files="$ac_config_files"
21314 config_headers="$ac_config_headers"
21315 config_commands="$ac_config_commands"
21317 _ACEOF
21319 cat >>$CONFIG_STATUS <<\_ACEOF
21320 ac_cs_usage="\
21321 \`$as_me' instantiates files from templates according to the
21322 current configuration.
21324 Usage: $0 [OPTIONS] [FILE]...
21326 -h, --help print this help, then exit
21327 -V, --version print version number, then exit
21328 -q, --quiet do not print progress messages
21329 -d, --debug don't remove temporary files
21330 --recheck update $as_me by reconfiguring in the same conditions
21331 --file=FILE[:TEMPLATE]
21332 instantiate the configuration file FILE
21333 --header=FILE[:TEMPLATE]
21334 instantiate the configuration header FILE
21336 Configuration files:
21337 $config_files
21339 Configuration headers:
21340 $config_headers
21342 Configuration commands:
21343 $config_commands
21345 Report bugs to <bug-autoconf@gnu.org>."
21347 _ACEOF
21348 cat >>$CONFIG_STATUS <<_ACEOF
21349 ac_cs_version="\\
21350 llvm config.status 2.8svn
21351 configured by $0, generated by GNU Autoconf 2.60,
21352 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21354 Copyright (C) 2006 Free Software Foundation, Inc.
21355 This config.status script is free software; the Free Software Foundation
21356 gives unlimited permission to copy, distribute and modify it."
21358 ac_pwd='$ac_pwd'
21359 srcdir='$srcdir'
21360 INSTALL='$INSTALL'
21361 _ACEOF
21363 cat >>$CONFIG_STATUS <<\_ACEOF
21364 # If no file are specified by the user, then we need to provide default
21365 # value. By we need to know if files were specified by the user.
21366 ac_need_defaults=:
21367 while test $# != 0
21369 case $1 in
21370 --*=*)
21371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21373 ac_shift=:
21376 ac_option=$1
21377 ac_optarg=$2
21378 ac_shift=shift
21380 esac
21382 case $ac_option in
21383 # Handling of the options.
21384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21385 ac_cs_recheck=: ;;
21386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21387 echo "$ac_cs_version"; exit ;;
21388 --debug | --debu | --deb | --de | --d | -d )
21389 debug=: ;;
21390 --file | --fil | --fi | --f )
21391 $ac_shift
21392 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21393 ac_need_defaults=false;;
21394 --header | --heade | --head | --hea )
21395 $ac_shift
21396 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21397 ac_need_defaults=false;;
21398 --he | --h)
21399 # Conflict between --help and --header
21400 { echo "$as_me: error: ambiguous option: $1
21401 Try \`$0 --help' for more information." >&2
21402 { (exit 1); exit 1; }; };;
21403 --help | --hel | -h )
21404 echo "$ac_cs_usage"; exit ;;
21405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21407 ac_cs_silent=: ;;
21409 # This is an error.
21410 -*) { echo "$as_me: error: unrecognized option: $1
21411 Try \`$0 --help' for more information." >&2
21412 { (exit 1); exit 1; }; } ;;
21414 *) ac_config_targets="$ac_config_targets $1"
21415 ac_need_defaults=false ;;
21417 esac
21418 shift
21419 done
21421 ac_configure_extra_args=
21423 if $ac_cs_silent; then
21424 exec 6>/dev/null
21425 ac_configure_extra_args="$ac_configure_extra_args --silent"
21428 _ACEOF
21429 cat >>$CONFIG_STATUS <<_ACEOF
21430 if \$ac_cs_recheck; then
21431 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21432 CONFIG_SHELL=$SHELL
21433 export CONFIG_SHELL
21434 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21437 _ACEOF
21438 cat >>$CONFIG_STATUS <<\_ACEOF
21439 exec 5>>config.log
21441 echo
21442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21443 ## Running $as_me. ##
21444 _ASBOX
21445 echo "$ac_log"
21446 } >&5
21448 _ACEOF
21449 cat >>$CONFIG_STATUS <<_ACEOF
21451 # INIT-COMMANDS
21453 llvm_src="${srcdir}"
21455 _ACEOF
21457 cat >>$CONFIG_STATUS <<\_ACEOF
21459 # Handling of arguments.
21460 for ac_config_target in $ac_config_targets
21462 case $ac_config_target in
21463 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21464 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21465 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21466 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21467 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21468 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21469 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21470 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21471 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21472 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21473 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21474 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21475 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21476 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21477 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21478 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21479 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21480 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21481 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21482 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21483 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21484 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21485 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21486 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21487 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21489 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21490 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21491 { (exit 1); exit 1; }; };;
21492 esac
21493 done
21496 # If the user did not use the arguments to specify the items to instantiate,
21497 # then the envvar interface is used. Set only those that are not.
21498 # We use the long form for the default assignment because of an extremely
21499 # bizarre bug on SunOS 4.1.3.
21500 if $ac_need_defaults; then
21501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21506 # Have a temporary directory for convenience. Make it in the build tree
21507 # simply because there is no reason against having it here, and in addition,
21508 # creating and moving files from /tmp can sometimes cause problems.
21509 # Hook for its removal unless debugging.
21510 # Note that there is a small window in which the directory will not be cleaned:
21511 # after its creation but before its name has been assigned to `$tmp'.
21512 $debug ||
21514 tmp=
21515 trap 'exit_status=$?
21516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21518 trap '{ (exit 1); exit 1; }' 1 2 13 15
21520 # Create a (secure) tmp directory for tmp files.
21523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21524 test -n "$tmp" && test -d "$tmp"
21525 } ||
21527 tmp=./conf$$-$RANDOM
21528 (umask 077 && mkdir "$tmp")
21529 } ||
21531 echo "$me: cannot create a temporary directory in ." >&2
21532 { (exit 1); exit 1; }
21536 # Set up the sed scripts for CONFIG_FILES section.
21539 # No need to generate the scripts if there are no CONFIG_FILES.
21540 # This happens for instance when ./config.status config.h
21541 if test -n "$CONFIG_FILES"; then
21543 _ACEOF
21547 ac_delim='%!_!# '
21548 for ac_last_try in false false false false false :; do
21549 cat >conf$$subs.sed <<_ACEOF
21550 SHELL!$SHELL$ac_delim
21551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21557 exec_prefix!$exec_prefix$ac_delim
21558 prefix!$prefix$ac_delim
21559 program_transform_name!$program_transform_name$ac_delim
21560 bindir!$bindir$ac_delim
21561 sbindir!$sbindir$ac_delim
21562 libexecdir!$libexecdir$ac_delim
21563 datarootdir!$datarootdir$ac_delim
21564 datadir!$datadir$ac_delim
21565 sysconfdir!$sysconfdir$ac_delim
21566 sharedstatedir!$sharedstatedir$ac_delim
21567 localstatedir!$localstatedir$ac_delim
21568 includedir!$includedir$ac_delim
21569 oldincludedir!$oldincludedir$ac_delim
21570 docdir!$docdir$ac_delim
21571 infodir!$infodir$ac_delim
21572 htmldir!$htmldir$ac_delim
21573 dvidir!$dvidir$ac_delim
21574 pdfdir!$pdfdir$ac_delim
21575 psdir!$psdir$ac_delim
21576 libdir!$libdir$ac_delim
21577 localedir!$localedir$ac_delim
21578 mandir!$mandir$ac_delim
21579 DEFS!$DEFS$ac_delim
21580 ECHO_C!$ECHO_C$ac_delim
21581 ECHO_N!$ECHO_N$ac_delim
21582 ECHO_T!$ECHO_T$ac_delim
21583 LIBS!$LIBS$ac_delim
21584 build_alias!$build_alias$ac_delim
21585 host_alias!$host_alias$ac_delim
21586 target_alias!$target_alias$ac_delim
21587 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21588 subdirs!$subdirs$ac_delim
21589 build!$build$ac_delim
21590 build_cpu!$build_cpu$ac_delim
21591 build_vendor!$build_vendor$ac_delim
21592 build_os!$build_os$ac_delim
21593 host!$host$ac_delim
21594 host_cpu!$host_cpu$ac_delim
21595 host_vendor!$host_vendor$ac_delim
21596 host_os!$host_os$ac_delim
21597 target!$target$ac_delim
21598 target_cpu!$target_cpu$ac_delim
21599 target_vendor!$target_vendor$ac_delim
21600 target_os!$target_os$ac_delim
21601 OS!$OS$ac_delim
21602 HOST_OS!$HOST_OS$ac_delim
21603 TARGET_OS!$TARGET_OS$ac_delim
21604 LINKALL!$LINKALL$ac_delim
21605 NOLINKALL!$NOLINKALL$ac_delim
21606 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21607 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21608 ARCH!$ARCH$ac_delim
21609 ENDIAN!$ENDIAN$ac_delim
21610 CC!$CC$ac_delim
21611 CFLAGS!$CFLAGS$ac_delim
21612 LDFLAGS!$LDFLAGS$ac_delim
21613 CPPFLAGS!$CPPFLAGS$ac_delim
21614 ac_ct_CC!$ac_ct_CC$ac_delim
21615 EXEEXT!$EXEEXT$ac_delim
21616 OBJEXT!$OBJEXT$ac_delim
21617 CPP!$CPP$ac_delim
21618 GREP!$GREP$ac_delim
21619 EGREP!$EGREP$ac_delim
21620 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21621 BUILD_CC!$BUILD_CC$ac_delim
21622 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21623 BUILD_CXX!$BUILD_CXX$ac_delim
21624 CVSBUILD!$CVSBUILD$ac_delim
21625 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21626 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21627 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21628 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21629 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21630 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21631 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21632 JIT!$JIT$ac_delim
21633 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21634 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21635 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21636 ENABLE_PIC!$ENABLE_PIC$ac_delim
21637 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21638 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21639 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21640 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21641 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21642 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21643 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21644 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21645 CLANGPATH!$CLANGPATH$ac_delim
21646 CLANGXXPATH!$CLANGXXPATH$ac_delim
21647 _ACEOF
21649 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21650 break
21651 elif $ac_last_try; then
21652 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21654 { (exit 1); exit 1; }; }
21655 else
21656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21658 done
21660 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21661 if test -n "$ac_eof"; then
21662 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21663 ac_eof=`expr $ac_eof + 1`
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21669 _ACEOF
21670 sed '
21671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21672 s/^/s,@/; s/!/@,|#_!!_#|/
21675 s/'"$ac_delim"'$/,g/; t
21676 s/$/\\/; p
21677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21678 ' >>$CONFIG_STATUS <conf$$subs.sed
21679 rm -f conf$$subs.sed
21680 cat >>$CONFIG_STATUS <<_ACEOF
21681 CEOF$ac_eof
21682 _ACEOF
21685 ac_delim='%!_!# '
21686 for ac_last_try in false false false false false :; do
21687 cat >conf$$subs.sed <<_ACEOF
21688 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21689 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21690 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21691 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21692 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21693 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21694 CXX!$CXX$ac_delim
21695 CXXFLAGS!$CXXFLAGS$ac_delim
21696 ac_ct_CXX!$ac_ct_CXX$ac_delim
21697 NM!$NM$ac_delim
21698 ifGNUmake!$ifGNUmake$ac_delim
21699 LN_S!$LN_S$ac_delim
21700 CMP!$CMP$ac_delim
21701 CP!$CP$ac_delim
21702 DATE!$DATE$ac_delim
21703 FIND!$FIND$ac_delim
21704 MKDIR!$MKDIR$ac_delim
21705 MV!$MV$ac_delim
21706 RANLIB!$RANLIB$ac_delim
21707 AR!$AR$ac_delim
21708 RM!$RM$ac_delim
21709 SED!$SED$ac_delim
21710 TAR!$TAR$ac_delim
21711 BINPWD!$BINPWD$ac_delim
21712 GRAPHVIZ!$GRAPHVIZ$ac_delim
21713 DOT!$DOT$ac_delim
21714 FDP!$FDP$ac_delim
21715 NEATO!$NEATO$ac_delim
21716 TWOPI!$TWOPI$ac_delim
21717 CIRCO!$CIRCO$ac_delim
21718 GV!$GV$ac_delim
21719 DOTTY!$DOTTY$ac_delim
21720 PERL!$PERL$ac_delim
21721 HAVE_PERL!$HAVE_PERL$ac_delim
21722 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21723 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21724 INSTALL_DATA!$INSTALL_DATA$ac_delim
21725 BZIP2!$BZIP2$ac_delim
21726 CAT!$CAT$ac_delim
21727 DOXYGEN!$DOXYGEN$ac_delim
21728 GROFF!$GROFF$ac_delim
21729 GZIP!$GZIP$ac_delim
21730 POD2HTML!$POD2HTML$ac_delim
21731 POD2MAN!$POD2MAN$ac_delim
21732 PDFROFF!$PDFROFF$ac_delim
21733 RUNTEST!$RUNTEST$ac_delim
21734 TCLSH!$TCLSH$ac_delim
21735 ZIP!$ZIP$ac_delim
21736 OCAMLC!$OCAMLC$ac_delim
21737 OCAMLOPT!$OCAMLOPT$ac_delim
21738 OCAMLDEP!$OCAMLDEP$ac_delim
21739 OCAMLDOC!$OCAMLDOC$ac_delim
21740 GAS!$GAS$ac_delim
21741 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21742 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21743 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21744 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21745 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21746 LIBADD_DL!$LIBADD_DL$ac_delim
21747 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21748 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21749 LLVMGCC!$LLVMGCC$ac_delim
21750 LLVMGXX!$LLVMGXX$ac_delim
21751 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21752 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21753 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21754 USE_UDIS86!$USE_UDIS86$ac_delim
21755 USE_OPROFILE!$USE_OPROFILE$ac_delim
21756 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21757 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21758 MMAP_FILE!$MMAP_FILE$ac_delim
21759 LLVMCC1!$LLVMCC1$ac_delim
21760 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21761 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21762 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21763 SHLIBEXT!$SHLIBEXT$ac_delim
21764 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21765 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21766 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21767 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21768 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21769 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21770 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21771 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21772 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21773 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21774 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21775 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21776 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21777 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21778 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21779 RPATH!$RPATH$ac_delim
21780 RDYNAMIC!$RDYNAMIC$ac_delim
21781 LIBOBJS!$LIBOBJS$ac_delim
21782 LTLIBOBJS!$LTLIBOBJS$ac_delim
21783 _ACEOF
21785 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
21786 break
21787 elif $ac_last_try; then
21788 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21789 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21790 { (exit 1); exit 1; }; }
21791 else
21792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21794 done
21796 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21797 if test -n "$ac_eof"; then
21798 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21799 ac_eof=`expr $ac_eof + 1`
21802 cat >>$CONFIG_STATUS <<_ACEOF
21803 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21805 _ACEOF
21806 sed '
21807 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21808 s/^/s,@/; s/!/@,|#_!!_#|/
21811 s/'"$ac_delim"'$/,g/; t
21812 s/$/\\/; p
21813 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21814 ' >>$CONFIG_STATUS <conf$$subs.sed
21815 rm -f conf$$subs.sed
21816 cat >>$CONFIG_STATUS <<_ACEOF
21817 :end
21818 s/|#_!!_#|//g
21819 CEOF$ac_eof
21820 _ACEOF
21823 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21824 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21825 # trailing colons and then remove the whole line if VPATH becomes empty
21826 # (actually we leave an empty line to preserve line numbers).
21827 if test "x$srcdir" = x.; then
21828 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21829 s/:*\$(srcdir):*/:/
21830 s/:*\${srcdir}:*/:/
21831 s/:*@srcdir@:*/:/
21832 s/^\([^=]*=[ ]*\):*/\1/
21833 s/:*$//
21834 s/^[^=]*=[ ]*$//
21838 cat >>$CONFIG_STATUS <<\_ACEOF
21839 fi # test -n "$CONFIG_FILES"
21842 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21844 case $ac_tag in
21845 :[FHLC]) ac_mode=$ac_tag; continue;;
21846 esac
21847 case $ac_mode$ac_tag in
21848 :[FHL]*:*);;
21849 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21850 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21851 { (exit 1); exit 1; }; };;
21852 :[FH]-) ac_tag=-:-;;
21853 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21854 esac
21855 ac_save_IFS=$IFS
21856 IFS=:
21857 set x $ac_tag
21858 IFS=$ac_save_IFS
21859 shift
21860 ac_file=$1
21861 shift
21863 case $ac_mode in
21864 :L) ac_source=$1;;
21865 :[FH])
21866 ac_file_inputs=
21867 for ac_f
21869 case $ac_f in
21870 -) ac_f="$tmp/stdin";;
21871 *) # Look for the file first in the build tree, then in the source tree
21872 # (if the path is not absolute). The absolute path cannot be DOS-style,
21873 # because $ac_f cannot contain `:'.
21874 test -f "$ac_f" ||
21875 case $ac_f in
21876 [\\/$]*) false;;
21877 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21878 esac ||
21879 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21880 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21881 { (exit 1); exit 1; }; };;
21882 esac
21883 ac_file_inputs="$ac_file_inputs $ac_f"
21884 done
21886 # Let's still pretend it is `configure' which instantiates (i.e., don't
21887 # use $as_me), people would be surprised to read:
21888 # /* config.h. Generated by config.status. */
21889 configure_input="Generated from "`IFS=:
21890 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21891 if test x"$ac_file" != x-; then
21892 configure_input="$ac_file. $configure_input"
21893 { echo "$as_me:$LINENO: creating $ac_file" >&5
21894 echo "$as_me: creating $ac_file" >&6;}
21897 case $ac_tag in
21898 *:-:* | *:-) cat >"$tmp/stdin";;
21899 esac
21901 esac
21903 ac_dir=`$as_dirname -- "$ac_file" ||
21904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21905 X"$ac_file" : 'X\(//\)[^/]' \| \
21906 X"$ac_file" : 'X\(//\)$' \| \
21907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21908 echo X"$ac_file" |
21909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21910 s//\1/
21913 /^X\(\/\/\)[^/].*/{
21914 s//\1/
21917 /^X\(\/\/\)$/{
21918 s//\1/
21921 /^X\(\/\).*/{
21922 s//\1/
21925 s/.*/./; q'`
21926 { as_dir="$ac_dir"
21927 case $as_dir in #(
21928 -*) as_dir=./$as_dir;;
21929 esac
21930 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21931 as_dirs=
21932 while :; do
21933 case $as_dir in #(
21934 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21935 *) as_qdir=$as_dir;;
21936 esac
21937 as_dirs="'$as_qdir' $as_dirs"
21938 as_dir=`$as_dirname -- "$as_dir" ||
21939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21940 X"$as_dir" : 'X\(//\)[^/]' \| \
21941 X"$as_dir" : 'X\(//\)$' \| \
21942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21943 echo X"$as_dir" |
21944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21945 s//\1/
21948 /^X\(\/\/\)[^/].*/{
21949 s//\1/
21952 /^X\(\/\/\)$/{
21953 s//\1/
21956 /^X\(\/\).*/{
21957 s//\1/
21960 s/.*/./; q'`
21961 test -d "$as_dir" && break
21962 done
21963 test -z "$as_dirs" || eval "mkdir $as_dirs"
21964 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21965 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21966 { (exit 1); exit 1; }; }; }
21967 ac_builddir=.
21969 case "$ac_dir" in
21970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21973 # A ".." for each directory in $ac_dir_suffix.
21974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21975 case $ac_top_builddir_sub in
21976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21978 esac ;;
21979 esac
21980 ac_abs_top_builddir=$ac_pwd
21981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21982 # for backward compatibility:
21983 ac_top_builddir=$ac_top_build_prefix
21985 case $srcdir in
21986 .) # We are building in place.
21987 ac_srcdir=.
21988 ac_top_srcdir=$ac_top_builddir_sub
21989 ac_abs_top_srcdir=$ac_pwd ;;
21990 [\\/]* | ?:[\\/]* ) # Absolute name.
21991 ac_srcdir=$srcdir$ac_dir_suffix;
21992 ac_top_srcdir=$srcdir
21993 ac_abs_top_srcdir=$srcdir ;;
21994 *) # Relative name.
21995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21996 ac_top_srcdir=$ac_top_build_prefix$srcdir
21997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21998 esac
21999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22002 case $ac_mode in
22005 # CONFIG_FILE
22008 case $INSTALL in
22009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22011 esac
22012 _ACEOF
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22015 # If the template does not know about datarootdir, expand it.
22016 # FIXME: This hack should be removed a few years after 2.60.
22017 ac_datarootdir_hack=; ac_datarootdir_seen=
22019 case `sed -n '/datarootdir/ {
22023 /@datadir@/p
22024 /@docdir@/p
22025 /@infodir@/p
22026 /@localedir@/p
22027 /@mandir@/p
22028 ' $ac_file_inputs` in
22029 *datarootdir*) ac_datarootdir_seen=yes;;
22030 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22031 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22032 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22033 _ACEOF
22034 cat >>$CONFIG_STATUS <<_ACEOF
22035 ac_datarootdir_hack='
22036 s&@datadir@&$datadir&g
22037 s&@docdir@&$docdir&g
22038 s&@infodir@&$infodir&g
22039 s&@localedir@&$localedir&g
22040 s&@mandir@&$mandir&g
22041 s&\\\${datarootdir}&$datarootdir&g' ;;
22042 esac
22043 _ACEOF
22045 # Neutralize VPATH when `$srcdir' = `.'.
22046 # Shell code in configure.ac might set extrasub.
22047 # FIXME: do we really want to maintain this feature?
22048 cat >>$CONFIG_STATUS <<_ACEOF
22049 sed "$ac_vpsub
22050 $extrasub
22051 _ACEOF
22052 cat >>$CONFIG_STATUS <<\_ACEOF
22054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22055 s&@configure_input@&$configure_input&;t t
22056 s&@top_builddir@&$ac_top_builddir_sub&;t t
22057 s&@srcdir@&$ac_srcdir&;t t
22058 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22059 s&@top_srcdir@&$ac_top_srcdir&;t t
22060 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22061 s&@builddir@&$ac_builddir&;t t
22062 s&@abs_builddir@&$ac_abs_builddir&;t t
22063 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22064 s&@INSTALL@&$ac_INSTALL&;t t
22065 $ac_datarootdir_hack
22066 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22069 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22071 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22072 which seems to be undefined. Please make sure it is defined." >&5
22073 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22074 which seems to be undefined. Please make sure it is defined." >&2;}
22076 rm -f "$tmp/stdin"
22077 case $ac_file in
22078 -) cat "$tmp/out"; rm -f "$tmp/out";;
22079 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22080 esac
22084 # CONFIG_HEADER
22086 _ACEOF
22088 # Transform confdefs.h into a sed script `conftest.defines', that
22089 # substitutes the proper values into config.h.in to produce config.h.
22090 rm -f conftest.defines conftest.tail
22091 # First, append a space to every undef/define line, to ease matching.
22092 echo 's/$/ /' >conftest.defines
22093 # Then, protect against being on the right side of a sed subst, or in
22094 # an unquoted here document, in config.status. If some macros were
22095 # called several times there might be several #defines for the same
22096 # symbol, which is useless. But do not sort them, since the last
22097 # AC_DEFINE must be honored.
22098 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22099 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22100 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22101 # PARAMS is the parameter list in the macro definition--in most cases, it's
22102 # just an empty string.
22103 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22104 ac_dB='\\)[ (].*,\\1define\\2'
22105 ac_dC=' '
22106 ac_dD=' ,'
22108 uniq confdefs.h |
22109 sed -n '
22110 t rset
22111 :rset
22112 s/^[ ]*#[ ]*define[ ][ ]*//
22113 t ok
22116 s/[\\&,]/\\&/g
22117 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22118 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22119 ' >>conftest.defines
22121 # Remove the space that was appended to ease matching.
22122 # Then replace #undef with comments. This is necessary, for
22123 # example, in the case of _POSIX_SOURCE, which is predefined and required
22124 # on some systems where configure will not decide to define it.
22125 # (The regexp can be short, since the line contains either #define or #undef.)
22126 echo 's/ $//
22127 s,^[ #]*u.*,/* & */,' >>conftest.defines
22129 # Break up conftest.defines:
22130 ac_max_sed_lines=50
22132 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22133 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22134 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22135 # et cetera.
22136 ac_in='$ac_file_inputs'
22137 ac_out='"$tmp/out1"'
22138 ac_nxt='"$tmp/out2"'
22140 while :
22142 # Write a here document:
22143 cat >>$CONFIG_STATUS <<_ACEOF
22144 # First, check the format of the line:
22145 cat >"\$tmp/defines.sed" <<\\CEOF
22146 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22147 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22149 :def
22150 _ACEOF
22151 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22152 echo 'CEOF
22153 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22154 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22155 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22156 grep . conftest.tail >/dev/null || break
22157 rm -f conftest.defines
22158 mv conftest.tail conftest.defines
22159 done
22160 rm -f conftest.defines conftest.tail
22162 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 if test x"$ac_file" != x-; then
22165 echo "/* $configure_input */" >"$tmp/config.h"
22166 cat "$ac_result" >>"$tmp/config.h"
22167 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22168 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22169 echo "$as_me: $ac_file is unchanged" >&6;}
22170 else
22171 rm -f $ac_file
22172 mv "$tmp/config.h" $ac_file
22174 else
22175 echo "/* $configure_input */"
22176 cat "$ac_result"
22178 rm -f "$tmp/out12"
22181 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22182 echo "$as_me: executing $ac_file commands" >&6;}
22184 esac
22187 case $ac_file$ac_mode in
22188 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22190 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22192 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22194 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22196 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22198 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22200 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22202 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22204 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22206 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22208 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22209 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22210 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22211 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22212 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22213 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22215 esac
22216 done # for ac_tag
22219 { (exit 0); exit 0; }
22220 _ACEOF
22221 chmod +x $CONFIG_STATUS
22222 ac_clean_files=$ac_clean_files_save
22225 # configure is writing to config.log, and then calls config.status.
22226 # config.status does its own redirection, appending to config.log.
22227 # Unfortunately, on DOS this fails, as config.log is still kept open
22228 # by configure, so config.status won't be able to write to it; its
22229 # output is simply discarded. So we exec the FD to /dev/null,
22230 # effectively closing config.log, so it can be properly (re)opened and
22231 # appended to by config.status. When coming back to configure, we
22232 # need to make the FD available again.
22233 if test "$no_create" != yes; then
22234 ac_cs_success=:
22235 ac_config_status_args=
22236 test "$silent" = yes &&
22237 ac_config_status_args="$ac_config_status_args --quiet"
22238 exec 5>/dev/null
22239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22240 exec 5>>config.log
22241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22242 # would make configure fail if this is the last instruction.
22243 $ac_cs_success || { (exit 1); exit 1; }
22247 # CONFIG_SUBDIRS section.
22249 if test "$no_recursion" != yes; then
22251 # Remove --cache-file and --srcdir arguments so they do not pile up.
22252 ac_sub_configure_args=
22253 ac_prev=
22254 eval "set x $ac_configure_args"
22255 shift
22256 for ac_arg
22258 if test -n "$ac_prev"; then
22259 ac_prev=
22260 continue
22262 case $ac_arg in
22263 -cache-file | --cache-file | --cache-fil | --cache-fi \
22264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22265 ac_prev=cache_file ;;
22266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22268 | --c=*)
22270 --config-cache | -C)
22272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22273 ac_prev=srcdir ;;
22274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22277 ac_prev=prefix ;;
22278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22281 case $ac_arg in
22282 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22283 esac
22284 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22285 esac
22286 done
22288 # Always prepend --prefix to ensure using the same prefix
22289 # in subdir configurations.
22290 ac_arg="--prefix=$prefix"
22291 case $ac_arg in
22292 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22293 esac
22294 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22296 ac_popdir=`pwd`
22297 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22299 # Do not complain, so a configure script can configure whichever
22300 # parts of a large source tree are present.
22301 test -d "$srcdir/$ac_dir" || continue
22303 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22304 echo "$as_me:$LINENO: $ac_msg" >&5
22305 echo "$ac_msg" >&6
22306 { as_dir="$ac_dir"
22307 case $as_dir in #(
22308 -*) as_dir=./$as_dir;;
22309 esac
22310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22311 as_dirs=
22312 while :; do
22313 case $as_dir in #(
22314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22315 *) as_qdir=$as_dir;;
22316 esac
22317 as_dirs="'$as_qdir' $as_dirs"
22318 as_dir=`$as_dirname -- "$as_dir" ||
22319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22320 X"$as_dir" : 'X\(//\)[^/]' \| \
22321 X"$as_dir" : 'X\(//\)$' \| \
22322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22323 echo X"$as_dir" |
22324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22325 s//\1/
22328 /^X\(\/\/\)[^/].*/{
22329 s//\1/
22332 /^X\(\/\/\)$/{
22333 s//\1/
22336 /^X\(\/\).*/{
22337 s//\1/
22340 s/.*/./; q'`
22341 test -d "$as_dir" && break
22342 done
22343 test -z "$as_dirs" || eval "mkdir $as_dirs"
22344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22346 { (exit 1); exit 1; }; }; }
22347 ac_builddir=.
22349 case "$ac_dir" in
22350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22353 # A ".." for each directory in $ac_dir_suffix.
22354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22355 case $ac_top_builddir_sub in
22356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22358 esac ;;
22359 esac
22360 ac_abs_top_builddir=$ac_pwd
22361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22362 # for backward compatibility:
22363 ac_top_builddir=$ac_top_build_prefix
22365 case $srcdir in
22366 .) # We are building in place.
22367 ac_srcdir=.
22368 ac_top_srcdir=$ac_top_builddir_sub
22369 ac_abs_top_srcdir=$ac_pwd ;;
22370 [\\/]* | ?:[\\/]* ) # Absolute name.
22371 ac_srcdir=$srcdir$ac_dir_suffix;
22372 ac_top_srcdir=$srcdir
22373 ac_abs_top_srcdir=$srcdir ;;
22374 *) # Relative name.
22375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22376 ac_top_srcdir=$ac_top_build_prefix$srcdir
22377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22378 esac
22379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22382 cd "$ac_dir"
22384 # Check for guested configure; otherwise get Cygnus style configure.
22385 if test -f "$ac_srcdir/configure.gnu"; then
22386 ac_sub_configure=$ac_srcdir/configure.gnu
22387 elif test -f "$ac_srcdir/configure"; then
22388 ac_sub_configure=$ac_srcdir/configure
22389 elif test -f "$ac_srcdir/configure.in"; then
22390 # This should be Cygnus configure.
22391 ac_sub_configure=$ac_aux_dir/configure
22392 else
22393 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22395 ac_sub_configure=
22398 # The recursion is here.
22399 if test -n "$ac_sub_configure"; then
22400 # Make the cache file name correct relative to the subdirectory.
22401 case $cache_file in
22402 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22403 *) # Relative name.
22404 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22405 esac
22407 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22408 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22409 # The eval makes quoting arguments work.
22410 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22411 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22412 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22413 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22414 { (exit 1); exit 1; }; }
22417 cd "$ac_popdir"
22418 done